public class SimpleDocumentList extends java.lang.Object implements DocumentList
DocumentList interface.
Implementors may use this directly or for reference.| Constructor and Description |
|---|
SimpleDocumentList(java.util.List<? extends Document> documents)
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
checkpoint()
Provides a checkpoint that can be used to control traversal.
|
Document |
nextDocument()
Returns the next
Document in this document list, if there is one. |
public Document nextDocument()
DocumentListDocument in this document list, if there is one.nextDocument in interface DocumentListnull
otherwisepublic java.lang.String checkpoint()
throws RepositoryException
DocumentListTraversalManager.resumeTraversal(String).
If null is returned, then no new checkpoint will be saved,
and the existing checkpoint will be supplied to
TraversalManager.startTraversal() or
TraversalManager.resumeTraversal(String),
in effect, restarting the traversal from the last saved checkpoint.
checkpoint in interface DocumentListnull String that can be supplied
subsequently to TraversalManager.resumeTraversal(String)RepositoryException - if a repository access error occurs or if
there is insufficient information to create a checkpoint string.
If checkpoint() throws an exception, a subsequent
call to TraversalManager.resumeTraversal(String) will be
supplied the last known good checkpoint string.