Package com.networknt.schema
Class FormatKeyword
- java.lang.Object
-
- com.networknt.schema.FormatKeyword
-
-
Field Summary
Fields Modifier and Type Field Description private ErrorMessageTypeerrorMessageTypeprivate java.util.Map<java.lang.String,Format>formatsprivate java.lang.Stringvalue
-
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.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.
-
-
-
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: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
-
-