org.apache.activemq.filter
Class XPathExpression
java.lang.Object
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.
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-2011 Apache Software Foundation. All Rights Reserved.