public abstract class AbstractSyntaxChecker extends Object implements SyntaxChecker
Modifier and Type | Field and Description |
---|---|
protected String |
keyword |
protected EnumSet<NodeType> |
types |
Modifier | Constructor and Description |
---|---|
protected |
AbstractSyntaxChecker(String keyword,
NodeType first,
NodeType... other) |
Modifier and Type | Method and Description |
---|---|
void |
checkSyntax(Collection<JsonPointer> pointers,
ProcessingReport report,
JsonSchemaTree tree) |
protected abstract void |
checkValue(Collection<JsonPointer> pointers,
ProcessingReport report,
JsonSchemaTree tree) |
protected JsonNode |
getNode(JsonSchemaTree tree) |
EnumSet<NodeType> |
getValidTypes() |
protected <T> ProcessingMessage |
newMsg(JsonSchemaTree tree,
T msg) |
public final EnumSet<NodeType> getValidTypes()
getValidTypes
in interface SyntaxChecker
public final void checkSyntax(Collection<JsonPointer> pointers, ProcessingReport report, JsonSchemaTree tree) throws ProcessingException
checkSyntax
in interface SyntaxChecker
ProcessingException
protected abstract void checkValue(Collection<JsonPointer> pointers, ProcessingReport report, JsonSchemaTree tree) throws ProcessingException
ProcessingException
protected final <T> ProcessingMessage newMsg(JsonSchemaTree tree, T msg)
protected final JsonNode getNode(JsonSchemaTree tree)
Copyright © 2013. All Rights Reserved.