org.apache.commons.digester.xmlrules
Class FromXmlRuleSet
java.lang.Object
|
+--org.apache.commons.digester.RuleSetBase
|
+--org.apache.commons.digester.xmlrules.FromXmlRuleSet
- All Implemented Interfaces:
- RuleSet
- public class FromXmlRuleSet
- extends RuleSetBase
A Digester rule set where the rules come from an XML file.
- Author:
- David H. Martin - Initial Contribution, Scott Sanders - Added ASL, removed external dependencies
Method Summary |
void |
addRuleInstances(Digester digester)
Adds to the digester the set of Rule instances defined in the
XML file for this rule set. |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
DIGESTER_DTD_PATH
public static final java.lang.String DIGESTER_DTD_PATH
xmlRules
private java.net.URL xmlRules
- The file containing the Digester rules, in XML.
parser
private DigesterRuleParser parser
- The rule set for parsing the Digester rules
FromXmlRuleSet
public FromXmlRuleSet(java.net.URL rulesXml)
- Constructs a FromXmlRuleSet using the default DigesterRuleParser
- Parameters:
rulesXml
- the path to the XML document defining the Digester rules
FromXmlRuleSet
public FromXmlRuleSet(java.net.URL rulesXml,
DigesterRuleParser parser)
- Parameters:
rulesXml
- the path to the XML document defining the Digester rulesparser
- an instance of DigesterRuleParser, for parsing the rules from XML
addRuleInstances
public void addRuleInstances(Digester digester)
throws XmlLoadException
- Adds to the digester the set of Rule instances defined in the
XML file for this rule set.
- Overrides:
addRuleInstances
in class RuleSetBase
- See Also:
RuleSetBase
Copyright (c) 2001-2002 - Apache Software Foundation