Package co.mastermindcms.modules.enums
Enum ContainerType
- java.lang.Object
-
- java.lang.Enum<ContainerType>
-
- co.mastermindcms.modules.enums.ContainerType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ContainerType>
public enum ContainerType extends java.lang.Enum<ContainerType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BLOG
EMAIL
PAGE
PAGE_CATEGORY
PAGE_PRODUCT
PAGE_SKU
WIDGET
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
icon
-
Constructor Summary
Constructors Modifier Constructor Description private
ContainerType(java.lang.String icon)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ContainerType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ContainerType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BLOG
public static final ContainerType BLOG
-
PAGE
public static final ContainerType PAGE
-
PAGE_CATEGORY
public static final ContainerType PAGE_CATEGORY
-
PAGE_PRODUCT
public static final ContainerType PAGE_PRODUCT
-
PAGE_SKU
public static final ContainerType PAGE_SKU
-
EMAIL
public static final ContainerType EMAIL
-
WIDGET
public static final ContainerType WIDGET
-
-
Method Detail
-
values
public static ContainerType[] 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 (ContainerType c : ContainerType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ContainerType 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
-
-