org.exolab.jms.selector
Interface Expression
- public interface Expression
This class is the base class for all expressions.
- Version:
- $Revision: 1.3 $ $Date: 2003/08/09 15:49:50 $
- Author:
- Tim Anderson
- See Also:
Message
,
SObject
,
TypeMismatchException
Method Summary |
org.exolab.jms.selector.SObject |
evaluate(javax.jms.Message msg)
Evaluate the expression |
java.lang.String |
toString()
Return a string representation of this expression. |
evaluate
public org.exolab.jms.selector.SObject evaluate(javax.jms.Message msg)
throws TypeMismatchException
- Evaluate the expression
- Parameters:
msg
- the message to use to obtain any header identifier and
property values- Returns:
- the evaluated result, or
null
if the value of the
expression is unknown - Throws:
TypeMismatchException
- if the expression tries to evaluate
mismatched types.
toString
public java.lang.String toString()
- Return a string representation of this expression. This
should be compatible with the selector syntax.
- Overrides:
toString
in class java.lang.Object
- Returns:
- a string representation of this expression
Copyright © 1999-2004 The OpenJMS Group. All Rights Reserved.