Pointers represent locations of objects and their properties
in Java object graphs. JXPathContext has methods
( getPointer()
and ( iteratePointers() , which, given an XPath, produce Pointers for the objects
or properties described the the path. For example, ctx.getPointer
("foo/bar") will produce a Pointer that can get and set the property
"bar" of the object which is the value of the property "foo" of the root
object. The value of ctx.getPointer("aMap/aKey[3]") will be a
pointer to the 3'rd element of the array, which is the value for the key
"aKey" of the map, which is the value of the property "aMap" of the root
object.
ctx.getPointer ("foo/bar")will produce a Pointer that can get and set the property "bar" of the object which is the value of the property "foo" of the root object. The value ofctx.getPointer("aMap/aKey[3]")will be a pointer to the 3'rd element of the array, which is the value for the key "aKey" of the map, which is the value of the property "aMap" of the root object.