Enum Class ItemChoiceSelectionType
java.lang.Object
java.lang.Enum<ItemChoiceSelectionType>
com.broadleafcommerce.cartoperation.domain.ItemChoiceSelectionType
- All Implemented Interfaces:
Serializable
,Comparable<ItemChoiceSelectionType>
,Constable
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:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
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 class with the specified name.static ItemChoiceSelectionType[]
values()
Returns an array containing the constants of this enum class, 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 class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-