org.apache.cocoon.ant
Class CocoonCrawling.CocoonCrawlingIterator

java.lang.Object
  extended byorg.apache.cocoon.ant.CocoonCrawling.CocoonCrawlingIterator
All Implemented Interfaces:
Iterator
Enclosing class:
CocoonCrawling

public static class CocoonCrawling.CocoonCrawlingIterator
extends Object
implements Iterator

An Iterator iterating over URIs which are not visited already, visited URIs are moved immediatly to a set of visited URIs

Author:
huber@apache.org

Constructor Summary
CocoonCrawling.CocoonCrawlingIterator(Set visitedAlready, List stillNotVisited)
          Constructor for the CocoonCrawlingIterator object
 
Method Summary
 boolean hasNext()
          Check if list of not visited URIs is empty
 Object next()
          Get next not visited URIs
 void remove()
          Removing objects is not supported, and will always throw a UnsupportedOperationException.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CocoonCrawling.CocoonCrawlingIterator

public CocoonCrawling.CocoonCrawlingIterator(Set visitedAlready,
                                             List stillNotVisited)
Constructor for the CocoonCrawlingIterator object

Parameters:
visitedAlready - Description of Parameter
stillNotVisited - Description of Parameter
Method Detail

hasNext

public boolean hasNext()
Check if list of not visited URIs is empty

Specified by:
hasNext in interface Iterator
Returns:
boolean true iff list of not visited URIs is not empty

next

public Object next()
Get next not visited URIs

Specified by:
next in interface Iterator
Returns:
object from list of not visited URIs, move it immediatly to set of visited URIs

remove

public void remove()
Removing objects is not supported, and will always throw a UnsupportedOperationException.

Specified by:
remove in interface Iterator


Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.