public interface XPathEvaluator
MuleEvent to be passed on, in order to
resolve those parameters against the flow variables.
All implementations are required to be thread-safe| Modifier and Type | Method and Description |
|---|---|
String |
evaluate(String xpathExpression,
Node input,
MuleEvent event)
|
Object |
evaluate(String xpathExpression,
Node input,
XPathReturnType returnType,
MuleEvent event)
Evaluates the
xpathExpression over the input
and returns the evaluation as a type in concordance with returnType. |
Map<String,String> |
getRegisteredNamespaces()
Returns a
Map with the registered namespaces. |
void |
registerNamespaces(Map<String,String> namespaces)
Registers the given namespaces so that they can be recognized during evaluation
|
void |
registerNamespaces(NamespaceManager namespaceManager)
Registers the namespaces in
namespaceManager |
String evaluate(String xpathExpression, Node input, MuleEvent event)
xpathExpression over the input
and returns the evaluation as a String.
If xpathExpression contains parameters, they will be resolved
against the flow variables in eventObject evaluate(String xpathExpression, Node input, XPathReturnType returnType, MuleEvent event)
xpathExpression over the input
and returns the evaluation as a type in concordance with returnType.
If xpathExpression contains parameters, they will be resolved
against the flow variables in eventxpathExpression - the xpathExpression to be evaluatedinput - a NodereturnType - a XPathReturnType that will be used to decide the return type of the evaluationevent - the current MuleEvent.returnTypevoid registerNamespaces(Map<String,String> namespaces)
void registerNamespaces(NamespaceManager namespaceManager)
namespaceManagernamespaceManager - a NamespaceManagerCopyright © 2003–2016 MuleSoft, Inc.. All rights reserved.