Class LocalizedStringFieldImpl
java.lang.Object
com.commercetools.importapi.models.customfields.LocalizedStringFieldImpl
- All Implemented Interfaces:
CustomField
,LocalizedStringField
,io.vrap.rmf.base.client.ModelBase
public class LocalizedStringFieldImpl
extends Object
implements LocalizedStringField, io.vrap.rmf.base.client.ModelBase
A field with a localized string value.
-
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.customfields.LocalizedStringField
LOCALIZED_STRING
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getType()
The type of this field.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.int
hashCode()
void
setValue
(LocalizedString value) 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.customfields.CustomField
withCustomField
Methods inherited from interface com.commercetools.importapi.models.customfields.LocalizedStringField
withLocalizedStringField
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
LocalizedStringFieldImpl
public LocalizedStringFieldImpl()create empty instance
-
-
Method Details
-
getType
The type of this field.
- Specified by:
getType
in interfaceCustomField
- Returns:
- type
-
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 interfaceLocalizedStringField
- Returns:
- value
-
setValue
Description copied from interface:LocalizedStringField
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 interfaceLocalizedStringField
- Parameters:
value
- value to be set
-
equals
-
hashCode
-