org.eclipse.ecf.presence.search
Interface IRestriction

All Known Implementing Classes:
Restriction

public interface IRestriction

Instances implementing this interface provide methods to compose the corrects operations for each provide

Since:
2.0

Method Summary
 ICriterion and(ICriterion left, ICriterion right)
          Apply an "add" constraint to the two criterion
 ICriterion eq(java.lang.String field, java.lang.String value)
          Apply an "equal" constraint to the field, ignoring case
 ICriterion eq(java.lang.String field, java.lang.String value, boolean ignoreCase)
          Apply an "equal" constraint to the field, taking into consideration ignore case
 ICriterion ne(java.lang.String field, java.lang.String value)
          Apply an "not equal" constraint to the field ignoring case
 ICriterion ne(java.lang.String field, java.lang.String value, boolean ignoreCase)
          Apply an "not equal" constraint to the field, taking into consideration ignore case
 

Method Detail

and

ICriterion and(ICriterion left,
               ICriterion right)
Apply an "add" constraint to the two criterion

Parameters:
left - Will not be null
right - Will not be null
Returns:
ICriterion

eq

ICriterion eq(java.lang.String field,
              java.lang.String value)
Apply an "equal" constraint to the field, ignoring case

Parameters:
field - Will not be null
value - May be null
Returns:
ICriterion

ne

ICriterion ne(java.lang.String field,
              java.lang.String value)
Apply an "not equal" constraint to the field ignoring case

Parameters:
field - Will not be null
value - May be null
Returns:
ICriterion

eq

ICriterion eq(java.lang.String field,
              java.lang.String value,
              boolean ignoreCase)
Apply an "equal" constraint to the field, taking into consideration ignore case

Parameters:
field - Will not be null
value - May be null
ignoreCase -
Returns:
ICriterion

ne

ICriterion ne(java.lang.String field,
              java.lang.String value,
              boolean ignoreCase)
Apply an "not equal" constraint to the field, taking into consideration ignore case

Parameters:
field - Will not be null
value - May be null
ignoreCase -
Returns:
ICriterion