org.apache.commons.configuration

Class HierarchicalConfiguration.DefinedVisitor

static class HierarchicalConfiguration.DefinedVisitor extends ConfigurationNodeVisitorAdapter

A specialized visitor that checks if a node is defined. "Defined" in this terms means that the node or at least one of its sub nodes is associated with a value.
Field Summary
booleandefined
Stores the defined flag.
Method Summary
booleanisDefined()
Returns the defined flag.
booleanterminate()
Checks if iteration should be stopped.
voidvisitBeforeChildren(ConfigurationNode node)
Visits the node.

Field Detail

defined

private boolean defined
Stores the defined flag.

Method Detail

isDefined

public boolean isDefined()
Returns the defined flag.

Returns: the defined flag

terminate

public boolean terminate()
Checks if iteration should be stopped. This can be done if the first defined node is found.

Returns: a flag if iteration should be stopped

visitBeforeChildren

public void visitBeforeChildren(ConfigurationNode node)
Visits the node. Checks if a value is defined.

Parameters: node the actual node