public abstract class BinaryPredicateSupport extends Object implements BinaryPredicate
Predicate
implementationsModifier | 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)
Predicate
public String matchesReturningFailureMessage(Exchange exchange)
BinaryPredicate
matchesReturningFailureMessage
in interface BinaryPredicate
exchange
- the message exchangeprotected abstract String getOperationText()
public Expression getLeft()
BinaryPredicate
getLeft
in interface BinaryPredicate
public Expression getRight()
BinaryPredicate
getRight
in interface BinaryPredicate
public String getOperator()
BinaryPredicate
getOperator
in interface BinaryPredicate
Apache Camel