org.eclipse.ecf.presence.search
Class LogicalCriterion
java.lang.Object
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
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 |
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 expressionright
- Criterion on the right side of the expressionoperator
- Operator considered on the logical. Ex: And
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