public class SiblingsHelper extends Object
Modifier and Type | Method and Description |
---|---|
javax.jcr.Node |
getCurrent() |
int |
getIndex()
Returns the zero-based index of the current node.
|
javax.jcr.Node |
goTofirst() |
javax.jcr.Node |
goTolast() |
boolean |
isFirst() |
boolean |
isLast() |
javax.jcr.Node |
next() |
static SiblingsHelper |
of(javax.jcr.Node node)
Instantiates a SiblingsHelper representing the siblings of the given node and of the same type.
|
javax.jcr.Node |
prev() |
public static SiblingsHelper of(javax.jcr.Node node) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public javax.jcr.Node next()
public javax.jcr.Node prev()
public javax.jcr.Node goTofirst()
public javax.jcr.Node goTolast()
public javax.jcr.Node getCurrent()
public int getIndex()
public boolean isFirst()
public boolean isLast()
Copyright © 2003–2019 Magnolia International Ltd.. All rights reserved.