T - the type of the nodes processed by this visitorpublic class ConfigurationNodeVisitorAdapter<T> extends Object implements ConfigurationNodeVisitor<T>
A simple adapter class that simplifies writing custom node visitor implementations.
This class provides dummy implementations for the methods defined in the
ConfigurationNodeVisitor interface. Derived classes only need
to override the methods they really need.
| Constructor and Description |
|---|
ConfigurationNodeVisitorAdapter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
terminate()
Returns a flag whether the current visit process should be aborted.
|
void |
visitAfterChildren(T node,
NodeHandler<T> handler)
Visits the specified node after after its children - if existing - have
been processed.
|
void |
visitBeforeChildren(T node,
NodeHandler<T> handler)
Visits the specified node before the children of this node - if existing
- are processed.
|
public void visitBeforeChildren(T node, NodeHandler<T> handler)
visitBeforeChildren in interface ConfigurationNodeVisitor<T>node - the node to be visitedhandler - the NodeHandlerpublic void visitAfterChildren(T node, NodeHandler<T> handler)
visitAfterChildren in interface ConfigurationNodeVisitor<T>node - the node to be visitedhandler - the NodeHandlerpublic boolean terminate()
terminate in interface ConfigurationNodeVisitor<T>Copyright © 2001–2020 The Apache Software Foundation. All rights reserved.