org.omnaest.utils.structure.hierarchy.tree
Enum TreeNavigator.LocalAndReducedTraversalControl

java.lang.Object
  extended by java.lang.Enum<TreeNavigator.LocalAndReducedTraversalControl>
      extended by org.omnaest.utils.structure.hierarchy.tree.TreeNavigator.LocalAndReducedTraversalControl
All Implemented Interfaces:
Serializable, Comparable<TreeNavigator.LocalAndReducedTraversalControl>
Enclosing class:
TreeNavigator<T extends Tree<?,TN>,TN extends TreeNode>

protected static enum TreeNavigator.LocalAndReducedTraversalControl
extends Enum<TreeNavigator.LocalAndReducedTraversalControl>

Reduced TreeNavigator.TreeNodeVisitor.TraversalControl which affects the local behavior

Author:
Omnaest

Enum Constant Summary
EXCLUDE_ALREADY_TRAVERSED_NODES
           
EXCLUDE_CHILDREN
           
INCLUDE_ALREADY_TRAVERSED_NODES
           
INCLUDE_CHILDREN
           
SKIP_CHILDREN
           
SKIP_FURTHER_SIBLINGS
           
 
Method Summary
 TreeNavigator.TreeNodeVisitor.TraversalControl[] getTraversalControls()
           
 Set<TreeNavigator.TreeNodeVisitor.TraversalControl> getTraversalControlSet()
           
static TreeNavigator.LocalAndReducedTraversalControl valueOf(String name)
          Returns the enum constant of this type with the specified name.
static TreeNavigator.LocalAndReducedTraversalControl[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SKIP_CHILDREN

public static final TreeNavigator.LocalAndReducedTraversalControl SKIP_CHILDREN

SKIP_FURTHER_SIBLINGS

public static final TreeNavigator.LocalAndReducedTraversalControl SKIP_FURTHER_SIBLINGS

EXCLUDE_ALREADY_TRAVERSED_NODES

public static final TreeNavigator.LocalAndReducedTraversalControl EXCLUDE_ALREADY_TRAVERSED_NODES

INCLUDE_ALREADY_TRAVERSED_NODES

public static final TreeNavigator.LocalAndReducedTraversalControl INCLUDE_ALREADY_TRAVERSED_NODES

EXCLUDE_CHILDREN

public static final TreeNavigator.LocalAndReducedTraversalControl EXCLUDE_CHILDREN

INCLUDE_CHILDREN

public static final TreeNavigator.LocalAndReducedTraversalControl INCLUDE_CHILDREN
Method Detail

values

public static TreeNavigator.LocalAndReducedTraversalControl[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (TreeNavigator.LocalAndReducedTraversalControl c : TreeNavigator.LocalAndReducedTraversalControl.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static TreeNavigator.LocalAndReducedTraversalControl valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getTraversalControls

public TreeNavigator.TreeNodeVisitor.TraversalControl[] getTraversalControls()
Returns:
the traversalControls

getTraversalControlSet

public Set<TreeNavigator.TreeNodeVisitor.TraversalControl> getTraversalControlSet()
Returns:
Set of TreeNavigator.TreeNodeVisitor.TraversalControl instances


Copyright © 2013. All Rights Reserved.