|
Java EE 5 SDK 深圳电信培训中心.徐海蛟老师. |
||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 |
javax.xml.registry.infomodel Interface PostalAddress
- 所有父接口:
- ExtensibleObject
public interface PostalAddress
- extends ExtensibleObject
PostalAddress is a simple re-usable entity class that defines attributes of a postal Address.
- 作者:
- Farrukh S. Najmi
方法摘要 | |
---|---|
String |
getCity()
Returns the city. |
String |
getCountry()
Returns the country. |
String |
getPostalCode()
Returns the postal or zip code. |
ClassificationScheme |
getPostalScheme()
Returns a user-defined postal scheme for codifying the attributes of PostalAddress. |
String |
getStateOrProvince()
Returns the state or province. |
String |
getStreet()
Returns the street name. |
String |
getStreetNumber()
Returns the street number. |
String |
getType()
Returns the type of address (for example, "headquarters") as a String. |
void |
setCity(String city)
Sets the city. |
void |
setCountry(String country)
Sets the country. |
void |
setPostalCode(String postalCode)
Sets the postal or zip code. |
void |
setPostalScheme(ClassificationScheme scheme)
Sets a user-defined postal scheme for codifying the attributes of PostalAddress. |
void |
setStateOrProvince(String stateOrProvince)
Sets the state or province. |
void |
setStreet(String street)
Sets the street name. |
void |
setStreetNumber(String streetNumber)
Sets the street number. |
void |
setType(String type)
Sets the type of address (for example, "headquarters") as a String. |
Methods inherited from interface javax.xml.registry.infomodel.ExtensibleObject |
---|
addSlot, addSlots, getSlot, getSlots, removeSlot, removeSlots |
方法详细信息 |
---|
getStreet
String getStreet() throws JAXRException
- Returns the street name.
Default is an empty String.
- Capability Level: 0
- 返回:
- the street name
- 抛出异常:
JAXRException
- If the JAXR provider encounters an internal error
setStreet
void setStreet(String street) throws JAXRException
- Sets the street name.
- Capability Level: 0
- 参数:
street
- the street name- 抛出异常:
JAXRException
- If the JAXR provider encounters an internal error
getStreetNumber
String getStreetNumber() throws JAXRException
- Returns the street number.
Default is an empty String.
- Capability Level: 0
- 返回:
- the street number
- 抛出异常:
JAXRException
- If the JAXR provider encounters an internal error
setStreetNumber
void setStreetNumber(String streetNumber) throws JAXRException
- Sets the street number.
- Capability Level: 0
- 参数:
streetNumber
- the street number- 抛出异常:
JAXRException
- If the JAXR provider encounters an internal error
getCity
String getCity() throws JAXRException
- Returns the city.
Default is an empty String.
- Capability Level: 0
- 返回:
- the city
- 抛出异常:
JAXRException
- If the JAXR provider encounters an internal error
setCity
void setCity(String city) throws JAXRException
- Sets the city.
- Capability Level: 0
- 参数:
city
- the city- 抛出异常:
JAXRException
- If the JAXR provider encounters an internal error
getStateOrProvince
String getStateOrProvince() throws JAXRException
- Returns the state or province.
Default is an empty String.
- Capability Level: 0
- 返回:
- the state or province
- 抛出异常:
JAXRException
- If the JAXR provider encounters an internal error
setStateOrProvince
void setStateOrProvince(String stateOrProvince) throws JAXRException
- Sets the state or province.
- Capability Level: 0
- 参数:
stateOrProvince
- the state or province- 抛出异常:
JAXRException
- If the JAXR provider encounters an internal error
getPostalCode
String getPostalCode() throws JAXRException
- Returns the postal or zip code.
Default is an empty String.
- Capability Level: 0
- 返回:
- the postal code (e.g. US zip code)
- 抛出异常:
JAXRException
- If the JAXR provider encounters an internal error
setPostalCode
void setPostalCode(String postalCode) throws JAXRException
- Sets the postal or zip code.
- Capability Level: 0
- 参数:
postalCode
- the postal code (e.g. US zip code)- 抛出异常:
JAXRException
- If the JAXR provider encounters an internal error
getCountry
String getCountry() throws JAXRException
- Returns the country.
Default is an empty String.
- Capability Level: 0
- 返回:
- the country
- 抛出异常:
JAXRException
- If the JAXR provider encounters an internal error
setCountry
void setCountry(String country) throws JAXRException
- Sets the country.
- Capability Level: 0
- 参数:
country
- the country- 抛出异常:
JAXRException
- If the JAXR provider encounters an internal error
getType
String getType() throws JAXRException
- Returns the type of address (for example, "headquarters") as a String.
- Capability Level: 0
- 返回:
- the type for this PostalAddress. This is an arbitrary String (e.g. "Home", "Office")
- 抛出异常:
JAXRException
- If the JAXR provider encounters an internal error
setType
void setType(String type) throws JAXRException
- Sets the type of address (for example, "headquarters") as a String.
- Capability Level: 0
- 参数:
type
- the type for this PostalAddress. This is an arbitrary String (e.g. "Home", "Office")- 抛出异常:
JAXRException
- If the JAXR provider encounters an internal error
setPostalScheme
void setPostalScheme(ClassificationScheme scheme) throws JAXRException
- Sets a user-defined postal scheme for codifying the attributes of PostalAddress.
- Capability Level: 0
- 参数:
scheme
- the user defined postal scheme.- 抛出异常:
JAXRException
- If the JAXR provider encounters an internal error
getPostalScheme
ClassificationScheme getPostalScheme() throws JAXRException
- Returns a user-defined postal scheme for codifying the attributes of PostalAddress.
If none is defined for this object, then must return the default value
returned by RegistryService#getDefaultPostalScheme()
- Capability Level: 0
- 返回:
- the user defined postal scheme.
- 抛出异常:
JAXRException
- If the JAXR provider encounters an internal error- 另请参见:
RegistryService.getDefaultPostalScheme()
|
Java EE 5 SDK 深圳电信培训中心.徐海蛟老师. |
||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 |
提交错误或意见
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.