Class BaseFormatValidator
java.lang.Object
com.networknt.schema.keyword.AbstractKeywordValidator
com.networknt.schema.keyword.BaseKeywordValidator
com.networknt.schema.format.BaseFormatValidator
- All Implemented Interfaces:
KeywordValidator, Validator, Walker
- Direct Known Subclasses:
FormatValidator
-
Field Summary
FieldsFields inherited from class BaseKeywordValidator
errorMessage, parentSchema, schemaContextFields inherited from class AbstractKeywordValidator
schemaLocation, schemaNode -
Constructor Summary
ConstructorsConstructorDescriptionBaseFormatValidator(SchemaLocation schemaLocation, tools.jackson.databind.JsonNode schemaNode, Schema parentSchema, Keyword keyword, SchemaContext schemaContext) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanisAssertionsEnabled(ExecutionContext executionContext) protected booleanprotected booleanisFormatAssertionVocabularyEnabled(SpecificationVersion specification, Map<String, Boolean> vocabularies) Methods inherited from class BaseKeywordValidator
error, getParentSchema, hasType, preloadSchemasMethods inherited from class AbstractKeywordValidator
collectAnnotations, collectAnnotations, getKeyword, getSchemaLocation, getSchemaNode, hasAdjacentKeywordInEvaluationPath, hasUnevaluatedItemsInEvaluationPath, hasUnevaluatedPropertiesInEvaluationPath, putAnnotation, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface KeywordValidator
preloadSchema
-
Field Details
-
assertionsEnabled
protected final boolean assertionsEnabled
-
-
Constructor Details
-
BaseFormatValidator
public BaseFormatValidator(SchemaLocation schemaLocation, tools.jackson.databind.JsonNode schemaNode, Schema parentSchema, Keyword keyword, SchemaContext schemaContext)
-
-
Method Details
-
isFormatAssertionVocabularyEnabled
protected boolean isFormatAssertionVocabularyEnabled() -
isFormatAssertionVocabularyEnabled
protected boolean isFormatAssertionVocabularyEnabled(SpecificationVersion specification, Map<String, Boolean> vocabularies) -
isAssertionsEnabled
-