|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--net.wimpi.pim.util.AbstractIdentifiable
|
+--net.wimpi.pim.contact.db.serializable.ContactCollectionImpl.ContactGroupImpl
| Field Summary | |
protected java.util.List |
m_ContactIDs
|
protected java.lang.String |
m_Description
|
protected java.lang.String |
m_Name
|
| Constructor Summary | |
ContactCollectionImpl.ContactGroupImpl()
|
|
| Method Summary | |
void |
addContact(Contact contact)
Adds a contact to this ContactGroup. |
void |
cleanup()
Remove ID's pointing to contacts which have been removed from the database. |
boolean |
contains(Contact contact)
Tests if this ContactGroup contains a given contact. |
boolean |
contains(java.lang.String UID)
Tests if this ContactGroup contains a given contact. |
java.util.Iterator |
getContacts()
Returns all contacts associated with this ContactGroup. |
java.lang.String |
getDescription()
Returns the description of this ContactGroup. |
java.lang.String |
getName()
Returns the name of this ContactGroup. |
Contact[] |
listContacts()
Returns all contacts associated with this ContactGroup. |
void |
removeContact(Contact contact)
Removes a contact from this ContactGroup. |
void |
setDescription(java.lang.String description)
Sets the description of this ContactGroup. |
void |
setName(java.lang.String name)
Sets the name of this ContactGroup. |
int |
size()
Returns the number of contacts in this ContactGroup. |
| Methods inherited from class net.wimpi.pim.util.AbstractIdentifiable |
equals, getUID, setUID |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.wimpi.pim.util.Identifiable |
getUID |
| Field Detail |
protected java.lang.String m_Name
protected java.lang.String m_Description
protected java.util.List m_ContactIDs
| Constructor Detail |
public ContactCollectionImpl.ContactGroupImpl()
| Method Detail |
public java.lang.String getName()
ContactGroup
getName in interface ContactGrouppublic void setName(java.lang.String name)
ContactGroup
setName in interface ContactGroupname - the name as String.public java.lang.String getDescription()
ContactGroup
getDescription in interface ContactGrouppublic void setDescription(java.lang.String description)
ContactGroup
setDescription in interface ContactGroupdescription - the description as String.public Contact[] listContacts()
ContactGroup
listContacts in interface ContactGrouppublic java.util.Iterator getContacts()
ContactGroup
getContacts in interface ContactGrouppublic void addContact(Contact contact)
ContactGroup
addContact in interface ContactGroupcontact - the contact to be added as Contact.public void removeContact(Contact contact)
ContactGroup
removeContact in interface ContactGroupcontact - the contact to be removed from
this ContactGroup.public boolean contains(java.lang.String UID)
ContactGroup
contains in interface ContactGroupUID - the unique identifier of the contact as String.
public boolean contains(Contact contact)
ContactGroup
contains in interface ContactGroupcontact - the contact as Contact.
public int size()
ContactGroup
size in interface ContactGrouppublic void cleanup()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||