|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.ecm.core.api.DocumentTreeIterator
public class DocumentTreeIterator
An iterator over a tree of documents
The tree is traversed from top to bottom and left to right.
TODO: move this in an utility package
Constructor Summary | |
---|---|
DocumentTreeIterator(CoreSession session,
DocumentModel root)
Creates the iterator given the tree root. |
|
DocumentTreeIterator(CoreSession session,
DocumentModel root,
boolean excludeRoot)
|
Method Summary | |
---|---|
boolean |
hasNext()
|
DocumentModel |
next()
|
void |
remove()
|
void |
reset()
Resets the iterator back to the tree root and clear any cached data. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DocumentTreeIterator(CoreSession session, DocumentModel root) throws ClientException
ClientException
public DocumentTreeIterator(CoreSession session, DocumentModel root, boolean excludeRoot) throws ClientException
ClientException
Method Detail |
---|
public boolean hasNext()
hasNext
in interface Iterator<DocumentModel>
public DocumentModel next()
next
in interface Iterator<DocumentModel>
public void remove()
remove
in interface Iterator<DocumentModel>
public void reset()
|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |