public class AttributeChoiceValue extends Object implements Serializable
AttributeChoice
.Constructor and Description |
---|
AttributeChoiceValue() |
AttributeChoiceValue(String label,
String value,
Map<String,Object> attributes) |
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(String name,
Object value)
Takes in any additional attributes passed in the request not matching any defined properties.
|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
Map<String,Object> |
getAttribute()
Return any additional attributes passed in the request not matching any defined properties.
|
Map<String,Object> |
getAttributes()
Map holding any additional attributes passed in the request not matching any defined
properties.
|
String |
getLabel()
What the customer sees for display.
|
String |
getValue()
The value stored as an item attribute or cart attribute based on what the user selects.
|
int |
hashCode() |
void |
setAttributes(Map<String,Object> attributes)
Map holding any additional attributes passed in the request not matching any defined
properties.
|
void |
setLabel(String label)
What the customer sees for display.
|
void |
setValue(String value)
The value stored as an item attribute or cart attribute based on what the user selects.
|
String |
toString() |
public void addAttribute(String name, Object value)
name
- Name of the additional attributevalue
- Value of the additional attributepublic Map<String,Object> getAttribute()
public String getLabel()
value
which is what is added to the cartgetValue()
should be used for
displaypublic String getValue()
public Map<String,Object> getAttributes()
public void setLabel(String label)
value
which is what is added to the cartlabel
- customer-facing display of this valuepublic void setValue(String value)
value
- what will be stored as an item/cart attributepublic void setAttributes(Map<String,Object> attributes)
protected boolean canEqual(Object other)
Copyright © 2021. All rights reserved.