|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 expressionMethod 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 ContextNodeList
XPathEvaluationException
public Node next() throws XPathEvaluationException
next
in interface ContextNodeList
XPathEvaluationException
public int position()
position
in interface ContextNodeList
public int count() throws XPathEvaluationException
count
in interface ContextNodeList
XPathEvaluationException
public int order()
order
in interface ContextNodeList
public ContextListMark getMark()
getMark
in interface ContextNodeList
public Node returnToMark(ContextListMark mark)
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 |