Class JSONPointerReferenceToken


  • public class JSONPointerReferenceToken
    extends Object
    Represents one reference token of a JSON Pointer.
    See Also:
    RFC 6901
    • Method Detail

      • previous

        public JSONPointerReferenceToken previous()
        Previous reference token which represents a parent node.
        Returns:
        Previous reference token which represents a parent node. Null if this is the root value.
      • parent

        public String parent()
        String representation of the JSON Pointer of the parent. If this is the parent is the root value, this method returns an empty string.
        Returns:
        string representation of the JSON Pointer of the parent.
      • name

        public String name()
        Unescaped reference token as a member name of a JSON object value.
        Returns:
        Unescaped reference token.
      • text

        public String text()
        escaped reference token.
        Returns:
        escaped reference token.
      • beginningLocation

        public int beginningLocation()
        Location of the beginning of the token within the original JSON Pointer string.
        Returns:
        location of the beginning of the token within the original JSON Pointer string.
      • endLocation

        public int endLocation()
        Location of the end of the token within the original JSON Pointer string.
        Returns:
        location of the end of the token within the original JSON Pointer string.
      • pointer

        public JSONPointer pointer()
        JSON Pointer that this reference token belongs to.
        Returns:
        JSON Pointer that this token belongs to.