|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 | |
---|---|
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. |
Method Detail |
---|
public String
getCountryCode() throws JAXRException
获取国家代码。默认值为空字符串。
- 功能级别:1
return | 国家代码 |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
getCountryCode
String getCountryCode() throws JAXRException
- Gets the country code.
Default is an empty String.
- Capability Level: 1
- Returns:
- the country code
- Throws:
JAXRException
- If the JAXR provider encounters an internal error
public String
getAreaCode() throws JAXRException
获取地区代码。默认值为空字符串。
- 功能级别:1
return | 地区代码 |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
getAreaCode
String getAreaCode() throws JAXRException
- Gets the area code.
Default is an empty String.
- Capability Level: 1
- Returns:
- the area code
- Throws:
JAXRException
- If the JAXR provider encounters an internal error
public String
getNumber() throws JAXRException
获取电话号码后缀,不包括国家代码或地区代码。默认值为空字符串。
- 功能级别:0
return | 电话号码 |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
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
- Returns:
- the telephone number
- Throws:
JAXRException
- If the JAXR provider encounters an internal error
public String
getExtension() throws JAXRException
获取分机号。默认值为空字符串。
- 功能级别:1
return | 分机号 |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
getExtension
String getExtension() throws JAXRException
- Gets the internal extension.
Default is an empty String.
- Capability Level: 1
- Returns:
- the internal extension number
- Throws:
JAXRException
- If the JAXR provider encounters an internal error
public String
getUrl() throws JAXRException
获取可以通过电脑拨打此号码的 URL。默认值为 NULL 字符串。
- 功能级别:1
return | URL |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
getUrl
String getUrl() throws JAXRException
- Gets the URL that can dial this number electronically.
Default is a NULL String.
- Capability Level: 1
- Returns:
- the url
- Throws:
JAXRException
- If the JAXR provider encounters an internal error
public String
getType() throws JAXRException
电话号码的类型(例如 "fax")。任意 String 都可以。
- 功能级别:0
return | 此 TelephoneNumber 的类型,它是任意 String |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
getType
String getType() throws JAXRException
- 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 JAXR provider encounters an internal error
public void
setCountryCode(String countryCode) throws JAXRException
设置国家代码。
- 功能级别:1
countryCode | 国家代码 |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
setCountryCode
void setCountryCode(String countryCode) throws JAXRException
- Sets country code.
- Capability Level: 1
- Parameters:
countryCode
- the country code- Throws:
JAXRException
- If the JAXR provider encounters an internal error
public void
setAreaCode(String areaCode) throws JAXRException
设置地区代码。
- 功能级别:1
areaCode | 地区代码 |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
setAreaCode
void setAreaCode(String areaCode) throws JAXRException
- Sets the area code.
- Capability Level: 1
- Parameters:
areaCode
- the area code- Throws:
JAXRException
- If the JAXR provider encounters an internal error
public void
setNumber(String number) throws JAXRException
设置电话号码后缀,不包括国家代码或地区代码。
- 功能级别:0
number | 电话号码 |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
setNumber
void setNumber(String number) throws JAXRException
- Sets the telephone number suffix, not including the country or area code.
- Capability Level: 0
- Parameters:
number
- the telephone number- Throws:
JAXRException
- If the JAXR provider encounters an internal error
public void
setExtension(String extension) throws JAXRException
设置分机号。
- 功能级别:1
extension | 分机号 |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
setExtension
void setExtension(String extension) throws JAXRException
- Sets the internal extension.
- Capability Level: 1
- Parameters:
extension
- the internal extension number- Throws:
JAXRException
- If the JAXR provider encounters an internal error
public void
setUrl(String url) throws JAXRException
设置可通过电脑拨打此号码的 URL。
- 功能级别:1
url | URL 字符串 |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
setUrl
void setUrl(String url) throws JAXRException
- Sets the URL that can dial this number electronically.
- Capability Level: 1
- Parameters:
url
- the URL string- Throws:
JAXRException
- If the JAXR provider encounters an internal error
public void
setType(String type) throws JAXRException
设置电话号码类型(例如 "fax")。任何 String 都可以。
- 功能级别:0
type | 此 TelephoneNumber 的类型,它是任意 String |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
setType
void setType(String type) throws JAXRException
- 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 JAXR provider encounters an internal error
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Submit a bug or feature
Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!