Package com.networknt.schema
Class FormatKeyword
- java.lang.Object
-
- com.networknt.schema.FormatKeyword
-
-
Field Summary
Fields Modifier and Type Field Description private ErrorMessageType
errorMessageType
private java.util.Map<java.lang.String,Format>
formats
private java.lang.String
value
-
Constructor Summary
Constructors Constructor Description FormatKeyword(ValidatorTypeCode type, java.util.Map<java.lang.String,Format> formats)
FormatKeyword(java.lang.String value, ErrorMessageType errorMessageType, java.util.Map<java.lang.String,Format> formats)
FormatKeyword(java.util.Map<java.lang.String,Format> formats)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) java.util.Collection<Format>
getFormats()
java.lang.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.
-
-
-
Field Detail
-
value
private final java.lang.String value
-
errorMessageType
private final ErrorMessageType errorMessageType
-
formats
private final java.util.Map<java.lang.String,Format> formats
-
-
Constructor Detail
-
FormatKeyword
public FormatKeyword(java.util.Map<java.lang.String,Format> formats)
-
FormatKeyword
public FormatKeyword(ValidatorTypeCode type, java.util.Map<java.lang.String,Format> formats)
-
FormatKeyword
public FormatKeyword(java.lang.String value, ErrorMessageType errorMessageType, java.util.Map<java.lang.String,Format> formats)
-
-
Method Detail
-
getFormats
java.util.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: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
-
-