@Target(value={METHOD,FIELD,PARAMETER}) @Retention(value=RUNTIME) @Constraint(validatedBy=EmailValidator.class) public @interface Email
| Modifier and Type | Optional Element and Description |
|---|---|
Class<?>[] |
groups
Returns the validation groups for which this constraint should be checked.
|
String |
message
Returns the message key to render for errors.
|
Class<? extends javax.validation.Payload>[] |
payload
Returns the constraint payload.
|
public abstract String message
public abstract Class<?>[] groups
public abstract Class<? extends javax.validation.Payload>[] payload
Copyright © 2018–2019 Blazebit. All rights reserved.