Package io.dropwizard.validation
Annotation Type ValidationMethod
-
@Target({TYPE,ANNOTATION_TYPE,METHOD}) @Retention(RUNTIME) @Constraint(validatedBy=MethodValidator.class) @Documented public @interface ValidationMethod
Validates a bean predicate method as returning true. Bean predicates must be of the formisSomething
or they'll be silently ignored.
-
-
Element Detail
-
message
String message
The validation message for this constraint.- Returns:
- the message
- Default:
- "is not valid"
-
-
-
groups
Class<?>[] groups
The groups the constraint belongs to.- Returns:
- an array of classes representing the groups
- Default:
- {}
-
-
-
payload
Class<? extends javax.validation.Payload>[] payload
The payloads of this constraint.- Returns:
- the array of payload classes
- Default:
- {}
-
-