01: package net.sf.saxon.om;
02:
03: /**
04: * A SequenceIterator is used to iterate over a sequence. A LookaheadIterator
05: * is one that supports a hasNext() method to determine if there are more nodes
06: * after the current node.
07: */
08:
09: public interface LookaheadIterator extends SequenceIterator {
10:
11: /**
12: * Determine whether there are more items to come. Note that this operation
13: * is stateless and it is not necessary (or usual) to call it before calling
14: * next(). It is used only when there is an explicit need to tell if we
15: * are at the last element.
16: *
17: * @return true if there are more items in the sequence
18: */
19:
20: public boolean hasNext();
21:
22: }
23:
24: //
25: // The contents of this file are subject to the Mozilla Public License Version 1.0 (the "License");
26: // you may not use this file except in compliance with the License. You may obtain a copy of the
27: // License at http://www.mozilla.org/MPL/
28: //
29: // Software distributed under the License is distributed on an "AS IS" basis,
30: // WITHOUT WARRANTY OF ANY KIND, either express or implied.
31: // See the License for the specific language governing rights and limitations under the License.
32: //
33: // The Original Code is: all this file.
34: //
35: // The Initial Developer of the Original Code is Michael Kay
36: //
37: // Portions created by (your name) are Copyright (C) (your legal entity). All Rights Reserved.
38: //
39: // Contributor(s): none.
40: //
|