public abstract class DependenciesSyntaxChecker extends AbstractSyntaxChecker
dependencies
The validation check also fills the JSON Pointer list with the appropriate paths when schema dependencies are encountered.
Modifier and Type | Field and Description |
---|---|
protected EnumSet<com.github.fge.jackson.NodeType> |
dependencyTypes
Valid types for one dependency value
|
protected static com.google.common.base.Equivalence<com.fasterxml.jackson.databind.JsonNode> |
EQUIVALENCE
JSON Schema equivalence
|
keyword
Modifier | Constructor and Description |
---|---|
protected |
DependenciesSyntaxChecker(com.github.fge.jackson.NodeType... depTypes)
Protected constructor
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
checkDependency(ProcessingReport report,
com.github.fge.msgsimple.bundle.MessageBundle bundle,
String name,
SchemaTree tree)
Check one dependency which is not a schema dependency
|
protected void |
checkValue(Collection<com.github.fge.jackson.jsonpointer.JsonPointer> pointers,
com.github.fge.msgsimple.bundle.MessageBundle bundle,
ProcessingReport report,
SchemaTree tree)
Method which all syntax checkers extending this class must implement
|
checkSyntax, getNode, getValidTypes, newMsg
protected static final com.google.common.base.Equivalence<com.fasterxml.jackson.databind.JsonNode> EQUIVALENCE
protected final EnumSet<com.github.fge.jackson.NodeType> dependencyTypes
protected DependenciesSyntaxChecker(com.github.fge.jackson.NodeType... depTypes)
depTypes
- valid types for one dependency valueprotected final void checkValue(Collection<com.github.fge.jackson.jsonpointer.JsonPointer> pointers, com.github.fge.msgsimple.bundle.MessageBundle bundle, ProcessingReport report, SchemaTree tree) throws ProcessingException
AbstractSyntaxChecker
At this point, it is known that the keyword's value has at least the correct type.
checkValue
in class AbstractSyntaxChecker
pointers
- the list of JSON Pointers to fill (see description)bundle
- the message bundle to usereport
- the processing report to usetree
- the schemaInvalidSchemaException
- keyword is invalidProcessingException
protected abstract void checkDependency(ProcessingReport report, com.github.fge.msgsimple.bundle.MessageBundle bundle, String name, SchemaTree tree) throws ProcessingException
report
- the processing report to usebundle
- the message bundle to usename
- the property dependency nametree
- the schemaInvalidSchemaException
- keyword is invalidProcessingException
Copyright © 2016. All rights reserved.