|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.jxpath.util.BasicTypeConverter.ValuePointer
Field Summary | |
private java.lang.Object |
bean
|
Constructor Summary | |
BasicTypeConverter.ValuePointer(java.lang.Object object)
|
Method Summary | |
java.lang.String |
asPath()
Returns a string that is a proper "canonical" XPath that corresponds to this pointer. |
java.lang.Object |
clone()
Pointers are cloneable |
int |
compareTo(java.lang.Object object)
|
java.lang.Object |
getNode()
Returns the raw value of the object, property or collection element this pointer represents. |
java.lang.Object |
getRootNode()
Returns the node this pointer is based on. |
java.lang.Object |
getValue()
Returns the value of the object, property or collection element this pointer represents. |
void |
setValue(java.lang.Object value)
Modifies the value of the object, property or collection element this pointer represents. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.lang.Object bean
Constructor Detail |
public BasicTypeConverter.ValuePointer(java.lang.Object object)
Method Detail |
public java.lang.Object getValue()
Pointer
getValue
in interface Pointer
public java.lang.Object getNode()
Pointer
getNode
in interface Pointer
public java.lang.Object getRootNode()
Pointer
getRootNode
in interface Pointer
public void setValue(java.lang.Object value)
Pointer
setValue
in interface Pointer
public java.lang.Object clone()
Pointer
clone
in interface Pointer
public int compareTo(java.lang.Object object)
compareTo
in interface java.lang.Comparable
public java.lang.String asPath()
Pointer
Pointer ptr = ctx.getPointer("//employees[firstName = 'John']")
The value of ptr.asPath()
will look something like
"/departments[2]/employees[3]"
, so, basically, it represents
the concrete location(s) of the result of a search performed by JXPath.
If an object in the pointer's path is a Dynamic Property object (like a
Map), the asPath method generates an XPath that looks like this: "
/departments[@name = 'HR']/employees[3]"
.
asPath
in interface Pointer
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |