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<com.github.fge.jackson.jsonpointer.JsonPointer> pointers,
com.github.fge.msgsimple.bundle.MessageBundle bundle,
ProcessingReport report,
SchemaTree tree)
Check the syntax for this keyword
|
EnumSet<com.github.fge.jackson.NodeType> |
getValidTypes() |
EnumSet<com.github.fge.jackson.NodeType> getValidTypes()
void checkSyntax(Collection<com.github.fge.jackson.jsonpointer.JsonPointer> pointers, com.github.fge.msgsimple.bundle.MessageBundle bundle, ProcessingReport report, SchemaTree tree) throws ProcessingException
pointers
- the list of JSON Pointers to fill (see description)bundle
- the message bundle to usereport
- the processing report to usetree
- the schemaProcessingException
- an error is detected, and the report is
configured to throw an exception on error.Copyright © 2016. All rights reserved.