Class NameSpaceURIRulesBinder
java.lang.Object
org.apache.commons.digester3.xmlrules.NameSpaceURIRulesBinder
- All Implemented Interfaces:
RulesBinder
- Since:
- 3.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidRecords an error message which will be presented to the user at a later time.voidRecords an exception, the full details of which will be logged, and the message of which will be presented to the user at a later time.voidaddNamespaceURI(String namespaceURI) forPattern(String pattern) Allows to associate the given pattern to one or more Digester rules.Returns the contextClassLoader.voidinstall(RulesModule rulesModule) Allows sub-modules inclusion while binding rules.void
-
Field Details
-
namespaceURIs
-
wrappedBinder
-
-
Constructor Details
-
NameSpaceURIRulesBinder
-
-
Method Details
-
addNamespaceURI
- Parameters:
namespaceURI-
-
removeNamespaceURI
public void removeNamespaceURI() -
getContextClassLoader
Returns the contextClassLoader.- Specified by:
getContextClassLoaderin interfaceRulesBinder- Returns:
- The context
ClassLoader
-
addError
Records an error message which will be presented to the user at a later time. Unlike throwing an exception, this enable us to continue configuring the Digester and discover more errors. UsesString.format(String, Object[])to insert the arguments into the message.- Specified by:
addErrorin interfaceRulesBinder- Parameters:
messagePattern- The message string patternarguments- Arguments referenced by the format specifiers in the format string
-
addError
Records an exception, the full details of which will be logged, and the message of which will be presented to the user at a later time. If your Module calls something that you worry may fail, you should catch the exception and pass it into this.- Specified by:
addErrorin interfaceRulesBinder- Parameters:
t- The exception has to be recorded.
-
install
Allows sub-modules inclusion while binding rules.- Specified by:
installin interfaceRulesBinder- Parameters:
rulesModule- the sub-module has to be included.
-
forPattern
Allows to associate the given pattern to one or more Digester rules.- Specified by:
forPatternin interfaceRulesBinder- Parameters:
pattern- The pattern that this rule should match- Returns:
- The Digester rules builder
-