public abstract class AbstractRule extends Object implements Serializable, Cloneable
true
.Modifier and Type | Field and Description |
---|---|
protected String |
name
Name of the Rule
|
protected Properties |
ruleProperties
User defined name, value pair properties
|
Constructor and Description |
---|
AbstractRule()
Default Constructor to set priority to medium and status to active
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Method to create a clone of this Rule
|
String |
getName()
Returns the name of this Rule
|
abstract String[] |
getPreconditionNames()
If this Rule contains any preconditions, this method will return the
names of those precondition Rules in a String array.
|
abstract int |
getPriority()
This method returns an integer value that represents the priority.
|
String |
getProperty(String propertyKey)
Returns the Rule property (user defined) with the specified key.
|
String |
getProperty(String propertyKey,
String defaultValue)
Returns the Rule property (user defined) with the specified key.
|
abstract boolean |
isActive()
This method will return the status of this Rule.
|
abstract boolean |
isPreconditionNegated(String preConditionName)
Determines if the precondition to this Rule should be negated.
|
Enumeration |
propertyNames()
Returns an Enumeration of names/keys of all the properties (user defined)
of this Rule.
|
protected String name
protected Properties ruleProperties
public AbstractRule()
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public String getName()
public abstract String[] getPreconditionNames()
public abstract int getPriority()
public String getProperty(String propertyKey)
null
is returned if no property with the given
propertyKey
is found.propertyKey
- Key/Name of the property to be retrievednull
public String getProperty(String propertyKey, String defaultValue)
defaultValue
is returned.propertyKey
- Key/Name of the property to be retrieveddefaultValue
- Default value of the property to be returned if the property
with the given key is not found.null
public abstract boolean isActive()
True
, else return False
public abstract boolean isPreconditionNegated(String preConditionName)
preConditionName
- Name of the Precondition RuleTrue
if a precondition in this Rule corresponding
to the name in param preConditionName
is negated.
Else, returns False
. If the precondition with the
name in param preConditionName
do not exist then
also it returns False
.public Enumeration propertyNames()
Access Rights |
---|
SC | DC | Public Part | ACH |
---|---|---|---|
[sap.com] BRMS-FACADE
|
[sap.com] tc/brms/facade
|
api
|
BC-BMT-BRM-ENG
|
Copyright 2018 SAP AG Complete Copyright Notice