public class XPathExpression extends Object
Constructor and Description |
---|
XPathExpression(XPath aXpath,
String aExpression)
Constructs the expression.
|
Modifier and Type | Method and Description |
---|---|
boolean |
booleanEval(XMLDocument aDocument)
Evaluates the xpath expression to a boolean.
|
XPathExpression |
getExpression() |
String |
getExpressionString() |
Node |
nodeEval(XMLDocument aDocument)
Evaluates the xpath expression to a Node.
|
NodeList |
nodelistEval(XMLDocument aDocument)
Evaluates the xpath expression to a node list.
|
Double |
numberEval(XMLDocument aDocument)
Evaluates the xpath expression to a number.
|
String |
stringEval(XMLDocument aDocument)
Evaluates the xpath expression to a string.
|
public XPathExpression(XPath aXpath, String aExpression) throws XMLException
XPathContext.createExpression(String)
instead
of this constructor.aXpath
- Xpath interface.aExpression
- Expression.XMLException
- In case of problems.public String stringEval(XMLDocument aDocument) throws XMLException
aDocument
- DocumentXMLException
- In case of problems.public boolean booleanEval(XMLDocument aDocument) throws XMLException
aDocument
- DocumentXMLException
- In case of problems.public NodeList nodelistEval(XMLDocument aDocument) throws XMLException
aDocument
- DocumentXMLException
- In case of problems.public Node nodeEval(XMLDocument aDocument) throws XMLException
aDocument
- DocumentXMLException
- In case of problems.public Double numberEval(XMLDocument aDocument) throws XMLException
aDocument
- DocumentXMLException
- In case of problems.public XPathExpression getExpression()
public String getExpressionString()
Copyright © 2024. All rights reserved.