public abstract class AbstractXPathExpressionEvaluator extends Object implements ExpressionEvaluator, Disposable
PHASE_NAME
Constructor and Description |
---|
AbstractXPathExpressionEvaluator() |
Modifier and Type | Method and Description |
---|---|
protected abstract org.jaxen.XPath |
createXPath(String expression,
Object object) |
void |
dispose()
A lifecycle method where implementor should free up any resources.
|
Object |
evaluate(String expression,
Object message)
Extracts a single property from the message
|
protected abstract Object |
extractResultFromNode(Object result) |
protected List |
extractResultsFromNodes(List results) |
protected org.jaxen.XPath |
getXPath(String expression,
Object object) |
void |
setName(String name)
Sets the name of the object
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName
public Object evaluate(String expression, Object message)
evaluate
in interface ExpressionEvaluator
expression
- the property expression or expressionmessage
- the message to extract frompublic final void setName(String name)
setName
in interface NamedObject
name
- the name of the objectprotected org.jaxen.XPath getXPath(String expression, Object object) throws org.jaxen.JaxenException
org.jaxen.JaxenException
protected abstract org.jaxen.XPath createXPath(String expression, Object object) throws org.jaxen.JaxenException
org.jaxen.JaxenException
public void dispose()
dispose
in interface Disposable
Copyright © 2003–2013 MuleSource, Inc.. All rights reserved.