org.apache.commons.digester.xmlrules
Class DigesterRuleParser.RulesPrefixAdapter
java.lang.Object
org.apache.commons.digester.xmlrules.DigesterRuleParser.RulesPrefixAdapter
- DigesterRuleParser
- Rules
private class DigesterRuleParser.RulesPrefixAdapter
extends java.lang.Object
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.
void | add(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.
|
String | getNamespaceURI() - This method passes through to the underlying Rules object.
|
List | match(String pattern) - Call match(namespaceURI,pattern) instead.
|
List | match(String namespaceURI, String pattern) - This method passes through to the underlying Rules object.
|
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(String namespaceURI) - This method passes through to the underlying Rules object.
|
delegate
private Rules delegate
prefix
private String prefix
RulesPrefixAdapter
public RulesPrefixAdapter(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.
add
public void add(String pattern,
Rule rule)
Register a new Rule instance matching a pattern which is constructed
by concatenating the pattern prefix with the given pattern.
- add in interface Rules
clear
public void clear()
This method passes through to the underlying Rules object.
- clear in interface Rules
getDigester
public Digester getDigester()
This method passes through to the underlying Rules object.
- getDigester in interface Rules
getNamespaceURI
public String getNamespaceURI()
This method passes through to the underlying Rules object.
- getNamespaceURI in interface Rules
match
public List match(String pattern)
Call match(namespaceURI,pattern) instead.
- match in interface Rules
match
public List match(String namespaceURI,
String pattern)
This method passes through to the underlying Rules object.
- match in interface Rules
rules
public List rules()
This method passes through to the underlying Rules object.
- rules in interface Rules
setDigester
public void setDigester(Digester digester)
This method passes through to the underlying Rules object.
- setDigester in interface Rules
setNamespaceURI
public void setNamespaceURI(String namespaceURI)
This method passes through to the underlying Rules object.
- setNamespaceURI in interface Rules
Copyright 2001-2005 The Apache Software Foundation.