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
public abstract class BaseFormatValidator extends BaseKeywordValidator
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanassertionsEnabled-
Fields inherited from class com.networknt.schema.keyword.BaseKeywordValidator
errorMessage, parentSchema, schemaContext
-
Fields inherited from class com.networknt.schema.keyword.AbstractKeywordValidator
schemaLocation, schemaNode
-
-
Constructor Summary
Constructors Constructor Description BaseFormatValidator(SchemaLocation schemaLocation, com.fasterxml.jackson.databind.JsonNode schemaNode, Schema parentSchema, Keyword keyword, SchemaContext schemaContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanisAssertionsEnabled(ExecutionContext executionContext)protected booleanisFormatAssertionVocabularyEnabled()protected booleanisFormatAssertionVocabularyEnabled(SpecificationVersion specification, Map<String,Boolean> vocabularies)-
Methods inherited from class com.networknt.schema.keyword.BaseKeywordValidator
error, getNodeFieldType, getParentSchema, preloadSchemas
-
Methods inherited from class com.networknt.schema.keyword.AbstractKeywordValidator
collectAnnotations, collectAnnotations, getKeyword, getSchemaLocation, getSchemaNode, hasAdjacentKeywordInEvaluationPath, hasUnevaluatedItemsInEvaluationPath, hasUnevaluatedPropertiesInEvaluationPath, putAnnotation, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.networknt.schema.keyword.KeywordValidator
preloadSchema
-
-
-
-
Constructor Detail
-
BaseFormatValidator
public BaseFormatValidator(SchemaLocation schemaLocation, com.fasterxml.jackson.databind.JsonNode schemaNode, Schema parentSchema, Keyword keyword, SchemaContext schemaContext)
-
-
Method Detail
-
isFormatAssertionVocabularyEnabled
protected boolean isFormatAssertionVocabularyEnabled()
-
isFormatAssertionVocabularyEnabled
protected boolean isFormatAssertionVocabularyEnabled(SpecificationVersion specification, Map<String,Boolean> vocabularies)
-
isAssertionsEnabled
protected boolean isAssertionsEnabled(ExecutionContext executionContext)
-
-