|
||||||||||
| 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
static final class BasicTypeConverter.ValuePointer
Value pointer
| Field Summary | |
|---|---|
private java.lang.Object |
bean
|
private static long |
serialVersionUID
|
| Constructor Summary | |
|---|---|
BasicTypeConverter.ValuePointer(java.lang.Object object)
Create a new ValuePointer. |
|
| 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 static final long serialVersionUID
private java.lang.Object bean
| Constructor Detail |
|---|
public BasicTypeConverter.ValuePointer(java.lang.Object object)
object - value| Method Detail |
|---|
public java.lang.Object getValue()
Pointer
getValue in interface Pointerpublic java.lang.Object getNode()
Pointer
getNode in interface Pointerpublic java.lang.Object getRootNode()
Pointer
getRootNode in interface Pointerpublic void setValue(java.lang.Object value)
Pointer
setValue in interface Pointervalue - value to setpublic java.lang.Object clone()
Pointer
clone in interface Pointerclone in class java.lang.Objectpublic int compareTo(java.lang.Object object)
compareTo in interface java.lang.Comparablepublic java.lang.String asPath()
PointerPointer 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 | |||||||||