|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.camel.builder.BinaryPredicateSupport
public abstract class BinaryPredicateSupport
A useful base class for Predicate
implementations
Constructor Summary | |
---|---|
protected |
BinaryPredicateSupport(Expression left,
Expression right)
|
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected BinaryPredicateSupport(Expression left, Expression right)
Method Detail |
---|
public String toString()
toString
in class Object
public boolean matches(Exchange exchange)
Predicate
matches
in interface Predicate
exchange
- the message exchange
public String matchesReturningFailureMessage(Exchange exchange)
BinaryPredicate
matchesReturningFailureMessage
in interface BinaryPredicate
exchange
- the message exchange
protected abstract boolean matches(Exchange exchange, Object leftValue, Object rightValue)
protected 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |