public abstract class XPathExpressionEvaluator extends Object
Constructor and Description |
---|
XPathExpressionEvaluator() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
evaluate(Element element,
ExecutionContext executionContext)
Does this XPath expression evaluate for the supplied
Element context object. |
abstract boolean |
evaluate(SAXElement element,
ExecutionContext executionContext)
Does this XPath expression evaluate for the supplied
SAXElement context object. |
static XPathExpressionEvaluator |
getInstance(org.jaxen.expr.Expr expr,
SelectorStep selectorStep,
Properties namespaces)
XPathExpressionEvaluator factory method. |
public abstract boolean evaluate(SAXElement element, ExecutionContext executionContext)
SAXElement
context object.
The implementation can update the context to a parent element if the expression targets
multiple contexts.element
- The SAXElement
context to be evaluated against.executionContext
- Smooks ExecutionContext
.public abstract boolean evaluate(Element element, ExecutionContext executionContext)
Element
context object.
The implementation can update the context to a parent element if the expression targets
multiple contexts.element
- The Element
context to be evaluated against.executionContext
- Smooks ExecutionContext
.public static XPathExpressionEvaluator getInstance(org.jaxen.expr.Expr expr, SelectorStep selectorStep, Properties namespaces) throws org.jaxen.saxpath.SAXPathException
XPathExpressionEvaluator
factory method.expr
- Jaxen XPath expression.selectorStep
- Selector Step.namespaces
- Namespace set.XPathExpressionEvaluator
for the Jaxen expression.org.jaxen.saxpath.SAXPathException
Copyright © 2020. All rights reserved.