public interface SyntaxChecker
This is a syntax checker for one keyword. As some keywords contain
subschemas, a list of JsonPointer
is also passed as an argument so
that the checker can instruct the syntax processor to also check these paths
after it is done.
Note that when a syntax checker is called on a schema, it is guaranteed that the keyword exists in the schema.
SyntaxProcessor
Modifier and Type | Method and Description |
---|---|
void |
checkSyntax(Collection<JsonPointer> pointers,
ProcessingReport report,
SchemaTree tree)
Check the syntax for this keyword
|
EnumSet<NodeType> |
getValidTypes() |
void checkSyntax(Collection<JsonPointer> pointers, ProcessingReport report, SchemaTree tree) throws ProcessingException
pointers
- the list of JSON Pointers to fill (see description)report
- the processing report to usetree
- the schemaProcessingException
- an error is detected, and the report is
configured to throw an exception on error.Copyright © 2013. All Rights Reserved.