Package net.jqwik.web.api
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
Modifizierer und TypOptionales ElementBeschreibungboolean
Are hosts with ipv4 addresses allowed.boolean
Are hosts with ipv6 addresses allowed.boolean
Are quoted local parts allowed.
-
Elementdetails
-
ipv6Host
boolean ipv6HostAre hosts with ipv6 addresses allowed.- Standard:
false
-
ipv4Host
boolean ipv4HostAre hosts with ipv4 addresses allowed.- Standard:
false
-
quotedLocalPart
boolean quotedLocalPartAre quoted local parts allowed.- Standard:
false
-