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 Details

    • getType

      @NotNull @NotNull String getType()

      The type of this field.

      Returns:
      type
    • deepCopy

      @Nullable static CustomField deepCopy(@Nullable CustomField template)
      factory method to create a deep copy of CustomField
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • booleanBuilder

      static BooleanFieldBuilder booleanBuilder()
      builder for boolean subtype
      Returns:
      builder
    • booleanSetBuilder

      static BooleanSetFieldBuilder booleanSetBuilder()
      builder for booleanSet subtype
      Returns:
      builder
    • dateBuilder

      static DateFieldBuilder dateBuilder()
      builder for date subtype
      Returns:
      builder
    • dateSetBuilder

      static DateSetFieldBuilder dateSetBuilder()
      builder for dateSet subtype
      Returns:
      builder
    • dateTimeBuilder

      static DateTimeFieldBuilder dateTimeBuilder()
      builder for dateTime subtype
      Returns:
      builder
    • dateTimeSetBuilder

      static DateTimeSetFieldBuilder dateTimeSetBuilder()
      builder for dateTimeSet subtype
      Returns:
      builder
    • enumBuilder

      static EnumFieldBuilder enumBuilder()
      builder for enum subtype
      Returns:
      builder
    • enumSetBuilder

      static EnumSetFieldBuilder enumSetBuilder()
      builder for enumSet subtype
      Returns:
      builder
    • localizedEnumBuilder

      static LocalizedEnumFieldBuilder localizedEnumBuilder()
      builder for localizedEnum subtype
      Returns:
      builder
    • localizedEnumSetBuilder

      static LocalizedEnumSetFieldBuilder localizedEnumSetBuilder()
      builder for localizedEnumSet subtype
      Returns:
      builder
    • localizedStringBuilder

      static LocalizedStringFieldBuilder localizedStringBuilder()
      builder for localizedString subtype
      Returns:
      builder
    • localizedStringSetBuilder

      static LocalizedStringSetFieldBuilder localizedStringSetBuilder()
      builder for localizedStringSet subtype
      Returns:
      builder
    • moneyBuilder

      static MoneyFieldBuilder moneyBuilder()
      builder for money subtype
      Returns:
      builder
    • moneySetBuilder

      static MoneySetFieldBuilder moneySetBuilder()
      builder for moneySet subtype
      Returns:
      builder
    • numberBuilder

      static NumberFieldBuilder numberBuilder()
      builder for number subtype
      Returns:
      builder
    • numberSetBuilder

      static NumberSetFieldBuilder numberSetBuilder()
      builder for numberSet subtype
      Returns:
      builder
    • referenceBuilder

      static ReferenceFieldBuilder referenceBuilder()
      builder for reference subtype
      Returns:
      builder
    • referenceSetBuilder

      static ReferenceSetFieldBuilder referenceSetBuilder()
      builder for referenceSet subtype
      Returns:
      builder
    • stringBuilder

      static StringFieldBuilder stringBuilder()
      builder for string subtype
      Returns:
      builder
    • stringSetBuilder

      static StringSetFieldBuilder stringSetBuilder()
      builder for stringSet subtype
      Returns:
      builder
    • timeBuilder

      static TimeFieldBuilder timeBuilder()
      builder for time subtype
      Returns:
      builder
    • timeSetBuilder

      static TimeSetFieldBuilder timeSetBuilder()
      builder for timeSet subtype
      Returns:
      builder
    • withCustomField

      default <T> T withCustomField(Function<CustomField,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static com.fasterxml.jackson.core.type.TypeReference<CustomField> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference