Class AttributeLocalizedEnumValueImpl
java.lang.Object
com.commercetools.api.models.product_type.AttributeLocalizedEnumValueImpl
- All Implemented Interfaces:
AttributeLocalizedEnumValue
,WithKey
,io.vrap.rmf.base.client.ModelBase
public class AttributeLocalizedEnumValueImpl
extends Object
implements AttributeLocalizedEnumValue, io.vrap.rmf.base.client.ModelBase
A localized enum value must be unique within the enum, else a DuplicateEnumValues error is returned.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getKey()
Key of the value used as a programmatic identifier, for example in facets & filters.getLabel()
Descriptive, localized label of the value.int
hashCode()
void
Key of the value used as a programmatic identifier, for example in facets & filters.void
setLabel
(LocalizedString label) Descriptive, localized label of the value.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.product_type.AttributeLocalizedEnumValue
withAttributeLocalizedEnumValue
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
AttributeLocalizedEnumValueImpl
public AttributeLocalizedEnumValueImpl()create empty instance
-
-
Method Details
-
getKey
Key of the value used as a programmatic identifier, for example in facets & filters.
- Specified by:
getKey
in interfaceAttributeLocalizedEnumValue
- Specified by:
getKey
in interfaceWithKey
- Returns:
- key
-
getLabel
Descriptive, localized label of the value.
- Specified by:
getLabel
in interfaceAttributeLocalizedEnumValue
- Returns:
- label
-
setKey
Description copied from interface:AttributeLocalizedEnumValue
Key of the value used as a programmatic identifier, for example in facets & filters.
- Specified by:
setKey
in interfaceAttributeLocalizedEnumValue
- Parameters:
key
- value to be set
-
setLabel
Description copied from interface:AttributeLocalizedEnumValue
Descriptive, localized label of the value.
- Specified by:
setLabel
in interfaceAttributeLocalizedEnumValue
- Parameters:
label
- value to be set
-
equals
-
hashCode
-