private class SetNestedPropertiesRule.AnyChildRules extends java.lang.Object implements Rules
Modifier and Type | Field and Description |
---|---|
private Rules |
decoratedRules |
private java.lang.String |
matchPrefix |
private SetNestedPropertiesRule.AnyChildRule |
rule |
private java.util.ArrayList |
rules |
Constructor and Description |
---|
AnyChildRules(SetNestedPropertiesRule.AnyChildRule rule) |
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.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.
|
java.lang.String |
getNamespaceURI()
Return the namespace URI that will be applied to all subsequently
added
Rule objects. |
Rules |
getOldRules() |
void |
init(java.lang.String prefix,
Rules rules) |
java.util.List |
match(java.lang.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.
|
java.util.List |
match(java.lang.String namespaceURI,
java.lang.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.
|
java.util.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(java.lang.String namespaceURI)
Set the namespace URI that will be applied to all subsequently
added
Rule objects. |
private java.lang.String matchPrefix
private Rules decoratedRules
private java.util.ArrayList rules
private SetNestedPropertiesRule.AnyChildRule rule
public AnyChildRules(SetNestedPropertiesRule.AnyChildRule rule)
public Digester getDigester()
Rules
getDigester
in interface Rules
public void setDigester(Digester digester)
Rules
setDigester
in interface Rules
digester
- The newly associated Digester instancepublic java.lang.String getNamespaceURI()
Rules
Rule
objects.getNamespaceURI
in interface Rules
public void setNamespaceURI(java.lang.String namespaceURI)
Rules
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 URIpublic void add(java.lang.String pattern, Rule rule)
Rules
public void clear()
Rules
public java.util.List match(java.lang.String matchPath)
Rules
add()
method.public java.util.List match(java.lang.String namespaceURI, java.lang.String matchPath)
Rules
add()
method.public java.util.List rules()
Rules
add()
method.public void init(java.lang.String prefix, Rules rules)
public Rules getOldRules()
Copyright 2001-2005 The Apache Software Foundation.