Module com.github.rvesse.airline
Annotation Type AllowedRawValues
-
@Retention(RUNTIME) @Target(FIELD) public @interface AllowedRawValues
Annotation that marks that the option/arguments are restricted to a given set of raw string valuesIf you instead want to limit values to be in a set of parsed values then you should use the
AllowedValues
annotation instead. However for simple use cases this restriction will always be more efficient.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.String[]
allowedValues
If provided restricts the values for the option to the given set of valuesboolean
ignoreCase
If true the case onallowedValues()
is ignoredjava.lang.String
locale
The locale used for comparisons
-
-
-
-
ignoreCase
boolean ignoreCase
If true the case onallowedValues()
is ignored- Returns:
- Ignore case
- Default:
- false
-
-