org.eclipse.ecf.presence.search
Class LogicalCriterion

java.lang.Object
  extended by org.eclipse.ecf.presence.search.LogicalCriterion
All Implemented Interfaces:
ICriterion

public class LogicalCriterion
extends java.lang.Object
implements ICriterion

Base class implementation of ICriterion for logical criterion. Subclasses may be created as appropriate. It is just a simple implementation that can be considered for some provider or even used as base for some implementation.

Since:
2.0

Constructor Summary
LogicalCriterion(ICriterion left, ICriterion right, java.lang.String operator)
          Creates a logic operation for compose a ICriteria
 
Method Summary
 java.lang.String toExpression()
          Returns a expression composed for the search.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LogicalCriterion

public LogicalCriterion(ICriterion left,
                        ICriterion right,
                        java.lang.String operator)
Creates a logic operation for compose a ICriteria

Parameters:
left - Criterion on the left side of the expression
right - Criterion on the right side of the expression
operator - Operator considered on the logical. Ex: And
Method Detail

toExpression

public java.lang.String toExpression()
Description copied from interface: ICriterion
Returns a expression composed for the search. The String can be something like 'field' + 'operator' + value, that it will be interpreted for each specific provider.

Specified by:
toExpression in interface ICriterion
Returns:
String

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object