public enum ItemChoiceTargetType extends Enum<ItemChoiceTargetType>
ItemChoice
can have.ItemChoice
Enum Constant and Description |
---|
CATEGORY
|
SPECIFIC_PRODUCT
The item choice is a specific
Product . |
SPECIFIC_PRODUCTS
The item choice is among
Products from a predetermined list. |
SPECIFIC_VARIANT
The item choice is a specific
Variant . |
SPECIFIC_VARIANTS
The item choice is among
Variants from a predetermined list. |
Modifier and Type | Method and Description |
---|---|
static boolean |
isCategoryTargetType(String selectionType) |
static boolean |
isProductsTargetType(String selectionType) |
static boolean |
isSpecificChoiceTargetType(String selectionType) |
static boolean |
isVariantsTargetType(String selectionType) |
static ItemChoiceTargetType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ItemChoiceTargetType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ItemChoiceTargetType SPECIFIC_PRODUCT
Product
.ItemChoice.getSpecificItemChoice()
public static final ItemChoiceTargetType SPECIFIC_VARIANT
Variant
.ItemChoice.getSpecificItemChoice()
public static final ItemChoiceTargetType SPECIFIC_PRODUCTS
Products
from a predetermined list.ItemChoice.getSpecificChoices()
public static final ItemChoiceTargetType SPECIFIC_VARIANTS
Variants
from a predetermined list.ItemChoice.getSpecificChoices()
public static final ItemChoiceTargetType CATEGORY
Products
within a Category
. Used as a
convenience over specifying an explicit set of products with SPECIFIC_PRODUCTS
and
an SpecificItemChoice
.ItemChoice.getCategory()
public static ItemChoiceTargetType[] values()
for (ItemChoiceTargetType c : ItemChoiceTargetType.values()) System.out.println(c);
public static ItemChoiceTargetType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static boolean isVariantsTargetType(String selectionType)
public static boolean isProductsTargetType(String selectionType)
public static boolean isSpecificChoiceTargetType(String selectionType)
public static boolean isCategoryTargetType(String selectionType)
Copyright © 2021. All rights reserved.