KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > icl > saxon > om > AxisEnumeration


1 package com.icl.saxon.om;
2 import com.icl.saxon.expr.LastPositionFinder;
3
4 /**
5 * A NodeEnumeration is used to iterate over a list of nodes. An AxisEnumeration
6 * is a NodeEnumeration that throws no exceptions; it also supports the ability
7 * to find the last() position, again with no exceptions.
8 */

9
10 public interface AxisEnumeration extends NodeEnumeration, LastPositionFinder {
11
12     /**
13     * Determine whether there are more nodes to come. <BR>
14     * (Note the term "Element" is used here in the sense of the standard Java Enumeration class,
15     * it has nothing to do with XML elements).
16     * @return true if there are more nodes
17     */

18
19     public boolean hasMoreElements();
20
21     /**
22     * Get the next node in sequence. <BR>
23     * (Note the term "Element" is used here in the sense of the standard Java Enumeration class,
24     * it has nothing to do with XML elements).
25     * @return the next NodeInfo
26     */

27
28     public NodeInfo nextElement();
29
30     /**
31     * Get the last position
32     */

33
34     public int getLastPosition();
35     
36 }
37
38
39
40 //
41
// The contents of this file are subject to the Mozilla Public License Version 1.0 (the "License");
42
// you may not use this file except in compliance with the License. You may obtain a copy of the
43
// License at http://www.mozilla.org/MPL/
44
//
45
// Software distributed under the License is distributed on an "AS IS" basis,
46
// WITHOUT WARRANTY OF ANY KIND, either express or implied.
47
// See the License for the specific language governing rights and limitations under the License.
48
//
49
// The Original Code is: all this file.
50
//
51
// The Initial Developer of the Original Code is
52
// Michael Kay of International Computers Limited (mhkay@iclway.co.uk).
53
//
54
// Portions created by (your name) are Copyright (C) (your legal entity). All Rights Reserved.
55
//
56
// Contributor(s): none.
57
//
58
Popular Tags