|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.digester.RuleSetBase
org.apache.commons.digester.xmlrules.FromXmlRuleSet
public class FromXmlRuleSet
A Digester rule set where the rules come from an XML file.
| Field Summary | |
|---|---|
static String |
DIGESTER_DTD_PATH
|
| Fields inherited from class org.apache.commons.digester.RuleSetBase |
|---|
namespaceURI |
| Constructor Summary | |
|---|---|
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)
|
|
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)
|
|
| 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. |
| Methods inherited from class org.apache.commons.digester.RuleSetBase |
|---|
getNamespaceURI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DIGESTER_DTD_PATH
| Constructor Detail |
|---|
public FromXmlRuleSet(URL rulesXml)
rulesXml - the path to the XML document defining the Digester rules
public FromXmlRuleSet(URL rulesXml,
Digester rulesDigester)
rulesXml - the path to the XML document defining the Digester rulesrulesDigester - the digester to read the rules xml.
public FromXmlRuleSet(URL rulesXml,
DigesterRuleParser parser)
rulesXml - the path to the XML document defining the Digester rulesparser - an instance of DigesterRuleParser, for parsing the rules from XML
public FromXmlRuleSet(URL rulesXml,
DigesterRuleParser parser,
Digester rulesDigester)
rulesXml - the path to the XML document defining the Digester rulesparser - an instance of DigesterRuleParser, for parsing the rules from XMLrulesDigester - the digester used to load the Xml rules.public FromXmlRuleSet(InputSource inputSource)
inputSource - load the xml rules from this InputSource
public FromXmlRuleSet(InputSource inputSource,
Digester rulesDigester)
inputSource - load the xml rules from this InputSourcerulesDigester - the digester to read the rules xml.
public FromXmlRuleSet(InputSource inputSource,
DigesterRuleParser parser)
inputSource - load the xml rules from this InputSourceparser - an instance of DigesterRuleParser, for parsing the rules from XML
public FromXmlRuleSet(InputSource inputSource,
DigesterRuleParser parser,
Digester rulesDigester)
inputSource - load the xml rules from this InputSourceparser - an instance of DigesterRuleParser, for parsing the rules from XMLrulesDigester - the digester used to load the Xml rules.| Method Detail |
|---|
public void addRuleInstances(Digester digester)
throws XmlLoadException
addRuleInstances in interface RuleSetaddRuleInstances in class RuleSetBasedigester - Digester instance to which the new Rule instances
should be added.
XmlLoadExceptionRuleSetBase
public void addRuleInstances(Digester digester,
String basePath)
throws XmlLoadException
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.
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.
XmlLoadExceptionRuleSetBase
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||