Enum ModifiableFieldsMap
- java.lang.Object
-
- java.lang.Enum<ModifiableFieldsMap>
-
- com.broadleafcommerce.pricing.domain.type.ModifiableFieldsMap
-
- All Implemented Interfaces:
Serializable
,Comparable<ModifiableFieldsMap>
public enum ModifiableFieldsMap extends Enum<ModifiableFieldsMap>
Specifies whatpriceable fields
can be modified byPriceList PriceModifiers
for specificPriceList types
.- Author:
- Nathan Moore (nathanmoore).
- See Also:
PriceableFieldType
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONTRACT
Contract price lists can additionally modifystandard (price list) prices
andsale (price list) prices
.SALE
Sale price lists can additionally modifystandard (price list) prices
.STANDARD
Standard price lists only modifyPriceableFieldType.BASE_PRICE
orPriceableFieldType.BASE_COST
by default.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>
fields()
static Set<String>
fieldsForType(String type)
String
toString()
static ModifiableFieldsMap
valueOf(String name)
Returns the enum constant of this type with the specified name.static ModifiableFieldsMap[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STANDARD
public static final ModifiableFieldsMap STANDARD
Standard price lists only modifyPriceableFieldType.BASE_PRICE
orPriceableFieldType.BASE_COST
by default.
-
SALE
public static final ModifiableFieldsMap SALE
Sale price lists can additionally modifystandard (price list) prices
.
-
CONTRACT
public static final ModifiableFieldsMap CONTRACT
Contract price lists can additionally modifystandard (price list) prices
andsale (price list) prices
.
-
-
Method Detail
-
values
public static ModifiableFieldsMap[] 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 (ModifiableFieldsMap c : ModifiableFieldsMap.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ModifiableFieldsMap 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
-
toString
public String toString()
- Overrides:
toString
in classEnum<ModifiableFieldsMap>
-
-