Package com.networknt.schema
Class FormatKeyword
- java.lang.Object
-
- com.networknt.schema.FormatKeyword
-
-
Constructor Summary
Constructors Constructor Description FormatKeyword(ValidatorTypeCode type, Map<String,Format> formats)
FormatKeyword(String value, ErrorMessageType errorMessageType, Map<String,Format> formats)
FormatKeyword(Map<String,Format> formats)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getValue()
Gets the keyword value.JsonValidator
newValidator(SchemaLocation schemaLocation, JsonNodePath evaluationPath, com.fasterxml.jackson.databind.JsonNode schemaNode, JsonSchema parentSchema, ValidationContext validationContext)
Creates a new validator for the keyword.
-
-
-
Method Detail
-
newValidator
public JsonValidator newValidator(SchemaLocation schemaLocation, JsonNodePath evaluationPath, com.fasterxml.jackson.databind.JsonNode schemaNode, JsonSchema parentSchema, ValidationContext validationContext)
Description copied from interface:Keyword
Creates a new validator for the keyword.- Specified by:
newValidator
in interfaceKeyword
- Parameters:
schemaLocation
- the schema locationevaluationPath
- the evaluation pathschemaNode
- the schema nodeparentSchema
- the parent schemavalidationContext
- the validation context- Returns:
- the validation
-
-