Class FromXmlRulesModule
- java.lang.Object
-
- org.apache.commons.digester3.binder.AbstractRulesModule
-
- org.apache.commons.digester3.xmlrules.FromXmlRulesModule
-
- All Implemented Interfaces:
RulesModule
public abstract class FromXmlRulesModule extends AbstractRulesModule
RulesModuleimplementation that allows loading rules from XML files.- Since:
- 3.0
-
-
Constructor Summary
Constructors Constructor Description FromXmlRulesModule()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidconfigure()Configures aRulesBindervia the exposed methods.java.util.Set<java.lang.String>getSystemIds()Returns the XML source SystemIds load by this module.protected abstract voidloadRules()protected voidloadXMLRules(java.io.File file)Opens a neworg.xml.sax.InputSourcegiven ajava.io.File.protected voidloadXMLRules(java.io.InputStream input)Opens a neworg.xml.sax.InputSourcegiven ajava.io.InputStream.protected voidloadXMLRules(java.io.Reader reader)Opens a neworg.xml.sax.InputSourcegiven ajava.io.Reader.protected voidloadXMLRules(java.lang.String uri)Opens a neworg.xml.sax.InputSourcegiven a URI in String representation.protected voidloadXMLRules(java.net.URL url)Opens a neworg.xml.sax.InputSourcegiven ajava.net.URL.protected voidloadXMLRules(org.xml.sax.InputSource inputSource)Reads the XML rules from the givenorg.xml.sax.InputSource.protected voidloadXMLRulesFromText(java.lang.String xmlText)Opens a neworg.xml.sax.InputSourcegiven an XML document in textual form.protected voiduseRootPath(java.lang.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 Detail
-
FromXmlRulesModule
public FromXmlRulesModule()
-
-
Method Detail
-
configure
protected void configure()
Configures aRulesBindervia the exposed methods.- Specified by:
configurein classAbstractRulesModule
-
loadRules
protected abstract void loadRules()
-
loadXMLRules
protected final void loadXMLRules(org.xml.sax.InputSource inputSource)
Reads the XML rules from the givenorg.xml.sax.InputSource.- Parameters:
inputSource- Theorg.xml.sax.InputSourcewhere reading the XML rules from.
-
loadXMLRules
protected final void loadXMLRules(java.io.InputStream input)
Opens a neworg.xml.sax.InputSourcegiven ajava.io.InputStream.- Parameters:
input- Thejava.io.InputStreamwhere reading the XML rules from.
-
loadXMLRules
protected final void loadXMLRules(java.io.Reader reader)
Opens a neworg.xml.sax.InputSourcegiven ajava.io.Reader.- Parameters:
reader- Thejava.io.Readerwhere reading the XML rules from.
-
loadXMLRules
protected final void loadXMLRules(java.io.File file)
Opens a neworg.xml.sax.InputSourcegiven ajava.io.File.- Parameters:
file- Thejava.io.Filewhere reading the XML rules from.
-
loadXMLRules
protected final void loadXMLRules(java.lang.String uri)
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
protected final void loadXMLRules(java.net.URL url)
Opens a neworg.xml.sax.InputSourcegiven ajava.net.URL.- Parameters:
url- Thejava.net.URLwhere reading the XML rules from.
-
loadXMLRulesFromText
protected final void loadXMLRulesFromText(java.lang.String xmlText)
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
protected final void useRootPath(java.lang.String rootPath)
Set the root path (will be used when composing modules).- Parameters:
rootPath- The root path
-
getSystemIds
public final java.util.Set<java.lang.String> getSystemIds()
Returns the XML source SystemIds load by this module.- Returns:
- The XML source SystemIds load by this module
-
-