You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by JavaJ <po...@yahoo.com> on 2007/01/03 21:00:54 UTC

same name sibling question

What happens when you call getNodes() on a Node that has same name sibling
children?  Will it return all the same name siblings as well?  What order
would they be in?

-- 
View this message in context: http://www.nabble.com/same-name-sibling-question-tf2915619.html#a8147508
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.


Re: same name sibling question

Posted by Stefan Guggisberg <st...@gmail.com>.
On 1/3/07, JavaJ <po...@yahoo.com> wrote:
>
> What happens when you call getNodes() on a Node that has same name sibling
> children?  Will it return all the same name siblings as well?

sure, same name siblings are regular child nodes.

> What order would they be in?

the relative order of same name siblings is preserved and consistent, i.e.
it is guaranteed to be same for every Node.getNodes() call (unless ot has been
explicitly changed of course).

what yu can expect regarding the absolute order of the nodes returned
by Node.getNodes() depends on the 'orderableChildNodes' flag in the
parent node's node type. for more details see section "4.4 Orderable
Child Nodes"
in the jsr 170 specification.

cheers
stefan


>
> --
> View this message in context: http://www.nabble.com/same-name-sibling-question-tf2915619.html#a8147508
> Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
>
>