Class ValidatorEngine
java.lang.Object
fr.gouv.vitam.common.dsl.schema.meta.ValidatorEngine
DSL Validator from a Schema. WARNING: not thread safe. (note: Schema is thread safe)
-
Constructor Summary
ConstructorDescriptionValidatorEngine
(Schema schema) Initialize a JSON Validation (used primarily for the DSL) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
pushContext
(Object name) protected void
reportError
(Format propertyFormat, com.fasterxml.jackson.databind.JsonNode node, ValidationErrorMessage.Code code, String message) void
protected void
validate
(Format propertyFormat, com.fasterxml.jackson.databind.JsonNode node, Consumer<String> fieldReport)
-
Constructor Details
-
ValidatorEngine
Initialize a JSON Validation (used primarily for the DSL)- Parameters:
schema
- The Schema describing the DSL
-
-
Method Details
-
validate
public void validate(com.fasterxml.jackson.databind.JsonNode document, String root) throws IllegalArgumentException, ValidationException -
validate
-
pushContext
-
popContext
protected void popContext() -
reportError
protected void reportError(Format propertyFormat, com.fasterxml.jackson.databind.JsonNode node, ValidationErrorMessage.Code code, String message)
-