public class LookaheadEnumerator extends java.lang.Object implements NodeEnumeration, LastPositionFinder
| Constructor and Description |
|---|
LookaheadEnumerator(NodeEnumeration base)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
getLastPosition()
Do lookahead to find the last position, if required
|
boolean |
hasMoreElements()
Determine whether there are any more nodes to hand to the client
|
boolean |
isPeer()
Determine whether the nodes are guaranteed to be peers
|
boolean |
isReverseSorted()
Determine whether the nodes returned by this enumeration are known to be in
reverse document order.
|
boolean |
isSorted()
Determine whether the nodes are guaranteed to be in document order
|
NodeInfo |
nextElement()
Hand the next node to the client
|
public LookaheadEnumerator(NodeEnumeration base)
base - An NodeEnumerator that delivers the nodes, but that cannot determine the
last position count.public boolean hasMoreElements()
hasMoreElements in interface NodeEnumerationpublic NodeInfo nextElement() throws XPathException
nextElement in interface NodeEnumerationXPathExceptionpublic int getLastPosition()
throws XPathException
getLastPosition in interface LastPositionFinderXPathExceptionpublic boolean isSorted()
isSorted in interface NodeEnumerationpublic boolean isReverseSorted()
NodeEnumerationisReverseSorted in interface NodeEnumerationpublic boolean isPeer()
isPeer in interface NodeEnumeration