Enum ItemChoiceSelectionType
java.lang.Object
java.lang.Enum<ItemChoiceSelectionType>
com.broadleafcommerce.cartoperation.domain.ItemChoiceSelectionType
- All Implemented Interfaces:
Serializable
,Comparable<ItemChoiceSelectionType>
Describes restrictions placed on the customer's ability to select items from the targeted set.
Generally, this is a restriction on how many choices can be selected for a single add-to-cart
request and, potentially, how quantity is distributed among multiple selected choices.
- Author:
- Chris Kittrell (ckittrell)
- See Also:
-
Enum Constant Summary
Enum ConstantDescriptionThe customer can choose multiple of the specified target items.The customer can only choose one of the specified target items. -
Method Summary
Modifier and TypeMethodDescriptionstatic ItemChoiceSelectionType
Returns the enum constant of this type with the specified name.static ItemChoiceSelectionType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
CHOOSE_ONE
The customer can only choose one of the specified target items. All quantity conditions (whether variable or fixed) will only be applied to the selected choice so that only 1 choice will be included in the add-to-cart request. -
CHOOSE_MULTIPLE
The customer can choose multiple of the specified target items. Quantity can be spread across multiple options leading to multiple of the choices being added to cart at once.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-