org.drools.io
Class RuleSetLoader
java.lang.Object
|
+--org.drools.io.RuleSetLoader
- public class RuleSetLoader
- extends java.lang.Object
Loads RuleSet
definitions from XML descriptor.
- Version:
- $Id: RuleSetLoader.java,v 1.2 2002/08/22 05:15:26 bob Exp $
- Author:
- bob mcwhirter
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 |
RuleSetLoader
public RuleSetLoader()
- Construct.
addRuleSet
public void addRuleSet(RuleSet ruleSet)
- Add a
RuleSet
to this loader.
- Parameters:
ruleSet
- The rule-set to add.
load
public java.util.List load(java.net.URL url)
throws java.io.IOException,
java.lang.Exception
- Load
RuleSet
deifnitions from a URL.
- Parameters:
url
- The URL of the rule-set definitions.- Returns:
- The list of loaded rule-sets.
- Throws:
java.io.IOException
- If an IO errors occurs.java.lang.Exception
- If an error occurs evaluating the definition.
load
public void load(java.net.URL url,
RuleBase ruleBase)
throws java.io.IOException,
java.lang.Exception
- Load
RuleSet
deifnitions from a URL
into a RuleBase
.
- Parameters:
url
- The URL of the rule-set definitions.ruleBase
- The rule-base to populate.- Throws:
java.io.IOException
- If an IO errors occurs.java.lang.Exception
- If an error occurs evaluating the definition.
load
public java.util.List load(java.lang.String url)
throws java.io.IOException,
java.lang.Exception
- Load
RuleSet
deifnitions from a URL.
- Parameters:
url
- The URL of the rule-set definitions.- Returns:
- The list of loaded rule-sets.
- Throws:
java.io.IOException
- If an IO errors occurs.java.lang.Exception
- If an error occurs evaluating the definition.
Copyright © 2001-2002 The Werken Company. All Rights Reserved.