Interface Keyword

All Known Implementing Classes:
AbstractKeyword, AnnotationKeyword, FormatKeyword, NonValidationKeyword, ValidatorTypeCode

public interface Keyword
Represents a keyword.
  • Method Details

    • 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 location
      evaluationPath - the evaluation path
      schemaNode - the schema node
      parentSchema - the parent schema
      validationContext - the validation context
      Returns:
      the validation
      Throws:
      JsonSchemaException - the exception
      Exception - the exception