Class XPathEngine
java.lang.Object
io.jenkins.plugins.xmleditor.core.xpath.XPathEngine
Evaluates XPath 1.0 expressions on a lossless document and maps selected nodes back to it.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanevaluateBoolean(String expression) evaluateList(String expression) String values of all selected nodes (a single element list for non node-set expressions).doubleevaluateNumber(String expression) evaluateString(String expression) String value of the first selected node, or the string result of a non node-set expression.voidrefresh()Rebuilds the XPath view after the document has been modified, including namespace prefixes it declares.selectNodes(String expression) Nodes selected byexpression: elements, attributes, text, CDATA, comments or PIs.warnings()
-
Constructor Details
-
XPathEngine
- Throws:
XmlEditorException
-
-
Method Details
-
refresh
Rebuilds the XPath view after the document has been modified, including namespace prefixes it declares.- Throws:
XmlEditorException
-
warnings
-
selectNodes
Nodes selected byexpression: elements, attributes, text, CDATA, comments or PIs.- Throws:
XmlEditorException
-
evaluateString
String value of the first selected node, or the string result of a non node-set expression.- Returns:
- empty when the expression selects no node
- Throws:
XmlEditorException
-
evaluateList
String values of all selected nodes (a single element list for non node-set expressions).- Throws:
XmlEditorException
-
evaluateNumber
- Throws:
XmlEditorException
-
evaluateBoolean
- Throws:
XmlEditorException
-