Interface AttributeType
public interface AttributeType
Umbrella type for specific attribute types discriminated by property name.
Example to create an instance using the builder pattern
AttributeType attributeType = AttributeType.builder()
.name("{name}")
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic AttributeTypeBuilderbuilder()builder factory method for AttributeTypestatic AttributeTypeBuilderbuilder(AttributeType template) create builder for AttributeType instancecopyDeep()static AttributeTypedeepCopy(AttributeType template) factory method to create a deep copy of AttributeType@NotNull StringgetName()static AttributeTypeof()factory methodstatic AttributeTypeof(AttributeType template) factory method to create a shallow copy AttributeTypevoidset namestatic com.fasterxml.jackson.core.type.TypeReference<AttributeType>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithAttributeType(Function<AttributeType, T> helper) accessor map function
-
Method Details
-
getName
- Returns:
- name
-
setName
set name- Parameters:
name- value to be set
-
of
factory method- Returns:
- instance of AttributeType
-
of
factory method to create a shallow copy AttributeType- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
AttributeType copyDeep() -
deepCopy
factory method to create a deep copy of AttributeType- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for AttributeType- Returns:
- builder
-
builder
create builder for AttributeType instance- Parameters:
template- instance with prefilled values for the builder- 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
-