Interface CustomField
- All Known Subinterfaces:
BooleanField
,BooleanSetField
,DateField
,DateSetField
,DateTimeField
,DateTimeSetField
,EnumField
,EnumSetField
,LocalizedEnumField
,LocalizedEnumSetField
,LocalizedStringField
,LocalizedStringSetField
,MoneyField
,MoneySetField
,NumberField
,NumberSetField
,ReferenceField
,ReferenceSetField
,StringField
,StringSetField
,TimeField
,TimeSetField
public interface CustomField
Provides the value for a Custom Field of a specific type.
Example to create a subtype instance using the builder pattern
CustomField customField = CustomField.booleanBuilder()
value(true)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic BooleanFieldBuilder
builder for boolean subtypestatic BooleanSetFieldBuilder
builder for booleanSet subtypestatic DateFieldBuilder
builder for date subtypestatic DateSetFieldBuilder
builder for dateSet subtypestatic DateTimeFieldBuilder
builder for dateTime subtypestatic DateTimeSetFieldBuilder
builder for dateTimeSet subtypestatic CustomField
deepCopy
(CustomField template) factory method to create a deep copy of CustomFieldstatic EnumFieldBuilder
builder for enum subtypestatic EnumSetFieldBuilder
builder for enumSet subtype@NotNull String
getType()
The type of this field.static LocalizedEnumFieldBuilder
builder for localizedEnum subtypestatic LocalizedEnumSetFieldBuilder
builder for localizedEnumSet subtypestatic LocalizedStringFieldBuilder
builder for localizedString subtypebuilder for localizedStringSet subtypestatic MoneyFieldBuilder
builder for money subtypestatic MoneySetFieldBuilder
builder for moneySet subtypestatic NumberFieldBuilder
builder for number subtypestatic NumberSetFieldBuilder
builder for numberSet subtypestatic ReferenceFieldBuilder
builder for reference subtypestatic ReferenceSetFieldBuilder
builder for referenceSet subtypestatic StringFieldBuilder
builder for string subtypestatic StringSetFieldBuilder
builder for stringSet subtypestatic TimeFieldBuilder
builder for time subtypestatic TimeSetFieldBuilder
builder for timeSet subtypestatic com.fasterxml.jackson.core.type.TypeReference<CustomField>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withCustomField
(Function<CustomField, T> helper) accessor map function
-
Method Details
-
getType
The type of this field.
- Returns:
- type
-
deepCopy
factory method to create a deep copy of CustomField- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
booleanBuilder
builder for boolean subtype- Returns:
- builder
-
booleanSetBuilder
builder for booleanSet subtype- Returns:
- builder
-
dateBuilder
builder for date subtype- Returns:
- builder
-
dateSetBuilder
builder for dateSet subtype- Returns:
- builder
-
dateTimeBuilder
builder for dateTime subtype- Returns:
- builder
-
dateTimeSetBuilder
builder for dateTimeSet subtype- Returns:
- builder
-
enumBuilder
builder for enum subtype- Returns:
- builder
-
enumSetBuilder
builder for enumSet subtype- Returns:
- builder
-
localizedEnumBuilder
builder for localizedEnum subtype- Returns:
- builder
-
localizedEnumSetBuilder
builder for localizedEnumSet subtype- Returns:
- builder
-
localizedStringBuilder
builder for localizedString subtype- Returns:
- builder
-
localizedStringSetBuilder
builder for localizedStringSet subtype- Returns:
- builder
-
moneyBuilder
builder for money subtype- Returns:
- builder
-
moneySetBuilder
builder for moneySet subtype- Returns:
- builder
-
numberBuilder
builder for number subtype- Returns:
- builder
-
numberSetBuilder
builder for numberSet subtype- Returns:
- builder
-
referenceBuilder
builder for reference subtype- Returns:
- builder
-
referenceSetBuilder
builder for referenceSet subtype- Returns:
- builder
-
stringBuilder
builder for string subtype- Returns:
- builder
-
stringSetBuilder
builder for stringSet subtype- Returns:
- builder
-
timeBuilder
builder for time subtype- Returns:
- builder
-
timeSetBuilder
builder for timeSet subtype- Returns:
- builder
-
withCustomField
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
-