org.apache.commons.discovery
Class ResourceIterator

java.lang.Object
  extended by org.apache.commons.discovery.ResourceIterator
All Implemented Interfaces:
ResourceNameIterator
Direct Known Subclasses:
ResourceClassIterator

public abstract class ResourceIterator
extends Object
implements ResourceNameIterator

Iterator over discovered Resource.


Constructor Summary
ResourceIterator()
           
 
Method Summary
abstract  Resource nextResource()
          Returns the next Resource in the iteration.
 String nextResourceName()
          Returns the next resource name in the iteration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.commons.discovery.ResourceNameIterator
hasNext
 

Constructor Detail

ResourceIterator

public ResourceIterator()
Method Detail

nextResource

public abstract Resource nextResource()
Returns the next Resource in the iteration.

Returns:
The next resource in the iteration

nextResourceName

public String nextResourceName()
Returns the next resource name in the iteration.

Specified by:
nextResourceName in interface ResourceNameIterator
Returns:
The next resource name in the iteration


Copyright © 2002-2011 The Apache Software Foundation. All Rights Reserved.