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
ConstructorsConstructorDescriptionValidatorEngine(Schema schema) Initialize a JSON Validation (used primarily for the DSL) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidpushContext(Object name) protected voidreportError(Format propertyFormat, com.fasterxml.jackson.databind.JsonNode node, ValidationErrorMessage.Code code, String message) voidprotected voidvalidate(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)
-