Enum HtmlPageItem.Location
- java.lang.Object
-
- java.lang.Enum<HtmlPageItem.Location>
-
- com.adobe.cq.wcm.core.components.models.HtmlPageItem.Location
-
- All Implemented Interfaces:
Serializable
,Comparable<HtmlPageItem.Location>
- Enclosing interface:
- HtmlPageItem
public static enum HtmlPageItem.Location extends Enum<HtmlPageItem.Location>
enum
that defines possible insert positions for a page item.- Since:
- com.adobe.cq.wcm.core.components.models 12.16.0
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static @NotNull HtmlPageItem.Location
fromString(String name)
String
getName()
String
toString()
static HtmlPageItem.Location
valueOf(String name)
Returns the enum constant of this type with the specified name.static HtmlPageItem.Location[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HEADER
public static final HtmlPageItem.Location HEADER
-
FOOTER
public static final HtmlPageItem.Location FOOTER
-
-
Method Detail
-
values
public static HtmlPageItem.Location[] 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 (HtmlPageItem.Location c : HtmlPageItem.Location.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HtmlPageItem.Location 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 nameNullPointerException
- if the argument is null
-
fromString
@NotNull public static @NotNull HtmlPageItem.Location fromString(String name)
-
getName
public String getName()
-
toString
public String toString()
- Overrides:
toString
in classEnum<HtmlPageItem.Location>
-
-