uk.org.ogsadai.client.toolkit.activity.xmldb
Class ResourceIteratorImpl

java.lang.Object
  |
  +--uk.org.ogsadai.client.toolkit.activity.xmldb.ResourceIteratorImpl
All Implemented Interfaces:
org.xmldb.api.base.ResourceIterator

public class ResourceIteratorImpl
extends java.lang.Object
implements org.xmldb.api.base.ResourceIterator

A simple implementation of the org.xmldb.api.base.ResourceInterator interface.

Author:
The OGSA-DAI Project Team

Field Summary
private static java.lang.String COPYRIGHT_NOTICE
          Copyright statement
private  int mIndex
          Index of the current resource
private  java.util.List mResources
          The resources to iterate over
 
Constructor Summary
ResourceIteratorImpl(java.util.List resources)
          Constructs a ResourceIterator that iterates over the resources contained in the specified list.
 
Method Summary
 boolean hasMoreResources()
           
 org.xmldb.api.base.Resource nextResource()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPYRIGHT_NOTICE

private static final java.lang.String COPYRIGHT_NOTICE
Copyright statement

See Also:
Constant Field Values

mResources

private final java.util.List mResources
The resources to iterate over


mIndex

private int mIndex
Index of the current resource

Constructor Detail

ResourceIteratorImpl

public ResourceIteratorImpl(java.util.List resources)
Constructs a ResourceIterator that iterates over the resources contained in the specified list.

Parameters:
resources - A List of Resource objects.
Throws:
java.lang.IllegalArgumentException - If resources is null.
Method Detail

hasMoreResources

public boolean hasMoreResources()
                         throws org.xmldb.api.base.XMLDBException
Specified by:
hasMoreResources in interface org.xmldb.api.base.ResourceIterator
org.xmldb.api.base.XMLDBException

nextResource

public org.xmldb.api.base.Resource nextResource()
                                         throws org.xmldb.api.base.XMLDBException
Specified by:
nextResource in interface org.xmldb.api.base.ResourceIterator
org.xmldb.api.base.XMLDBException