1 /*
2 * $Id: IDataColumnIterator.java,v 1.18 2011/06/16 09:29:40 jbmeslin Exp $
3 *
4 */
5 package org.rcfaces.core.component.iterator;
6
7 import java.util.NoSuchElementException;
8
9 import org.rcfaces.core.component.DataColumnComponent;
10
11 /**
12 * An iterator over a collection of DataColumnComponents.
13 *
14 * @author Olivier Oeuillot (latest modification by $Author: jbmeslin $)
15 * @version $Revision: 1.18 $ $Date: 2011/06/16 09:29:40 $
16 */
17 public interface IDataColumnIterator extends IComponentIterator {
18
19 /**
20 * Returns the next DataColumnComponent in the iteration. Calling this
21 * method repeatedly until the {@link #hasNext()} method returns false will
22 * return each DataColumnComponent in the underlying collection exactly
23 * once.
24 *
25 * @return the next DataColumnComponent in the iteration.
26 * @exception NoSuchElementException
27 * iteration has no more DataColumnComponents.
28 */
29 DataColumnComponent next();
30
31 /**
32 * Returns an array containing all of the DataColumnComponents in this list
33 * in proper sequence.
34 *
35 * @return an array containing all of the DataColumnComponents in this list
36 * in proper sequence.
37 */
38 DataColumnComponent[] toArray();
39 }