Enum CommerceIdentifier.EntityType
- java.lang.Object
-
- java.lang.Enum<CommerceIdentifier.EntityType>
-
- com.adobe.cq.commerce.core.components.models.common.CommerceIdentifier.EntityType
-
- All Implemented Interfaces:
Serializable
,Comparable<CommerceIdentifier.EntityType>
- Enclosing interface:
- CommerceIdentifier
public static enum CommerceIdentifier.EntityType extends Enum<CommerceIdentifier.EntityType>
The type of the entity which is identified
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CommerceIdentifier.EntityType
valueOf(String name)
Returns the enum constant of this type with the specified name.static CommerceIdentifier.EntityType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PRODUCT
public static final CommerceIdentifier.EntityType PRODUCT
-
CATEGORY
public static final CommerceIdentifier.EntityType CATEGORY
-
-
Method Detail
-
values
public static CommerceIdentifier.EntityType[] 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 (CommerceIdentifier.EntityType c : CommerceIdentifier.EntityType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CommerceIdentifier.EntityType 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
-
-