public interface FormatAttribute
Modifier and Type | Method and Description |
---|---|
EnumSet<com.github.fge.jsonschema.util.NodeType> |
supportedTypes()
Return the set of JSON Schema types this format attribute applies to
|
void |
validate(com.github.fge.jsonschema.report.ProcessingReport report,
FullData data)
Validate the instance against this format attribute
|
EnumSet<com.github.fge.jsonschema.util.NodeType> supportedTypes()
It is important that this method be implemented correctly. Remind that validation for a given format attribute and an instance which type is not supported always succeeds.
void validate(com.github.fge.jsonschema.report.ProcessingReport report, FullData data) throws com.github.fge.jsonschema.exceptions.ProcessingException
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.