Package com.networknt.schema
Interface Keyword
-
- All Known Implementing Classes:
AbstractKeyword
,AnnotationKeyword
,FormatKeyword
,NonValidationKeyword
,ValidatorTypeCode
public interface Keyword
Represents a keyword.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.
-
-
-
Method Detail
-
getValue
String getValue()
Gets the keyword value.- Returns:
- the keyword value
-
newValidator
JsonValidator newValidator(SchemaLocation schemaLocation, JsonNodePath evaluationPath, com.fasterxml.jackson.databind.JsonNode schemaNode, JsonSchema parentSchema, ValidationContext validationContext) throws JsonSchemaException, Exception
Creates a new validator for the keyword.- Parameters:
schemaLocation
- the schema locationevaluationPath
- the evaluation pathschemaNode
- the schema nodeparentSchema
- the parent schemavalidationContext
- the validation context- Returns:
- the validation
- Throws:
JsonSchemaException
- the exceptionException
- the exception
-
-