Class AttributeImpl
java.lang.Object
com.commercetools.api.models.product.AttributeImpl
- All Implemented Interfaces:
Attribute
,io.vrap.rmf.base.client.ModelBase
Attribute
-
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
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.product.Attribute
withAttribute
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
AttributeImpl
public AttributeImpl()create empty instance
-
-
Method Details
-
getName
Name of the Attribute.
-
getValue
The AttributeType determines the format of the Attribute
value
to be provided:- For Enum Type and Localized Enum Type, use the
key
of the Plain Enum Value or Localized Enum Value objects, or the complete objects asvalue
. - For Localizable Text Type, use the LocalizedString object as
value
. - For Money Type Attributes, use the Money object as
value
. - For Set Type Attributes, use the entire
set
object asvalue
. - For Nested Type Attributes, use the list of values of all Attributes of the nested Product as
value
. - For Reference Type Attributes, use the Reference object as
value
.
- For Enum Type and Localized Enum Type, use the
-
setName
Description copied from interface:Attribute
Name of the Attribute.
-
setValue
Description copied from interface:Attribute
The AttributeType determines the format of the Attribute
value
to be provided:- For Enum Type and Localized Enum Type, use the
key
of the Plain Enum Value or Localized Enum Value objects, or the complete objects asvalue
. - For Localizable Text Type, use the LocalizedString object as
value
. - For Money Type Attributes, use the Money object as
value
. - For Set Type Attributes, use the entire
set
object asvalue
. - For Nested Type Attributes, use the list of values of all Attributes of the nested Product as
value
. - For Reference Type Attributes, use the Reference object as
value
.
- For Enum Type and Localized Enum Type, use the
-
equals
-
hashCode
-