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 validator cache.
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 JsonValidatorCache |
cache |
private SchemaContainer |
container |
| Constructor and Description |
|---|
ValidationContext(JsonValidatorCache cache) |
| Modifier and Type | Method and Description |
|---|---|
SchemaContainer |
getContainer() |
JsonValidatorCache |
getValidatorCache() |
void |
setContainer(SchemaContainer container) |
private SchemaContainer container
private final JsonValidatorCache cache
public ValidationContext(JsonValidatorCache cache)
public JsonValidatorCache getValidatorCache()
public SchemaContainer getContainer()
public void setContainer(SchemaContainer container)
Copyright © 2012. All Rights Reserved.