Class FromXmlRulesModule
java.lang.Object
org.apache.commons.digester3.binder.AbstractRulesModule
org.apache.commons.digester3.xmlrules.FromXmlRulesModule
- All Implemented Interfaces:
RulesModule
RulesModule
implementation that allows loading rules from
XML files.- Since:
- 3.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Configures aRulesBinder
via the exposed methods.Returns the XML source SystemIds load by this module.protected abstract void
protected final void
loadXMLRules
(File file) Opens a neworg.xml.sax.InputSource
given ajava.io.File
.protected final void
loadXMLRules
(InputStream input) Opens a neworg.xml.sax.InputSource
given ajava.io.InputStream
.protected final void
loadXMLRules
(Reader reader) Opens a neworg.xml.sax.InputSource
given ajava.io.Reader
.protected final void
loadXMLRules
(String uri) Opens a neworg.xml.sax.InputSource
given a URI in String representation.protected final void
loadXMLRules
(URL url) Opens a neworg.xml.sax.InputSource
given ajava.net.URL
.protected final void
loadXMLRules
(InputSource inputSource) Reads the XML rules from the givenorg.xml.sax.InputSource
.protected final void
loadXMLRulesFromText
(String xmlText) Opens a neworg.xml.sax.InputSource
given an XML document in textual form.protected final void
useRootPath
(String rootPath) Set the root path (will be used when composing modules).Methods inherited from class org.apache.commons.digester3.binder.AbstractRulesModule
addError, addError, configure, forPattern, install, rulesBinder
-
Field Details
-
DIGESTER_PUBLIC_ID
- See Also:
-
DIGESTER_DTD_PATH
- See Also:
-
xmlRulesDtdUrl
-
inputSource
-
systemIds
-
rootPath
-
-
Constructor Details
-
FromXmlRulesModule
public FromXmlRulesModule()
-
-
Method Details
-
configure
protected void configure()Configures aRulesBinder
via the exposed methods.- Specified by:
configure
in classAbstractRulesModule
-
loadRules
protected abstract void loadRules() -
loadXMLRules
Reads the XML rules from the givenorg.xml.sax.InputSource
.- Parameters:
inputSource
- Theorg.xml.sax.InputSource
where reading the XML rules from.
-
loadXMLRules
Opens a neworg.xml.sax.InputSource
given ajava.io.InputStream
.- Parameters:
input
- Thejava.io.InputStream
where reading the XML rules from.
-
loadXMLRules
Opens a neworg.xml.sax.InputSource
given ajava.io.Reader
.- Parameters:
reader
- Thejava.io.Reader
where reading the XML rules from.
-
loadXMLRules
Opens a neworg.xml.sax.InputSource
given ajava.io.File
.- Parameters:
file
- Thejava.io.File
where reading the XML rules from.
-
loadXMLRules
Opens a neworg.xml.sax.InputSource
given a URI in String representation.- Parameters:
uri
- The URI in String representation where reading the XML rules from.
-
loadXMLRules
Opens a neworg.xml.sax.InputSource
given ajava.net.URL
.- Parameters:
url
- Thejava.net.URL
where reading the XML rules from.
-
loadXMLRulesFromText
Opens a neworg.xml.sax.InputSource
given an XML document in textual form.- Parameters:
xmlText
- The XML document in textual form where reading the XML rules from.
-
useRootPath
Set the root path (will be used when composing modules).- Parameters:
rootPath
- The root path
-
getSystemIds
Returns the XML source SystemIds load by this module.- Returns:
- The XML source SystemIds load by this module
-