|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.digester.xmlrules.DigesterRuleParser.RulesPrefixAdapter
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 | |
private Rules |
delegate
|
private java.lang.String |
prefix
|
| Constructor Summary | |
DigesterRuleParser.RulesPrefixAdapter(java.lang.String patternPrefix,
Rules rules)
|
|
| Method Summary | |
void |
add(java.lang.String pattern,
Rule rule)
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. |
Digester |
getDigester()
This method passes through to the underlying Rules object. |
java.lang.String |
getNamespaceURI()
This method passes through to the underlying Rules object. |
java.util.List |
match(java.lang.String pattern)
Return a List of all registered Rule instances that match the specified nesting pattern, or a zero-length List if there are no matches. |
java.util.List |
match(java.lang.String namespaceURI,
java.lang.String pattern)
This method passes through to the underlying Rules object. |
java.util.List |
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(java.lang.String namespaceURI)
This method passes through to the underlying Rules object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private Rules delegate
private java.lang.String prefix
| Constructor Detail |
public DigesterRuleParser.RulesPrefixAdapter(java.lang.String patternPrefix,
Rules rules)
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 Detail |
public void add(java.lang.String pattern,
Rule rule)
add in interface Rulespattern - Nesting pattern to be matched for this Rulerule - Rule instance to be registeredpublic void clear()
clear in interface Rulespublic Digester getDigester()
getDigester in interface Rulespublic java.lang.String getNamespaceURI()
getNamespaceURI in interface Rulespublic java.util.List match(java.lang.String pattern)
Rulesadd()
method.
match in interface Rulespattern - Nesting pattern to be matched
public java.util.List match(java.lang.String namespaceURI,
java.lang.String pattern)
match in interface RulesnamespaceURI - Namespace URI for which to select matching rules,
or null to match regardless of namespace URIpattern - Nesting pattern to be matchedpublic java.util.List rules()
rules in interface Rulespublic void setDigester(Digester digester)
setDigester in interface Rulesdigester - The newly associated Digester instancepublic void setNamespaceURI(java.lang.String namespaceURI)
setNamespaceURI in interface RulesnamespaceURI - Namespace URI that must match on all
subsequently added rules, or null for matching
regardless of the current namespace URI
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||