org.apache.camel.util
Class ExpressionToPredicateAdapter

java.lang.Object
  extended by org.apache.camel.util.ExpressionToPredicateAdapter
All Implemented Interfaces:
Predicate

public final class ExpressionToPredicateAdapter
extends Object
implements Predicate


Constructor Summary
ExpressionToPredicateAdapter(Expression expression)
           
 
Method Summary
 boolean matches(Exchange exchange)
          Evaluates the predicate on the message exchange and returns true if this exchange matches the predicate
static Predicate toPredicate(Expression expression)
          Converts the given expression into an Predicate
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExpressionToPredicateAdapter

public ExpressionToPredicateAdapter(Expression expression)
Method Detail

matches

public boolean matches(Exchange exchange)
Description copied from interface: Predicate
Evaluates the predicate on the message exchange and returns true if this exchange matches the predicate

Specified by:
matches in interface Predicate
Parameters:
exchange - the message exchange
Returns:
true if the predicate matches

toString

public String toString()
Overrides:
toString in class Object

toPredicate

public static Predicate toPredicate(Expression expression)
Converts the given expression into an Predicate



Apache CAMEL