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 for Predicate implementations
  • Constructor Details

    • BinaryPredicateSupport

      protected BinaryPredicateSupport(org.apache.camel.Expression left, org.apache.camel.Expression right)
  • Method Details

    • init

      public void init(org.apache.camel.CamelContext context)
      Specified by:
      init in interface org.apache.camel.Predicate
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • matches

      public boolean matches(org.apache.camel.Exchange exchange)
      Specified by:
      matches in interface org.apache.camel.Predicate
    • matchesReturningFailureMessage

      public String matchesReturningFailureMessage(org.apache.camel.Exchange exchange)
      Specified by:
      matchesReturningFailureMessage in interface org.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:
      getLeft in interface org.apache.camel.BinaryPredicate
    • getRight

      public org.apache.camel.Expression getRight()
      Specified by:
      getRight in interface org.apache.camel.BinaryPredicate
    • getOperator

      public String getOperator()
      Specified by:
      getOperator in interface org.apache.camel.BinaryPredicate