org.apache.qpid.server.filter
Class XPathExpression

java.lang.Object
  extended by 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.


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

Constructor Detail

XPathExpression

XPathExpression(String xpath)
Method Detail

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