|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RuleSet
Represents a set of rules.
Method Summary | |
---|---|
void |
addRule(Rule rule)
Adds a rule to the rule set. |
java.util.Set |
getImports()
Get the names of classes imported by this rule set. |
java.util.Date |
getLastModifiedDate()
Returns the date when the rule set was last modified. |
java.lang.String |
getName()
Get the name of this rule set. |
java.lang.String |
getRuleCode()
Returns the Drools code corresponding to this rule set. |
java.util.Set |
getRules()
Get the rules in this rule set. |
int |
getScenario()
Get the id of the scenario that this rule set applies to. |
void |
setLastModifiedDate(java.util.Date lastModifiedDate)
Set the date when the rule set was last modified. |
void |
setName(java.lang.String name)
Set the name of this rule set. |
void |
setRules(java.util.Set rules)
Set the rules in this rule set. |
void |
setScenario(int scenarioId)
Set the scenario that this rule set applies to. |
void |
validate()
Checks that the rule set domain model is well formed. |
Methods inherited from interface com.elasticpath.domain.Entity |
---|
getGuid, setGuid |
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 addRule(Rule rule)
rule
- the rule to addjava.util.Set getImports()
addImport
java.util.Date getLastModifiedDate()
java.lang.String getName()
java.lang.String getRuleCode() throws EpDomainException
EpDomainException
- if the rule set is not well formedjava.util.Set getRules()
int getScenario()
(constant in RuleScenarios)
void setLastModifiedDate(java.util.Date lastModifiedDate)
lastModifiedDate
- the date when the rule set was last modifiedvoid setName(java.lang.String name)
name
- the name of this rule setvoid setRules(java.util.Set rules)
rules
- a set of Rule
objectsvoid setScenario(int scenarioId)
scenarioId
- a constant in RuleScenarios
.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 |