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: 766032 $
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
assertMatches
public void assertMatches(String text,
Exchange exchange)
matches
protected abstract boolean matches(Exchange exchange,
Object leftValue,
Object rightValue)
getOperationText
protected abstract String getOperationText()
assertionFailureMessage
protected String assertionFailureMessage(Exchange exchange,
Object leftValue,
Object rightValue)
Apache CAMEL