|
Nuxeo Enterprise Platform 5.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 java.util.Iterator<DocumentModel>public DocumentModel next()
next in interface java.util.Iterator<DocumentModel>public void remove()
remove in interface java.util.Iterator<DocumentModel>public void reset()
|
Nuxeo Enterprise Platform 5.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||