Annotation Interface ModuleConfigField


@Retention(RUNTIME) @Target({FIELD,METHOD}) public @interface ModuleConfigField
Annotation to enrich configuration fields with user facing information.

This information is used to display and validate the annotated configuration value in the API as well as the UI.

  • Element Details

    • title

      Returns:
      title of properties
      Default:
      ""
    • description

      Returns:
      Description of properties
      Default:
      ""
    • format

      Returns:
      Format for String properties
      Default:
      UNSPECIFIED
    • defaultValue

      @Nullable @Nullable String defaultValue
      Returns:
      Default value of properties
      Default:
      ""
    • multipleOf

      double multipleOf
      Returns:
      MultipleOf value for Number properties
      Default:
      0.0
    • numberMin

      double numberMin
      Returns:
      Minimum value for Number properties
      Default:
      4.9E-324
    • numberMax

      double numberMax
      Returns:
      Maximum value for Number properties
      Default:
      1.7976931348623157E308
    • stringMinLength

      int stringMinLength
      Returns:
      Minimum length for String properties
      Default:
      0
    • stringMaxLength

      int stringMaxLength
      Returns:
      Maximum length for String properties
      Default:
      2147483647
    • stringPattern

      @Nullable @Nullable String stringPattern
      Returns:
      Pattern for String properties
      Default:
      ""
    • enumDisplayValues

      String @NotNull [] enumDisplayValues
      Use this on enum types if you wish to override the default display-names for a given enum value
      Returns:
      the displayed values for the enum
      Default:
      {}
    • required

      boolean required
      Returns:
      boolean indicating whether the property must be set and may not be null
      Default:
      false
    • ignore

      boolean ignore
      Ignore field/ method during the process of generation of json schema
      Returns:
      true: the field/method will not be regarded when json are generated. false: They are part of the json generation.
      Default:
      false
    • arrayMinItems

      int arrayMinItems
      Returns:
      minimum items in array
      Default:
      0
    • arrayMaxItems

      int arrayMaxItems
      Returns:
      maximum items in array
      Default:
      2147483647
    • readOnly

      boolean readOnly
      Returns:
      field is read only via API
      Default:
      false
    • writeOnly

      boolean writeOnly
      Returns:
      Field is write only via API
      Default:
      false
    • arrayUniqueItems

      boolean arrayUniqueItems
      Returns:
      array can only contain unique items, no duplicates
      Default:
      false
    • allowedValues

      String @NotNull [] allowedValues
      Default:
      {}
    • customAttributes

      Returns:
      custom attributes added to schema info
      Default:
      {}