Annotation Type Email
@Documented
@Constraint(validatedBy={})
@Target({METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER,TYPE_USE})
@Retention(RUNTIME)
@Repeatable(List.class)
@ReportAsSingleViolation
@Pattern(regexp="")
@Deprecated
public @interface Email
Deprecated.
The string has to be a well-formed email address.
- Author:
- Emmanuel Bernard, Hardy Ferentschik
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic @interface
Deprecated.Defines several@Email
annotations on the same element. -
Optional Element Summary
-
Element Details
-
message
String messageDeprecated.- Default:
- "{org.hibernate.validator.constraints.Email.message}"
-
groups
Class<?>[] groupsDeprecated.- Default:
- {}
-
payload
Deprecated.- Default:
- {}
-
regexp
@OverridesAttribute(constraint=jakarta.validation.constraints.Pattern.class, name="regexp") String regexpDeprecated.- Returns:
- an additional regular expression the annotated string must match. The default is any string ('.*')
- Default:
- ".*"
-
flags
@OverridesAttribute(constraint=jakarta.validation.constraints.Pattern.class, name="flags") Pattern.Flag[] flagsDeprecated.- Returns:
- used in combination with
regexp()
in order to specify a regular expression option
- Default:
- {}
-
Email
constraint instead