Class DigesterRuleParser.RulesPrefixAdapter
java.lang.Object
org.apache.commons.digester.xmlrules.DigesterRuleParser.RulesPrefixAdapter
- All Implemented Interfaces:
Rules
- Enclosing class:
- DigesterRuleParser
Wraps a Rules object. Delegates all the Rules interface methods
to the underlying Rules object. Overrides the add method to prepend
a prefix to the pattern string.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Register a new Rule instance matching a pattern which is constructed by concatenating the pattern prefix with the given pattern.void
clear()
This method passes through to the underlying Rules object.This method passes through to the underlying Rules object.This method passes through to the underlying Rules object.Deprecated.Call match(namespaceURI,pattern) instead.This method passes through to the underlying Rules object.rules()
This method passes through to the underlying Rules object.void
setDigester
(Digester digester) This method passes through to the underlying Rules object.void
setNamespaceURI
(String namespaceURI) This method passes through to the underlying Rules object.
-
Field Details
-
delegate
-
prefix
-
-
Constructor Details
-
RulesPrefixAdapter
- Parameters:
patternPrefix
- the pattern string to prepend to the pattern passed to the add method.rules
- The wrapped Rules object. All of this class's methods pass through to this object.
-
-
Method Details
-
add
Register a new Rule instance matching a pattern which is constructed by concatenating the pattern prefix with the given pattern. -
clear
public void clear()This method passes through to the underlying Rules object. -
getDigester
This method passes through to the underlying Rules object.- Specified by:
getDigester
in interfaceRules
-
getNamespaceURI
This method passes through to the underlying Rules object.- Specified by:
getNamespaceURI
in interfaceRules
-
match
Deprecated.Call match(namespaceURI,pattern) instead.Description copied from interface:Rules
Return a List of all registered Rule instances that match the specified nesting pattern, or a zero-length List if there are no matches. If more than one Rule instance matches, they must be returned in the order originally registered through theadd()
method. -
match
This method passes through to the underlying Rules object. -
rules
This method passes through to the underlying Rules object. -
setDigester
This method passes through to the underlying Rules object.- Specified by:
setDigester
in interfaceRules
- Parameters:
digester
- The newly associated Digester instance
-
setNamespaceURI
This method passes through to the underlying Rules object.- Specified by:
setNamespaceURI
in interfaceRules
- Parameters:
namespaceURI
- Namespace URI that must match on all subsequently added rules, ornull
for matching regardless of the current namespace URI
-