Annotation 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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interfacestatic enum -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionintintbooleanUse this on enum types if you wish to override the default display-names for a given enum valuebooleanIgnore field/ method during the process of generation of json schemadoubledoubledoublebooleanbooleanintintboolean
-
Element Details
-
title
- Returns:
- title of properties
- Default:
- ""
-
description
- Returns:
- Description of properties
- Default:
- ""
-
format
- Returns:
- Format for String properties
- Default:
- UNSPECIFIED
-
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
- Returns:
- Pattern for String properties
- Default:
- ""
-
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 ignoreIgnore 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
- Default:
- {}
-
customAttributes
ModuleConfigField.CustomAttribute @NotNull [] customAttributes- Returns:
- custom attributes added to schema info
- Default:
- {}
-