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 SyntaxCheckerpublic final void checkSyntax(Collection<JsonPointer> pointers, ProcessingReport report, JsonSchemaTree tree) throws ProcessingException
checkSyntax in interface SyntaxCheckerProcessingExceptionprotected abstract void checkValue(Collection<JsonPointer> pointers, ProcessingReport report, JsonSchemaTree tree) throws ProcessingException
ProcessingExceptionprotected final <T> ProcessingMessage newMsg(JsonSchemaTree tree, T msg)
protected final JsonNode getNode(JsonSchemaTree tree)
Copyright © 2013. All Rights Reserved.