Package com.networknt.schema
Class NonValidationKeyword
- java.lang.Object
-
- com.networknt.schema.AbstractKeyword
-
- com.networknt.schema.NonValidationKeyword
-
- All Implemented Interfaces:
Keyword
public class NonValidationKeyword extends AbstractKeyword
Used for Keywords that have no validation aspect, but are part of the metaschema.
-
-
Constructor Summary
Constructors Constructor Description NonValidationKeyword(String keyword)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JsonValidator
newValidator(SchemaLocation schemaLocation, JsonNodePath evaluationPath, com.fasterxml.jackson.databind.JsonNode schemaNode, JsonSchema parentSchema, ValidationContext validationContext)
Creates a new validator for the keyword.-
Methods inherited from class com.networknt.schema.AbstractKeyword
equals, getValue, hashCode, toString
-
-
-
-
Constructor Detail
-
NonValidationKeyword
public NonValidationKeyword(String keyword)
-
-
Method Detail
-
newValidator
public JsonValidator newValidator(SchemaLocation schemaLocation, JsonNodePath evaluationPath, com.fasterxml.jackson.databind.JsonNode schemaNode, JsonSchema parentSchema, ValidationContext validationContext) throws JsonSchemaException, Exception
Description copied from interface:Keyword
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
-
-