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 TypeMethodDescriptionvoidRegister a new Rule instance matching a pattern which is constructed by concatenating the pattern prefix with the given pattern.voidclear()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.voidsetDigester(Digester digester) This method passes through to the underlying Rules object.voidsetNamespaceURI(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:
getDigesterin interfaceRules
-
getNamespaceURI
This method passes through to the underlying Rules object.- Specified by:
getNamespaceURIin interfaceRules
-
match
Deprecated.Call match(namespaceURI,pattern) instead.Description copied from interface:RulesReturn 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:
setDigesterin interfaceRules- Parameters:
digester- The newly associated Digester instance
-
setNamespaceURI
This method passes through to the underlying Rules object.- Specified by:
setNamespaceURIin interfaceRules- Parameters:
namespaceURI- Namespace URI that must match on all subsequently added rules, ornullfor matching regardless of the current namespace URI
-