|
Compoze Software, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.compoze.domino.AbstractFilter
This class provides an implementation for a filter.
Standard behaviors like the setting rules for fields
are defined here. The developer need only subclass this
abstract class and define the getFormRule method.
| Field Summary | |
protected java.util.Map |
m_filters
|
protected java.util.Hashtable |
m_rules
|
| Constructor Summary | |
AbstractFilter()
|
|
| Method Summary | |
protected com.compoze.domino.filter.IOperatorFilterRule |
getBaseRule()
Gets the base rule using the or'd setting. |
protected com.compoze.domino.filter.IFilterRule |
getFilterRule()
|
protected com.compoze.domino.filter.IFilterRule |
getFilterRule(boolean bIncludeForm)
|
protected abstract com.compoze.domino.filter.IFilterRule |
getFormRule()
Gets the form rule for this filter. |
boolean |
getOr()
Gets not property. |
protected void |
setBeginsStringRule(java.lang.String field,
java.lang.String sBeginsString)
Sets the begins string rule. |
protected void |
setDateRule(java.lang.String field,
java.util.Date givenDate,
int index)
Sets the date rule rule. |
protected void |
setNotRule(java.lang.String field,
int[] values)
Sets the rule. |
void |
setOr(boolean bOr)
Sets not property. |
protected void |
setRule(java.lang.String field,
java.util.Date givenDate)
Sets the rule. |
protected void |
setRule(java.lang.String field,
int[] values)
Sets the rule. |
protected void |
setRule(java.lang.String field,
java.lang.String[] values,
boolean bExact)
Sets the rule. |
java.lang.String |
toRule()
|
java.lang.String |
toString()
|
protected void |
unsetBeginsStringRule(java.lang.String field)
Unsets the begins string rule. |
protected void |
unsetNotRule(java.lang.String field)
Unsets the not rule. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected java.util.Hashtable m_rules
protected java.util.Map m_filters
| Constructor Detail |
public AbstractFilter()
| Method Detail |
public void setOr(boolean bOr)
or is specified then the restriction
values are or'd instead of and'd to specify the filter.
bOr - if true, filter is or'dpublic boolean getOr()
or is specified then the restriction
values are or'd instead of and'd to specify the filter.
true, filter is or'dprotected com.compoze.domino.filter.IOperatorFilterRule getBaseRule()
protected void setRule(java.lang.String field,
java.lang.String[] values,
boolean bExact)
field - the fieldvalues - the values to testbExact - true for an exact match of the values; false otherwise
protected void setRule(java.lang.String field,
int[] values)
field - the fieldvalues - the values to test
protected void setNotRule(java.lang.String field,
int[] values)
field - the fieldvalues - the values to test for 'not'protected void unsetNotRule(java.lang.String field)
field - the field
protected void setRule(java.lang.String field,
java.util.Date givenDate)
field - the fieldgivenDate - the given date to test
protected void setBeginsStringRule(java.lang.String field,
java.lang.String sBeginsString)
field - the fieldsBeginsString - the begins string to checkprotected void unsetBeginsStringRule(java.lang.String field)
field - the field
protected void setDateRule(java.lang.String field,
java.util.Date givenDate,
int index)
field - the fieldgivenDate - the given dateindex - the date indexprotected com.compoze.domino.filter.IFilterRule getFilterRule()
protected com.compoze.domino.filter.IFilterRule getFilterRule(boolean bIncludeForm)
public java.lang.String toRule()
protected abstract com.compoze.domino.filter.IFilterRule getFormRule()
public java.lang.String toString()
|
Compoze Software, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||