@Target(value={METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER,TYPE_USE}) @Retention(value=RUNTIME) @Documented @Constraint(validatedBy=OneOfValidator.class) public @interface OneOf
Modifier and Type | Required Element and Description |
---|---|
String[] |
value
The set of valid values.
|
Modifier and Type | Optional Element and Description |
---|---|
Class<?>[] |
groups |
boolean |
ignoreCase
Whether or not to ignore case.
|
boolean |
ignoreWhitespace
Whether or not to ignore leading and trailing whitespace.
|
String |
message |
Class<? extends javax.validation.Payload>[] |
payload |
Copyright © 2021. All rights reserved.