Package io.avaje.validation.constraints
Annotation Interface Email
@Target({METHOD,FIELD,ANNOTATION_TYPE,PARAMETER,TYPE_USE})
@Retention(RUNTIME)
@Repeatable(List.class)
@Documented
public @interface Email
The string has to be a well-formed email address. Exact semantics of what makes up a valid email
address are left to the provided Email Annotation ValidationAdapter providers. Accepts
CharSequence.
null elements are considered valid.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interfaceDefines severalEmailannotations on the same element. -
Optional Element Summary
Optional Elements
-
Element Details
-
message
String message- Default:
"{avaje.Email.message}"
-
groups
Class<?>[] groups- Default:
{}
-
regexp
String regexpAn additional regular expression the annotated element must match. The default is any string ('.*')- Default:
".*"
-
flags
RegexFlag[] flagsUsed in combination withregexp()in order to specify a regular expression option- Default:
{}
-