Enum DefaultItemChoiceSelectionType

java.lang.Object
java.lang.Enum<DefaultItemChoiceSelectionType>
com.broadleafcommerce.catalog.domain.product.option.type.DefaultItemChoiceSelectionType
All Implemented Interfaces:
Serializable, Comparable<DefaultItemChoiceSelectionType>

public enum DefaultItemChoiceSelectionType extends Enum<DefaultItemChoiceSelectionType>
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 Details

    • CHOOSE_ONE

      public static final DefaultItemChoiceSelectionType 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

      public static final DefaultItemChoiceSelectionType 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

      public static DefaultItemChoiceSelectionType[] 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

      public static DefaultItemChoiceSelectionType 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 name
      NullPointerException - if the argument is null
    • isChooseOneItemChoiceSelectionType

      public static boolean isChooseOneItemChoiceSelectionType(String itemChoiceSelectionType)
    • isChooseMultipleItemChoiceSelectionType

      public static boolean isChooseMultipleItemChoiceSelectionType(String itemChoiceSelectionType)