org.apache.commons.digester.xmlrules
public class FromXmlRuleSet extends RuleSetBase
Since: 1.2
Nested Class Summary | |
---|---|
class | FromXmlRuleSet.InputSourceXMLRulesLoader Loads XMLRules from an InputSource |
class | FromXmlRuleSet.URLXMLRulesLoader Loads XMLRules from an URL |
abstract static class | FromXmlRuleSet.XMLRulesLoader
Worker class encapsulates loading mechanisms.
|
Field Summary | |
---|---|
static String | DIGESTER_DTD_PATH |
DigesterRuleParser | parser
The rule set for parsing the Digester rules |
Digester | rulesDigester
The digester for loading the rules xml. |
FromXmlRuleSet.XMLRulesLoader | rulesLoader
The file containing the Digester rules, in XML. |
Constructor Summary | |
---|---|
FromXmlRuleSet(URL rulesXml)
Constructs a FromXmlRuleSet using the default DigesterRuleParser and
rulesDigester. | |
FromXmlRuleSet(URL rulesXml, Digester rulesDigester)
Constructs a FromXmlRuleSet using the default DigesterRuleParser and
a ruleDigester for loading the rules xml. | |
FromXmlRuleSet(URL rulesXml, DigesterRuleParser parser) | |
FromXmlRuleSet(URL rulesXml, DigesterRuleParser parser, Digester rulesDigester) | |
FromXmlRuleSet(InputSource inputSource)
Constructs a FromXmlRuleSet using the default DigesterRuleParser and
rulesDigester. | |
FromXmlRuleSet(InputSource inputSource, Digester rulesDigester)
Constructs a FromXmlRuleSet using the default DigesterRuleParser and
a ruleDigester for loading the rules xml. | |
FromXmlRuleSet(InputSource inputSource, DigesterRuleParser parser) | |
FromXmlRuleSet(InputSource inputSource, DigesterRuleParser parser, Digester rulesDigester) |
Method Summary | |
---|---|
void | addRuleInstances(Digester digester)
Adds to the digester the set of Rule instances defined in the
XML file for this rule set. |
void | addRuleInstances(Digester digester, String basePath)
Adds to the digester the set of Rule instances defined in the
XML file for this rule set.
|
void | init(FromXmlRuleSet.XMLRulesLoader rulesLoader, DigesterRuleParser parser, Digester rulesDigester)
Base constructor |
Parameters: rulesXml the path to the XML document defining the Digester rules
Parameters: rulesXml the path to the XML document defining the Digester rules rulesDigester the digester to read the rules xml.
Parameters: rulesXml the path to the XML document defining the Digester rules parser an instance of DigesterRuleParser, for parsing the rules from XML
Parameters: rulesXml the path to the XML document defining the Digester rules parser an instance of DigesterRuleParser, for parsing the rules from XML rulesDigester the digester used to load the Xml rules.
Parameters: inputSource load the xml rules from this InputSource
Parameters: inputSource load the xml rules from this InputSource rulesDigester the digester to read the rules xml.
Parameters: inputSource load the xml rules from this InputSource parser an instance of DigesterRuleParser, for parsing the rules from XML
Parameters: inputSource load the xml rules from this InputSource parser an instance of DigesterRuleParser, for parsing the rules from XML rulesDigester the digester used to load the Xml rules.
See Also: RuleSetBase
Note that this method doesn't have a matching one on the DigesterLoader class, because it is not expected to be widely used, and DigesterLoader's load method is already heavily overloaded.
Parameters: digester is the digester that rules will be added to. basePath is a path that will be prefixed to every pattern string defined in the xmlrules input file.
Since: 1.6
See Also: RuleSetBase