public abstract class BinaryPredicateSupport extends Object implements BinaryPredicate
Predicate implementations| Modifier | Constructor and Description |
|---|---|
protected |
BinaryPredicateSupport(Expression left,
Expression right) |
| Modifier and Type | Method and Description |
|---|---|
Expression |
getLeft()
Gets the left hand side expression
|
protected abstract String |
getOperationText() |
String |
getOperator()
Gets the operator
|
Expression |
getRight()
Gets the right hand side expression
|
boolean |
matches(Exchange exchange)
Evaluates the predicate on the message exchange and returns true if this
exchange matches the predicate
|
protected abstract boolean |
matches(Exchange exchange,
Object leftValue,
Object rightValue) |
String |
matchesReturningFailureMessage(Exchange exchange)
Evaluates the predicate on the message exchange and returns null if this
exchange matches the predicate.
|
String |
toString() |
protected BinaryPredicateSupport(Expression left, Expression right)
public boolean matches(Exchange exchange)
Predicatepublic String matchesReturningFailureMessage(Exchange exchange)
BinaryPredicatematchesReturningFailureMessage in interface BinaryPredicateexchange - the message exchangeprotected abstract String getOperationText()
public Expression getLeft()
BinaryPredicategetLeft in interface BinaryPredicatepublic Expression getRight()
BinaryPredicategetRight in interface BinaryPredicatepublic String getOperator()
BinaryPredicategetOperator in interface BinaryPredicateApache Camel