Package com.networknt.schema.format
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 com.networknt.schema.keyword.BaseKeywordValidator
errorMessage, parentSchema, schemaContextFields inherited from class com.networknt.schema.keyword.AbstractKeywordValidator
schemaLocation, schemaNode -
Constructor Summary
ConstructorsConstructorDescriptionBaseFormatValidator(SchemaLocation schemaLocation, com.fasterxml.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 com.networknt.schema.keyword.BaseKeywordValidator
error, getNodeFieldType, getParentSchema, preloadSchemasMethods inherited from class com.networknt.schema.keyword.AbstractKeywordValidator
collectAnnotations, collectAnnotations, getKeyword, getSchemaLocation, getSchemaNode, hasAdjacentKeywordInEvaluationPath, hasUnevaluatedItemsInEvaluationPath, hasUnevaluatedPropertiesInEvaluationPath, putAnnotation, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.networknt.schema.keyword.KeywordValidator
preloadSchema
-
Field Details
-
assertionsEnabled
protected final boolean assertionsEnabled
-
-
Constructor Details
-
BaseFormatValidator
public BaseFormatValidator(SchemaLocation schemaLocation, com.fasterxml.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
-