Top Description Methods
javax.xml.registry.infomodel

public Interface TelephoneNumber

Imports
javax.xml.registry.*

A simple re-usable entity class that defines attributes of a telephone number.
Author
Farrukh S. Najmi

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the area code
getAreaCode
()

Gets the area code.

public String

Returns:

the country code
getCountryCode
()

Gets the country code.

public String

Returns:

the internal extension number
getExtension
()

Gets the internal extension.

public String

Returns:

the telephone number
getNumber
()

Gets the telephone number suffix, not including the country or area code.

public String

Returns:

the type for this TelephoneNumber, which is an arbitrary String
getType
()

The type of telephone number (for example, "fax").

public String

Returns:

the url
getUrl
()

Gets the URL that can dial this number electronically.

public void
setAreaCode(String
the area code
areaCode
)

Sets the area code.

public void
setCountryCode(String
the country code
countryCode
)

Sets country code.

public void
setExtension(String
the internal extension number
extension
)

Sets the internal extension.

public void
setNumber(String
the telephone number
number
)

Sets the telephone number suffix, not including the country or area code.

public void
setType(String
the type for this TelephoneNumber, which is an arbitrary String
type
)

Sets the type of telephone number (for example, "fax").

public void
setUrl(String
the URL string
url
)

Sets the URL that can dial this number electronically.

Method Detail

getAreaCodeback to summary
public String getAreaCode() throws JAXRException

Gets the area code. Default is an empty String.

Capability Level: 1
Returns:String

the area code

Exceptions
JAXRException:
If the JAXR provider encounters an internal error
getCountryCodeback to summary
public String getCountryCode() throws JAXRException

Gets the country code. Default is an empty String.

Capability Level: 1
Returns:String

the country code

Exceptions
JAXRException:
If the JAXR provider encounters an internal error
getExtensionback to summary
public String getExtension() throws JAXRException

Gets the internal extension. Default is an empty String.

Capability Level: 1
Returns:String

the internal extension number

Exceptions
JAXRException:
If the JAXR provider encounters an internal error
getNumberback to summary
public String getNumber() throws JAXRException

Gets the telephone number suffix, not including the country or area code. Default is an empty String.

Capability Level: 0
Returns:String

the telephone number

Exceptions
JAXRException:
If the JAXR provider encounters an internal error
getTypeback to summary
public String getType() throws JAXRException

The type of telephone number (for example, "fax"). Any String would do.

Capability Level: 0
Returns:String

the type for this TelephoneNumber, which is an arbitrary String

Exceptions
JAXRException:
If the JAXR provider encounters an internal error
getUrlback to summary
public String getUrl() throws JAXRException

Gets the URL that can dial this number electronically. Default is a NULL String.

Capability Level: 1
Returns:String

the url

Exceptions
JAXRException:
If the JAXR provider encounters an internal error
setAreaCodeback to summary
public void setAreaCode(String areaCode) throws JAXRException

Sets the area code.

Capability Level: 1
Parameters
areaCode:String

the area code

Exceptions
JAXRException:
If the JAXR provider encounters an internal error
setCountryCodeback to summary
public void setCountryCode(String countryCode) throws JAXRException

Sets country code.

Capability Level: 1
Parameters
countryCode:String

the country code

Exceptions
JAXRException:
If the JAXR provider encounters an internal error
setExtensionback to summary
public void setExtension(String extension) throws JAXRException

Sets the internal extension.

Capability Level: 1
Parameters
extension:String

the internal extension number

Exceptions
JAXRException:
If the JAXR provider encounters an internal error
setNumberback to summary
public void setNumber(String number) throws JAXRException

Sets the telephone number suffix, not including the country or area code.

Capability Level: 0
Parameters
number:String

the telephone number

Exceptions
JAXRException:
If the JAXR provider encounters an internal error
setTypeback to summary
public void setType(String type) throws JAXRException

Sets the type of telephone number (for example, "fax"). Any String will do.

Capability Level: 0
Parameters
type:String

the type for this TelephoneNumber, which is an arbitrary String

Exceptions
JAXRException:
If the JAXR provider encounters an internal error
setUrlback to summary
public void setUrl(String url) throws JAXRException

Sets the URL that can dial this number electronically.

Capability Level: 1
Parameters
url:String

the URL string

Exceptions
JAXRException:
If the JAXR provider encounters an internal error