Package org.projecthusky.common.model
Class Telecoms
java.lang.Object
org.projecthusky.common.model.Telecoms
Class Telecom represents a list of telecommunication endpoints.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(String type, String endpointIdentifier, TelecomAddressUse usage) Adds a new entry to the telecoms object.void
addEMail
(String eMail, TelecomAddressUse usage) Add a new email adress to the telecoms listvoid
addFax
(String fax, TelecomAddressUse usage) Add a new fax number to the telecoms list.void
addPhone
(String phoneNr, TelecomAddressUse usage) Adds a new fax number to the telecoms list.void
addWebsite
(String url, TelecomAddressUse usage) Add a new website to the telecoms list.createEMail
(String eMail, TelecomAddressUse usage) createTel
(String telNr, TelecomAddressUse usage) Gets the e mails.getFaxes()
Gets the faxes.Gets the telecoms.Gets the phone numbersGets the telecoms as HashMapGets the Websites
-
Field Details
-
TELECOMS_EMAIL_PREFIX
The Constant TELECOMS_EMAIL_PREFIX.- See Also:
-
TELECOMS_FAX_PREFIX
The Constant TELECOMS_FAX_PREFIX.- See Also:
-
TELECOMS_PHONE_PREFIX
The Constant TELECOMS_PHONE_PREFIX.- See Also:
-
TELECOMS_WEBSITE_PREFIX
The Constant TELECOMS_WEBSITE_PREFIX. Note: omitting the : here in order to support http and https- See Also:
-
-
Constructor Details
-
Telecoms
public Telecoms()Instantiates a new telecoms object. -
Telecoms
Instantiates a new telecoms object.- Parameters:
telecoms
- telecoms
-
-
Method Details
-
add
Adds a new entry to the telecoms object. These shall have the following format: : "+41.32.234.66.77"- Parameters:
type
- e.g. "tel"endpointIdentifier
- e.g. Phone number "+41.32.234.66.77"usage
- use of this endpoint
-
createTel
-
addEMail
Add a new email adress to the telecoms list- Parameters:
eMail
- eMail addressusage
- use of this endpoint
-
createEMail
-
addFax
Add a new fax number to the telecoms list. This shall have the following format: "+41.32.234.66.77"- Parameters:
fax
- faxusage
- use of this endpoint
-
addPhone
Adds a new fax number to the telecoms list. This shall have the following format: "+41.32.234.66.77"- Parameters:
phoneNr
- Phone number (only international format)usage
- use of this endpoint
-
addWebsite
Add a new website to the telecoms list.- Parameters:
url
- website e.g. "http://www.ehealth-connector.org")usage
- use of this endpoint
-
getEMails
Gets the e mails.- Returns:
- ArrayList the e mails as am ArrayList of Strings and AddressUse
-
getFaxes
Gets the faxes.- Returns:
- the faxes
-
getMdhtTelecoms
Gets the telecoms.- Returns:
- ArrayList the telecoms
-
getPhones
Gets the phone numbers- Returns:
- the phones
-
getTelecoms
Gets the telecoms as HashMap- Returns:
- the telecoms
-
getWebsites
Gets the Websites- Returns:
- the websides
-