Interface VariantAttributesAttributeMetadata
public interface VariantAttributesAttributeMetadata
Metadata about a requested Attribute, derived from the ProductType.
Example to create an instance using the builder pattern
VariantAttributesAttributeMetadata variantAttributesAttributeMetadata = VariantAttributesAttributeMetadata.builder()
.name("{name}")
.label(labelBuilder -> labelBuilder)
.type("{type}")
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for VariantAttributesAttributeMetadatabuilder(VariantAttributesAttributeMetadata template) create builder for VariantAttributesAttributeMetadata instancecopyDeep()deepCopy(VariantAttributesAttributeMetadata template) factory method to create a deep copy of VariantAttributesAttributeMetadata@NotNull @Valid LocalizedStringgetLabel()Localized label of the Attribute as defined in the ProductType.@NotNull StringgetName()Name of the Attribute as defined in the ProductType.@NotNull StringgetType()Name of the AttributeType, for exampleboolean,text,ltext,enum,lenum,number,money,date,time,datetime,reference,set, ornested.of()factory methodof(VariantAttributesAttributeMetadata template) factory method to create a shallow copy VariantAttributesAttributeMetadatavoidsetLabel(LocalizedString label) Localized label of the Attribute as defined in the ProductType.voidName of the Attribute as defined in the ProductType.voidName of the AttributeType, for exampleboolean,text,ltext,enum,lenum,number,money,date,time,datetime,reference,set, ornested.static tools.jackson.core.type.TypeReference<VariantAttributesAttributeMetadata>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map function
-
Method Details
-
getName
Name of the Attribute as defined in the ProductType.
- Returns:
- name
-
getLabel
Localized label of the Attribute as defined in the ProductType. Subject to locale projection if
localeProjectionis specified.- Returns:
- label
-
getType
Name of the AttributeType, for example
boolean,text,ltext,enum,lenum,number,money,date,time,datetime,reference,set, ornested.- Returns:
- type
-
setName
Name of the Attribute as defined in the ProductType.
- Parameters:
name- value to be set
-
setLabel
Localized label of the Attribute as defined in the ProductType. Subject to locale projection if
localeProjectionis specified.- Parameters:
label- value to be set
-
setType
Name of the AttributeType, for example
boolean,text,ltext,enum,lenum,number,money,date,time,datetime,reference,set, ornested.- Parameters:
type- value to be set
-
of
factory method- Returns:
- instance of VariantAttributesAttributeMetadata
-
of
factory method to create a shallow copy VariantAttributesAttributeMetadata- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
VariantAttributesAttributeMetadata copyDeep() -
deepCopy
@Nullable static VariantAttributesAttributeMetadata deepCopy(@Nullable VariantAttributesAttributeMetadata template) factory method to create a deep copy of VariantAttributesAttributeMetadata- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for VariantAttributesAttributeMetadata- Returns:
- builder
-
builder
static VariantAttributesAttributeMetadataBuilder builder(VariantAttributesAttributeMetadata template) create builder for VariantAttributesAttributeMetadata instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withVariantAttributesAttributeMetadata
default <T> T withVariantAttributesAttributeMetadata(Function<VariantAttributesAttributeMetadata, T> helper) 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
-