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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidConfigures aRulesBindervia the exposed methods.Returns the XML source SystemIds load by this module.protected abstract voidprotected final voidloadXMLRules(File file) Opens a neworg.xml.sax.InputSourcegiven ajava.io.File.protected final voidloadXMLRules(InputStream input) Opens a neworg.xml.sax.InputSourcegiven ajava.io.InputStream.protected final voidloadXMLRules(Reader reader) Opens a neworg.xml.sax.InputSourcegiven ajava.io.Reader.protected final voidloadXMLRules(String uri) Opens a neworg.xml.sax.InputSourcegiven a URI in String representation.protected final voidloadXMLRules(URL url) Opens a neworg.xml.sax.InputSourcegiven ajava.net.URL.protected final voidloadXMLRules(InputSource inputSource) Reads the XML rules from the givenorg.xml.sax.InputSource.protected final voidloadXMLRulesFromText(String xmlText) Opens a neworg.xml.sax.InputSourcegiven an XML document in textual form.protected final voiduseRootPath(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
-
Constructor Details
-
FromXmlRulesModule
public FromXmlRulesModule()
-
-
Method Details
-
configure
Configures aRulesBindervia the exposed methods.- Specified by:
configurein classAbstractRulesModule
-
loadRules
-
loadXMLRules
Reads the XML rules from the givenorg.xml.sax.InputSource.- Parameters:
inputSource- Theorg.xml.sax.InputSourcewhere reading the XML rules from.
-
loadXMLRules
Opens a neworg.xml.sax.InputSourcegiven ajava.io.InputStream.- Parameters:
input- Thejava.io.InputStreamwhere reading the XML rules from.
-
loadXMLRules
Opens a neworg.xml.sax.InputSourcegiven ajava.io.Reader.- Parameters:
reader- Thejava.io.Readerwhere reading the XML rules from.
-
loadXMLRules
Opens a neworg.xml.sax.InputSourcegiven ajava.io.File.- Parameters:
file- Thejava.io.Filewhere reading the XML rules from.
-
loadXMLRules
Opens a neworg.xml.sax.InputSourcegiven a URI in String representation.- Parameters:
uri- The URI in String representation where reading the XML rules from.
-
loadXMLRules
Opens a neworg.xml.sax.InputSourcegiven ajava.net.URL.- Parameters:
url- Thejava.net.URLwhere reading the XML rules from.
-
loadXMLRulesFromText
Opens a neworg.xml.sax.InputSourcegiven 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
-