public interface FormatAttribute
Modifier and Type | Method and Description |
---|---|
EnumSet<NodeType> |
supportedTypes()
Return the set of JSON Schema types this format attribute applies to
|
void |
validate(ProcessingReport report,
MessageBundle bundle,
FullData data)
Validate the instance against this format attribute
|
EnumSet<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(ProcessingReport report, MessageBundle bundle, FullData data) throws ProcessingException
report
- the report to usebundle
- the message bundle to usedata
- the validation dataProcessingException
- an exception occurs (normally, never for a
format attribute)