public class XStreamSafeEvaluator extends Object
hello
In the above case, the XPath expression /test/a would result in the "hello" text but the XPath expression /test/b/a would result in the empty string. However, if the evaluator below is mapped as an XPath function, than it could be used as follows on the second expression to produce the desired result of "hello": xstreamsafe('/test/b/a', root())
Constructor and Description |
---|
XStreamSafeEvaluator() |
XStreamSafeEvaluator(XPath xpath) |
Modifier and Type | Method and Description |
---|---|
NodeList |
evaluate(String xPathExpression,
Node rootSearchNode)
Evaluates the given XPath expression against the given Node while following reference attributes
on Nodes in a way which is compatible with the XStream library.
|
XPath |
getXpath() |
void |
setXpath(XPath xpath) |
public XStreamSafeEvaluator()
public XStreamSafeEvaluator(XPath xpath)
public NodeList evaluate(String xPathExpression, Node rootSearchNode) throws XPathExpressionException
XPathExpressionException
- if there was a problem evaluation the XPath expression.Copyright © 2005–2016 The Kuali Foundation. All rights reserved.