@Immutable public final class FullData extends Object implements com.github.fge.jsonschema.report.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(com.github.fge.jsonschema.tree.SchemaTree schema) |
FullData(com.github.fge.jsonschema.tree.SchemaTree schema,
com.github.fge.jsonschema.tree.JsonTree instance) |
Modifier and Type | Method and Description |
---|---|
com.github.fge.jsonschema.tree.JsonTree |
getInstance() |
com.github.fge.jsonschema.tree.SchemaTree |
getSchema() |
com.github.fge.jsonschema.report.ProcessingMessage |
newMessage() |
FullData |
withInstance(com.github.fge.jsonschema.tree.JsonTree instance)
Return a new full data with another instance
|
FullData |
withSchema(com.github.fge.jsonschema.tree.SchemaTree schema)
Return a new full data with another schema
|
public FullData(com.github.fge.jsonschema.tree.SchemaTree schema, com.github.fge.jsonschema.tree.JsonTree instance)
public FullData(com.github.fge.jsonschema.tree.SchemaTree schema)
public com.github.fge.jsonschema.tree.SchemaTree getSchema()
public com.github.fge.jsonschema.tree.JsonTree getInstance()
public FullData withSchema(com.github.fge.jsonschema.tree.SchemaTree schema)
schema
- the schemapublic FullData withInstance(com.github.fge.jsonschema.tree.JsonTree instance)
instance
- the new instancepublic com.github.fge.jsonschema.report.ProcessingMessage newMessage()
newMessage
in interface com.github.fge.jsonschema.report.MessageProvider
Copyright © 2014. All Rights Reserved.