org.apache.activemq.filter
Class DestinationFilter

java.lang.Object
  extended by org.apache.activemq.filter.DestinationFilter
All Implemented Interfaces:
BooleanExpression, Expression
Direct Known Subclasses:
CompositeDestinationFilter, PrefixDestinationFilter, SimpleDestinationFilter, WildcardDestinationFilter

public abstract class DestinationFilter
extends Object
implements BooleanExpression

Represents a filter which only operates on Destinations

Version:
$Revision: 1.3 $

Field Summary
static String ANY_CHILD
           
static String ANY_DESCENDENT
           
 
Constructor Summary
DestinationFilter()
           
 
Method Summary
 Object evaluate(MessageEvaluationContext message)
           
abstract  boolean matches(ActiveMQDestination destination)
           
 boolean matches(MessageEvaluationContext message)
           
static DestinationFilter parseFilter(ActiveMQDestination destination)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ANY_DESCENDENT

public static final String ANY_DESCENDENT
See Also:
Constant Field Values

ANY_CHILD

public static final String ANY_CHILD
See Also:
Constant Field Values
Constructor Detail

DestinationFilter

public DestinationFilter()
Method Detail

evaluate

public Object evaluate(MessageEvaluationContext message)
                throws JMSException
Specified by:
evaluate in interface Expression
Returns:
the value of this expression
Throws:
JMSException

matches

public boolean matches(MessageEvaluationContext message)
                throws JMSException
Specified by:
matches in interface BooleanExpression
Returns:
true if the expression evaluates to Boolean.TRUE.
Throws:
JMSException

matches

public abstract boolean matches(ActiveMQDestination destination)

parseFilter

public static DestinationFilter parseFilter(ActiveMQDestination destination)


Copyright © 2009. All Rights Reserved.