org.mule.util.expression
Class MessageAttachmentExpressionEvaluator

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

public class MessageAttachmentExpressionEvaluator
extends Object
implements ExpressionEvaluator

Looks up an attachment with the given name.

See Also:
MessageAttachmentsListExpressionEvaluator, MessageAttachmentsExpressionEvaluator, ExpressionEvaluator, ExpressionEvaluatorManager

Field Summary
static String NAME
           
 
Constructor Summary
MessageAttachmentExpressionEvaluator()
           
 
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
Constructor Detail

MessageAttachmentExpressionEvaluator

public MessageAttachmentExpressionEvaluator()
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.