Class LocalizedEnumValueImpl

java.lang.Object
com.commercetools.importapi.models.common.LocalizedEnumValueImpl
All Implemented Interfaces:
LocalizedEnumValue, io.vrap.rmf.base.client.ModelBase

public class LocalizedEnumValueImpl extends Object implements LocalizedEnumValue, io.vrap.rmf.base.client.ModelBase
LocalizedEnumValue
  • 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
     
     
    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
    set key
    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, wait, wait, wait

    Methods inherited from interface com.commercetools.importapi.models.common.LocalizedEnumValue

    withLocalizedEnumValue

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

    reflectionString, reflectionString
  • Constructor Details

    • LocalizedEnumValueImpl

      public LocalizedEnumValueImpl()
      create empty instance
  • Method Details

    • getKey

      public String getKey()
      Specified by:
      getKey in interface LocalizedEnumValue
      Returns:
      key
    • getLabel

      public LocalizedString getLabel()

      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:
      getLabel in interface LocalizedEnumValue
      Returns:
      label
    • setKey

      public void setKey(String key)
      Description copied from interface: LocalizedEnumValue
      set key
      Specified by:
      setKey in interface LocalizedEnumValue
      Parameters:
      key - value to be set
    • setLabel

      public void setLabel(LocalizedString label)
      Description copied from interface: LocalizedEnumValue

      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:
      setLabel in interface LocalizedEnumValue
      Parameters:
      label - value 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