Annotation Type EnumKeyValueConfiguration
-
@Target(FIELD) @Retention(RUNTIME) @Inherited @Documented public @interface EnumKeyValueConfigurationDefines 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.java.lang.StringexampleValueAn example value.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.StringcardinalityThe cardinality expression for an entry.EnumKeyValueConfiguration.DataTypedataTypeThe configuration value data type.java.lang.StringdefaultValueThe default value.booleanisConfidentialDetermines whether the configuration value is confidential.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
EnumKeyValueConfiguration.DataType dataType
The configuration value data type.- Returns:
- The configuration value data type..
- Default:
- com.github.toolarium.enumeration.configuration.annotation.EnumKeyValueConfiguration.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
1..1(min = 1 and max = 1). - The min value is optional and can be ignored, e.g.
5(this corresponds to1..5) - If the max has no limit it can be defined as
*or1..* - If the max has no limit and its optional it can be defined as
0..*
- Returns:
- The cardinality expression.
- Default:
- "1..1"
- If the cardinality is empty (=blank string), it must be interpreted as
-
-