org.eel.kitchen.jsonschema.format
Class AbstractDateFormatSpecifier

java.lang.Object
  extended by org.eel.kitchen.jsonschema.format.FormatSpecifier
      extended by 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.


Constructor Summary
protected AbstractDateFormatSpecifier(String fmt, String desc)
          Constructor
 
Method Summary
 void checkValue(ValidationReport report, JsonNode instance)
           
 
Methods inherited from class org.eel.kitchen.jsonschema.format.FormatSpecifier
validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractDateFormatSpecifier

protected AbstractDateFormatSpecifier(String fmt,
                                      String desc)
Constructor

Parameters:
fmt - The date format
desc - the description of the date format
Method Detail

checkValue

public final void checkValue(ValidationReport report,
                             JsonNode instance)


Copyright © 2012. All Rights Reserved.