Top Description Inners Methods
javax.validation.constraints

public @Interface Email

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

The string has to be a well-formed email address. Exact semantics of what makes up a valid email address are left to Bean Validation providers. Accepts CharSequence.
Authors
Emmanuel Bernard, Hardy Ferentschik
Since
2.0

Nested and Inner Type Summary

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

Defines several @Email constraints 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 element 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

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 element must match. The default is any string ('.*')

javax.validation.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 constraints on the same element.
See Also
Email

Method Summary

Modifier and TypeMethod and Description
public Email[]
Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

valueback to summary
public Email[] value()