1 18 package org.apache.activemq.filter; 19 20 import javax.jms.JMSException ; 21 22 25 public final class XQueryExpression implements BooleanExpression { 26 private final String xpath; 27 28 XQueryExpression(String xpath) { 29 super(); 30 this.xpath = xpath; 31 } 32 33 public Object evaluate(MessageEvaluationContext message) throws JMSException { 34 return Boolean.FALSE; 35 } 36 37 public String toString() { 38 return "XQUERY "+ConstantExpression.encodeString(xpath); 39 } 40 41 46 public boolean matches(MessageEvaluationContext message) throws JMSException { 47 Object object = evaluate(message); 48 return object!=null && object==Boolean.TRUE; 49 } 50 51 } 52 | Popular Tags |