[XPATH] Getting a DataObject's Path?

2007-04-17 Thread Ole Ersoy
Hi, I've been looking at the SDO Specification and Javadocs trying to figure out how to get a dataobject's path (Relative to it's root). Something like: String path = DataGraph.getPath(dataObject); Which would return something like: //company/employees[2]/ Thoughts? Thanks, - Ole

Re: [XPATH] Getting a DataObject's Path?

2007-04-17 Thread kelvin goodson
You'd need to ascend the hierarchy with DataObject.getContainer() until you reach the root (null return), and assemble the path string. Regards, Kelvin. On 17/04/07, Ole Ersoy [EMAIL PROTECTED] wrote: Hi, I've been looking at the SDO Specification and Javadocs trying to figure out how to

Re: [XPATH] Getting a DataObject's Path?

2007-04-17 Thread kelvin goodson
P.S. DataObject.getContainmentProperty() would give the path elements. On 17/04/07, Ole Ersoy [EMAIL PROTECTED] wrote: Hi, I've been looking at the SDO Specification and Javadocs trying to figure out how to get a dataobject's path (Relative to it's root). Something like: String path =

Re: [XPATH] Getting a DataObject's Path?

2007-04-17 Thread Frank Budinsky
@ws.apache.org cc Subject [XPATH] Getting a DataObject's Path? Hi, I've been looking at the SDO Specification and Javadocs trying to figure out how to get a dataobject's path (Relative to it's root). Something like: String path = DataGraph.getPath(dataObject); Which would return something

Re: [XPATH] Getting a DataObject's Path?

2007-04-17 Thread Ole Ersoy
Ersoy [EMAIL PROTECTED] 04/17/2007 02:50 PM Please respond to tuscany-dev@ws.apache.org To tuscany-dev@ws.apache.org cc Subject [XPATH] Getting a DataObject's Path? Hi, I've been looking at the SDO Specification and Javadocs trying to figure out how to get a dataobject's path (Relative