|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.wimpi.pim.contact.db.AbstractContactFilter
Class representing an abstract ContactFilter. to be extended for simplifying implementations.
Field Summary | |
protected ContactFilter |
m_ChildFilter
|
Constructor Summary | |
AbstractContactFilter()
|
Method Summary | |
ContactFilter |
getChildFilter()
Returns the child filter of this AbstractContactFilter. |
abstract boolean |
passes(Contact contact)
Tests if a given contact passes through this ContactFilter. |
boolean |
passesChildFilter(Contact contact)
Tests if the given Contact instance passes this AbstractContactFilter's child filter. |
void |
setChildFilter(ContactFilter filter)
Sets a child filter, which will be applied by the parent. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected ContactFilter m_ChildFilter
Constructor Detail |
public AbstractContactFilter()
Method Detail |
public abstract boolean passes(Contact contact)
ContactFilter
passes
in interface ContactFilter
contact
- a Contact instance.
public boolean passesChildFilter(Contact contact)
If this AbstractContactFilter has no child filter set, this method will always return true.
contact
- a Contact instance.
public void setChildFilter(ContactFilter filter)
ContactFilter
Note that this semantics allow to construct chains of different filters.
setChildFilter
in interface ContactFilter
filter
- a ContactFilter instance.public ContactFilter getChildFilter()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |