org.apache.commons.chain.web
Class MockEnumeration

java.lang.Object
  extended by org.apache.commons.chain.web.MockEnumeration
All Implemented Interfaces:
Enumeration

public class MockEnumeration
extends Object
implements Enumeration

General purpose Enumeration wrapper around an Iterator specified to our controller.


Field Summary
protected  Iterator iterator
           
 
Constructor Summary
MockEnumeration(Iterator iterator)
           
 
Method Summary
 boolean hasMoreElements()
           
 Object nextElement()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

iterator

protected Iterator iterator
Constructor Detail

MockEnumeration

public MockEnumeration(Iterator iterator)
Method Detail

hasMoreElements

public boolean hasMoreElements()
Specified by:
hasMoreElements in interface Enumeration

nextElement

public Object nextElement()
Specified by:
nextElement in interface Enumeration


Copyright © 2003-2010 The Apache Software Foundation. All Rights Reserved.