public final class ValidationContext extends Object
This object is passed along the validation process. At any point in the validation process, it contains the current context and the underlying factory.
The latter is necessary since four keywords may have to spawn other
validators: type, disallow, dependencies and
extends.
| Modifier and Type | Field and Description |
|---|---|
private SchemaContainer |
container |
private JsonSchemaFactory |
factory |
| Constructor and Description |
|---|
ValidationContext(JsonSchemaFactory factory) |
ValidationContext(SchemaContainer container) |
| Modifier and Type | Method and Description |
|---|---|
SchemaContainer |
getContainer() |
JsonSchemaFactory |
getFactory() |
void |
setContainer(SchemaContainer container) |
private SchemaContainer container
private final JsonSchemaFactory factory
public ValidationContext(SchemaContainer container)
public ValidationContext(JsonSchemaFactory factory)
public JsonSchemaFactory getFactory()
public SchemaContainer getContainer()
public void setContainer(SchemaContainer container)
Copyright © 2012. All Rights Reserved.