public abstract class BinaryPredicateSupport extends java.lang.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 java.lang.String |
getOperationText() |
java.lang.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,
java.lang.Object leftValue,
java.lang.Object rightValue) |
java.lang.String |
matchesReturningFailureMessage(Exchange exchange)
Evaluates the predicate on the message exchange and returns null if this
exchange matches the predicate.
|
java.lang.String |
toString() |
protected BinaryPredicateSupport(Expression left, Expression right)
public java.lang.String toString()
toString
in class java.lang.Object
public boolean matches(Exchange exchange)
Predicate
public java.lang.String matchesReturningFailureMessage(Exchange exchange)
BinaryPredicate
matchesReturningFailureMessage
in interface BinaryPredicate
exchange
- the message exchangeprotected abstract boolean matches(Exchange exchange, java.lang.Object leftValue, java.lang.Object rightValue)
protected abstract java.lang.String getOperationText()
public Expression getLeft()
BinaryPredicate
getLeft
in interface BinaryPredicate
public Expression getRight()
BinaryPredicate
getRight
in interface BinaryPredicate
public java.lang.String getOperator()
BinaryPredicate
getOperator
in interface BinaryPredicate
Copyright © 2007-2014 Red Hat, Inc.. All Rights Reserved.