|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteu.etaxonomy.cdm.model.agent.Contact
public class Contact
The class for information on how to approach a person or an institution.
It includes telecommunication data and an electronic as well as
multiple postal addresses.
This class corresponds to:
| Field Summary | |
|---|---|
protected Set<Address> |
addresses
|
| Constructor Summary | |
|---|---|
Contact()
Class constructor. |
|
| Method Summary | |
|---|---|
void |
addAddress(Address address)
Adds a new postal address to the set of postal addresses of this contact. |
void |
addAddress(String street,
String postcode,
String locality,
WaterbodyOrCountry country,
String pobox,
String region,
Point location)
|
void |
addEmailAddress(String emailAddress)
|
void |
addFaxNumber(String faxNumber)
|
void |
addPhoneNumber(String phoneNumber)
|
void |
addUrl(String url)
|
Object |
clone()
Clones this Contact. |
Set<Address> |
getAddresses()
Returns the set of postal addresses belonging to this contact. |
List<String> |
getEmailAddresses()
Returns the List of strings representing the electronic mail addresses included in this contact. |
List<String> |
getFaxNumbers()
Returns the list of strings representing the telefax numbers included in this contact. |
List<String> |
getPhoneNumbers()
Returns the list of strings representing the phone numbers included in this contact. |
List<String> |
getUrls()
Returns the list of strings representing the "Uniform Resource Locators" (urls) included in this contact. |
void |
merge(Contact contact2)
|
static Contact |
NewInstance()
|
static Contact |
NewInstance(Set<Address> addresses,
List<String> emailAdresses,
List<String> faxNumbers,
List<String> phoneNumbers,
List<String> urls)
|
static Contact |
NewInstance(String street,
String postcode,
String locality,
WaterbodyOrCountry country,
String pobox,
String region,
String email,
String faxNumber,
String phoneNumber,
String url,
Point location)
Creates a new contact |
void |
removeAddress(Address address)
Removes one element from the set of postal addresses of this contact. |
void |
removeEmailAddress(String emailAddress)
Removes one element from the list of email addresses of this contact. |
void |
removeFaxNumber(String faxNumber)
Removes one element from the list of telefax numbers of this contact. |
void |
removePhoneNumber(String phoneNumber)
Removes one element from the list of phone numbers of this contact. |
void |
removeUrl(String url)
Removes one element from the list of urls of this contact. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Set<Address> addresses
| Constructor Detail |
|---|
public Contact()
| Method Detail |
|---|
public static Contact NewInstance()
public static Contact NewInstance(String street,
String postcode,
String locality,
WaterbodyOrCountry country,
String pobox,
String region,
String email,
String faxNumber,
String phoneNumber,
String url,
Point location)
street - postcode - locality - country - pobox - region - email - faxNumber - phoneNumber - url - location -
public static Contact NewInstance(Set<Address> addresses,
List<String> emailAdresses,
List<String> faxNumbers,
List<String> phoneNumbers,
List<String> urls)
public void merge(Contact contact2)
throws MergeException
MergeExceptionpublic Set<Address> getAddresses()
addresses belonging to this contact.
A person or an institution cannot have more than one contact,
but a contact may include several postal addresses.
Addresspublic void addAddress(Address address)
address to the set of postal addresses of this contact.
address - the address to be addedgetAddresses(),
Address
public void addAddress(String street,
String postcode,
String locality,
WaterbodyOrCountry country,
String pobox,
String region,
Point location)
public void removeAddress(Address address)
address - the postal address of this contact which should be deletedgetAddresses()public List<String> getEmailAddresses()
public void addEmailAddress(String emailAddress)
#getEmailAddress()public void removeEmailAddress(String emailAddress)
emailAddress - the email address of this contact which should be deletedgetEmailAddresses()public List<String> getUrls()
public void addUrl(String url)
getUrls()public void removeUrl(String url)
url - the url of this contact which should be deletedgetUrls()public List<String> getPhoneNumbers()
public void addPhoneNumber(String phoneNumber)
#getPhone()public void removePhoneNumber(String phoneNumber)
phoneNumber - the phone number of this contact which should be deleted#getPhoneNumber()public List<String> getFaxNumbers()
public void addFaxNumber(String faxNumber)
getFaxNumbers()public void removeFaxNumber(String faxNumber)
faxNumber - the telefax number of this contact which should be deleted#getFaxNumber()public Object clone()
clone in class ObjectObject.clone()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||