Interface AttributeType
- All Known Subinterfaces:
AttributeBooleanType
,AttributeDateTimeType
,AttributeDateType
,AttributeEnumType
,AttributeLocalizableTextType
,AttributeLocalizedEnumType
,AttributeMoneyType
,AttributeNestedType
,AttributeNumberType
,AttributeReferenceType
,AttributeSetType
,AttributeTextType
,AttributeTimeType
public interface AttributeType
Umbrella type for specific attribute types discriminated by property name
.
Example to create a subtype instance using the builder pattern
AttributeType attributeType = AttributeType.booleanBuilder()
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic AttributeBooleanTypeBuilder
builder for boolean subtypestatic AttributeDateTypeBuilder
builder for date subtypestatic AttributeDateTimeTypeBuilder
builder for datetime subtypestatic AttributeType
deepCopy
(AttributeType template) factory method to create a deep copy of AttributeTypestatic AttributeEnumTypeBuilder
builder for enum subtype@NotNull String
getName()
builder for lenum subtypebuilder for ltext subtypestatic AttributeMoneyTypeBuilder
builder for money subtypestatic AttributeNestedTypeBuilder
builder for nested subtypestatic AttributeNumberTypeBuilder
builder for number subtypebuilder for reference subtypestatic AttributeSetTypeBuilder
builder for set subtypestatic AttributeTextTypeBuilder
builder for text subtypestatic AttributeTimeTypeBuilder
builder for time subtypestatic com.fasterxml.jackson.core.type.TypeReference<AttributeType>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withAttributeType
(Function<AttributeType, T> helper) accessor map function
-
Method Details
-
getName
- Returns:
- name
-
deepCopy
factory method to create a deep copy of AttributeType- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
booleanBuilder
builder for boolean subtype- Returns:
- builder
-
datetimeBuilder
builder for datetime subtype- Returns:
- builder
-
dateBuilder
builder for date subtype- Returns:
- builder
-
enumBuilder
builder for enum subtype- Returns:
- builder
-
ltextBuilder
builder for ltext subtype- Returns:
- builder
-
lenumBuilder
builder for lenum subtype- Returns:
- builder
-
moneyBuilder
builder for money subtype- Returns:
- builder
-
nestedBuilder
builder for nested subtype- Returns:
- builder
-
numberBuilder
builder for number subtype- Returns:
- builder
-
referenceBuilder
builder for reference subtype- Returns:
- builder
-
setBuilder
builder for set subtype- Returns:
- builder
-
textBuilder
builder for text subtype- Returns:
- builder
-
timeBuilder
builder for time subtype- Returns:
- builder
-
withAttributeType
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
-