Module com.github.rvesse.airline
Annotation Type AllowedRawValues
-
@Retention(RUNTIME) @Target(FIELD) public @interface AllowedRawValuesAnnotation 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
AllowedValuesannotation 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[]allowedValuesIf provided restricts the values for the option to the given set of valuesbooleanignoreCaseIf true the case onallowedValues()is ignoredjava.lang.StringlocaleThe locale used for comparisons
-
-
-
-
ignoreCase
boolean ignoreCase
If true the case onallowedValues()is ignored- Returns:
- Ignore case
- Default:
- false
-
-