|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.drools.io.RuleSetLoader
Loads RuleSet
definitions from XML descriptor.
Constructor Summary | |
RuleSetLoader()
Construct. |
Method Summary | |
void |
addRuleSet(RuleSet ruleSet)
Add a RuleSet to this loader. |
java.util.List |
load(java.lang.String url)
Load RuleSet deifnitions from a URL. |
java.util.List |
load(java.net.URL url)
Load RuleSet deifnitions from a URL. |
void |
load(java.net.URL url,
RuleBase ruleBase)
Load RuleSet deifnitions from a URL
into a RuleBase . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RuleSetLoader()
Method Detail |
public void addRuleSet(RuleSet ruleSet)
RuleSet
to this loader.
ruleSet
- The rule-set to add.public java.util.List load(java.net.URL url) throws java.io.IOException, java.lang.Exception
RuleSet
deifnitions from a URL.
url
- The URL of the rule-set definitions.
java.io.IOException
- If an IO errors occurs.
java.lang.Exception
- If an error occurs evaluating the definition.public void load(java.net.URL url, RuleBase ruleBase) throws java.io.IOException, java.lang.Exception
RuleSet
deifnitions from a URL
into a RuleBase
.
url
- The URL of the rule-set definitions.ruleBase
- The rule-base to populate.
java.io.IOException
- If an IO errors occurs.
java.lang.Exception
- If an error occurs evaluating the definition.public java.util.List load(java.lang.String url) throws java.io.IOException, java.lang.Exception
RuleSet
deifnitions from a URL.
url
- The URL of the rule-set definitions.
java.io.IOException
- If an IO errors occurs.
java.lang.Exception
- If an error occurs evaluating the definition.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |