Xindice API

org.apache.xindice.client.xmldb
Class ResourceIteratorImpl

java.lang.Object
  |
  +--org.apache.xindice.client.xmldb.ResourceIteratorImpl
All Implemented Interfaces:
ResourceIterator

public class ResourceIteratorImpl
extends java.lang.Object
implements ResourceIterator


Constructor Summary
ResourceIteratorImpl(java.util.List resources)
           
 
Method Summary
 boolean hasMoreResources()
          Returns true as long as there are still more resources to be iterated.
 Resource nextResource()
          Returns the next Resource instance in the iterator.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceIteratorImpl

public ResourceIteratorImpl(java.util.List resources)
Method Detail

hasMoreResources

public boolean hasMoreResources()
                         throws XMLDBException
Description copied from interface: ResourceIterator
Returns true as long as there are still more resources to be iterated.
Specified by:
hasMoreResources in interface ResourceIterator
Following copied from interface: org.xmldb.api.base.ResourceIterator
Returns:
true if there are more resources to iterate, false otherwise.
Throws:
XMLDBException - with expected error codes.
ErrorCodes.VENDOR_ERROR for any vendor specific errors that occur.

nextResource

public Resource nextResource()
                      throws XMLDBException
Description copied from interface: ResourceIterator
Returns the next Resource instance in the iterator.
Specified by:
nextResource in interface ResourceIterator
Following copied from interface: org.xmldb.api.base.ResourceIterator
Returns:
the next Resource instance in the iterator.
Throws:
XMLDBException - with expected error codes.
ErrorCodes.VENDOR_ERROR for any vendor specific errors that occur.
ErrorCodes.NO_SUCH_RESOURCE if the resource iterator is empty or all resources have already been retrieved.

Xindice API

Copyright (c) 1999-2001 The Apache Software Foundation