public final class IPV4FormatSpecifier extends FormatSpecifier
ip-address format specification, ie an IPv4 address
This uses Guava's InetAddresses to do the job.
| Modifier and Type | Field and Description |
|---|---|
private static FormatSpecifier |
instance |
private static int |
IPV4_LENGTH |
| Modifier | Constructor and Description |
|---|---|
private |
IPV4FormatSpecifier() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkValue(String fmt,
ValidationContext ctx,
ValidationReport report,
JsonNode value)
Abstract method implemented by all specifiers
|
static FormatSpecifier |
getInstance() |
newMsg, validateprivate static final FormatSpecifier instance
private static final int IPV4_LENGTH
public static FormatSpecifier getInstance()
public void checkValue(String fmt, ValidationContext ctx, ValidationReport report, JsonNode value)
FormatSpecifierIt is only called if the value type is one expected by the
specifier, see FormatSpecifier.validate(String, ValidationContext,
ValidationReport, JsonNode).
checkValue in class FormatSpecifierfmt - the format specifier namectx - the validation contextreport - the validation reportvalue - the value to validateCopyright © 2012. All Rights Reserved.