Interface BuilderFieldSource<D extends BuilderFieldSource<D>>

All Superinterfaces:
Comparable<D>, Component<D>, Copyable<D>, Serializable
All Known Subinterfaces:
QueryBuilderField<F>, RuleBuilderField<F>
All Known Implementing Classes:
DefaultQueryBuilderField, DefaultRuleBuilderField

public interface BuilderFieldSource<D extends BuilderFieldSource<D>> extends Component<D>
An interface implemented by components that intend to support the inclusion of augmented custom fields.
Author:
Jon Fleschler (jfleschler)
  • Field Details

  • Method Details

    • addAugmentationFieldSource

      default D addAugmentationFieldSource(String entityContainerKey)
      The container key used to retrieve augmentations. Any fields marked `showInQueryBuilder` will be added to the field list.
      Parameters:
      entityContainerKey - the augmentation key property
      Returns:
      this
    • addAugmentationFieldSource

      default D addAugmentationFieldSource(String entityContainerKey, boolean stripAttributes)
      The container key used to retrieve augmentations. Any fields marked `showInQueryBuilder` will be added to the field list.
      Parameters:
      entityContainerKey - the augmentation key property
      Returns:
      this
    • addAugmentationFieldSource

      default D addAugmentationFieldSource(String entityContainerKey, String fieldNameWrapper)
      The container key used to retrieve augmentations. Any fields marked `showInQueryBuilder` will be added to the field list.
      Parameters:
      entityContainerKey - the augmentation key property
      fieldNameWrapper - the string format to wrap the field name
      Returns:
      this
    • addAugmentationFieldSource

      default D addAugmentationFieldSource(String entityContainerKey, String fieldNameWrapper, boolean stripAttributes)
      The container key used to retrieve augmentations. Any fields marked `showInQueryBuilder` will be added to the field list.
      Parameters:
      entityContainerKey - the augmentation key property
      fieldNameWrapper - the string format to wrap the field name
      Returns:
      this
    • getContainerKey

      default String getContainerKey()
    • processFieldName

      default String processFieldName(String fieldName)
    • isStripAttributes

      default boolean isStripAttributes()
    • allowCustomFields

      default D allowCustomFields()
      Set to allow the builder field to be augmented with custom fields.
      Returns:
      this.
      Since:
      Metadata 2.0.6
    • allowCustomFields

      default D allowCustomFields(boolean allow)
      Set whether to allow the builder field to be augmented with custom fields.
      Parameters:
      allow - The value to set.
      Returns:
      this.
      Since:
      Metadata 2.0.6
    • notAllowCustomFields

      default D notAllowCustomFields()
      Set to not allow the builder field to be augmented with custom fields.
      Returns:
      this.
      Since:
      Metadata 2.0.6
    • isAllowCustomFields

      default boolean isAllowCustomFields()
      Whether builder field is allowed to be augmented with custom fields.
      Returns:
      this.
      Since:
      Metadata 2.0.6