Module com.github.rvesse.airline
Annotation Type AllowedValues
-
@Retention(RUNTIME) @Target(FIELD) public @interface AllowedValuesAnnotation that marks that the option/arguments are restricted to a given set of valuesUnlike
AllowedRawValuesthis restriction works against the values after they have been converted into Java objects and thus can provide more accurate restriction thanAllowedValuescan provide. The trade off is that enforcing this restriction is marginally more complex because it requires parsing the allowed values.
-
-
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 values
-