|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.configuration.HierarchicalConfiguration.NodeVisitor
public static class HierarchicalConfiguration.NodeVisitor
Definition of a visitor class for traversing a node and all of its children.
This class defines the interface of a visitor for
Node
objects and provides a default implementation. The
method visit()
of Node
implements a generic
iteration algorithm based on the Visitor pattern. By providing
different implementations of visitors it is possible to collect different
data during the iteration process.
Constructor Summary | |
---|---|
HierarchicalConfiguration.NodeVisitor()
|
Method Summary | |
---|---|
boolean |
terminate()
Returns a flag that indicates if iteration should be stopped. |
void |
visitAfterChildren(HierarchicalConfiguration.Node node,
ConfigurationKey key)
Visits the specified node after its children have been processed. |
void |
visitBeforeChildren(HierarchicalConfiguration.Node node,
ConfigurationKey key)
Visits the specified node. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HierarchicalConfiguration.NodeVisitor()
Method Detail |
---|
public void visitBeforeChildren(HierarchicalConfiguration.Node node, ConfigurationKey key)
node
- the actual nodekey
- the key of this node (may be null )public void visitAfterChildren(HierarchicalConfiguration.Node node, ConfigurationKey key)
node
- the node to be visitedkey
- the key of this node (may be null )public boolean terminate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |