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
Fields -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for LocalizableTextAttributebuilder
(LocalizableTextAttribute template) create builder for LocalizableTextAttribute instancecopyDeep()
static LocalizableTextAttribute
deepCopy
(LocalizableTextAttribute template) factory method to create a deep copy of LocalizableTextAttribute@NotNull @Valid LocalizedString
getValue()
A localized string.static LocalizableTextAttribute
of()
factory methodstatic LocalizableTextAttribute
of
(LocalizableTextAttribute template) factory method to create a shallow copy LocalizableTextAttributevoid
setValue
(LocalizedString value) A localized string.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.
- Returns:
- value
-
setValue
A localized string.
- 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
-
copyDeep
LocalizableTextAttribute copyDeep() -
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
-