Class Annotations

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

public class Annotations extends Object
The JSON Schema annotations.
See Also:
  • Constructor Details

    • Annotations

      public Annotations()
  • Method Details

    • asMap

      public Map<NodePath,List<Annotation>> asMap()
      Gets the annotations.

      instancePath to annotation

      Returns:
      the annotations
    • put

      public void put(Annotation annotation)
      Puts the annotation.
      Parameters:
      annotation - the annotation
    • toString

      public String toString()
      Overrides:
      toString in class Object