|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 listpublic Node first() throws XPathEvaluationException
first
in interface ContextNodeList
null
is returned if list is empty
XPathEvaluationException
public Node next() throws XPathEvaluationException
first()
or next()
next
in interface ContextNodeList
null
is returned
if there are no more nodes in the node list
XPathEvaluationException
public int count() throws XPathEvaluationException
count
in interface ContextNodeList
XPathEvaluationException
public int position()
first()
or next()
position
in interface ContextNodeList
Node
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 ContextNodeList
DOCUMENT_ORDER
or REVERSE_DOCUMENT_ORDER
public 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 ContextNodeList
public Node returnToMark(ContextListMark mark)
ContextNodeList
previously marked
with getMark()
returnToMark
in interface ContextNodeList
mark
- mark returned from getMark()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |