|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface modeling a container for telecommunications information based on the types and information of the vCard Mime directory profile standard specification.
For reference see RFC 2426:
3.3 Telecommunications Addressing Types
3.3.1 TEL Type Definition
3.3.2 EMAIL Type Definition
3.3.3 MAILER Type Definition
Note that an implementation has to be able
to maintain order of the collections, as well
as manage the preferred number
and email address.
EmailAddress
,
PhoneNumber
Method Summary | |
void |
addEmailAddress(EmailAddress email)
Adds the given EmailAddress instance to this Communications. |
void |
addPhoneNumber(PhoneNumber phone)
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 phone)
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 phone)
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 phone)
Sets the preferred phone number of this Communications instance. |
Method Detail |
public java.util.Iterator getPhoneNumbers()
public PhoneNumber[] listPhoneNumbers()
public PhoneNumber getPhoneNumber(java.lang.String uid)
uid
- a unique identifier as String.
public void addPhoneNumber(PhoneNumber phone)
phone
- the PhoneNumber to be added.public void removePhoneNumber(PhoneNumber phone)
phone
- the PhoneNumber to be removed.public PhoneNumber getPreferredPhoneNumber()
public void setPreferredPhoneNumber(PhoneNumber phone)
phone
- the preferred phone number as PhoneNumber.public boolean isPreferredPhoneNumber(PhoneNumber phone)
phone
- the phone number to be tested as PhoneNumber.
public PhoneNumber[] listPhoneNumbersByType(int TYPE)
PhoneNumber
public int getPhoneNumberCount()
public java.util.Iterator getEmailAddresses()
public EmailAddress[] listEmailAddresses()
public EmailAddress getEmailAddress(java.lang.String uid)
uid
- a unique identifier as String.
public void addEmailAddress(EmailAddress email)
email
- the EmailAddress to be added.public void removeEmailAddress(EmailAddress email)
email
- the EmailAddress to be removed.public EmailAddress getPreferredEmailAddress()
public void setPreferredEmailAddress(EmailAddress email)
email
- the preferred email address as EmailAddress.public boolean isPreferredEmailAddress(EmailAddress email)
email
- the address to be tested as EmailAddress.
public int getEmailAddressCount()
public java.lang.String getMailer()
public void setMailer(java.lang.String mailer)
mailer
- the mailer identification as String.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |