Annotation Interface FieldContext


@Retention(RUNTIME) @Target(FIELD) public @interface FieldContext
Stores field context to validate based on requirement or value constraints.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Category to group settings.
    boolean
    Whether the setting is deprecated or not.
    Documentation of the settings.
    boolean
    allow field to be updated dynamically.
    int
    binds character length of text.
    long
    binds numeric value's upper bound.
    long
    binds numeric value's lower bound.
    boolean
    checks field value is required.
  • Element Details

    • required

      boolean required
      checks field value is required. By default field is mandatory false.
      Returns:
      true if attribute is required else returns false
      Default:
      false
    • minValue

      long minValue
      binds numeric value's lower bound.
      Returns:
      minimum value of the field
      Default:
      -9223372036854775808L
    • maxValue

      long maxValue
      binds numeric value's upper bound.
      Returns:
      maximum value of the field
      Default:
      9223372036854775807L
    • maxCharLength

      int maxCharLength
      binds character length of text.
      Returns:
      character length of field
      Default:
      2147483647
    • dynamic

      boolean dynamic
      allow field to be updated dynamically.
      Returns:
      Default:
      false
    • category

      String category
      Category to group settings.
      Returns:
      category name
      Default:
      ""
    • doc

      String doc
      Documentation of the settings.
      Returns:
      the documentation of the settings.
      Default:
      ""
    • deprecated

      boolean deprecated
      Whether the setting is deprecated or not.
      Returns:
      true if the setting is deprecated, otherwise false.
      Default:
      false