|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.icl.saxon.expr.LookaheadEnumerator
A LookaheadEnumerator passes the nodes from a base enumerator throgh unchanged. The complication is that on request, it must determine the value of the last() position, which requires a lookahead. A LookaheadEnumerator should only be used to wrap a NodeEnumeration that cannot determine the last() position for itself, i.e. one that is not a LastPositionFinder.
Constructor Summary | |
LookaheadEnumerator(NodeEnumeration base)
Constructor |
Method Summary | |
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LookaheadEnumerator(NodeEnumeration base) throws org.xml.sax.SAXException
base
- An NodeEnumerator that delivers the nodes, but that cannot determine the
last position count.Method Detail |
public boolean hasMoreElements() throws org.xml.sax.SAXException
hasMoreElements
in interface NodeEnumeration
com.icl.saxon.expr.NodeEnumeration
public NodeInfo nextElement() throws org.xml.sax.SAXException
nextElement
in interface NodeEnumeration
com.icl.saxon.expr.NodeEnumeration
public int getLastPosition() throws org.xml.sax.SAXException
getLastPosition
in interface LastPositionFinder
public boolean isSorted() throws org.xml.sax.SAXException
isSorted
in interface NodeEnumeration
com.icl.saxon.expr.NodeEnumeration
public boolean isReverseSorted() throws org.xml.sax.SAXException
NodeEnumeration
isReverseSorted
in interface NodeEnumeration
com.icl.saxon.expr.NodeEnumeration
public boolean isPeer() throws org.xml.sax.SAXException
isPeer
in interface NodeEnumeration
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |