Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.activemq.filter
Class XPathExpression  view XPathExpression download XPathExpression.java

java.lang.Object
  extended byorg.activemq.filter.XPathExpression
All Implemented Interfaces:
BooleanExpression, Expression

public final class XPathExpression
extends java.lang.Object
implements BooleanExpression

Used to evaluate an XPath Expression in a JMS selector.


Nested Class Summary
static interface XPathExpression.XPathEvaluator
           
 
Field Summary
private static java.lang.String DEFAULT_EVALUATOR_CLASS_NAME
           
private  XPathExpression.XPathEvaluator evaluator
           
private static java.lang.reflect.Constructor EVALUATOR_CONSTRUCTOR
           
private static java.lang.String EVALUATOR_SYSTEM_PROPERTY
           
private static org.apache.commons.logging.Log log
           
private  java.lang.String xpath
           
 
Constructor Summary
(package private) XPathExpression(java.lang.String xpath)
           
 
Method Summary
private  XPathExpression.XPathEvaluator createEvaluator(java.lang.String xpath2)
           
 java.lang.Object evaluate(javax.jms.Message message)
           
private static java.lang.reflect.Constructor getXPathEvaluatorConstructor(java.lang.String cn)
           
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

private static final org.apache.commons.logging.Log log

EVALUATOR_SYSTEM_PROPERTY

private static final java.lang.String EVALUATOR_SYSTEM_PROPERTY
See Also:
Constant Field Values

DEFAULT_EVALUATOR_CLASS_NAME

private static final java.lang.String DEFAULT_EVALUATOR_CLASS_NAME

EVALUATOR_CONSTRUCTOR

private static final java.lang.reflect.Constructor EVALUATOR_CONSTRUCTOR

xpath

private final java.lang.String xpath

evaluator

private final XPathExpression.XPathEvaluator evaluator
Constructor Detail

XPathExpression

XPathExpression(java.lang.String xpath)
Method Detail

getXPathEvaluatorConstructor

private static java.lang.reflect.Constructor getXPathEvaluatorConstructor(java.lang.String cn)
                                                                   throws java.lang.ClassNotFoundException,
                                                                          java.lang.SecurityException,
                                                                          java.lang.NoSuchMethodException

createEvaluator

private XPathExpression.XPathEvaluator createEvaluator(java.lang.String xpath2)

evaluate

public java.lang.Object evaluate(javax.jms.Message message)
                          throws javax.jms.JMSException
Specified by:
evaluate in interface Expression

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).