|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.configuration.tree.ConfigurationNodeVisitorAdapter
org.apache.commons.configuration.HierarchicalConfiguration.DefinedKeysVisitor
class HierarchicalConfiguration.DefinedKeysVisitor
A specialized visitor that fills a list with keys that are defined in a node hierarchy.
| Field Summary | |
|---|---|
private java.util.Set |
keyList
Stores the list to be filled. |
private java.util.Stack |
parentKeys
A stack with the keys of the already processed nodes. |
| Constructor Summary | |
|---|---|
HierarchicalConfiguration.DefinedKeysVisitor()
Default constructor. |
|
HierarchicalConfiguration.DefinedKeysVisitor(java.lang.String prefix)
Creates a new DefinedKeysVisitor instance and sets the
prefix for the keys to fetch. |
|
| Method Summary | |
|---|---|
java.util.Set |
getKeyList()
Returns the list with all defined keys. |
void |
visitAfterChildren(ConfigurationNode node)
Visits the node after its children has been processed. |
void |
visitBeforeChildren(ConfigurationNode node)
Visits the specified node. |
| Methods inherited from class org.apache.commons.configuration.tree.ConfigurationNodeVisitorAdapter |
|---|
terminate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.util.Set keyList
private java.util.Stack parentKeys
| Constructor Detail |
|---|
public HierarchicalConfiguration.DefinedKeysVisitor()
public HierarchicalConfiguration.DefinedKeysVisitor(java.lang.String prefix)
DefinedKeysVisitor instance and sets the
prefix for the keys to fetch.
prefix - the prefix| Method Detail |
|---|
public java.util.Set getKeyList()
public void visitAfterChildren(ConfigurationNode node)
visitAfterChildren in interface ConfigurationNodeVisitorvisitAfterChildren in class ConfigurationNodeVisitorAdapternode - the nodepublic void visitBeforeChildren(ConfigurationNode node)
visitBeforeChildren in interface ConfigurationNodeVisitorvisitBeforeChildren in class ConfigurationNodeVisitorAdapternode - the node to be visited
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||