org.xmldb.api.base
Interface ResourceIterator
- SimpleResourceIterator
public interface ResourceIterator
ResourceIterator is used to iterate over a set of resources.
hasMoreResources
public boolean hasMoreResources()
throws XMLDBException
Returns true as long as there are still more resources to be iterated.
- true if there are more resources to iterate, false otherwise.
XMLDBException
- with expected error codes.
ErrorCodes.VENDOR_ERROR
for any vendor
specific errors that occur.
nextResource
public Resource nextResource()
throws XMLDBException
Returns the next Resource
instance in the iterator.
- the next
Resource
instance in the iterator.
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.