Class AttributeImpl

java.lang.Object
com.commercetools.api.models.product.AttributeImpl
All Implemented Interfaces:
Attribute, io.vrap.rmf.base.client.ModelBase

public class AttributeImpl extends Object implements 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

    Constructors
    Constructor
    Description
    create empty instance
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    Name of the Attribute.
    The AttributeType determines the format of the Attribute value to be provided:
    int
     
    void
    Name of the Attribute.
    void
    The AttributeType determines the format of the Attribute value to be provided:

    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

      public String getName()

      Name of the Attribute.

      Specified by:
      getName in interface Attribute
      Returns:
      name
    • getValue

      public Object 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 as value.
      • 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 as value.
      • 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.
      Specified by:
      getValue in interface Attribute
      Returns:
      value
    • setName

      public void setName(String name)
      Description copied from interface: Attribute

      Name of the Attribute.

      Specified by:
      setName in interface Attribute
      Parameters:
      name - value to be set
    • setValue

      public void setValue(Object value)
      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 as value.
      • 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 as value.
      • 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.
      Specified by:
      setValue in interface Attribute
      Parameters:
      value - value to be set
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object