org.mule.module.xml.expression
Class JXPathExpressionEvaluator

java.lang.Object
  extended by org.mule.module.xml.expression.JXPathExpressionEvaluator
All Implemented Interfaces:
NamedObject, ExpressionEvaluator

public class JXPathExpressionEvaluator
extends Object
implements ExpressionEvaluator

Will extract properties based on Xpath expressions. Will work on Xml/Dom and beans


Field Summary
protected  Log logger
          logger used by this class
static String NAME
           
 
Constructor Summary
JXPathExpressionEvaluator()
           
 
Method Summary
 Object evaluate(String name, Object message)
          Extracts a single property from the message
 String getName()
          Gts the name of the object
 void setName(String name)
          Sets the name of the object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final String NAME
See Also:
Constant Field Values

logger

protected transient Log logger
logger used by this class

Constructor Detail

JXPathExpressionEvaluator

public JXPathExpressionEvaluator()
Method Detail

evaluate

public Object evaluate(String name,
                       Object message)
Description copied from interface: ExpressionEvaluator
Extracts a single property from the message

Specified by:
evaluate in interface ExpressionEvaluator
Parameters:
name - the property expression or expression
message - the message to extract from
Returns:
the result of the extraction or null if the property was not found

getName

public String getName()
Gts the name of the object

Specified by:
getName in interface NamedObject
Returns:
the name of the object

setName

public void setName(String name)
Sets the name of the object

Specified by:
setName in interface NamedObject
Parameters:
name - the name of the object


Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.