net.wimpi.pim.contact.db.serializable
Class ContactCollectionImpl.ContactGroupImpl

java.lang.Object
  |
  +--net.wimpi.pim.util.AbstractIdentifiable
        |
        +--net.wimpi.pim.contact.db.serializable.ContactCollectionImpl.ContactGroupImpl
All Implemented Interfaces:
ContactGroup, Identifiable, java.io.Serializable
Enclosing class:
ContactCollectionImpl

protected class ContactCollectionImpl.ContactGroupImpl
extends AbstractIdentifiable
implements ContactGroup, java.io.Serializable

See Also:
Serialized Form

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

m_Name

protected java.lang.String m_Name

m_Description

protected java.lang.String m_Description

m_ContactIDs

protected java.util.List m_ContactIDs
Constructor Detail

ContactCollectionImpl.ContactGroupImpl

public ContactCollectionImpl.ContactGroupImpl()
Method Detail

getName

public java.lang.String getName()
Description copied from interface: ContactGroup
Returns the name of this ContactGroup.

Specified by:
getName in interface ContactGroup
Returns:
the name as String.

setName

public void setName(java.lang.String name)
Description copied from interface: ContactGroup
Sets the name of this ContactGroup.

Specified by:
setName in interface ContactGroup
Parameters:
name - the name as String.

getDescription

public java.lang.String getDescription()
Description copied from interface: ContactGroup
Returns the description of this ContactGroup.

Specified by:
getDescription in interface ContactGroup
Returns:
the description as String.

setDescription

public void setDescription(java.lang.String description)
Description copied from interface: ContactGroup
Sets the description of this ContactGroup.

Specified by:
setDescription in interface ContactGroup
Parameters:
description - the description as String.

listContacts

public Contact[] listContacts()
Description copied from interface: ContactGroup
Returns all contacts associated with this ContactGroup.

Specified by:
listContacts in interface ContactGroup
Returns:
an array of Contact instances.

getContacts

public java.util.Iterator getContacts()
Description copied from interface: ContactGroup
Returns all contacts associated with this ContactGroup.

Specified by:
getContacts in interface ContactGroup
Returns:
an Iterator over all Contact instances.

addContact

public void addContact(Contact contact)
Description copied from interface: ContactGroup
Adds a contact to this ContactGroup.

Specified by:
addContact in interface ContactGroup
Parameters:
contact - the contact to be added as Contact.

removeContact

public void removeContact(Contact contact)
Description copied from interface: ContactGroup
Removes a contact from this ContactGroup.

Specified by:
removeContact in interface ContactGroup
Parameters:
contact - the contact to be removed from this ContactGroup.

contains

public boolean contains(java.lang.String UID)
Description copied from interface: ContactGroup
Tests if this ContactGroup contains a given contact.

Specified by:
contains in interface ContactGroup
Parameters:
UID - the unique identifier of the contact as String.
Returns:
true if contains contact, false otherwise.

contains

public boolean contains(Contact contact)
Description copied from interface: ContactGroup
Tests if this ContactGroup contains a given contact.

Specified by:
contains in interface ContactGroup
Parameters:
contact - the contact as Contact.
Returns:
true if contains contact, false otherwise.

size

public int size()
Description copied from interface: ContactGroup
Returns the number of contacts in this ContactGroup.

Specified by:
size in interface ContactGroup
Returns:
the number of contacts as int.

cleanup

public void cleanup()
Remove ID's pointing to contacts which have been removed from the database.



Copyright © 2001-2003 jpim team.