Package com.icl.saxon.om
Interface AxisEnumeration
-
- All Superinterfaces:
LastPositionFinder
,NodeEnumeration
- All Known Implementing Classes:
AncestorEnumeration
,AncestorEnumeration
,ArrayEnumeration
,AttributeEnumeration
,AttributeEnumeration
,ChildEnumeration
,DescendantEnumeration
,DescendantEnumeration
,EmptyEnumeration
,FollowingEnumeration
,FollowingEnumeration
,FollowingSiblingEnumeration
,NamespaceEnumeration
,NamespaceEnumeration
,NodeWrapper.AncestorEnumeration
,PrecedingEnumeration
,PrecedingEnumeration
,PrecedingOrAncestorEnumeration
,PrecedingSiblingEnumeration
,PrecedingSiblingEnumeration
,PrependIterator
,SiblingEnumeration
,SingletonEnumeration
,TreeEnumeration
public interface AxisEnumeration extends NodeEnumeration, LastPositionFinder
A NodeEnumeration is used to iterate over a list of nodes. An AxisEnumeration is a NodeEnumeration that throws no exceptions; it also supports the ability to find the last() position, again with no exceptions.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getLastPosition()
Get the last positionboolean
hasMoreElements()
Determine whether there are more nodes to come.NodeInfo
nextElement()
Get the next node in sequence.-
Methods inherited from interface com.icl.saxon.om.NodeEnumeration
isPeer, isReverseSorted, isSorted
-
-
-
-
Method Detail
-
hasMoreElements
boolean hasMoreElements()
Determine whether there are more nodes to come.
(Note the term "Element" is used here in the sense of the standard Java Enumeration class, it has nothing to do with XML elements).- Specified by:
hasMoreElements
in interfaceNodeEnumeration
- Returns:
- true if there are more nodes
-
nextElement
NodeInfo nextElement()
Get the next node in sequence.
(Note the term "Element" is used here in the sense of the standard Java Enumeration class, it has nothing to do with XML elements).- Specified by:
nextElement
in interfaceNodeEnumeration
- Returns:
- the next NodeInfo
-
getLastPosition
int getLastPosition()
Get the last position- Specified by:
getLastPosition
in interfaceLastPositionFinder
-
-