org.apache.qpid.server.filter
Class XQueryExpression

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

public final class XQueryExpression
extends Object
implements BooleanExpression

Used to evaluate an XQuery Expression in a JMS selector.


Constructor Summary
XQueryExpression(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

XQueryExpression

XQueryExpression(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