|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.novell.xml.xpath.Step
class that represents an XPath LocationPath Step The nodes returned from this class will always be in document order. The reason for this is that a Step is defined by XPath as returning a node-set, rather than a list. However, the only way node-sets are used is in document order.
Constructor Summary | |
Step(Basis basis)
Construct a Step without a predicate |
|
Step(Basis basis,
Predicate predicate)
Construct a Step with a single predicate |
|
Step(Basis basis,
Predicate[] predicates)
Construct a Step with multiple predicates, e.g., child::*[1][2][3] |
|
Step(Step step,
Predicate predicate)
Construct a Step based on an exising step and an additional predicate. |
Method Summary | |
void |
done()
Undo any state changes that may have occurred in the expression context due to evaluation of the Step |
Node |
first()
Return the first node in the node-set resulting from evaluation of the Step with the expression context set in the setup() call |
Node |
next()
Return subsequent nodes in the node-set resulting from the evaluation of the Step with the context setup by setup() |
void |
setup(Node contextNode,
ExpressionContext context)
Initialize the Step to enable it to return the resulting node-set based on the passed expression context. |
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 Step(Basis basis)
basis
- The axis-name::node-testpublic Step(Basis basis, Predicate predicate)
basis
- The axis-name::node-testpredicate
- The predicate expressionpublic Step(Basis basis, Predicate[] predicates)
basis
- The axis-name::node-testpredicates
- Array of predicatespublic Step(Step step, Predicate predicate)
step
- The existing Steppredicate
- The additional predicateMethod Detail |
public void setup(Node contextNode, ExpressionContext context)
contextNode
- The node from which evaluation startscontext
- The collection of things that make up the expression context
for the step and for subexpressions in the steppublic void done()
public Node first() throws XPathEvaluationException
XPathEvaluationException
public Node next() throws XPathEvaluationException
XPathEvaluationException
public String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |