gov.noaa.eds.xapi.generic
Class GenericResourceIterator

java.lang.Object
  extended bygov.noaa.eds.xapi.generic.GenericResourceIterator
All Implemented Interfaces:
org.xmldb.api.base.ResourceIterator

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

A simple iterator for Resource objects.

Version:
$Id: GenericResourceIterator.java,v 1.2 2004/12/23 22:26:01 mrxtravis Exp $
Author:
tns

Constructor Summary
GenericResourceIterator(java.util.Iterator iterator)
          Creates a new instance of GenericResourceIterator
 
Method Summary
 boolean hasMoreResources()
          Determines if this iterations has any more resources to iterate through
 org.xmldb.api.base.Resource nextResource()
          Returns the next resource or throws an XMLDBException if one does not exist.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericResourceIterator

public GenericResourceIterator(java.util.Iterator iterator)
Creates a new instance of GenericResourceIterator

Method Detail

nextResource

public org.xmldb.api.base.Resource nextResource()
                                         throws org.xmldb.api.base.XMLDBException
Returns the next resource or throws an XMLDBException if one does not exist.

Specified by:
nextResource in interface org.xmldb.api.base.ResourceIterator
Returns:
The next resource in this iteration
Throws:
org.xmldb.api.base.XMLDBException

hasMoreResources

public boolean hasMoreResources()
                         throws org.xmldb.api.base.XMLDBException
Determines if this iterations has any more resources to iterate through

Specified by:
hasMoreResources in interface org.xmldb.api.base.ResourceIterator
Returns:
true if there are more resource, false otherwise
Throws:
org.xmldb.api.base.XMLDBException


Copyright © 2004 National Oceanic and Atmospheric Administration > National Geophysical Data Center > Enterprise Data Services Division. All Rights Reserved.