com.github.fge.jsonschema.format.common
Class EmailAttribute
java.lang.Object
com.github.fge.jsonschema.format.AbstractFormatAttribute
com.github.fge.jsonschema.format.common.EmailAttribute
- All Implemented Interfaces:
- FormatAttribute
public final class EmailAttribute
- extends AbstractFormatAttribute
Validator for the 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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static FormatAttribute getInstance()
validate
public void validate(ProcessingReport report,
FullData data)
throws ProcessingException
- Description copied from interface:
FormatAttribute
- Validate the instance against this format attribute
- Parameters:
report
- the report to usedata
- the validation data
- Throws:
ProcessingException
- an exception occurs (normally, never for a
format attribute)
Copyright © 2014. All Rights Reserved.