Interface LocalizedStringField
- All Superinterfaces:
CustomField
A field with a localized string value.
Example to create an instance using the builder pattern
LocalizedStringField localizedStringField = LocalizedStringField.builder()
.value(valueBuilder -> valueBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for LocalizedStringField -
Method Summary
Modifier and TypeMethodDescriptionstatic LocalizedStringFieldBuilder
builder()
builder factory method for LocalizedStringFieldstatic LocalizedStringFieldBuilder
builder
(LocalizedStringField template) create builder for LocalizedStringField instancestatic LocalizedStringField
deepCopy
(LocalizedStringField template) factory method to create a deep copy of LocalizedStringField@NotNull @Valid 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.static LocalizedStringField
of()
factory methodstatic LocalizedStringField
of
(LocalizedStringField template) factory method to create a shallow copy LocalizedStringFieldvoid
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.static com.fasterxml.jackson.core.type.TypeReference<LocalizedStringField>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withLocalizedStringField
(Function<LocalizedStringField, T> helper) accessor map functionMethods inherited from interface com.commercetools.importapi.models.customfields.CustomField
getType, withCustomField
-
Field Details
-
LOCALIZED_STRING
discriminator value for LocalizedStringField- See Also:
-
-
Method Details
-
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" }
- Returns:
- value
-
setValue
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" }
- Parameters:
value
- value to be set
-
of
factory method- Returns:
- instance of LocalizedStringField
-
of
factory method to create a shallow copy LocalizedStringField- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of LocalizedStringField- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for LocalizedStringField- Returns:
- builder
-
builder
create builder for LocalizedStringField instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withLocalizedStringField
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-