Interface AttributeDefinition
public interface AttributeDefinition
AttributeDefinition
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
AttributeDefinition attributeDefinition = AttributeDefinition.builder()
.type(typeBuilder -> typeBuilder)
.name("{name}")
.label(labelBuilder -> labelBuilder)
.isRequired(true)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic AttributeDefinitionBuilder
builder()
builder factory method for AttributeDefinitionstatic AttributeDefinitionBuilder
builder
(AttributeDefinition template) create builder for AttributeDefinition instancestatic AttributeDefinition
deepCopy
(AttributeDefinition template) factory method to create a deep copy of AttributeDefinition@Valid LocalizedString
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.@NotNull Boolean
@NotNull @Valid LocalizedString
getLabel()
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.@NotNull String
getName()
@NotNull @Valid AttributeType
getType()
static AttributeDefinition
of()
factory methodstatic AttributeDefinition
of
(AttributeDefinition template) factory method to create a shallow copy AttributeDefinitionvoid
setAttributeConstraint
(AttributeConstraintEnum attributeConstraint) set attributeConstraintvoid
setInputHint
(TextInputHint inputHint) set inputHintvoid
setInputTip
(LocalizedString inputTip) 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.void
setIsRequired
(Boolean isRequired) set isRequiredvoid
setIsSearchable
(Boolean isSearchable) set isSearchablevoid
setLabel
(LocalizedString label) 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.void
set namevoid
setType
(AttributeType type) set typestatic com.fasterxml.jackson.core.type.TypeReference<AttributeDefinition>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withAttributeDefinition
(Function<AttributeDefinition, T> helper) accessor map function
-
Method Details
-
getType
- Returns:
- type
-
getName
- Returns:
- name
-
getLabel
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:
- label
-
getIsRequired
- Returns:
- isRequired
-
getAttributeConstraint
AttributeConstraintEnum getAttributeConstraint()- Returns:
- attributeConstraint
-
getInputTip
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:
- inputTip
-
getInputHint
TextInputHint getInputHint()- Returns:
- inputHint
-
getIsSearchable
Boolean getIsSearchable()- Returns:
- isSearchable
-
setType
set type- Parameters:
type
- value to be set
-
setName
set name- Parameters:
name
- value to be set
-
setLabel
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:
label
- value to be set
-
setIsRequired
set isRequired- Parameters:
isRequired
- value to be set
-
setAttributeConstraint
set attributeConstraint- Parameters:
attributeConstraint
- value to be set
-
setInputTip
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:
inputTip
- value to be set
-
setInputHint
set inputHint- Parameters:
inputHint
- value to be set
-
setIsSearchable
set isSearchable- Parameters:
isSearchable
- value to be set
-
of
factory method- Returns:
- instance of AttributeDefinition
-
of
factory method to create a shallow copy AttributeDefinition- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of AttributeDefinition- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for AttributeDefinition- Returns:
- builder
-
builder
create builder for AttributeDefinition instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withAttributeDefinition
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
-