@Immutable public final class FullData extends Object implements MessageProvider
The included data are the schema (in the shape of a SchemaTree
,
the instance to validate (in the shape of a JsonTree
and a boolean
indicating whether validation should go as deep as posssible.
If the boolean argument is false, then container children (array elements or object members) will not be validated if the container itself fails validation.
The ProcessingMessage
template generated contains information
about both the schema and instance.
Constructor and Description |
---|
FullData(SchemaTree schema)
Deprecated.
|
FullData(SchemaTree schema,
JsonTree instance) |
FullData(SchemaTree schema,
JsonTree instance,
boolean deepCheck) |
Modifier and Type | Method and Description |
---|---|
JsonTree |
getInstance() |
SchemaTree |
getSchema() |
boolean |
isDeepCheck() |
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, boolean deepCheck)
public FullData(SchemaTree schema, JsonTree instance)
@Deprecated public FullData(SchemaTree schema)
public SchemaTree getSchema()
public JsonTree getInstance()
public boolean isDeepCheck()
public FullData withSchema(SchemaTree schema)
schema
- the schemapublic FullData withInstance(JsonTree instance)
instance
- the new instancepublic ProcessingMessage newMessage()
newMessage
in interface MessageProvider