public interface Rule
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_PRIORITY
Default priority of a rule.
|
static int |
MAX_PRIORITY
Maximum priority of a rule.
|
static int |
MIN_PRIORITY
Minimum priority of a rule.
|
| Modifier and Type | Method and Description |
|---|---|
void |
activate()
Activates the rule.
|
void |
deactivate()
Deactivates the rule.
|
Action[] |
getActions()
Get the actions of this rule.
|
Condition[] |
getConditions()
Get the conditions of this rule.
|
java.lang.String |
getDescription()
Gets the description of the rule.
|
Identifier[] |
getIdentifiers()
Gets the identifiers from the declaration section of the rule.
|
java.lang.String |
getName()
Gets the name of the rule.
|
int |
getPriority()
Gets the priority of the rule.
|
java.lang.String |
getUri()
Gets the URI of the rule.
|
boolean |
isActive()
Tests if the rule is active.
|
void |
setPriority(int priority)
Sets the priority of the rule.
|
static final int MIN_PRIORITY
static final int MAX_PRIORITY
static final int DEFAULT_PRIORITY
java.lang.String getName()
java.lang.String getUri()
java.lang.String getDescription()
String describing this rule.boolean isActive()
Rule.activate(),
Rule.deactivate()void setPriority(int priority)
priority - the priority to set.Rule.DEFAULT_PRIORITY,
Rule.MIN_PRIORITY,
Rule.MAX_PRIORITYint getPriority()
Rule.DEFAULT_PRIORITY,
Rule.MIN_PRIORITY,
Rule.MAX_PRIORITYIdentifier[] getIdentifiers()
Identifier of this rule.Condition[] getConditions()
Condition of this rule.Action[] getActions()
Action of this rule.void activate()
Rule.deactivate(),
Rule.isActive()void deactivate()
Rule.activate(),
Rule.isActive()