|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--net.wimpi.pim.contact.basicimpl.CommunicationsImpl
A basic and simple implementation of the
Communications.
| Field Summary | |
protected java.util.List |
m_EmailAddresses
|
protected java.lang.String |
m_Mailer
|
protected java.util.List |
m_PhoneNumbers
|
protected EmailAddress |
m_PreferredEmail
|
protected PhoneNumber |
m_PreferredNumber
|
| Constructor Summary | |
CommunicationsImpl()
|
|
| Method Summary | |
void |
addEmailAddress(EmailAddress email)
Adds the given EmailAddress instance to this Communications. |
void |
addPhoneNumber(PhoneNumber number)
Adds the given PhoneNumber instance to this Communications. |
EmailAddress |
getEmailAddress(java.lang.String uid)
Returns the EmailAddress instance with the given identifier. |
int |
getEmailAddressCount()
Returns the number of EmailAddress instances associated with this Communications. |
java.util.Iterator |
getEmailAddresses()
Returns all email addresses associated with this Communications. |
java.lang.String |
getMailer()
Returns the mailer identification. |
PhoneNumber |
getPhoneNumber(java.lang.String uid)
Returns the PhoneNumber instance with the given identifier. |
int |
getPhoneNumberCount()
Returns the number of PhoneNumber instances associated with this Communications. |
java.util.Iterator |
getPhoneNumbers()
Returns all phone numbers associated with this Communications. |
EmailAddress |
getPreferredEmailAddress()
Returns the preferred email address of this Communications instance. |
PhoneNumber |
getPreferredPhoneNumber()
Returns the preferred the phone number of this Communications instance. |
boolean |
isPreferredEmailAddress(EmailAddress email)
Tests if the given email address is the preferred one of this Communications instance. |
boolean |
isPreferredPhoneNumber(PhoneNumber number)
Tests if the given phone number is the preferred one. |
EmailAddress[] |
listEmailAddresses()
Returns all email addresses associated with this Communications. |
PhoneNumber[] |
listPhoneNumbers()
Returns all phone numbers associated with this Communications. |
PhoneNumber[] |
listPhoneNumbersByType(int TYPE)
Returns the phone numbers of a given type of this Communications instance. |
void |
removeEmailAddress(EmailAddress email)
Removes the given EmailAddress instance from this Communications. |
void |
removePhoneNumber(PhoneNumber number)
Removes the given PhoneNumber instance from this Communications. |
void |
setMailer(java.lang.String mailer)
Sets the mailer identification. |
void |
setPreferredEmailAddress(EmailAddress email)
Sets the preferred email address of this Communications instance. |
void |
setPreferredPhoneNumber(PhoneNumber number)
Sets the preferred phone number of this Communications instance. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.util.List m_PhoneNumbers
protected java.util.List m_EmailAddresses
protected java.lang.String m_Mailer
protected EmailAddress m_PreferredEmail
protected PhoneNumber m_PreferredNumber
| Constructor Detail |
public CommunicationsImpl()
| Method Detail |
public java.util.Iterator getPhoneNumbers()
Communications
getPhoneNumbers in interface Communicationspublic PhoneNumber[] listPhoneNumbers()
Communications
listPhoneNumbers in interface Communicationspublic PhoneNumber getPhoneNumber(java.lang.String uid)
Communications
getPhoneNumber in interface Communicationsuid - a unique identifier as String.
public void addPhoneNumber(PhoneNumber number)
Communications
addPhoneNumber in interface Communicationsnumber - the PhoneNumber to be added.public void removePhoneNumber(PhoneNumber number)
Communications
removePhoneNumber in interface Communicationsnumber - the PhoneNumber to be removed.public PhoneNumber getPreferredPhoneNumber()
Communications
getPreferredPhoneNumber in interface Communicationspublic void setPreferredPhoneNumber(PhoneNumber number)
Communications
setPreferredPhoneNumber in interface Communicationsnumber - the preferred phone number as PhoneNumber.public boolean isPreferredPhoneNumber(PhoneNumber number)
Communications
isPreferredPhoneNumber in interface Communicationsnumber - the phone number to be tested as PhoneNumber.
public PhoneNumber[] listPhoneNumbersByType(int TYPE)
Communications
listPhoneNumbersByType in interface CommunicationsPhoneNumberpublic int getPhoneNumberCount()
Communications
getPhoneNumberCount in interface Communicationspublic java.util.Iterator getEmailAddresses()
Communications
getEmailAddresses in interface Communicationspublic EmailAddress[] listEmailAddresses()
Communications
listEmailAddresses in interface Communicationspublic EmailAddress getEmailAddress(java.lang.String uid)
Communications
getEmailAddress in interface Communicationsuid - a unique identifier as String.
public void addEmailAddress(EmailAddress email)
Communications
addEmailAddress in interface Communicationsemail - the EmailAddress to be added.public void removeEmailAddress(EmailAddress email)
Communications
removeEmailAddress in interface Communicationsemail - the EmailAddress to be removed.public EmailAddress getPreferredEmailAddress()
Communications
getPreferredEmailAddress in interface Communicationspublic void setPreferredEmailAddress(EmailAddress email)
Communications
setPreferredEmailAddress in interface Communicationsemail - the preferred email address as EmailAddress.public boolean isPreferredEmailAddress(EmailAddress email)
Communications
isPreferredEmailAddress in interface Communicationsemail - the address to be tested as EmailAddress.
public int getEmailAddressCount()
Communications
getEmailAddressCount in interface Communicationspublic java.lang.String getMailer()
Communications
getMailer in interface Communicationspublic void setMailer(java.lang.String mailer)
Communications
setMailer in interface Communicationsmailer - the mailer identification as String.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||