Annotationsschnittstelle 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.

Siehe auch:
  • Optionale Elemente - Übersicht

    Optionale Elemente
    Modifizierer und Typ
    Optionales Element
    Beschreibung
    boolean
    Are hosts with ipv4 addresses allowed.
    boolean
    Are hosts with ipv6 addresses allowed.
    boolean
    Are quoted local parts allowed.
  • Elementdetails

    • ipv6Host

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

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

      boolean quotedLocalPart
      Are quoted local parts allowed.
      Standard:
      false