TelephoneNumber (Java EE 5 SDK)

Java

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


javax.xml.registry.infomodel Interface TelephoneNumber


public interface TelephoneNumber

A simple re-usable entity class that defines attributes of a telephone number.

作者:
Farrukh S. Najmi

方法摘要
 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.
 

方法详细信息

getCountryCode

String getCountryCode()
                      throws JAXRException
Gets the country code. Default is an empty String.

Capability Level: 1

返回:
the country code
抛出异常:
JAXRException - If the JAXR provider encounters an internal error

getAreaCode

String getAreaCode()
                   throws JAXRException
Gets the area code. Default is an empty String.

Capability Level: 1

返回:
the area code
抛出异常:
JAXRException - If the JAXR provider encounters an internal error

getNumber

String getNumber()
                 throws JAXRException
Gets the telephone number suffix, not including the country or area code. Default is an empty String.

Capability Level: 0

返回:
the telephone number
抛出异常:
JAXRException - If the JAXR provider encounters an internal error

getExtension

String getExtension()
                    throws JAXRException
Gets the internal extension. Default is an empty String.

Capability Level: 1

返回:
the internal extension number
抛出异常:
JAXRException - If the JAXR provider encounters an internal error

getUrl

String getUrl()
              throws JAXRException
Gets the URL that can dial this number electronically. Default is a NULL String.

Capability Level: 1

返回:
the url
抛出异常:
JAXRException - If the JAXR provider encounters an internal error

getType

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

Capability Level: 0

返回:
the type for this TelephoneNumber, which is an arbitrary String
抛出异常:
JAXRException - If the JAXR provider encounters an internal error

setCountryCode

void setCountryCode(String countryCode)
                    throws JAXRException
Sets country code.

Capability Level: 1

参数:
countryCode - the country code
抛出异常:
JAXRException - If the JAXR provider encounters an internal error

setAreaCode

void setAreaCode(String areaCode)
                 throws JAXRException
Sets the area code.

Capability Level: 1

参数:
areaCode - the area code
抛出异常:
JAXRException - If the JAXR provider encounters an internal error

setNumber

void setNumber(String number)
               throws JAXRException
Sets the telephone number suffix, not including the country or area code.

Capability Level: 0

参数:
number - the telephone number
抛出异常:
JAXRException - If the JAXR provider encounters an internal error

setExtension

void setExtension(String extension)
                  throws JAXRException
Sets the internal extension.

Capability Level: 1

参数:
extension - the internal extension number
抛出异常:
JAXRException - If the JAXR provider encounters an internal error

setUrl

void setUrl(String url)
            throws JAXRException
Sets the URL that can dial this number electronically.

Capability Level: 1

参数:
url - the URL string
抛出异常:
JAXRException - If the JAXR provider encounters an internal error

setType

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

Capability Level: 0

参数:
type - the type for this TelephoneNumber, which is an arbitrary String
抛出异常:
JAXRException - If the JAXR provider encounters an internal error

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


提交错误或意见

版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.