Xindice API
version 1.2m1

org.apache.xindice.core.data
Interface DocumentSet

All Known Implementing Classes:
EmptyDocumentSet

public interface DocumentSet

DocumentSet is an interface for iterating over a set of Documents.

Version:
$Revision: 541508 $, $Date: 2007-05-24 21:54:12 -0400 (Thu, 24 May 2007) $

Method Summary
 Container getNextContainer()
          getNextContainer returns the next Document in the set wrapped in a Collection Container.
 org.w3c.dom.Document getNextDocument()
          getNextDocument returns the next Document in the set.
 boolean hasMoreDocuments()
          hasMoreDocuments returns whether there are any more Documents left in the set.
 

Method Detail

hasMoreDocuments

public boolean hasMoreDocuments()
                         throws DBException
hasMoreDocuments returns whether there are any more Documents left in the set.

Returns:
Whether there are more Documents
Throws:
DBException

getNextDocument

public org.w3c.dom.Document getNextDocument()
                                     throws DBException
getNextDocument returns the next Document in the set.

Returns:
The next Document
Throws:
DBException

getNextContainer

public Container getNextContainer()
                           throws DBException
getNextContainer returns the next Document in the set wrapped in a Collection Container. Containers store extra information about the Document (like its Key)

Returns:
The next Container
Throws:
DBException

Xindice API
version 1.2m1

Copyright (c) 1999-2007 The Apache Software Foundation. All Rights Reserved.