net.wimpi.pim.contact.db
Interface ContactFilter

All Known Implementing Classes:
AbstractContactFilter

public interface ContactFilter

Interface modeling a ContactFilter.

Version:
0.1 (22/07/2003)
Author:
Dieter Wimberger (wimpi)

Method Summary
 boolean passes(Contact contact)
          Tests if a given contact passes through this ContactFilter.
 void setChildFilter(ContactFilter filter)
          Sets a child filter, which will be applied by the parent.
 

Method Detail

passes

public boolean passes(Contact contact)
Tests if a given contact passes through this ContactFilter.

Parameters:
contact - a Contact instance.
Returns:
true if passes, false otherwise.

setChildFilter

public void setChildFilter(ContactFilter filter)
Sets a child filter, which will be applied by the parent.

Note that this semantics allow to construct chains of different filters.

Parameters:
filter - a ContactFilter instance.


Copyright © 2001-2003 jpim team.