public final class EmailAttribute extends AbstractFormatAttribute
email
format attribute.
Important note: the basis for email format validation is RFC 5322. The RFC mandates that
email addresses have a domain part. However, that domain part may consist of
a single domain name component. As such, foo@bar
is considered valid.
Modifier and Type | Method and Description |
---|---|
static FormatAttribute |
getInstance() |
void |
validate(com.github.fge.jsonschema.report.ProcessingReport report,
FullData data)
Validate the instance against this format attribute
|
newMsg, supportedTypes
public static FormatAttribute getInstance()
public void validate(com.github.fge.jsonschema.report.ProcessingReport report, FullData data) throws com.github.fge.jsonschema.exceptions.ProcessingException
FormatAttribute
report
- the report to usedata
- the validation datacom.github.fge.jsonschema.exceptions.ProcessingException
- an exception occurs (normally, never for a
format attribute)Copyright © 2014. All Rights Reserved.