Xindice API
version 1.1

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: 511426 $, $Date: 2007-02-24 22:25:02 -0500 (Sat, 24 Feb 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

getNextDocument

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

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

Xindice API
version 1.1

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