Class FormatKeyword
java.lang.Object
com.networknt.schema.FormatKeyword
- All Implemented Interfaces:
Keyword
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFormatKeyword(ValidatorTypeCode type, Map<String, Format> formats) FormatKeyword(String value, ErrorMessageType errorMessageType, Map<String, Format> formats) FormatKeyword(Map<String, Format> formats) -
Method Summary
Modifier and TypeMethodDescription(package private) Collection<Format> getValue()Gets the keyword value.newValidator(SchemaLocation schemaLocation, JsonNodePath evaluationPath, com.fasterxml.jackson.databind.JsonNode schemaNode, JsonSchema parentSchema, ValidationContext validationContext) Creates a new validator for the keyword.
-
Field Details
-
value
-
errorMessageType
-
formats
-
-
Constructor Details
-
FormatKeyword
-
FormatKeyword
-
FormatKeyword
-
-
Method Details
-
getFormats
Collection<Format> getFormats() -
newValidator
public JsonValidator newValidator(SchemaLocation schemaLocation, JsonNodePath evaluationPath, com.fasterxml.jackson.databind.JsonNode schemaNode, JsonSchema parentSchema, ValidationContext validationContext) Description copied from interface:KeywordCreates a new validator for the keyword.- Specified by:
newValidatorin interfaceKeyword- Parameters:
schemaLocation- the schema locationevaluationPath- the evaluation pathschemaNode- the schema nodeparentSchema- the parent schemavalidationContext- the validation context- Returns:
- the validation
-
getValue
-