org.apache.activemq.filter
Class XPathExpression

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

public final class XPathExpression
extends Object
implements BooleanExpression

Used to evaluate an XPath Expression in a JMS selector.


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

Method Detail

evaluate

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

toString

public String toString()
Overrides:
toString in class Object

matches

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


Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.