public interface TelephoneNumber
Modifier and Type | Method and Description |
---|---|
String |
getAreaCode()
Gets the area code.
|
String |
getCountryCode()
Gets the country code.
|
String |
getExtension()
Gets the internal extension.
|
String |
getNumber()
Gets the telephone number suffix, not including the country or area code.
|
String |
getType()
The type of telephone number (for example, "fax").
|
String |
getUrl()
Gets the URL that can dial this number electronically.
|
void |
setAreaCode(String areaCode)
Sets the area code.
|
void |
setCountryCode(String countryCode)
Sets country code.
|
void |
setExtension(String extension)
Sets the internal extension.
|
void |
setNumber(String number)
Sets the telephone number suffix, not including the country or area code.
|
void |
setType(String type)
Sets the type of telephone number (for example, "fax").
|
void |
setUrl(String url)
Sets the URL that can dial this number electronically.
|
String getCountryCode() throws JAXRException
JAXRException
- If the JAXR provider encounters an internal errorString getAreaCode() throws JAXRException
JAXRException
- If the JAXR provider encounters an internal errorString getNumber() throws JAXRException
JAXRException
- If the JAXR provider encounters an internal errorString getExtension() throws JAXRException
JAXRException
- If the JAXR provider encounters an internal errorString getUrl() throws JAXRException
JAXRException
- If the JAXR provider encounters an internal errorString getType() throws JAXRException
JAXRException
- If the JAXR provider encounters an internal errorvoid setCountryCode(String countryCode) throws JAXRException
countryCode
- the country codeJAXRException
- If the JAXR provider encounters an internal errorvoid setAreaCode(String areaCode) throws JAXRException
areaCode
- the area codeJAXRException
- If the JAXR provider encounters an internal errorvoid setNumber(String number) throws JAXRException
number
- the telephone numberJAXRException
- If the JAXR provider encounters an internal errorvoid setExtension(String extension) throws JAXRException
extension
- the internal extension numberJAXRException
- If the JAXR provider encounters an internal errorvoid setUrl(String url) throws JAXRException
url
- the URL stringJAXRException
- If the JAXR provider encounters an internal errorvoid setType(String type) throws JAXRException
type
- the type for this TelephoneNumber, which is an arbitrary StringJAXRException
- If the JAXR provider encounters an internal errorCopyright © 1996-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.