com.github.fge.jsonschema.format.draftv3
Class UTCMillisecAttribute
java.lang.Object
com.github.fge.jsonschema.format.AbstractFormatAttribute
com.github.fge.jsonschema.format.draftv3.UTCMillisecAttribute
- All Implemented Interfaces:
- FormatAttribute
public final class UTCMillisecAttribute
- extends AbstractFormatAttribute
Validator for the utc-millisec
format attribute.
Note that there is no restriction on the number value at all. However,
this attributes perform extra checks and warns (ie, does not report
an error) in the following situations:
- the number is negative;
- the number, divided by 1000, is greater than 2^31 - 1.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static FormatAttribute getInstance()
validate
public void validate(ProcessingReport report,
FullData data)
throws ProcessingException
- Description copied from interface:
FormatAttribute
- Validate the instance against this format attribute
- Parameters:
report
- the report to usedata
- the validation data
- Throws:
ProcessingException
- an exception occurs (normally, never for a
format attribute)
Copyright © 2014. All Rights Reserved.