@Immutable public final class FullData extends Object implements MessageProvider
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 and Description |
---|
FullData(SchemaTree schema) |
FullData(SchemaTree schema,
JsonTree instance) |
Modifier and Type | Method and Description |
---|---|
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
|
public FullData(SchemaTree schema, JsonTree instance)
public FullData(SchemaTree schema)
public SchemaTree getSchema()
public JsonTree getInstance()
public FullData withSchema(SchemaTree schema)
schema
- the schemapublic FullData withInstance(JsonTree instance)
instance
- the new instancepublic ProcessingMessage newMessage()
newMessage
in interface MessageProvider
Copyright © 2013. All Rights Reserved.