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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getValue()
JsonValidator
newValidator(String schemaPath, com.fasterxml.jackson.databind.JsonNode schemaNode, JsonSchema parentSchema, ValidationContext validationContext)
void
setCustomMessage(String message)
-
-
-
Constructor Detail
-
FormatKeyword
public FormatKeyword(ValidatorTypeCode type, Map<String,Format> formats)
-
-
Method Detail
-
newValidator
public JsonValidator newValidator(String schemaPath, com.fasterxml.jackson.databind.JsonNode schemaNode, JsonSchema parentSchema, ValidationContext validationContext)
- Specified by:
newValidator
in interfaceKeyword
-
setCustomMessage
public void setCustomMessage(String message)
- Specified by:
setCustomMessage
in interfaceKeyword
-
-