org.hibernate.validator.constraints

## Annotation Type Email

-     @Documented
      @Constraint(validatedBy={})
      @Target(value={METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER})
      @Retention(value=RUNTIME)
      @Pattern(regexp="")
      public @interface Email

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

- - ### Optional Element Summary

    Optional Elements
    Modifier and Type | Optional Element and Description
    --- | ---
    `Pattern.Flag[]` | `flags`
    `Class<?>[]` | `groups`
    `String` | `message`
    `Class<? extends Payload>[]` | `payload`
    `String` | `regexp`

- - ### Element Detail

    - #### message

          public abstract String message

      Default:
        "{org.hibernate.validator.constraints.Email.message}"

    - #### groups

          public abstract Class<?>[] groups

      Default:
        {}

    - #### payload

          public abstract Class<? extends Payload>[] payload

      Default:
        {}

    - #### regexp

          public abstract String regexp

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

    - #### flags

          public abstract Pattern.Flag[] flags

      Returns:
        used in combination with `regexp()` in order to specify a regular expression option
      Default:
        {}

Copyright © 2007-2014 Red Hat, Inc. All Rights Reserved