Package com.day.cq.wcm.foundation
Enum Navigation.Element.Type
- java.lang.Object
-
- java.lang.Enum<Navigation.Element.Type>
-
- com.day.cq.wcm.foundation.Navigation.Element.Type
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Navigation.Element.Type>
- Enclosing class:
- Navigation.Element
public static enum Navigation.Element.Type extends java.lang.Enum<Navigation.Element.Type>
Type of the navigation element
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ITEM_BEGIN
Denotes that this element is the beginning of an item, e.g.ITEM_END
Denotes that this element is the end of an item, e.g.NODE_CLOSE
Denotes that is element is a closed node, e.g.NODE_OPEN
Denotes that is element is an open node, e.g.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Navigation.Element.Type
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Navigation.Element.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NODE_OPEN
public static final Navigation.Element.Type NODE_OPEN
Denotes that is element is an open node, e.g. an <UL> tag.
-
ITEM_BEGIN
public static final Navigation.Element.Type ITEM_BEGIN
Denotes that this element is the beginning of an item, e.g. an <LI> tag.
-
ITEM_END
public static final Navigation.Element.Type ITEM_END
Denotes that this element is the end of an item, e.g. an </LI> tag.
-
NODE_CLOSE
public static final Navigation.Element.Type NODE_CLOSE
Denotes that is element is a closed node, e.g. an </UL> tag.
-
-
Method Detail
-
values
public static Navigation.Element.Type[] 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 (Navigation.Element.Type c : Navigation.Element.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Navigation.Element.Type 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
-
-