|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.ecf.presence.search.Restriction
public class Restriction
This Class implements IRestriction
. 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.
Field Summary | |
---|---|
static java.lang.String |
OPERATOR_AND
Operator AND |
static java.lang.String |
OPERATOR_EQ
Operator Equal |
static java.lang.String |
OPERATOR_NE
Operator Not Equal |
Constructor Summary | |
---|---|
Restriction()
|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String OPERATOR_EQ
public static final java.lang.String OPERATOR_NE
public static final java.lang.String OPERATOR_AND
Constructor Detail |
---|
public Restriction()
Method Detail |
---|
public ICriterion and(ICriterion left, ICriterion right)
IRestriction
and
in interface IRestriction
left
- Will not be null
right
- Will not be null
public ICriterion eq(java.lang.String field, java.lang.String value)
IRestriction
eq
in interface IRestriction
field
- Will not be null
value
- May be null
public ICriterion ne(java.lang.String field, java.lang.String value)
IRestriction
ne
in interface IRestriction
field
- Will not be null
value
- May be null
public ICriterion eq(java.lang.String field, java.lang.String value, boolean ignoreCase)
IRestriction
eq
in interface IRestriction
field
- Will not be null
value
- May be null
public ICriterion ne(java.lang.String field, java.lang.String value, boolean ignoreCase)
IRestriction
ne
in interface IRestriction
field
- Will not be null
value
- May be null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |