Package com.networknt.schema
Class FormatKeyword
java.lang.Object
com.networknt.schema.FormatKeyword
- All Implemented Interfaces:
Keyword
Format Keyword.
-
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 TypeMethodDescriptiongetValue()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.
-
Constructor Details
-
FormatKeyword
-
FormatKeyword
-
FormatKeyword
-
-
Method Details
-
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
Description copied from interface:KeywordGets the keyword value.
-