|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.cms.util.SiblingsHelper
public class SiblingsHelper
A utility class to navigate amongst the siblings of a given node. This is not synchronized.
Method Summary | |
---|---|
static SiblingsHelper |
childrenOf(Content parent)
Instantiates a SiblingsHelper representing the children of the given node, where the current node is the first child of the same type as its parent. |
static SiblingsHelper |
childrenOf(Content parent,
Content.ContentFilter filter)
Instantiates a SiblingsHelper representing the children of the given node, where the current node is the first child from all that pass the filter. |
static SiblingsHelper |
childrenOf(Content parent,
ItemType childType)
Instantiates a SiblingsHelper representing the children of the given node, where the current node is the first child of given type. |
Content |
getCurrent()
|
int |
getIndex()
Returns the zero-based index of the current node. |
Content |
goTofirst()
|
Content |
goTolast()
|
boolean |
isFirst()
|
boolean |
isLast()
|
Content |
next()
|
static SiblingsHelper |
of(Content node)
Instantiates a SiblingsHelper representing the siblings of the given node and of the same type. |
Content |
prev()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static SiblingsHelper of(Content node) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public static SiblingsHelper childrenOf(Content parent) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public static SiblingsHelper childrenOf(Content parent, ItemType childType) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public static SiblingsHelper childrenOf(Content parent, Content.ContentFilter filter) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public Content next()
public Content prev()
public Content goTofirst()
public Content goTolast()
public Content getCurrent()
public int getIndex()
public boolean isFirst()
public boolean isLast()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |