Package javax.xml.registry.infomodel
Interface TelephoneNumber
public interface TelephoneNumber
A simple re-usable entity class that defines attributes of a telephone number.
- Author:
- Farrukh S. Najmi
-
Method Summary
Modifier and TypeMethodDescriptionGets the area code.Gets the country code.Gets the internal extension.Gets the telephone number suffix, not including the country or area code.getType()The type of telephone number (for example, "fax").getUrl()Gets the URL that can dial this number electronically.voidsetAreaCode(String areaCode) Sets the area code.voidsetCountryCode(String countryCode) Sets country code.voidsetExtension(String extension) Sets the internal extension.voidSets the telephone number suffix, not including the country or area code.voidSets the type of telephone number (for example, "fax").voidSets the URL that can dial this number electronically.
-
Method Details
-
getCountryCode
Gets the country code. Default is an empty String.- Capability Level: 1
- Returns:
- the country code
- Throws:
JAXRException- If the Jakarta XML Registries provider encounters an internal error
-
getAreaCode
Gets the area code. Default is an empty String.- Capability Level: 1
- Returns:
- the area code
- Throws:
JAXRException- If the Jakarta XML Registries provider encounters an internal error
-
getNumber
Gets the telephone number suffix, not including the country or area code. Default is an empty String.- Capability Level: 0
- Returns:
- the telephone number
- Throws:
JAXRException- If the Jakarta XML Registries provider encounters an internal error
-
getExtension
Gets the internal extension. Default is an empty String.- Capability Level: 1
- Returns:
- the internal extension number
- Throws:
JAXRException- If the Jakarta XML Registries provider encounters an internal error
-
getUrl
Gets the URL that can dial this number electronically. Default is a NULL String.- Capability Level: 1
- Returns:
- the url
- Throws:
JAXRException- If the Jakarta XML Registries provider encounters an internal error
-
getType
The type of telephone number (for example, "fax"). Any String would do.- Capability Level: 0
- Returns:
- the type for this TelephoneNumber, which is an arbitrary String
- Throws:
JAXRException- If the Jakarta XML Registries provider encounters an internal error
-
setCountryCode
Sets country code.- Capability Level: 1
- Parameters:
countryCode- the country code- Throws:
JAXRException- If the Jakarta XML Registries provider encounters an internal error
-
setAreaCode
Sets the area code.- Capability Level: 1
- Parameters:
areaCode- the area code- Throws:
JAXRException- If the Jakarta XML Registries provider encounters an internal error
-
setNumber
Sets the telephone number suffix, not including the country or area code.- Capability Level: 0
- Parameters:
number- the telephone number- Throws:
JAXRException- If the Jakarta XML Registries provider encounters an internal error
-
setExtension
Sets the internal extension.- Capability Level: 1
- Parameters:
extension- the internal extension number- Throws:
JAXRException- If the Jakarta XML Registries provider encounters an internal error
-
setUrl
Sets the URL that can dial this number electronically.- Capability Level: 1
- Parameters:
url- the URL string- Throws:
JAXRException- If the Jakarta XML Registries provider encounters an internal error
-
setType
Sets the type of telephone number (for example, "fax"). Any String will do.- Capability Level: 0
- Parameters:
type- the type for this TelephoneNumber, which is an arbitrary String- Throws:
JAXRException- If the Jakarta XML Registries provider encounters an internal error
-