com.funambol.common.pim.model.contact
Class ContactDetail

java.lang.Object
  extended by com.funambol.common.pim.model.contact.ContactDetail
Direct Known Subclasses:
BusinessDetail, PersonalDetail

public class ContactDetail
extends java.lang.Object

An object containing details on how to reach a contact (phone numbers, e-mail addresses, webpage etc.).


Constructor Summary
ContactDetail()
           
 
Method Summary
 void addEmail(Email email)
          Adds a new email address to the list.
 void addPhone(Phone phone)
          Adds a new phone number to the list.
protected  void addTypifiedProperty(java.util.List<? extends TypifiedProperty> list, TypifiedProperty addition)
          Adds a typified property to a list if no property of that type is already there, or updates it if there is one.
 void addWebPage(WebPage page)
          Adds a new webpage to the list.
 java.util.List getEmails()
          Returns the list of e-mail addresses.
 java.util.List getPhones()
          Returns the list of telephone numbers.
 java.util.List getWebPages()
          Returns the list of webpages.
 void setEmails(java.util.List emails)
          Sets a new list of e-mail addresses.
 void setPhones(java.util.List phones)
          Sets a new list of phones.
 void setWebPages(java.util.List webPages)
          Sets a new list of webpages
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContactDetail

public ContactDetail()
Method Detail

getPhones

public java.util.List getPhones()
Returns the list of telephone numbers.

Returns:
a List containing Phone objects

getEmails

public java.util.List getEmails()
Returns the list of e-mail addresses.

Returns:
a List containing Email objects

getWebPages

public java.util.List getWebPages()
Returns the list of webpages.

Returns:
a List containing WebPage objects

setPhones

public void setPhones(java.util.List phones)
Sets a new list of phones.

Parameters:
phones - new value of list phones

setEmails

public void setEmails(java.util.List emails)
Sets a new list of e-mail addresses.

Parameters:
emails - new value of list emails

setWebPages

public void setWebPages(java.util.List webPages)
Sets a new list of webpages

Parameters:
webPages - new value of list webpages

addPhone

public void addPhone(Phone phone)
Adds a new phone number to the list.

Parameters:
phone - the new phone number

addEmail

public void addEmail(Email email)
Adds a new email address to the list.

Parameters:
email - the new email address

addWebPage

public void addWebPage(WebPage page)
Adds a new webpage to the list.

Parameters:
page - the new webpage

addTypifiedProperty

protected void addTypifiedProperty(java.util.List<? extends TypifiedProperty> list,
                                   TypifiedProperty addition)
Adds a typified property to a list if no property of that type is already there, or updates it if there is one.

Parameters:
list - a list of objects of some class that extends TypifiedProperty
addition - the item to add or replace in the list


Copyright © 2001-2009 Funambol.