Class AttributeChoiceValue
java.lang.Object
com.broadleafcommerce.order.common.domain.AttributeChoiceValue
- All Implemented Interfaces:
Serializable
A selected option attribute choice value for a product option to be stored in a cart, cart item,
order, or order item's attribute choices.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
getLabel()
What the customer sees for display.The label shown to customers for the option.getValue()
The value based on what the user selected.int
hashCode()
void
What the customer sees for display.void
setOptionLabel
(String optionLabel) The label shown to customers for the option.void
The value based on what the user selected.toString()
-
Constructor Details
-
AttributeChoiceValue
public AttributeChoiceValue() -
AttributeChoiceValue
-
-
Method Details
-
getOptionLabel
The label shown to customers for the option.- Returns:
- the display shown to customer for the option
-
getLabel
What the customer sees for display. For example, text in the case of sizes or a hex value in the case of colors. Can diverge fromvalue
which is what was added to the cart- Returns:
- the customer-facing display. If null, the
getValue()
should be used for display
-
getValue
The value based on what the user selected.- Returns:
- the value the user selected
-
setOptionLabel
The label shown to customers for the option.- Parameters:
optionLabel
- the display shown to customers for the option
-
setLabel
What the customer sees for display. For example, text in the case of sizes or a hex value in the case of colors. Can diverge fromvalue
which is what was added to the cart- Parameters:
label
- customer-facing display of this value
-
setValue
The value based on what the user selected.- Parameters:
value
- the value the user selected
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-