public final class EmailFormatAttribute extends FormatAttribute
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 |
---|---|
void |
checkValue(String fmt,
ValidationReport report,
JsonNode value)
Abstract method implemented by all attributes
|
static FormatAttribute |
getInstance() |
newMsg, validate
public static FormatAttribute getInstance()
public void checkValue(String fmt, ValidationReport report, JsonNode value)
FormatAttribute
It is only called if the value type is one expected by the
attribute, see FormatAttribute.validate(String, ValidationReport, JsonNode)
.
checkValue
in class FormatAttribute
fmt
- the format attribute namereport
- the validation reportvalue
- the value to validateCopyright © 2013. All Rights Reserved.