org.mule.expression
Class FunctionExpressionEvaluator

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

public class FunctionExpressionEvaluator
extends java.lang.Object
implements ExpressionEvaluator

This property extractor doesn't actually extract a property from the message, instead it allows for certain functions to be called and returns a result. The functions it supports are -


Field Summary
static java.lang.String COUNT_FUNCTION
           
static java.lang.String DATE_FUNCTION
           
static java.lang.String DATESTAMP_FUNCTION
           
static java.lang.String DEFAULT_DATE_FORMAT
           
static java.lang.String HOSTNAME_FUNCTION
           
static java.lang.String IP_FUNCTION
           
static java.lang.String NAME
           
static java.lang.String NOW_FUNCTION
           
static java.lang.String PAYLOAD_CLASS_FUNCTION
           
static java.lang.String SHORT_PAYLOAD_CLASS_FUNCTION
           
static java.lang.String SYSTIME_FUNCTION
           
static java.lang.String UUID_FUNCTION
           
 
Constructor Summary
FunctionExpressionEvaluator()
           
 
Method Summary
 java.lang.Object evaluate(java.lang.String name, MuleMessage message)
          Extracts a single property from the message
 java.lang.String getName()
          Gts the name of the object
 void setName(java.lang.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 java.lang.String NAME
See Also:
Constant Field Values

DEFAULT_DATE_FORMAT

public static final java.lang.String DEFAULT_DATE_FORMAT
See Also:
Constant Field Values

NOW_FUNCTION

public static final java.lang.String NOW_FUNCTION
See Also:
Constant Field Values

DATE_FUNCTION

public static final java.lang.String DATE_FUNCTION
See Also:
Constant Field Values

DATESTAMP_FUNCTION

public static final java.lang.String DATESTAMP_FUNCTION
See Also:
Constant Field Values

SYSTIME_FUNCTION

public static final java.lang.String SYSTIME_FUNCTION
See Also:
Constant Field Values

UUID_FUNCTION

public static final java.lang.String UUID_FUNCTION
See Also:
Constant Field Values

HOSTNAME_FUNCTION

public static final java.lang.String HOSTNAME_FUNCTION
See Also:
Constant Field Values

IP_FUNCTION

public static final java.lang.String IP_FUNCTION
See Also:
Constant Field Values

COUNT_FUNCTION

public static final java.lang.String COUNT_FUNCTION
See Also:
Constant Field Values

PAYLOAD_CLASS_FUNCTION

public static final java.lang.String PAYLOAD_CLASS_FUNCTION
See Also:
Constant Field Values

SHORT_PAYLOAD_CLASS_FUNCTION

public static final java.lang.String SHORT_PAYLOAD_CLASS_FUNCTION
See Also:
Constant Field Values
Constructor Detail

FunctionExpressionEvaluator

public FunctionExpressionEvaluator()
Method Detail

evaluate

public java.lang.Object evaluate(java.lang.String name,
                                 MuleMessage 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 java.lang.String getName()
Gts the name of the object

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

setName

public void setName(java.lang.String name)
Sets the name of the object

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


Copyright © 2003-2010 MuleSoft, Inc.. All Rights Reserved.