Interface LocalizableTextAttribute
- All Superinterfaces:
Attribute
This type represents an attribute whose value is a localized text.
Example to create an instance using the builder pattern
LocalizableTextAttribute localizableTextAttribute = LocalizableTextAttribute.builder()
.value(valueBuilder -> valueBuilder)
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for LocalizableTextAttributebuilder
(LocalizableTextAttribute template) create builder for LocalizableTextAttribute instancestatic LocalizableTextAttribute
deepCopy
(LocalizableTextAttribute template) factory method to create a deep copy of LocalizableTextAttribute@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 LocalizableTextAttribute
of()
factory methodstatic LocalizableTextAttribute
of
(LocalizableTextAttribute template) factory method to create a shallow copy LocalizableTextAttributevoid
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<LocalizableTextAttribute>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.importapi.models.productvariants.Attribute
getName, getType, setName, withAttribute
-
Field Details
-
LTEXT
discriminator value for LocalizableTextAttribute- 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 LocalizableTextAttribute
-
of
factory method to create a shallow copy LocalizableTextAttribute- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of LocalizableTextAttribute- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for LocalizableTextAttribute- Returns:
- builder
-
builder
create builder for LocalizableTextAttribute instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withLocalizableTextAttribute
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
-