|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.drools.rule.RuleSet
public class RuleSet
Collection of related Rules.
Rule,
Serialized Form| Field Summary | |
|---|---|
static RuleSet[] |
EMPTY_ARRAY
Empty RuleSet array. |
| Constructor Summary | |
|---|---|
RuleSet(java.lang.String name)
Construct. |
|
RuleSet(java.lang.String name,
RuleBaseContext ruleBaseContext)
Construct. |
|
| Method Summary | |
|---|---|
void |
addApplicationData(ApplicationData applicationData)
|
void |
addFunctions(java.lang.String key,
Functions functions)
|
void |
addRule(Rule rule)
Add a Rule to this RuleSet. |
boolean |
containsRule(java.lang.String name)
Determine if this RuleSet contains a Rule
|
java.util.Map |
getApplicationData()
|
java.lang.String |
getDocumentation()
Retrieve the documentation. |
java.util.Map |
getFunctions()
|
Functions |
getFunctions(java.lang.String key)
|
Importer |
getImporter()
|
java.lang.String |
getName()
Retrieve the name of this RuleSet. |
Rule |
getRule(java.lang.String name)
Retrieve a Rule by name. |
RuleBaseContext |
getRuleBaseContext()
|
Rule[] |
getRules()
Retrieve all Rules in this RuleSet. |
void |
setDocumentation(java.lang.String documentation)
Set the documentation. |
void |
setImporter(Importer importer)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final RuleSet[] EMPTY_ARRAY
RuleSet array.
| Constructor Detail |
|---|
public RuleSet(java.lang.String name)
name - The name of this RuleSet.
public RuleSet(java.lang.String name,
RuleBaseContext ruleBaseContext)
name - The name of this RuleSet.ruleBaseContext - | Method Detail |
|---|
public java.lang.String getName()
RuleSet.
RuleSet.public void setDocumentation(java.lang.String documentation)
documentation - The documentation.public java.lang.String getDocumentation()
null if none.
public void addRule(Rule rule)
throws DuplicateRuleNameException,
InvalidRuleException
Rule to this RuleSet.
rule - The rule to add.
DuplicateRuleNameException - If the Rule attempting to be added has the
same name as another previously added Rule.
InvalidRuleException - If the Rule is not valid.public Rule getRule(java.lang.String name)
Rule by name.
name - The name of the Rule to retrieve.
Rule, or null if not
such Rule has been added to this
RuleSet.public boolean containsRule(java.lang.String name)
RuleSet contains a Rule
name - The name of the Rule.
true if this RuleSet contains a
Rule with the specified name, else false.public Rule[] getRules()
Rules in this RuleSet.
Rules in this RuleSet.public Importer getImporter()
public void setImporter(Importer importer)
public void addApplicationData(ApplicationData applicationData)
public java.util.Map getApplicationData()
public void addFunctions(java.lang.String key,
Functions functions)
public Functions getFunctions(java.lang.String key)
public java.util.Map getFunctions()
public RuleBaseContext getRuleBaseContext()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||