org.apache.activemq.filter
Class XQueryExpression

java.lang.Object
  extended by org.apache.activemq.filter.XQueryExpression
All Implemented Interfaces:
BooleanExpression, Expression

public final class XQueryExpression
extends java.lang.Object
implements BooleanExpression

Used to evaluate an XQuery Expression in a JMS selector.


Method Summary
 java.lang.Object evaluate(MessageEvaluationContext message)
           
 boolean matches(MessageEvaluationContext message)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

evaluate

public java.lang.Object evaluate(MessageEvaluationContext message)
                          throws javax.jms.JMSException
Specified by:
evaluate in interface Expression
Returns:
the value of this expression
Throws:
javax.jms.JMSException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

matches

public boolean matches(MessageEvaluationContext message)
                throws javax.jms.JMSException
Specified by:
matches in interface BooleanExpression
Parameters:
message -
Returns:
true if the expression evaluates to Boolean.TRUE.
Throws:
javax.jms.JMSException


Copyright © 2005-2011 FuseSource, Corp.. All Rights Reserved.