org.apache.struts.mock
Class MockEnumeration

java.lang.Object
  extended by org.apache.struts.mock.MockEnumeration
All Implemented Interfaces:
Enumeration

public class MockEnumeration
extends Object
implements Enumeration

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

Version:
$Rev: 471754 $ $Date: 2005-05-07 12:11:38 -0400 (Sat, 07 May 2005) $

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 © 2000-2008 Apache Software Foundation. All Rights Reserved.