Package com.networknt.schema.keyword
Class AnnotationKeyword
- java.lang.Object
-
- com.networknt.schema.keyword.AbstractKeyword
-
- com.networknt.schema.keyword.AnnotationKeyword
-
- All Implemented Interfaces:
Keyword
public class AnnotationKeyword extends AbstractKeyword
Used for Keywords that have no validation aspect, but are part of the metaschema, where annotations may need to be collected.
-
-
Constructor Summary
Constructors Constructor Description AnnotationKeyword(String keyword)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KeywordValidatornewValidator(SchemaLocation schemaLocation, com.fasterxml.jackson.databind.JsonNode schemaNode, Schema parentSchema, SchemaContext schemaContext)Creates a new validator for the keyword.-
Methods inherited from class com.networknt.schema.keyword.AbstractKeyword
equals, getValue, hashCode, toString
-
-
-
-
Constructor Detail
-
AnnotationKeyword
public AnnotationKeyword(String keyword)
-
-
Method Detail
-
newValidator
public KeywordValidator newValidator(SchemaLocation schemaLocation, com.fasterxml.jackson.databind.JsonNode schemaNode, Schema parentSchema, SchemaContext schemaContext)
Description copied from interface:KeywordCreates a new validator for the keyword.- Parameters:
schemaLocation- the schema locationschemaNode- the schema nodeparentSchema- the parent schemaschemaContext- the schema context- Returns:
- the validation
-
-