1 /*** 2 * The contents of this file are subject to the Mozilla Public 3 * License Version 1.1 (the "License"); you may not use this file 4 * except in compliance with the License. You may obtain a copy of 5 * the License at http://www.mozilla.org/MPL/ 6 * 7 * Software distributed under the License is distributed on an "AS 8 * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or 9 * implied. See the License for the specific language governing 10 * rights and limitations under the License. 11 * 12 * The Original Code is pow2toolkit library. 13 * 14 * The Initial Owner of the Original Code is 15 * Claudio Fratarcangeli 16 * 17 * Portions created by Power Of Two S.R.L. are 18 * Copyright (C) Power Of Two S.R.L. 19 * All Rights Reserved. 20 * 21 * Contributor(s): 22 */ 23 24 package com.pow2.dao.datalist; 25 26 import java.util.NoSuchElementException; 27 28 29 30 /*** 31 * DataListIterator Interface 32 * 33 * @author Claudio Fratarcangeli 34 * @created 5 dicembre 2002 35 */ 36 public interface DataListIterator 37 { 38 /*** 39 * Check if the data list contains another object. 40 * 41 * @return true if the data list contains another object, false otherwise 42 * @exception Exception if any error occurs 43 */ 44 public boolean hasNext() throws Exception; 45 46 47 /*** 48 * Get the next object from the data list 49 * 50 * @param object the object to fill with data 51 * @return the next object from the data list 52 * @exception NoSuchElementException if any error occurs 53 */ 54 public Object next(Object object) throws NoSuchElementException; 55 }