org.apache.struts.mock
Class MockEnumeration

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

public class MockEnumeration
extends java.lang.Object
implements java.util.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  java.util.Iterator iterator
           
 
Constructor Summary
MockEnumeration(java.util.Iterator iterator)
           
 
Method Summary
 boolean hasMoreElements()
           
 java.lang.Object nextElement()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

iterator

protected java.util.Iterator iterator
Constructor Detail

MockEnumeration

public MockEnumeration(java.util.Iterator iterator)
Method Detail

hasMoreElements

public boolean hasMoreElements()
Specified by:
hasMoreElements in interface java.util.Enumeration

nextElement

public java.lang.Object nextElement()
Specified by:
nextElement in interface java.util.Enumeration


Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.