public abstract class AbstractDateFormatAttribute extends FormatAttribute
Joda Time is used for
date and time parsing: it can handle all defined formats, and catches more
errors than the standard JDK's SimpleDateFormat
does.
What's more, unlike SimpleDateFormat
, Joda Time's
DateTimeFormatter
is thread-safe.
Modifier | Constructor and Description |
---|---|
protected |
AbstractDateFormatAttribute(String fmt,
String desc)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
checkValue(String fmt,
ValidationReport report,
JsonNode value)
Abstract method implemented by all attributes
|
newMsg, validate
public final 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.