@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
The groups the constraint belongs to.
|
boolean |
ignoreCase
Whether or not to ignore case.
|
boolean |
ignoreWhitespace
Whether or not to ignore leading and trailing whitespace.
|
String |
message
The validation message for this constraint.
|
Class<? extends javax.validation.Payload>[] |
payload
The payloads of this constraint.
|
public abstract String[] value
public abstract String message
public abstract Class<?>[] groups
public abstract Class<? extends javax.validation.Payload>[] payload
Copyright © 2023. All rights reserved.