Annotation Interface Email


@Target({ANNOTATION_TYPE,PARAMETER,TYPE_USE}) @Retention(RUNTIME) @Documented @API(status=MAINTAINED, since="1.4.0") public @interface Email
Constrain generated strings to be valid email addresses. By default, only addresses with unquoted local part and domain hosts are generated (e.g. me@myhost.com), because many - if not most - applications and web forms only accept those.

Applies to parameters of type String that are also annotated with @ForAll.

See Also:
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Are hosts with ipv4 addresses allowed.
    boolean
    Are hosts with ipv6 addresses allowed.
    boolean
    Are quoted local parts allowed.
  • Element Details

    • ipv6Host

      boolean ipv6Host
      Are hosts with ipv6 addresses allowed.
      Default:
      false
    • ipv4Host

      boolean ipv4Host
      Are hosts with ipv4 addresses allowed.
      Default:
      false
    • quotedLocalPart

      boolean quotedLocalPart
      Are quoted local parts allowed.
      Default:
      false