Package com.apicatalog.tree.io
Enum Class TreeTraversal.Context
- All Implemented Interfaces:
Serializable,Comparable<TreeTraversal.Context>,Constable
- Enclosing class:
- TreeTraversal
Identifies the role of the current node within the tree structure during
traversal.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe current node is an element within a collection structure.A synthetic marker indicating the end of a map or collection has been reached.The current node is a key within a map structure.The current node is a value associated with a key in a map structure.The current node is the root of the tree being traversed. -
Method Summary
Modifier and TypeMethodDescriptionstatic TreeTraversal.ContextReturns the enum constant of this class with the specified name.static TreeTraversal.Context[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ROOT
The current node is the root of the tree being traversed. -
PROPERTY_KEY
The current node is a key within a map structure. -
PROPERTY_VALUE
The current node is a value associated with a key in a map structure. -
COLLECTION_ELEMENT
The current node is an element within a collection structure. -
END
A synthetic marker indicating the end of a map or collection has been reached.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-