org.exolab.jms.selector
Interface Expression


public interface Expression

This class is the base class for all expressions.

Version:
$Revision: 1.1 $ $Date: 2004/11/26 01:50:44 $
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.
 

Method Detail

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-2007 The OpenJMS Group. All Rights Reserved.