|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface RuleElement
A rule element is a component of a rule such as a condition and an action.
| Method Summary | |
|---|---|
void |
addParameter(RuleParameter ruleParameter)
Add a parameter of this rule action. |
boolean |
appliesInScenario(int scenarioId)
Check if this rule element is valid in the specified scenario. |
java.lang.String[] |
getAllowedExceptions()
Return the array of the allowed RuleException types for the rule. |
java.lang.String |
getDisplayText()
Returns the text for display to the user. |
java.util.Set |
getExceptions()
Get the RuleException associated with this RuleCondition. |
java.lang.String |
getKind()
Get the kind of this RuleElement (e.g. |
java.lang.String[] |
getParameterKeys()
Return the array of the required parameter keys for the rule. |
java.util.Set |
getParameters()
Get the parameters associated with this rule action. |
java.lang.String |
getRuleCode()
Returns the Drools code corresponding to this RuleCondition. |
java.lang.String |
getType()
Get the type of action, i.e. |
void |
setExceptions(java.util.Set ruleExceptions)
Set the exceptions of this rule condition. |
void |
setKind(java.lang.String kind)
Set the kind of this RuleElement (e.g. |
void |
setParameters(java.util.Set parameters)
Set the parameters of this rule action. |
void |
setRuleId(long ruleId)
Set the identifier for the rule that contains this action. |
void |
setType(java.lang.String type)
Set the type of action. |
void |
validate()
Checks that the rule set domain model is well formed. |
| Methods inherited from interface com.elasticpath.domain.Persistence |
|---|
executeBeforePersistAction, getUidPk, isPersistent, setDefaultValues, setUidPk |
| Methods inherited from interface com.elasticpath.domain.EpDomain |
|---|
getElasticPath, setElasticPath |
| Method Detail |
|---|
void addParameter(RuleParameter ruleParameter)
ruleParameter - a RuleParameter objectboolean appliesInScenario(int scenarioId)
scenarioId - the Id of the scenario to check (defined in RuleScenarios)
java.lang.String[] getAllowedExceptions()
RuleException types for the rule.
RuleException types for the rule.java.lang.String getDisplayText()
java.util.Set getExceptions()
RuleException associated with this RuleCondition.
java.lang.String getKind()
RuleElement (e.g. eligibility, condition, action).
java.lang.String[] getParameterKeys()
java.util.Set getParameters()
java.lang.String getRuleCode()
throws EpDomainException
RuleCondition.
EpDomainException - if the RuleCondition is not well formedjava.lang.String getType()
void setExceptions(java.util.Set ruleExceptions)
ruleExceptions - a set of RuleException objects.void setKind(java.lang.String kind)
RuleElement (e.g. eligibility, condition, action)
kind - the kind of the rule elementvoid setParameters(java.util.Set parameters)
parameters - a set of RuleParameter objectsvoid setRuleId(long ruleId)
ruleId - the id of the rule containing this action.void setType(java.lang.String type)
type - the type of action
void validate()
throws EpDomainException
EpDomainException - if the structure is not correct.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||