org.xmldb.api.sdk

Class SimpleResourceIterator

Implemented Interfaces:
ResourceIterator

public class SimpleResourceIterator
extends java.lang.Object
implements ResourceIterator

ResourceIterator is used to iterate over a set of resources.

Field Summary

protected int
index
protected List
resources

Constructor Summary

SimpleResourceIterator(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.

Field Details

index

protected int index

resources

protected List resources

Constructor Details

SimpleResourceIterator

public SimpleResourceIterator(List resources)

Method Details

hasMoreResources

public boolean hasMoreResources()
            throws XMLDBException
Returns true as long as there are still more resources to be iterated.
Specified by:
hasMoreResources in interface ResourceIterator
Returns:
true if there are more resources to iterate, false otherwise.

nextResource

public Resource nextResource()
            throws XMLDBException
Returns the next Resource instance in the iterator.
Specified by:
nextResource in interface ResourceIterator
Returns:
the next Resource instance in the iterator.