public final class UnixEpochFormatAttribute extends FormatAttribute
utc-millisec
format attribute.
As an extra step, this validator also ensures that the number in the
instance is not negative, and does not overflow: Java's System.currentTimeMillis()
may return a long, but internally the return code
is a signed 32-bit integer, therefore must not be greater than 2^31 - 1.
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.