org.apache.commons.configuration.tree

Class ConfigurationNodeVisitorAdapter

public class ConfigurationNodeVisitorAdapter extends Object implements ConfigurationNodeVisitor

A simple adapter class that simplyfies 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.

Author: Oliver Heger

Method Summary
booleanterminate()
Dummy implementation of this interface method.
voidvisitAfterChildren(ConfigurationNode node)
Empty dummy implementation of this interface method.
voidvisitBeforeChildren(ConfigurationNode node)
Empty dummy implementation of this interface method.

Method Detail

terminate

public boolean terminate()
Dummy implementation of this interface method. Returns always false.

Returns: the terminate flag

visitAfterChildren

public void visitAfterChildren(ConfigurationNode node)
Empty dummy implementation of this interface method.

Parameters: node the node

visitBeforeChildren

public void visitBeforeChildren(ConfigurationNode node)
Empty dummy implementation of this interface method.

Parameters: node the node