public class ValidatorEngine extends Object
Constructor and Description |
---|
ValidatorEngine(Schema schema)
Initialize a JSON Validation (used primarily for the DSL)
|
Modifier and Type | Method and Description |
---|---|
protected void |
popContext() |
protected void |
pushContext(Object name) |
protected void |
reportError(Format propertyFormat,
com.fasterxml.jackson.databind.JsonNode node,
ValidationErrorMessage.Code code,
String message) |
protected void |
validate(Format propertyFormat,
com.fasterxml.jackson.databind.JsonNode node,
Consumer<String> fieldReport) |
void |
validate(com.fasterxml.jackson.databind.JsonNode document,
String root) |
public ValidatorEngine(Schema schema)
schema
- The Schema describing the DSLpublic void validate(com.fasterxml.jackson.databind.JsonNode document, String root) throws IllegalArgumentException, ValidationException
protected void validate(Format propertyFormat, com.fasterxml.jackson.databind.JsonNode node, Consumer<String> fieldReport)
protected void pushContext(Object name)
protected void popContext()
protected void reportError(Format propertyFormat, com.fasterxml.jackson.databind.JsonNode node, ValidationErrorMessage.Code code, String message)
Copyright © 2018 Vitam. All rights reserved.