Interface FieldType
- All Known Subinterfaces:
CustomFieldBooleanType
,CustomFieldDateTimeType
,CustomFieldDateType
,CustomFieldEnumType
,CustomFieldLocalizedEnumType
,CustomFieldLocalizedStringType
,CustomFieldMoneyType
,CustomFieldNumberType
,CustomFieldReferenceType
,CustomFieldSetType
,CustomFieldStringType
,CustomFieldTimeType
public interface FieldType
FieldType
Example to create a subtype instance using the builder pattern
Example to create a subtype instance using the builder pattern
FieldType fieldType = FieldType.booleanBuilder()
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder for boolean subtypestatic CustomFieldDateTypeBuilder
builder for date subtypebuilder for dateTime subtypestatic FieldType
factory method to create a deep copy of FieldTypestatic CustomFieldEnumTypeBuilder
builder for enum subtype@NotNull String
getName()
builder for localizedEnum subtypebuilder for localizedString subtypestatic CustomFieldMoneyTypeBuilder
builder for money subtypestatic CustomFieldNumberTypeBuilder
builder for number subtypebuilder for reference subtypestatic CustomFieldSetTypeBuilder
builder for set subtypestatic CustomFieldStringTypeBuilder
builder for string subtypestatic CustomFieldTimeTypeBuilder
builder for time subtypestatic com.fasterxml.jackson.core.type.TypeReference<FieldType>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withFieldType
(Function<FieldType, T> helper) accessor map function
-
Method Details
-
getName
- Returns:
- name
-
deepCopy
factory method to create a deep copy of FieldType- 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
-
localizedEnumBuilder
builder for localizedEnum subtype- Returns:
- builder
-
localizedStringBuilder
builder for localizedString subtype- Returns:
- builder
-
moneyBuilder
builder for money subtype- Returns:
- builder
-
numberBuilder
builder for number subtype- Returns:
- builder
-
referenceBuilder
builder for reference subtype- Returns:
- builder
-
setBuilder
builder for set subtype- Returns:
- builder
-
stringBuilder
builder for string subtype- Returns:
- builder
-
timeBuilder
builder for time subtype- Returns:
- builder
-
withFieldType
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
-