Class SchemaValidationPath

All Implemented Interfaces:
DataExceptionContributor, JsonSerializable, RecordSerializable, XmlSerializable, JavaCodeGenerator, Serializable

public class SchemaValidationPath extends SchemaObject
Keeps a per-thread stack of the names being validated, used to build qualified field names such as order.items.[0] for validation messages.
See Also:
  • Method Details

    • push

      public static void push(String pathElement)
      Appends an element to the current thread's path.
    • pop

      public static String pop()
      Removes and returns the last element of the current thread's path, releasing the thread's state once it is empty.
    • join

      public static String join(CharSequence delimiter)
      Returns the current thread's path elements from first to last, separated by the delimiter (empty if there are none).
    • remove

      public static void remove()
      Clears the current thread's path.
    • main

      public static void main(String[] args)