public class SiblingsHelper extends Object
Modifier and Type | Method and Description |
---|---|
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() |
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()
Copyright © 2003–2015 Magnolia International Ltd.. All rights reserved.