com.github.fge.jsonschema.processors.data
Class SchemaContext

java.lang.Object
  extended by 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)

Constructor Summary
SchemaContext(FullData data)
           
SchemaContext(SchemaTree schema, NodeType instanceType)
           
 
Method Summary
 NodeType getInstanceType()
           
 SchemaTree getSchema()
           
 ProcessingMessage newMessage()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchemaContext

public SchemaContext(FullData data)

SchemaContext

public SchemaContext(SchemaTree schema,
                     NodeType instanceType)
Method Detail

getSchema

public SchemaTree getSchema()

getInstanceType

public NodeType getInstanceType()

newMessage

public ProcessingMessage newMessage()
Specified by:
newMessage in interface MessageProvider