Enum PriceableFieldType
- java.lang.Object
-
- java.lang.Enum<PriceableFieldType>
-
- com.broadleafcommerce.pricing.domain.type.PriceableFieldType
-
- All Implemented Interfaces:
Serializable
,Comparable<PriceableFieldType>
public enum PriceableFieldType extends Enum<PriceableFieldType> implements Comparable<PriceableFieldType>
Fields onPriceableTargets
that the pricing service cares about.- Author:
- Nathan Moore (nathanmoore).
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BASE_COST
Base cost of manufacturing the target provided by the target itself rather than being derived by the pricing service.BASE_PRICE
Base price to sell the target at provided by the target itself rather than being derived by the pricing service.CONTRACT_PRICE
Price from a contract price listSALE_PRICE
Price from a sale price listSTANDARD_PRICE
Price from a standard price list
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
field()
int
order()
String
toString()
static PriceableFieldType
valueOf(String name)
Returns the enum constant of this type with the specified name.static PriceableFieldType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.static List<PriceableFieldType>
valuesOrdered()
Returns an ordered list of all fields, excluding base cost.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
-
Methods inherited from interface java.lang.Comparable
compareTo
-
-
-
-
Enum Constant Detail
-
BASE_COST
public static final PriceableFieldType BASE_COST
Base cost of manufacturing the target provided by the target itself rather than being derived by the pricing service.
-
BASE_PRICE
public static final PriceableFieldType BASE_PRICE
Base price to sell the target at provided by the target itself rather than being derived by the pricing service.
-
STANDARD_PRICE
public static final PriceableFieldType STANDARD_PRICE
Price from a standard price list
-
SALE_PRICE
public static final PriceableFieldType SALE_PRICE
Price from a sale price list
-
CONTRACT_PRICE
public static final PriceableFieldType CONTRACT_PRICE
Price from a contract price list
-
-
Method Detail
-
values
public static PriceableFieldType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PriceableFieldType c : PriceableFieldType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PriceableFieldType 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 nameNullPointerException
- if the argument is null
-
field
public final String field()
-
order
public final int order()
-
valuesOrdered
public static List<PriceableFieldType> valuesOrdered()
Returns an ordered list of all fields, excluding base cost.
-
toString
public String toString()
- Overrides:
toString
in classEnum<PriceableFieldType>
-
-