org.apache.qpid.server.filter
Class XPathExpression
java.lang.Object
org.apache.qpid.server.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.
XPathExpression
XPathExpression(String xpath)
evaluate
public Object evaluate(Filterable message)
- Specified by:
evaluate
in interface Expression
- Returns:
- the value of this expression
toString
public String toString()
- Overrides:
toString
in class Object
matches
public boolean matches(Filterable message)
- Specified by:
matches
in interface BooleanExpression
- Parameters:
message
-
- Returns:
- true if the expression evaluates to Boolean.TRUE.
- Throws:
org.apache.qpid.AMQException
Licensed to the Apache Software Foundation