Top Description Inners Methods
org.hibernate.validator.constraints

public @Interface Email

extends Annotation
Annotations
@Documented
@Constraint
validatedBy:
@Target:METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE
@Retention:RUNTIME
@Repeatable:List
@ReportAsSingleViolation
@Pattern
regexp:
@Deprecated
Static Imports
java.lang.annotation.ElementType.ANNOTATION_TYPE, .ElementType.CONSTRUCTOR, .ElementType.FIELD, .ElementType.METHOD, .ElementType.PARAMETER, .ElementType.TYPE_USE, .RetentionPolicy.RUNTIME

Deprecated

use the standard jakarta.validation.constraints.Email constraint instead

The string has to be a well-formed email address.
Authors
Emmanuel Bernard, Hardy Ferentschik

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static @interface
Email.List

Defines several @Email annotations on the same element.

Method Summary

Modifier and TypeMethod and Description
public Pattern.Flag[]

Returns:

used in combination with regexp() in order to specify a regular expression option
flags
()

public Class<?>[]
public String
public Class<? extends Payload>[]
public String

Returns:

an additional regular expression the annotated string must match. The default is any string ('.*')
regexp
()

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

flagsback to summary
public Pattern.Flag[] flags()
Returns:Pattern.Flag[]

used in combination with regexp() in order to specify a regular expression option

Annotations
@OverridesAttribute
constraint:Pattern
name:flags
groupsback to summary
public Class<?>[] groups()
messageback to summary
public String message()
payloadback to summary
public Class<? extends Payload>[] payload()
regexpback to summary
public String regexp()
Returns:String

an additional regular expression the annotated string must match. The default is any string ('.*')

Annotations
@OverridesAttribute
constraint:Pattern
name:regexp
org.hibernate.validator.constraints back to summary

public @Interface Email.List

extends Annotation
Annotations
@Target:METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE
@Retention:RUNTIME
@Documented

Defines several @Email annotations on the same element.

Method Summary

Modifier and TypeMethod and Description
public Email[]
value()

Deprecated as a consequence of Email being deprecated.
Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

valueback to summary
public Email[] value()

Deprecated

as a consequence of Email being deprecated. See corresponding docs for further information.