Package com.networknt.schema.keyword
Interface Keyword
- All Known Implementing Classes:
AbstractKeyword,AnnotationKeyword,FormatKeyword,KeywordType,NonValidationKeyword
public interface Keyword
Represents a keyword.
-
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.
-
Method Details
-
getValue
String getValue()Gets the keyword value.- Returns:
- the keyword value
-
newValidator
KeywordValidator newValidator(SchemaLocation schemaLocation, com.fasterxml.jackson.databind.JsonNode schemaNode, Schema parentSchema, SchemaContext schemaContext) throws SchemaException, Exception Creates a new validator for the keyword.- Parameters:
schemaLocation- the schema locationschemaNode- the schema nodeparentSchema- the parent schemaschemaContext- the schema context- Returns:
- the validation
- Throws:
SchemaException- the exceptionException- the exception
-