Object JSONPointer.Companion

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final JSONPointer from(Array<String> array) Create a JSONPointer from an array of tokens.
      final JSONPointer from(List<String> list) Create a JSONPointer from a list of tokens.
      final JSONValue find(String pointer, JSONValue base) Find the JSONValue that this pointer string points to within the specified base value, or throw an exception if the pointer string does not reference a valid location in the base value.
      final JSONValue find(Array<String> tokens, JSONValue base) Find the JSONValue that this set of tokens points to within the specified base value, or throw an exception if the tokens do not reference a valid location in the base value.
      final JSONValue findOrNull(String pointer, JSONValue base) Find the JSONValue that this pointer string points to within the specified base value, or null if the pointer string does not reference a valid location in the base value.
      final JSONValue findOrNull(Array<String> tokens, JSONValue base) Find the JSONValue that this set of tokens points to within the specified base value, or null if the tokens do not reference a valid location in the base value.
      final Boolean existsIn(String string, JSONValue base) Test whether this pointer string references a valid location in specified base value.
      final Boolean existsIn(Array<String> tokens, JSONValue base) Test whether this set of tokens references a valid location in specified base value.
      final String toString(Array<String> tokens, Integer n) Create the string form of a JSON pointer from the first n tokens in the specified array.
      final Array<String> parseString(String string) Parse a JSON Pointer string into an array of string tokens.
      final JSONPointer fromURIFragment(String fragment) Create a JSONPointer from a URI fragment.
      final String encodeJSONPointer(String $self) Encode a string using the character substitutions specified for JSON pointer token.
      final String decodeJSONPointer(String $self) Decode a string encoded using the character substitutions specified for JSON pointer token.
      final JSONPointer getRoot() The root JSONPointer.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • find

         final JSONValue find(String pointer, JSONValue base)

        Find the JSONValue that this pointer string points to within the specified base value, or throw an exception if the pointer string does not reference a valid location in the base value.

      • find

         final JSONValue find(Array<String> tokens, JSONValue base)

        Find the JSONValue that this set of tokens points to within the specified base value, or throw an exception if the tokens do not reference a valid location in the base value.

      • findOrNull

         final JSONValue findOrNull(String pointer, JSONValue base)

        Find the JSONValue that this pointer string points to within the specified base value, or null if the pointer string does not reference a valid location in the base value.

      • findOrNull

         final JSONValue findOrNull(Array<String> tokens, JSONValue base)

        Find the JSONValue that this set of tokens points to within the specified base value, or null if the tokens do not reference a valid location in the base value.

      • existsIn

         final Boolean existsIn(String string, JSONValue base)

        Test whether this pointer string references a valid location in specified base value.

      • existsIn

         final Boolean existsIn(Array<String> tokens, JSONValue base)

        Test whether this set of tokens references a valid location in specified base value.

      • encodeJSONPointer

         final String encodeJSONPointer(String $self)

        Encode a string using the character substitutions specified for JSON pointer token.

      • decodeJSONPointer

         final String decodeJSONPointer(String $self)

        Decode a string encoded using the character substitutions specified for JSON pointer token.