Class JsonNodeAnnotation

java.lang.Object
com.networknt.schema.annotation.JsonNodeAnnotation

public class JsonNodeAnnotation extends Object
The annotation.
  • Constructor Details

  • Method Details

    • getKeyword

      public String getKeyword()
      The keyword that produces the annotation.
      Returns:
      the keyword
    • getInstanceLocation

      public JsonNodePath getInstanceLocation()
      The instance location to which it is attached, as a JSON Pointer.
      Returns:
      the instance location
    • getSchemaLocation

      public SchemaLocation getSchemaLocation()
      The schema location of the attaching keyword, as a IRI and JSON Pointer fragment.
      Returns:
      the schema location
    • getEvaluationPath

      public JsonNodePath getEvaluationPath()
      The evaluation path, indicating how reference keywords such as "$ref" were followed to reach the absolute schema location.
      Returns:
      the evaluation path
    • getValue

      public <T> T getValue()
      The attached value(s).
      Type Parameters:
      T - the value type
      Returns:
      the value
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • builder

      public static JsonNodeAnnotation.Builder builder()