@Retention(value=RUNTIME) @Target(value=FIELD) public @interface AllowedValues
Unlike AllowedRawValues this restriction works against the values
after they have been converted into Java objects and thus can provide more
accurate restriction than AllowedValues can provide. The trade off is
that enforcing this restriction is marginally more complex because it
requires parsing the allowed values.
| Modifier and Type | Optional Element and Description |
|---|---|
String[] |
allowedValues
If provided restricts the values for the option to the given set of
values
|
public abstract String[] allowedValues
Copyright © 2012–2022. All rights reserved.