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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected booleanbooleangetLabel()What the customer sees for display.The label shown to customers for the option.getValue()The value based on what the user selected.inthashCode()voidWhat the customer sees for display.voidsetOptionLabel(String optionLabel) The label shown to customers for the option.voidThe value based on what the user selected.toString()
- 
Constructor Details- 
AttributeChoiceValuepublic AttributeChoiceValue()
- 
AttributeChoiceValue
 
- 
- 
Method Details- 
getOptionLabelThe label shown to customers for the option.- Returns:
- the display shown to customer for the option
 
- 
getLabelWhat the customer sees for display. For example, text in the case of sizes or a hex value in the case of colors. Can diverge fromvaluewhich is what was added to the cart- Returns:
- the customer-facing display. If null, the getValue()should be used for display
 
- 
getValueThe value based on what the user selected.- Returns:
- the value the user selected
 
- 
setOptionLabelThe label shown to customers for the option.- Parameters:
- optionLabel- the display shown to customers for the option
 
- 
setLabelWhat the customer sees for display. For example, text in the case of sizes or a hex value in the case of colors. Can diverge fromvaluewhich is what was added to the cart- Parameters:
- label- customer-facing display of this value
 
- 
setValueThe value based on what the user selected.- Parameters:
- value- the value the user selected
 
- 
equals
- 
canEqual
- 
hashCodepublic int hashCode()
- 
toString
 
-