Enum Class DefaultPriceListPriceSources

java.lang.Object
java.lang.Enum<DefaultPriceListPriceSources>
com.broadleafcommerce.pricing.client.domain.enums.DefaultPriceListPriceSources
All Implemented Interfaces:
Serializable, Comparable<DefaultPriceListPriceSources>, Constable

public enum DefaultPriceListPriceSources extends Enum<DefaultPriceListPriceSources>
Represents where a price is coming from within a price list.
Since:
1.4.1, 2.0.1
Author:
Sunny Yu
  • Enum Constant Details

    • BLC_PRICE_LIST_PRICE_DATA

      public static final DefaultPriceListPriceSources BLC_PRICE_LIST_PRICE_DATA
      Represents that this price comes from the Price Data that is explicitly added to the Price List.
    • BLC_PRICE_LIST_FORMULA

      public static final DefaultPriceListPriceSources BLC_PRICE_LIST_FORMULA
      Represents that this price comes from the Price List's formula, e.g. multiplier, percentage, addition, etc.
    • EXTERNAL

      public static final DefaultPriceListPriceSources EXTERNAL
      Represents that this price comes from an external source.
  • Method Details

    • values

      public static DefaultPriceListPriceSources[] 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 DefaultPriceListPriceSources 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
    • isBroadleafPriceListFormula

      public static boolean isBroadleafPriceListFormula(String source)
    • isBroadleafPriceListPriceData

      public static boolean isBroadleafPriceListPriceData(String source)
    • isExternal

      public static boolean isExternal(String source)