Annotation Type EnumValueConfiguration
-
@Target(FIELD) @Retention(RUNTIME) @Inherited @Documented public @interface EnumValueConfigurationDefines the enumeration as a value based configuration.
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.StringdescriptionDefines the description of the enumeration configuration.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.StringcardinalityThe cardinality expression for an entry.EnumValueConfiguration.DataTypedataTypeThe configuration value data type.java.lang.StringdefaultValueThe default value.java.lang.StringexampleValueAn example value.booleanisConfidentialDetermines whether the configuration value is confidential.booleanisOptionalDetermines whether the configuration is optional.java.lang.StringmaxValueThe maximal value, e.g. by a string it corresponds to the maximal length of the string.java.lang.StringminValueThe minimum value, e.g. by a string it corresponds to the minimum length of the string.java.lang.StringvalidFromDefines the valid from date of the enumeration configuration.java.lang.StringvalidTillDefines the valid till date of the enumeration configuration.
-
-
-
-
dataType
EnumValueConfiguration.DataType dataType
The configuration value data type.- Returns:
- The configuration value data type..
- Default:
- com.github.toolarium.enumeration.configuration.annotation.EnumValueConfiguration.DataType.STRING
-
-
-
cardinality
java.lang.String cardinality
The cardinality expression for an entry. If there is more than one element, the content of the representation corresponds to a JSON array, e.g.
[ "My string array", "with 3", "elements (cardinality = 3)" ]. This means the cardinality can be combined with the different data types.The cardinality is defined as a range:
[min]..[max]:- If the cardinality is empty (=blank string), it must be interpreted as
0..1(min = 0 and max = 1). - The min value is optional and can be ignored, e.g.
5(this corresponds to0..5) - If the max has no limit it can be defined as
*, e.g.0..*
- Returns:
- The cardinality expression.
- Default:
- "0..1"
- If the cardinality is empty (=blank string), it must be interpreted as
-
-
-
isOptional
boolean isOptional
Determines whether the configuration is optional. If the default value is empty, no configuration value is available. An empty configuration value with non-optional parameter marks a configuration value that must be defined.- Returns:
- Define if the value is optional.
- Default:
- false
-
-