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-safeModifier 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 event
Object 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 event
xpathExpression
- the xpathExpression to be evaluatedinput
- a Node
returnType
- a XPathReturnType
that will be used to decide the return type of the evaluationevent
- the current MuleEvent
.returnType
void registerNamespaces(Map<String,String> namespaces)
void registerNamespaces(NamespaceManager namespaceManager)
namespaceManager
namespaceManager
- a NamespaceManager
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.