public final class EmailFormatSpecifier extends FormatSpecifier
email format specification.
Note: even though, stricto sensu, email addresses with no domain part ARE valid, for practical reasons, this implementation chooses to mark these emails as invalid,
| Modifier and Type | Field and Description |
|---|---|
private static FormatSpecifier |
instance |
| Modifier | Constructor and Description |
|---|---|
private |
EmailFormatSpecifier() |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
checkValue(List<String> messages,
JsonNode instance)
Abstract method implemented by all specifiers
|
static FormatSpecifier |
getInstance() |
validateprivate static final FormatSpecifier instance
public static FormatSpecifier getInstance()
void checkValue(List<String> messages, JsonNode instance)
FormatSpecifierIt is only called if the value type is one expected by the
specifier, see FormatSpecifier.validate(List, JsonNode).
checkValue in class FormatSpecifiermessages - the list of messages to fillinstance - the value to validateCopyright © 2012. All Rights Reserved.