Hi Davide,

On Fri, Jan 31, 2014 at 5:55 AM, Davide Giannella
<[email protected]> wrote:
> I have the need to perform a custom iteration on child nodes based on
> a custom property starting from the NodeBuilder. I'm working at
> oak-core level.

You might want to take a look at AbstractTree.getChildNames(), where
we've implemented a similar custom ordering of child nodes using the
special :childOrder property. This mechanism is used to implement
orderable nodes at the JCR level.

> I didn't find any iterator() (or similar) method at the
> NodeBuilder/State level

We usually return Iterables instead of Iterators. See getChildNames()
and getChildNodeEntries(), the latter of which is only available on
NodeState.

BR,

Jukka Zitting

Reply via email to