Package com.tailf.maapi
Interface MaapiXPathEvalResult
public interface MaapiXPathEvalResult
This interface is used with
xpathEval
method in Maapi
. It allows a way
to iterate through a set of resulting nodes from evaluating xpath expression.-
Method Summary
Modifier and TypeMethodDescriptionresult
(ConfObject[] kp, ConfValue value, Object state) For each node in the resulting node set evaluated by the xpath this method will be called.
-
Method Details
-
result
For each node in the resulting node set evaluated by the xpath this method will be called.
For each node in the resulting node set, this method is called with keypath (as
ConfObject[]
) to the resulting node as the first argument, and, if the node is a leaf and has a value (asConfValue
), the value of that node as the second argument otherwise it will return the string "undefined".After each invocation this method (done by
xpathEval
) this method should return eitherITER_CONTINUE
to tell the xpath evaluator to continue with the next resulting node or stopITER_STOP
to stop the iteration.- Parameters:
kp
- Keypathvalue
- Value (if leaf) or string "undefined" if the node is not a leafstate
- User suplied opaque
-