Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.googlecontacts
Class GoogleContactsEntryImpl

java.lang.Object
  extended by net.java.sip.communicator.impl.googlecontacts.GoogleContactsEntryImpl
All Implemented Interfaces:
GoogleContactsEntry

public class GoogleContactsEntryImpl
extends Object
implements GoogleContactsEntry

Google Contacts entry implementation.

Author:
Sebastien Vincent

Nested Class Summary
 
Nested classes/interfaces inherited from interface net.java.sip.communicator.service.googlecontacts.GoogleContactsEntry
GoogleContactsEntry.IMProtocol
 
Constructor Summary
GoogleContactsEntryImpl()
           
 
Method Summary
 void addHomeMail(String mail)
          Adds a home mail address.
 void addHomePhone(String telephoneNumber)
          Adds a home telephone numbers.
 void addIMAddress(String imAddress, GoogleContactsEntry.IMProtocol protocol)
          Adds an IM address.
 void addMobilePhone(String telephoneNumber)
          Adds a mobile telephone numbers.
 void addWorkMails(String mail)
          Adds a work mail address.
 void addWorkPhone(String telephoneNumber)
          Adds a work telephone number.
 List<String> getAllMails()
          Returns mails.
 List<String> getAllPhones()
          Returns telephone numbers.
 String getFamilyName()
          Get the family name.
 String getFullName()
          Get the full name.
 String getGivenName()
          Get the given name.
 List<String> getHomeMails()
          Returns home mail addresses.
 List<String> getHomePhones()
          Returns home telephone numbers.
 Map<String,GoogleContactsEntry.IMProtocol> getIMAddresses()
          Returns IM addresses.
 List<String> getMobilePhones()
          Returns mobile telephone numbers.
 String getPhoto()
          Get the photo full URI.
 com.google.gdata.data.Link getPhotoLink()
          Get the Google photo full URI.
 List<String> getWorkMails()
          Returns work mail addresses.
 List<String> getWorkPhones()
          Returns work telephone numbers.
 void setField(com.google.gdata.data.contacts.ContactEntry contact)
          Set information.
 String toString()
          String representation of the GoogleContactsEntry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GoogleContactsEntryImpl

public GoogleContactsEntryImpl()
Method Detail

getFullName

public String getFullName()
Get the full name.

Specified by:
getFullName in interface GoogleContactsEntry
Returns:
full name

getFamilyName

public String getFamilyName()
Get the family name.

Specified by:
getFamilyName in interface GoogleContactsEntry
Returns:
family name

getGivenName

public String getGivenName()
Get the given name.

Specified by:
getGivenName in interface GoogleContactsEntry
Returns:
given name

getAllMails

public List<String> getAllMails()
Returns mails.

Specified by:
getAllMails in interface GoogleContactsEntry
Returns:
mails

addHomeMail

public void addHomeMail(String mail)
Adds a home mail address.

Specified by:
addHomeMail in interface GoogleContactsEntry
Parameters:
mail - the mail address

getHomeMails

public List<String> getHomeMails()
Returns home mail addresses.

Specified by:
getHomeMails in interface GoogleContactsEntry
Returns:
home mail addresses

addWorkMails

public void addWorkMails(String mail)
Adds a work mail address.

Specified by:
addWorkMails in interface GoogleContactsEntry
Parameters:
mail - the mail address

getWorkMails

public List<String> getWorkMails()
Returns work mail addresses.

Specified by:
getWorkMails in interface GoogleContactsEntry
Returns:
work mail addresses

getAllPhones

public List<String> getAllPhones()
Returns telephone numbers.

Specified by:
getAllPhones in interface GoogleContactsEntry
Returns:
telephone numbers

addWorkPhone

public void addWorkPhone(String telephoneNumber)
Adds a work telephone number.

Specified by:
addWorkPhone in interface GoogleContactsEntry
Parameters:
telephoneNumber - the work telephone number

getWorkPhones

public List<String> getWorkPhones()
Returns work telephone numbers.

Specified by:
getWorkPhones in interface GoogleContactsEntry
Returns:
work telephone numbers

addMobilePhone

public void addMobilePhone(String telephoneNumber)
Adds a mobile telephone numbers.

Specified by:
addMobilePhone in interface GoogleContactsEntry
Parameters:
telephoneNumber - the mobile telephone number

getMobilePhones

public List<String> getMobilePhones()
Returns mobile telephone numbers.

Specified by:
getMobilePhones in interface GoogleContactsEntry
Returns:
mobile telephone numbers

addHomePhone

public void addHomePhone(String telephoneNumber)
Adds a home telephone numbers.

Specified by:
addHomePhone in interface GoogleContactsEntry
Parameters:
telephoneNumber - the home telephone number

getHomePhones

public List<String> getHomePhones()
Returns home telephone numbers.

Specified by:
getHomePhones in interface GoogleContactsEntry
Returns:
home telephone numbers

getPhoto

public String getPhoto()
Get the photo full URI.

Specified by:
getPhoto in interface GoogleContactsEntry
Returns:
the photo URI or null if there isn't

getPhotoLink

public com.google.gdata.data.Link getPhotoLink()
Get the Google photo full URI.

Returns:
the Google photo URI or null if there isn't

getIMAddresses

public Map<String,GoogleContactsEntry.IMProtocol> getIMAddresses()
Returns IM addresses.

Specified by:
getIMAddresses in interface GoogleContactsEntry
Returns:
IM addresses

addIMAddress

public void addIMAddress(String imAddress,
                         GoogleContactsEntry.IMProtocol protocol)
Adds an IM address.

Specified by:
addIMAddress in interface GoogleContactsEntry
Parameters:
imAddress - IM address
protocol - IM protocol

setField

public void setField(com.google.gdata.data.contacts.ContactEntry contact)
Set information.

Parameters:
contact - Google Contacts's ContactEntry

toString

public String toString()
String representation of the GoogleContactsEntry.

Overrides:
toString in class Object

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.