jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bertrand Delacretaz" <bdelacre...@apache.org>
Subject Re: how to get the index of the node
Date Mon, 24 Nov 2008 06:48:50 GMT
Hi,

On Mon, Nov 24, 2008 at 6:57 AM, far4ever <fathimafarhath@gmail.com> wrote:
> ... i want to get the node name along with its index(the one with square
> bracket)
> but getName() gives the name with out the index. is there any mechanism
> where i can get the index along with its name...

Node.getIndex() returns the same-name-sibling index.
http://day.com/maven/javax.jcr/javadocs/jcr-1.0/javax/jcr/Node.html#getIndex()

-Bertrand

Mime
View raw message