public class IPV6Validator extends IPAddressValidator implements FormatValidator
NONE| Constructor and Description |
|---|
IPV6Validator() |
| Modifier and Type | Method and Description |
|---|---|
String |
formatName()
Provides the name of this format.
|
com.google.common.base.Optional<String> |
validate(String subject)
Implementation-specific validation of
subject. |
asInetAddress, checkIpAddresspublic com.google.common.base.Optional<String> validate(String subject)
FormatValidatorsubject. If a validation error occurs then
implementations should return a programmer-friendly error message as a String wrapped in an
Optional. If the validation succeeded then an empty optional should be
returned.validate in interface FormatValidatorsubject - the string to be validatedOptional wrapping the error message if a validation error occured, otherwise
an empty optional.public String formatName()
FormatValidator
Unless specified otherwise the SchemaLoader will use this
name to recognize string schemas using this format.
The default implementation of this method returns "unnamed-format". It is strongly
recommended for implementations to give a more meaningful name by overriding this method.
formatName in interface FormatValidatorCopyright © 2017 Everit Kft.. All rights reserved.