public abstract class DateFormatAttribute extends AbstractFormatAttribute
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.
Furthermore (and more importantly), unlike SimpleDateFormat
, Joda
Time's DateTimeFormatter
is thread-safe!
Modifier | Constructor and Description |
---|---|
protected |
DateFormatAttribute(String fmt,
String format) |
Modifier and Type | Method and Description |
---|---|
void |
validate(com.github.fge.jsonschema.report.ProcessingReport report,
FullData data)
Validate the instance against this format attribute
|
newMsg, supportedTypes
public final void validate(com.github.fge.jsonschema.report.ProcessingReport report, FullData data) throws com.github.fge.jsonschema.exceptions.ProcessingException
FormatAttribute
report
- the report to usedata
- the validation datacom.github.fge.jsonschema.exceptions.ProcessingException
- an exception occurs (normally, never for a
format attribute)Copyright © 2014. All Rights Reserved.