org.apache.camel.builder
Class BinaryPredicateSupport
java.lang.Object
org.apache.camel.builder.BinaryPredicateSupport
- All Implemented Interfaces:
- Predicate
public abstract class BinaryPredicateSupport
- extends Object
- implements Predicate
A useful base class for Predicate implementations
- Version:
- $Revision: 824351 $
BinaryPredicateSupport
protected BinaryPredicateSupport(Expression left,
Expression right)
toString
public String toString()
- Overrides:
toString in class Object
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
matches
protected abstract boolean matches(Exchange exchange,
Object leftValue,
Object rightValue)
getOperationText
protected abstract String getOperationText()
Copyright © 2007-2010 The Apache Software Foundation. All Rights Reserved.