org.apache.commons.digester
Class SetNestedPropertiesRule.AnyChildRules
java.lang.Object
org.apache.commons.digester.SetNestedPropertiesRule.AnyChildRules
- SetNestedPropertiesRule
- Rules
private class SetNestedPropertiesRule.AnyChildRules
extends java.lang.Object
Private Rules implementation
void | add(String pattern, Rule rule) - Register a new Rule instance matching the specified pattern.
|
void | clear() - Clear all existing Rule instance registrations.
|
Digester | getDigester() - Return the Digester instance with which this Rules instance is
associated.
|
String | getNamespaceURI() - Return the namespace URI that will be applied to all subsequently
added
Rule objects.
|
void | init(String prefix, Rules rules)
|
List | match(String matchPath) - Call match(namespaceURI,pattern) instead.
|
List | match(String namespaceURI, String matchPath) - Return a List of all registered Rule instances that match the specified
nesting pattern, or a zero-length List if there are no matches.
|
List | rules() - Return a List of all registered Rule instances, or a zero-length List
if there are no registered Rule instances.
|
void | setDigester(Digester digester) - Set the Digester instance with which this Rules instance is associated.
|
void | setNamespaceURI(String namespaceURI) - Set the namespace URI that will be applied to all subsequently
added
Rule objects.
|
decoratedRules
private Rules decoratedRules
matchPrefix
private String matchPrefix
rules
private ArrayList rules
add
public void add(String pattern,
Rule rule)
Register a new Rule instance matching the specified pattern.
- add in interface Rules
pattern
- Nesting pattern to be matched for this Rulerule
- Rule instance to be registered
clear
public void clear()
Clear all existing Rule instance registrations.
- clear in interface Rules
getDigester
public Digester getDigester()
Return the Digester instance with which this Rules instance is
associated.
- getDigester in interface Rules
getNamespaceURI
public String getNamespaceURI()
Return the namespace URI that will be applied to all subsequently
added Rule
objects.
- getNamespaceURI in interface Rules
init
public void init(String prefix,
Rules rules)
match
public List match(String matchPath)
Call match(namespaceURI,pattern) instead.
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 the add()
method.
- match in interface Rules
match
public List match(String namespaceURI,
String matchPath)
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 the add()
method.
- match in interface Rules
namespaceURI
- Namespace URI for which to select matching rules,
or null
to match regardless of namespace URI
rules
public List rules()
Return a List of all registered Rule instances, or a zero-length List
if there are no registered Rule instances. If more than one Rule
instance has been registered, they must be returned
in the order originally registered through the add()
method.
- rules in interface Rules
setDigester
public void setDigester(Digester digester)
Set the Digester instance with which this Rules instance is associated.
- setDigester in interface Rules
digester
- The newly associated Digester instance
setNamespaceURI
public void setNamespaceURI(String namespaceURI)
Set the namespace URI that will be applied to all subsequently
added Rule
objects.
- setNamespaceURI in interface Rules
namespaceURI
- Namespace URI that must match on all
subsequently added rules, or null
for matching
regardless of the current namespace URI
Copyright (c) 2001-2004 - Apache Software Foundation