Package com.networknt.schema.keyword
Class FormatKeyword
java.lang.Object
com.networknt.schema.keyword.FormatKeyword
- All Implemented Interfaces:
Keyword
Format Keyword.
-
Constructor Summary
ConstructorsConstructorDescriptionFormatKeyword(Keyword type, Map<String, Format> formats) FormatKeyword(String value, Map<String, Format> formats) FormatKeyword(Map<String, Format> formats) -
Method Summary
Modifier and TypeMethodDescriptiongetValue()Gets the keyword value.newValidator(SchemaLocation schemaLocation, com.fasterxml.jackson.databind.JsonNode schemaNode, Schema parentSchema, SchemaContext schemaContext) Creates a new validator for the keyword.
-
Constructor Details
-
FormatKeyword
-
FormatKeyword
-
FormatKeyword
-
-
Method Details
-
newValidator
public KeywordValidator newValidator(SchemaLocation schemaLocation, com.fasterxml.jackson.databind.JsonNode schemaNode, Schema parentSchema, SchemaContext schemaContext) Description copied from interface:KeywordCreates a new validator for the keyword.- Specified by:
newValidatorin interfaceKeyword- Parameters:
schemaLocation- the schema locationschemaNode- the schema nodeparentSchema- the parent schemaschemaContext- the schema context- Returns:
- the validation
-
getValue
Description copied from interface:KeywordGets the keyword value.
-