public final class JsonSchema extends Object
This class is thread-safe: you can validate as many inputs as you want with one instance.
In order to build an instance, you need to go through a
JsonSchemaFactory.
| Modifier and Type | Field and Description |
|---|---|
private ValidationContext |
context |
private JsonSchemaFactory |
factory |
private SchemaNode |
schemaNode |
| Constructor and Description |
|---|
JsonSchema(JsonSchemaFactory factory,
SchemaNode schemaNode) |
private final JsonSchemaFactory factory
private final SchemaNode schemaNode
private final ValidationContext context
JsonSchema(JsonSchemaFactory factory, SchemaNode schemaNode)
public ValidationReport validate(JsonNode instance)
Copyright © 2012. All Rights Reserved.