Class LocalizableTextAttributeImpl

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

public class LocalizableTextAttributeImpl extends Object implements LocalizableTextAttribute, io.vrap.rmf.base.client.ModelBase

This type represents an attribute whose value is a localized text.

  • 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.LocalizableTextAttribute

    LTEXT
  • 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.
     
    A localized string is a JSON object where the keys are of IETF language tag, and the values the corresponding strings used for that language.
    int
     
    void
    The name of this attribute must match a name of the product types attribute definitions.
    void
    A localized string is a JSON object where the keys are of IETF language tag, and the values the corresponding strings used for that language.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, toString, wait, wait, wait

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

    withAttribute

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

    withLocalizableTextAttribute

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

    reflectionString, reflectionString
  • Constructor Details

    • LocalizableTextAttributeImpl

      public LocalizableTextAttributeImpl()
      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 LocalizedString getValue()

      A localized string is a JSON object where the keys are of IETF language tag, and the values the corresponding strings used for that language.

      {
          "de": "Hundefutter",
          "en": "dog food"
        }
        
      Specified by:
      getValue in interface LocalizableTextAttribute
      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(LocalizedString value)
      Description copied from interface: LocalizableTextAttribute

      A localized string is a JSON object where the keys are of IETF language tag, and the values the corresponding strings used for that language.

      {
          "de": "Hundefutter",
          "en": "dog food"
        }
        
      Specified by:
      setValue in interface LocalizableTextAttribute
      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