play.data.validation
Annotation Type Constraints.ValidateWith
@Target(value=FIELD)
@Retention(value=RUNTIME)
@Constraint(validatedBy=Constraints.ValidateWithValidator.class)
public static @interface Constraints.ValidateWith
Defines a custom validator.
Optional Element Summary |
java.lang.Class<?>[] |
groups
|
java.lang.String |
message
|
java.lang.Class<? extends javax.validation.Payload>[] |
payload
|
value
public abstract java.lang.Class<? extends Constraints.Validator> value
message
public abstract java.lang.String message
- Default:
- "error.invalid"
groups
public abstract java.lang.Class<?>[] groups
- Default:
- {}
payload
public abstract java.lang.Class<? extends javax.validation.Payload>[] payload
- Default:
- {}