public abstract class AbstractSyntaxChecker extends Object implements SyntaxChecker
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,
SchemaTree tree) |
protected abstract void |
checkValue(Collection<JsonPointer> pointers,
ProcessingReport report,
SchemaTree tree) |
protected JsonNode |
getNode(SchemaTree tree) |
EnumSet<NodeType> |
getValidTypes() |
protected <T> ProcessingMessage |
newMsg(SchemaTree tree,
T msg) |
protected final String keyword
public final EnumSet<NodeType> getValidTypes()
getValidTypes
in interface SyntaxChecker
public final void checkSyntax(Collection<JsonPointer> pointers, ProcessingReport report, SchemaTree tree) throws ProcessingException
checkSyntax
in interface SyntaxChecker
ProcessingException
protected abstract void checkValue(Collection<JsonPointer> pointers, ProcessingReport report, SchemaTree tree) throws ProcessingException
ProcessingException
protected final <T> ProcessingMessage newMsg(SchemaTree tree, T msg)
protected final JsonNode getNode(SchemaTree tree)
Copyright © 2013. All Rights Reserved.