|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.novell.xml.xpath.SingleNodeList
A convenience class to provide a context node list of one
| Field Summary |
| Fields inherited from interface com.novell.xml.xpath.ContextNodeList |
DOCUMENT_ORDER, REVERSE_DOCUMENT_ORDER, UNKNOWN_ORDER |
| Constructor Summary | |
SingleNodeList()
|
|
| Method Summary | |
int |
count()
Return a count of nodes in the context node list. |
Node |
first()
Return the first node in the context node list. |
ContextListMark |
getMark()
Return a marker to a position in a ContextNodeList.
|
Node |
next()
Return a the subsequent node in the context node list after a call to first() or next() |
int |
order()
Return order in which nodes are returned from first()-next() |
int |
position()
Return the position of the last node returned by a call to first() or next() |
Node |
returnToMark(ContextListMark mark)
Go to a position in a ContextNodeList previously marked
with getMark() |
void |
setNode(Node node)
Set the node for this SingleNodeList; |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SingleNodeList()
| Method Detail |
public void setNode(Node node)
SingleNodeList;
node - The node for this single node list
public Node first()
throws XPathEvaluationException
first in interface ContextNodeListnull is returned if list is empty
XPathEvaluationException
public Node next()
throws XPathEvaluationException
first() or next()
next in interface ContextNodeListnull is returned
if there are no more nodes in the node list
XPathEvaluationException
public int count()
throws XPathEvaluationException
count in interface ContextNodeListXPathEvaluationExceptionpublic int position()
first() or next()
position in interface ContextNodeListNode position in node list. 0 is returned if no nodes have
been returned. Once first() or next() return null (indicating
no more nodes in list) the return will be the position of the
last node in the list.public int order()
first()-next()
order in interface ContextNodeListDOCUMENT_ORDER or REVERSE_DOCUMENT_ORDERpublic ContextListMark getMark()
ContextNodeList.
This marker can be used later in a call to returnToMark() to
return to a particular position in the list.
getMark in interface ContextNodeListpublic Node returnToMark(ContextListMark mark)
ContextNodeList previously marked
with getMark()
returnToMark in interface ContextNodeListmark - mark returned from getMark()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||