Package com.itextpdf.kernel.pdf.tagutils
Enum TagTreeIterator.TreeTraversalOrder
- java.lang.Object
-
- java.lang.Enum<TagTreeIterator.TreeTraversalOrder>
-
- com.itextpdf.kernel.pdf.tagutils.TagTreeIterator.TreeTraversalOrder
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<TagTreeIterator.TreeTraversalOrder>
- Enclosing class:
- TagTreeIterator
public static enum TagTreeIterator.TreeTraversalOrder extends java.lang.Enum<TagTreeIterator.TreeTraversalOrder>
Tree traversal order enum.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description POST_ORDER
Postorder traversal.PRE_ORDER
Preorder traversal.
-
Constructor Summary
Constructors Modifier Constructor Description private
TreeTraversalOrder()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TagTreeIterator.TreeTraversalOrder
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static TagTreeIterator.TreeTraversalOrder[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PRE_ORDER
public static final TagTreeIterator.TreeTraversalOrder PRE_ORDER
Preorder traversal.
-
POST_ORDER
public static final TagTreeIterator.TreeTraversalOrder POST_ORDER
Postorder traversal.
-
-
Method Detail
-
values
public static TagTreeIterator.TreeTraversalOrder[] 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 (TagTreeIterator.TreeTraversalOrder c : TagTreeIterator.TreeTraversalOrder.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TagTreeIterator.TreeTraversalOrder valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-