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

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

@Immutable
public final class FullData
extends Object
implements MessageProvider

Validation data for a validation processor

The included data are the schema (in the shape of a SchemaTree and the instance to validate (in the shape of a JsonTree.

The ProcessingMessage template generated contains information about both the schema and instance.


Constructor Summary
FullData(SchemaTree schema)
           
FullData(SchemaTree schema, JsonTree instance)
           
 
Method Summary
 JsonTree getInstance()
           
 SchemaTree getSchema()
           
 ProcessingMessage newMessage()
           
 FullData withInstance(JsonTree instance)
          Return a new full data with another instance
 FullData withSchema(SchemaTree schema)
          Return a new full data with another schema
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FullData

public FullData(SchemaTree schema,
                JsonTree instance)

FullData

public FullData(SchemaTree schema)
Method Detail

getSchema

public SchemaTree getSchema()

getInstance

public JsonTree getInstance()

withSchema

public FullData withSchema(SchemaTree schema)
Return a new full data with another schema

Parameters:
schema - the schema
Returns:
a new full data instance

withInstance

public FullData withInstance(JsonTree instance)
Return a new full data with another instance

Parameters:
instance - the new instance
Returns:
a new full data instance

newMessage

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


Copyright © 2014. All Rights Reserved.