Package com.adobe.aco.model
Enum ProductConfiguration.TypeEnum
- java.lang.Object
-
- java.lang.Enum<ProductConfiguration.TypeEnum>
-
- com.adobe.aco.model.ProductConfiguration.TypeEnum
-
- All Implemented Interfaces:
Serializable,Comparable<ProductConfiguration.TypeEnum>
- Enclosing class:
- ProductConfiguration
public static enum ProductConfiguration.TypeEnum extends Enum<ProductConfiguration.TypeEnum>
Option type. Indicates the product type the option can be assigned to. - `CONFIGURABLE`: Configurable product option - `SWATCH`: Swatch product option. Must be used for color or text swatches attributes
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classProductConfiguration.TypeEnum.Adapter
-
Enum Constant Summary
Enum Constants Enum Constant Description CONFIGURABLESWATCH
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ProductConfiguration.TypeEnumfromValue(String value)StringgetValue()StringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)static ProductConfiguration.TypeEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static ProductConfiguration.TypeEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CONFIGURABLE
public static final ProductConfiguration.TypeEnum CONFIGURABLE
-
SWATCH
public static final ProductConfiguration.TypeEnum SWATCH
-
-
Method Detail
-
values
public static ProductConfiguration.TypeEnum[] 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 (ProductConfiguration.TypeEnum c : ProductConfiguration.TypeEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ProductConfiguration.TypeEnum 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
-
getValue
public String getValue()
-
toString
public String toString()
- Overrides:
toStringin classEnum<ProductConfiguration.TypeEnum>
-
fromValue
public static ProductConfiguration.TypeEnum fromValue(String value)
-
validateJsonElement
public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException- Throws:
IOException
-
-