public class TelephoneNumberImpl extends java.lang.Object implements TelephoneNumber
Constructor and Description |
---|
TelephoneNumberImpl(javax.xml.registry.infomodel.TelephoneNumber jaxrTelephoneNumber)
Constructs a new object.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAreaCode()
Gets the area code.
|
java.lang.String |
getCountryCode()
Gets the country code.
|
java.lang.String |
getExtension()
Gets the internal extension.
|
javax.xml.registry.infomodel.TelephoneNumber |
getJaxrTelephoneNumber()
Get the the javax.xml.registry.infomodel.TelephoneNumber instance wrapped by
this object.
|
java.lang.String |
getNumber()
Gets the telephone number suffix, not including the country or area code.
|
java.lang.String |
getType()
Returns the type of telephone number (for example, "fax").
|
java.lang.String |
getUrl()
Gets the URL that can dial this number electronically.
|
void |
setAreaCode(java.lang.String areaCode)
Sets the area code.
|
void |
setCountryCode(java.lang.String countryCode)
Sets the country code.
|
void |
setExtension(java.lang.String extension)
sets the internal extension.
|
void |
setNumber(java.lang.String number)
Sets the telephone number suffix, not including the country or area code.
|
void |
setType(java.lang.String type)
Sets the type of telephone number (for example, "fax").
|
void |
setUrl(java.lang.String url)
Sets the URL that can dial this number electronically.
|
public TelephoneNumberImpl(javax.xml.registry.infomodel.TelephoneNumber jaxrTelephoneNumber)
jaxrTelephoneNumber
- the JAXR telephone number.public java.lang.String getAreaCode() throws CSAppFrameworkException
TelephoneNumber
getAreaCode
in interface TelephoneNumber
CSAppFrameworkException
- if an internal error occurs on getting the area code.public void setAreaCode(java.lang.String areaCode) throws CSAppFrameworkException
TelephoneNumber
setAreaCode
in interface TelephoneNumber
areaCode
- the area code.CSAppFrameworkException
- if an internal error occurs on setting the area code.public java.lang.String getCountryCode() throws CSAppFrameworkException
TelephoneNumber
getCountryCode
in interface TelephoneNumber
CSAppFrameworkException
- if an internal error occurs on getting the country code.public void setCountryCode(java.lang.String countryCode) throws CSAppFrameworkException
TelephoneNumber
setCountryCode
in interface TelephoneNumber
countryCode
- the country code.CSAppFrameworkException
- if an internal error occurs on setting the country code.public java.lang.String getExtension() throws CSAppFrameworkException
TelephoneNumber
getExtension
in interface TelephoneNumber
CSAppFrameworkException
- if an internal error occurs on getting the extension.public void setExtension(java.lang.String extension) throws CSAppFrameworkException
TelephoneNumber
setExtension
in interface TelephoneNumber
extension
- the internal extension.CSAppFrameworkException
- if an internal error occurs on setting the extension.public java.lang.String getNumber() throws CSAppFrameworkException
TelephoneNumber
getNumber
in interface TelephoneNumber
CSAppFrameworkException
- if an internal error occurs on getting the number.public void setNumber(java.lang.String number) throws CSAppFrameworkException
TelephoneNumber
setNumber
in interface TelephoneNumber
number
- the telephone number suffix.CSAppFrameworkException
- if an internal error occurs on setting the number.public java.lang.String getType() throws CSAppFrameworkException
TelephoneNumber
getType
in interface TelephoneNumber
CSAppFrameworkException
- if an internal error occurs on getting the type.public void setType(java.lang.String type) throws CSAppFrameworkException
TelephoneNumber
setType
in interface TelephoneNumber
type
- the type of telephone number.CSAppFrameworkException
- if an internal error occurs on setting the type.public java.lang.String getUrl() throws CSAppFrameworkException
TelephoneNumber
getUrl
in interface TelephoneNumber
CSAppFrameworkException
- if an internal error occurs on getting the URL.public void setUrl(java.lang.String url) throws CSAppFrameworkException
TelephoneNumber
setUrl
in interface TelephoneNumber
url
- the URL that can dial this number electronically.CSAppFrameworkException
- if an internal error occurs on setting the URL.public javax.xml.registry.infomodel.TelephoneNumber getJaxrTelephoneNumber()