Class TextSetAttributeImpl

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

public class TextSetAttributeImpl extends Object implements TextSetAttribute, io.vrap.rmf.base.client.ModelBase

This type represents an attribute whose value is a set of strings.

  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase

    io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
  • Field Summary

    Fields inherited from interface com.commercetools.importapi.models.productvariants.TextSetAttribute

    TEXT_SET
  • Constructor Summary

    Constructors
    Constructor
    Description
    create empty instance
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    The name of this attribute must match a name of the product types attribute definitions.
     
     
    int
     
    void
    The name of this attribute must match a name of the product types attribute definitions.
    void
    setValue(String... value)
    set value
    void
    set value
     

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait

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

    withAttribute

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

    reflectionString, reflectionString

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

    withTextSetAttribute
  • Constructor Details

    • TextSetAttributeImpl

      public TextSetAttributeImpl()
      create empty instance
  • Method Details

    • getName

      public String getName()

      The name of this attribute must match a name of the product types attribute definitions. The name is required if this type is used in a product variant and must not be set when used in a product variant patch.

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

      public String getType()
      Specified by:
      getType in interface Attribute
      Returns:
      type
    • getValue

      public List<String> getValue()
      Specified by:
      getValue in interface TextSetAttribute
      Returns:
      value
    • setName

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

      The name of this attribute must match a name of the product types attribute definitions. The name is required if this type is used in a product variant and must not be set when used in a product variant patch.

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

      public void setValue(String... value)
      Description copied from interface: TextSetAttribute
      set value
      Specified by:
      setValue in interface TextSetAttribute
      Parameters:
      value - values to be set
    • setValue

      public void setValue(List<String> value)
      Description copied from interface: TextSetAttribute
      set value
      Specified by:
      setValue in interface TextSetAttribute
      Parameters:
      value - values to be set
    • 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