org.xmldb.api.sdk

Class SimpleResourceIterator

public class SimpleResourceIterator extends Object implements ResourceIterator

ResourceIterator is used to iterate over a set of resources.
Field Summary
protected intindex
protected Listresources
Constructor Summary
SimpleResourceIterator(List resources)
Method Summary
booleanhasMoreResources()
Returns true as long as there are still more resources to be iterated.
ResourcenextResource()
Returns the next Resource instance in the iterator.

Field Detail

index

protected int index

resources

protected List resources

Constructor Detail

SimpleResourceIterator

public SimpleResourceIterator(List resources)

Method Detail

hasMoreResources

public boolean hasMoreResources()
Returns true as long as there are still more resources to be iterated.

Returns: true if there are more resources to iterate, false otherwise.

nextResource

public Resource nextResource()
Returns the next Resource instance in the iterator.

Returns: the next Resource instance in the iterator.