Package org.apache.camel.support.builder
Class BinaryPredicateSupport
- java.lang.Object
-
- org.apache.camel.support.builder.BinaryPredicateSupport
-
- All Implemented Interfaces:
org.apache.camel.BinaryPredicate,org.apache.camel.Predicate
public abstract class BinaryPredicateSupport extends Object implements org.apache.camel.BinaryPredicate
A useful base class forPredicateimplementations
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBinaryPredicateSupport(org.apache.camel.Expression left, org.apache.camel.Expression right)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description org.apache.camel.ExpressiongetLeft()protected abstract StringgetOperationText()StringgetOperator()org.apache.camel.ExpressiongetRight()voidinit(org.apache.camel.CamelContext context)booleanmatches(org.apache.camel.Exchange exchange)protected abstract booleanmatches(org.apache.camel.Exchange exchange, Object leftValue, Object rightValue)StringmatchesReturningFailureMessage(org.apache.camel.Exchange exchange)StringtoString()
-
-
-
Method Detail
-
init
public void init(org.apache.camel.CamelContext context)
- Specified by:
initin interfaceorg.apache.camel.Predicate
-
matches
public boolean matches(org.apache.camel.Exchange exchange)
- Specified by:
matchesin interfaceorg.apache.camel.Predicate
-
matchesReturningFailureMessage
public String matchesReturningFailureMessage(org.apache.camel.Exchange exchange)
- Specified by:
matchesReturningFailureMessagein interfaceorg.apache.camel.BinaryPredicate
-
matches
protected abstract boolean matches(org.apache.camel.Exchange exchange, Object leftValue, Object rightValue)
-
getOperationText
protected abstract String getOperationText()
-
getLeft
public org.apache.camel.Expression getLeft()
- Specified by:
getLeftin interfaceorg.apache.camel.BinaryPredicate
-
getRight
public org.apache.camel.Expression getRight()
- Specified by:
getRightin interfaceorg.apache.camel.BinaryPredicate
-
getOperator
public String getOperator()
- Specified by:
getOperatorin interfaceorg.apache.camel.BinaryPredicate
-
-