|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.novell.xml.xpath.Predicate
Class that represents a predicate in a Step or in a FilterExpr
| Field Summary |
| Fields inherited from interface com.novell.xml.xpath.ContextNodeList |
DOCUMENT_ORDER, REVERSE_DOCUMENT_ORDER, UNKNOWN_ORDER |
| Constructor Summary | |
Predicate(Expression expr)
Create a Predicate with the given expression |
|
| Method Summary | |
int |
count()
Return a count of nodes in the context node list that match the predicate expression |
void |
done()
stop referencing resources that are no longer needed |
Node |
first()
Return the first node from the context node list that matches the predicate expression |
ContextListMark |
getMark()
Return a marker to a position in a ContextNodeList. |
Node |
next()
Return subsequent nodesfrom the context node list that match the predicate expression |
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 |
setup(ExpressionContext context)
Setup the Predicate for first()/next() calls The Predicate uses the ContextNodeList interface of the ExpressionContext to get the nodes to test. |
String |
toString()
Provide a readable description for debugging. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Predicate(Expression expr)
expr - The PredicateExpr expression| Method Detail |
public String toString()
public void setup(ExpressionContext context)
context - The expression context for evalulating the
PredicateExpr.public void done()
public Node first()
throws XPathEvaluationException
first in interface ContextNodeListXPathEvaluationException
public Node next()
throws XPathEvaluationException
next in interface ContextNodeListXPathEvaluationExceptionpublic int position()
position in interface ContextNodeList
public int count()
throws XPathEvaluationException
count in interface ContextNodeListXPathEvaluationExceptionpublic int order()
order in interface ContextNodeListpublic ContextListMark getMark()
getMark in interface ContextNodeListpublic Node returnToMark(ContextListMark mark)
returnToMark in interface ContextNodeListmark - mark returned from getMark()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||