Enum Class DefaultQuoteItemRequestTypes

java.lang.Object
java.lang.Enum<DefaultQuoteItemRequestTypes>
com.broadleafcommerce.cartoperation.domain.enums.DefaultQuoteItemRequestTypes
All Implemented Interfaces:
Serializable, Comparable<DefaultQuoteItemRequestTypes>, Constable

public enum DefaultQuoteItemRequestTypes extends Enum<DefaultQuoteItemRequestTypes>
Represents the quote item's request type.
Author:
Sunny Yu
  • Enum Constant Details

    • ITEM

      public static final DefaultQuoteItemRequestTypes ITEM
      Represents an item.

      This is typically used for buyers to request an item in the quote by only specifying an item number, etc.

    • SERVICE

      public static final DefaultQuoteItemRequestTypes SERVICE
      Represents a service, e.g. training hours, additional service, etc.
  • Method Details

    • values

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

      public static DefaultQuoteItemRequestTypes valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • isItem

      public static boolean isItem(String itemType)
    • isService

      public static boolean isService(String itemType)