com.github.fge.jsonschema.processors.data
Class SchemaContext
java.lang.Object
com.github.fge.jsonschema.processors.data.SchemaContext
- All Implemented Interfaces:
- MessageProvider
public final class SchemaContext
- extends Object
- implements MessageProvider
Input for both a SchemaDigester
and a ValidationChain
This is essentially a FullData
which only retains the type of the
instance to validate instead of the full instance.
- See Also:
NodeType.getNodeType(JsonNode)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SchemaContext
public SchemaContext(FullData data)
SchemaContext
public SchemaContext(SchemaTree schema,
NodeType instanceType)
getSchema
public SchemaTree getSchema()
getInstanceType
public NodeType getInstanceType()
newMessage
public ProcessingMessage newMessage()
- Specified by:
newMessage
in interface MessageProvider