Class AbstractNamespaceURIBasedRulesModule
- java.lang.Object
-
- org.apache.commons.digester3.binder.AbstractRulesModule
-
- org.apache.commons.digester3.binder.AbstractNamespaceURIBasedRulesModule
-
- All Implemented Interfaces:
RulesModule
public abstract class AbstractNamespaceURIBasedRulesModule extends AbstractRulesModule
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
Constructors Constructor Description AbstractNamespaceURIBasedRulesModule(java.lang.String namespaceURI)Creates a new (nullable) namespaceURI-basedRulesModulethat automatically binds every rule to the input namespaceURI.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected LinkedRuleBuilderforPattern(java.lang.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 Detail
-
AbstractNamespaceURIBasedRulesModule
public AbstractNamespaceURIBasedRulesModule(java.lang.String namespaceURI)
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 Detail
-
forPattern
protected LinkedRuleBuilder forPattern(java.lang.String pattern)
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:
RulesBinder.forPattern(String)
-
-