Annotation Interface FieldContext
Stores field context to validate based on requirement or value constraints.
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionCategory to group settings.booleanWhether the setting is deprecated or not.Documentation of the settings.booleanallow field to be updated dynamically.intbinds character length of text.longbinds numeric value's upper bound.longbinds numeric value's lower bound.booleanchecks field value is required.
-
Element Details
-
required
boolean requiredchecks field value is required. By default field is mandatory false.- Returns:
- true if attribute is required else returns false
- Default:
- false
-
minValue
long minValuebinds numeric value's lower bound.- Returns:
- minimum value of the field
- Default:
- -9223372036854775808L
-
maxValue
long maxValuebinds numeric value's upper bound.- Returns:
- maximum value of the field
- Default:
- 9223372036854775807L
-
maxCharLength
int maxCharLengthbinds character length of text.- Returns:
- character length of field
- Default:
- 2147483647
-
dynamic
boolean dynamicallow field to be updated dynamically.- Returns:
- Default:
- false
-
category
String categoryCategory to group settings.- Returns:
- category name
- Default:
- ""
-
doc
String docDocumentation of the settings.- Returns:
- the documentation of the settings.
- Default:
- ""
-
deprecated
boolean deprecatedWhether the setting is deprecated or not.- Returns:
- true if the setting is deprecated, otherwise false.
- Default:
- false
-