Interface ValidationMessage

All Known Implementing Classes:
NetworkNtValidationMessage, ValidationMessageAdapter
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ValidationMessage
JSON Schema Validation Message.
Since:
1.0.0
Author:
Sergio del Amo
  • Method Summary

    Modifier and Type
    Method
    Description
    default String
    Returns the location of the invalid value.
    default @Nullable String
    Returns the keyword that failed.
    Returns the validation message.
    default @Nullable String
    Returns the location of the failing keyword in the schema.
  • Method Details

    • getMessage

      String getMessage()
      Returns the validation message.
      Returns:
      JSON Schema Validation Message, prefixed with the JSON Pointer of the invalid instance location
    • getInstanceLocation

      default String getInstanceLocation()
      Returns the location of the invalid value.
      Returns:
      The JSON Pointer (RFC 6901) of the instance location that failed validation, empty for the root
      Since:
      2.3.2
    • getKeyword

      default @Nullable String getKeyword()
      Returns the keyword that failed.
      Returns:
      The JSON Schema keyword that failed validation, if known
      Since:
      2.3.2
    • getSchemaLocation

      default @Nullable String getSchemaLocation()
      Returns the location of the failing keyword in the schema.
      Returns:
      The location of the failing keyword within the schema (the base URI of the schema plus a JSON Pointer fragment), if known. It is absolute when the schema has an absolute base URI
      Since:
      2.3.2