class HierarchicalConfiguration.DefinedKeysVisitor extends ConfigurationNodeVisitorAdapter
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
HierarchicalConfiguration.DefinedKeysVisitor()
Default constructor.
|
HierarchicalConfiguration.DefinedKeysVisitor(java.lang.String prefix)
Creates a new
DefinedKeysVisitor instance and sets the
prefix for the keys to fetch. |
Modifier and Type | Method and Description |
---|---|
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.
|
terminate
private java.util.Set keyList
private java.util.Stack parentKeys
public HierarchicalConfiguration.DefinedKeysVisitor()
public HierarchicalConfiguration.DefinedKeysVisitor(java.lang.String prefix)
DefinedKeysVisitor
instance and sets the
prefix for the keys to fetch.prefix
- the prefixpublic java.util.Set getKeyList()
public void visitAfterChildren(ConfigurationNode node)
visitAfterChildren
in interface ConfigurationNodeVisitor
visitAfterChildren
in class ConfigurationNodeVisitorAdapter
node
- the nodepublic void visitBeforeChildren(ConfigurationNode node)
visitBeforeChildren
in interface ConfigurationNodeVisitor
visitBeforeChildren
in class ConfigurationNodeVisitorAdapter
node
- the node to be visited