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

java.lang.Object
  extended by com.github.fge.jsonschema.processors.data.SchemaContext
All Implemented Interfaces:
com.github.fge.jsonschema.core.report.MessageProvider

public final class SchemaContext
extends Object
implements com.github.fge.jsonschema.core.report.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(com.github.fge.jsonschema.core.tree.SchemaTree schema, NodeType instanceType)
           
 
Method Summary
 NodeType getInstanceType()
           
 com.github.fge.jsonschema.core.tree.SchemaTree getSchema()
           
 com.github.fge.jsonschema.core.report.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(com.github.fge.jsonschema.core.tree.SchemaTree schema,
                     NodeType instanceType)
Method Detail

getSchema

public com.github.fge.jsonschema.core.tree.SchemaTree getSchema()

getInstanceType

public NodeType getInstanceType()

newMessage

public com.github.fge.jsonschema.core.report.ProcessingMessage newMessage()
Specified by:
newMessage in interface com.github.fge.jsonschema.core.report.MessageProvider