|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.configuration.HierarchicalConfiguration.NodeVisitor
org.apache.commons.configuration.HierarchicalConfiguration.DefinedKeysVisitor
A specialized visitor that fills a list with keys that are defined in a node hierarchy.
Constructor Summary | |
HierarchicalConfiguration.DefinedKeysVisitor()
Default constructor. |
|
HierarchicalConfiguration.DefinedKeysVisitor(String prefix)
Creates a new DefinedKeysVisitor instance and sets the
prefix for the keys to fetch. |
Method Summary | |
protected void |
addKey(ConfigurationKey key)
Adds the specified key to the internal list. |
Set |
getKeyList()
Returns the list with all defined keys. |
void |
visitBeforeChildren(HierarchicalConfiguration.Node node,
ConfigurationKey key)
Visits the specified node. |
Methods inherited from class org.apache.commons.configuration.HierarchicalConfiguration.NodeVisitor |
terminate, visitAfterChildren |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HierarchicalConfiguration.DefinedKeysVisitor()
public HierarchicalConfiguration.DefinedKeysVisitor(String prefix)
DefinedKeysVisitor
instance and sets the
prefix for the keys to fetch.
prefix
- the prefixMethod Detail |
public Set getKeyList()
public void visitBeforeChildren(HierarchicalConfiguration.Node node, ConfigurationKey key)
visitBeforeChildren
in class HierarchicalConfiguration.NodeVisitor
node
- the node to be visitedkey
- the key of this nodeprotected void addKey(ConfigurationKey key)
key
- the key to add
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |