org.eel.kitchen.jsonschema.format
Class AbstractDateFormatSpecifier
java.lang.Object
org.eel.kitchen.jsonschema.format.FormatSpecifier
org.eel.kitchen.jsonschema.format.AbstractDateFormatSpecifier
- Direct Known Subclasses:
- DateFormatSpecifier, DateTimeFormatSpecifier, TimeFormatSpecifier
public abstract class AbstractDateFormatSpecifier
- extends FormatSpecifier
Specialized format validator for date/time checking
Joda is used for date and
time parsing, and more specifically
DateTimeFormatter.parseDateTime(String): it can handle all defined
formats, and catches more errors than SimpleDateFormat does.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractDateFormatSpecifier
protected AbstractDateFormatSpecifier(String fmt,
String desc)
- Constructor
- Parameters:
fmt - The date formatdesc - the description of the date format
checkValue
public final void checkValue(ValidationReport report,
JsonNode instance)
Copyright © 2012. All Rights Reserved.