Package com.networknt.schema.keyword
Interface Keyword
-
- All Known Implementing Classes:
AbstractKeyword,AnnotationKeyword,FormatKeyword,KeywordType,NonValidationKeyword
public interface KeywordRepresents a keyword.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetValue()Gets the keyword value.KeywordValidatornewValidator(SchemaLocation schemaLocation, com.fasterxml.jackson.databind.JsonNode schemaNode, Schema parentSchema, SchemaContext schemaContext)Creates a new validator for the keyword.
-
-
-
Method Detail
-
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
-
-