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.
use the standard Email constraint instead
The string has to be a well-formed email address.
Author:
Emmanuel Bernard, Hardy Ferentschik
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static @interface 
    Deprecated.
    Defines several @Email annotations on the same element.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    jakarta.validation.constraints.Pattern.Flag[]
    Deprecated.
     
    Class<?>[]
    Deprecated.
     
    Deprecated.
     
    Class<? extends jakarta.validation.Payload>[]
    Deprecated.
     
    Deprecated.
     
  • Element Details

    • message

      String message
      Deprecated.
      Default:
      "{org.hibernate.validator.constraints.Email.message}"
    • groups

      Class<?>[] groups
      Deprecated.
      Default:
      {}
    • payload

      Class<? extends jakarta.validation.Payload>[] payload
      Deprecated.
      Default:
      {}
    • regexp

      @OverridesAttribute(constraint=jakarta.validation.constraints.Pattern.class, name="regexp") String regexp
      Deprecated.
      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") jakarta.validation.constraints.Pattern.Flag[] flags
      Deprecated.
      Returns:
      used in combination with regexp() in order to specify a regular expression option
      Default:
      {}