org.apache.camel
Interface BinaryPredicate

All Superinterfaces:
Predicate
All Known Implementing Classes:
BinaryPredicateSupport

public interface BinaryPredicate
extends Predicate

A predicate which is evaluating a binary expression.

The predicate has a left and right hand side expressions which is matched based on an operator.

This predicate can return information about the evaluated expressions which allows you to get detailed information, so you better understand why the predicate did not match.

Version:
$Revision: 934870 $

Method Summary
 Expression getLeft()
          Gets the left hand side expression
 Object getLeftValue()
          Gets the evaluated left hand side value
 String getOperator()
          Gets the operator
 Expression getRight()
          Gets the right hand side expression
 Object getRightValue()
          Gets the evaluated right hand side value
 
Methods inherited from interface org.apache.camel.Predicate
matches
 

Method Detail

getOperator

String getOperator()
Gets the operator

Returns:
the operator text

getLeft

Expression getLeft()
Gets the left hand side expression

Returns:
the left expression

getRight

Expression getRight()
Gets the right hand side expression

Returns:
the right expression

getLeftValue

Object getLeftValue()
Gets the evaluated left hand side value

Returns:
the left value, may be null if predicate has not been matched yet.

getRightValue

Object getRightValue()
Gets the evaluated right hand side value

Returns:
the right value, may be null if predicate has not been matched yet.


Copyright © 2007-2010 The Apache Software Foundation. All Rights Reserved.