java.lang.Object
com.commercetools.importapi.models.productvariants.AttributesImpl
All Implemented Interfaces:
Attributes, io.vrap.rmf.base.client.ModelBase

public class AttributesImpl extends Object implements Attributes, io.vrap.rmf.base.client.ModelBase
Attributes
  • 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
     
    int
     
    void
    setValue(String key, Attribute value)
    The name of the attribute is given by the key and shouldn't be set on the attribute itself.
     
    The name of the attribute is given by the key and shouldn't be set on the attribute itself.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.commercetools.importapi.models.productvariants.Attributes

    withAttributes

    Methods inherited from interface io.vrap.rmf.base.client.ModelBase

    reflectionString, reflectionString
  • Constructor Details

    • AttributesImpl

      public AttributesImpl()
      create empty instance
  • Method Details

    • values

      public Map<String,Attribute> values()

      The name of the attribute is given by the key and shouldn't be set on the attribute itself. And since this property will be represented as a map, we can set individual attributes to null to delete them (which follows JSON Merge Patch semantics).

      Specified by:
      values in interface Attributes
      Returns:
      map of the pattern property values
    • setValue

      public void setValue(String key, Attribute value)
      Description copied from interface: Attributes

      The name of the attribute is given by the key and shouldn't be set on the attribute itself. And since this property will be represented as a map, we can set individual attributes to null to delete them (which follows JSON Merge Patch semantics).

      Specified by:
      setValue in interface Attributes
      Parameters:
      key - property name
      value - property value
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object