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 StringgetValue()Gets the keyword value.JsonValidatornewValidator(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: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
-
-