Class AbstractNamespaceURIBasedRulesModule
java.lang.Object
org.apache.commons.digester3.binder.AbstractRulesModule
org.apache.commons.digester3.binder.AbstractNamespaceURIBasedRulesModule
- All Implemented Interfaces:
RulesModule
A support class for RulesModule which reduces repetition and results in a more readable configuration, that
sets rules binding for a defined namespace URI (it can be overridden while binding).
- Since:
- 3.0
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractNamespaceURIBasedRulesModule(String namespaceURI) Creates a new (nullable) namespaceURI-basedRulesModulethat automatically binds every rule to the input namespaceURI. -
Method Summary
Modifier and TypeMethodDescriptionprotected LinkedRuleBuilderforPattern(String pattern) Allows user binding one or more Digester rules to the input pattern.Methods inherited from class org.apache.commons.digester3.binder.AbstractRulesModule
addError, addError, configure, configure, install, rulesBinder
-
Constructor Details
-
AbstractNamespaceURIBasedRulesModule
Creates a new (nullable) namespaceURI-basedRulesModulethat automatically binds every rule to the input namespaceURI.- Parameters:
namespaceURI- Namespace URI for which this Rule is relevant, ornullto match independent of namespace.
-
-
Method Details
-
forPattern
Allows user binding one or more Digester rules to the input pattern.- Overrides:
forPatternin classAbstractRulesModule- Parameters:
pattern- The pattern used to bind rules- Returns:
- The Digester rules builder
- See Also:
-