org.apache.commons.digester.xmlrules
private class DigesterRuleParser.RulesPrefixAdapter extends java.lang.Object implements Rules
Modifier and Type | Field and Description |
---|---|
private Rules |
delegate |
private java.lang.String |
prefix |
Constructor and Description |
---|
DigesterRuleParser.RulesPrefixAdapter(java.lang.String patternPrefix,
Rules rules) |
Modifier and Type | Method and Description |
---|---|
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)
Deprecated.
Call match(namespaceURI,pattern) instead.
|
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.
|
private Rules delegate
private java.lang.String prefix
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.public void add(java.lang.String pattern, Rule rule)
public void clear()
public Digester getDigester()
getDigester
in interface Rules
public java.lang.String getNamespaceURI()
getNamespaceURI
in interface Rules
public java.util.List match(java.lang.String pattern)
Rules
add()
method.public java.util.List match(java.lang.String namespaceURI, java.lang.String pattern)
public java.util.List rules()
public void setDigester(Digester digester)
setDigester
in interface Rules
digester
- The newly associated Digester instancepublic void setNamespaceURI(java.lang.String namespaceURI)
setNamespaceURI
in interface Rules
namespaceURI
- Namespace URI that must match on all
subsequently added rules, or null
for matching
regardless of the current namespace URICopyright 2001-2005 The Apache Software Foundation.