|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.github.fge.jsonschema.core.keyword.syntax.checkers.AbstractSyntaxChecker
com.github.fge.jsonschema.core.keyword.syntax.checkers.helpers.DependenciesSyntaxChecker
public abstract class DependenciesSyntaxChecker
Helper class for syntax checking of draft v4 and v3 dependencies
The validation check also fills the JSON Pointer list with the appropriate paths when schema dependencies are encountered.
| Field Summary | |
|---|---|
protected EnumSet<NodeType> |
dependencyTypes
Valid types for one dependency value |
protected static Equivalence<JsonNode> |
EQUIVALENCE
JSON Schema equivalence |
| Fields inherited from class com.github.fge.jsonschema.core.keyword.syntax.checkers.AbstractSyntaxChecker |
|---|
keyword |
| Constructor Summary | |
|---|---|
protected |
DependenciesSyntaxChecker(NodeType... depTypes)
Protected constructor |
| Method Summary | |
|---|---|
protected abstract void |
checkDependency(ProcessingReport report,
MessageBundle bundle,
String name,
SchemaTree tree)
Check one dependency which is not a schema dependency |
protected void |
checkValue(Collection<JsonPointer> pointers,
MessageBundle bundle,
ProcessingReport report,
SchemaTree tree)
Method which all syntax checkers extending this class must implement |
| Methods inherited from class com.github.fge.jsonschema.core.keyword.syntax.checkers.AbstractSyntaxChecker |
|---|
checkSyntax, getNode, getValidTypes, newMsg |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final Equivalence<JsonNode> EQUIVALENCE
protected final EnumSet<NodeType> dependencyTypes
| Constructor Detail |
|---|
protected DependenciesSyntaxChecker(NodeType... depTypes)
depTypes - valid types for one dependency value| Method Detail |
|---|
protected final void checkValue(Collection<JsonPointer> pointers,
MessageBundle bundle,
ProcessingReport report,
SchemaTree tree)
throws ProcessingException
AbstractSyntaxCheckerAt this point, it is known that the keyword's value has at least the correct type.
checkValue in class AbstractSyntaxCheckerpointers - the list of JSON Pointers to fill (see description)bundle - the message bundle to usereport - the processing report to usetree - the schema
InvalidSchemaException - keyword is invalid
ProcessingException
protected abstract void checkDependency(ProcessingReport report,
MessageBundle bundle,
String name,
SchemaTree tree)
throws ProcessingException
report - the processing report to usebundle - the message bundle to usename - the property dependency nametree - the schema
InvalidSchemaException - keyword is invalid
ProcessingException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||