|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
javax.xml.registry.infomodel Interface PostalAddress
- All Superinterfaces:
- ExtensibleObject
public interface PostalAddress
- extends ExtensibleObject
Implements:
ExtensibleObject
PostalAddress 是一个简单的可重用实体类,它定义邮政 Address 的属性。
PostalAddress is a simple re-usable entity class that defines attributes of a postal Address.
- Author:
- Farrukh S. Najmi
Method Summary | |
---|---|
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 |
Method Detail |
---|
public String
getStreet() throws JAXRException
返回街道名称。默认值为空字符串。
- 功能级别:0
return | 街道名称 |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
getStreet
String getStreet() throws JAXRException
- Returns the street name.
Default is an empty String.
- Capability Level: 0
- Returns:
- the street name
- Throws:
JAXRException
- If the JAXR provider encounters an internal error
public void
setStreet(String street) throws JAXRException
设置街道名称。
- 功能级别:0
street | 街道名称 |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
setStreet
void setStreet(String street) throws JAXRException
- Sets the street name.
- Capability Level: 0
- Parameters:
street
- the street name- Throws:
JAXRException
- If the JAXR provider encounters an internal error
public String
getStreetNumber() throws JAXRException
返回街道编号。默认值为空字符串。
- 功能级别:0
return | 街道编号 |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
getStreetNumber
String getStreetNumber() throws JAXRException
- Returns the street number.
Default is an empty String.
- Capability Level: 0
- Returns:
- the street number
- Throws:
JAXRException
- If the JAXR provider encounters an internal error
public void
setStreetNumber(String streetNumber) throws JAXRException
设置街道编号。
- 功能级别:0
streetNumber | 街道编号 |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
setStreetNumber
void setStreetNumber(String streetNumber) throws JAXRException
- Sets the street number.
- Capability Level: 0
- Parameters:
streetNumber
- the street number- Throws:
JAXRException
- If the JAXR provider encounters an internal error
public String
getCity() throws JAXRException
返回城市。默认值为空字符串。
- 功能级别:0
return | 城市 |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
getCity
String getCity() throws JAXRException
- Returns the city.
Default is an empty String.
- Capability Level: 0
- Returns:
- the city
- Throws:
JAXRException
- If the JAXR provider encounters an internal error
public void
setCity(String city) throws JAXRException
设置城市。
- 功能级别:0
city | 城市 |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
setCity
void setCity(String city) throws JAXRException
- Sets the city.
- Capability Level: 0
- Parameters:
city
- the city- Throws:
JAXRException
- If the JAXR provider encounters an internal error
public String
getStateOrProvince() throws JAXRException
返回州或省。默认值为空字符串。
- 功能级别:0
return | 州或省 |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
getStateOrProvince
String getStateOrProvince() throws JAXRException
- Returns the state or province.
Default is an empty String.
- Capability Level: 0
- Returns:
- the state or province
- Throws:
JAXRException
- If the JAXR provider encounters an internal error
public void
setStateOrProvince(String stateOrProvince) throws JAXRException
设置州或省。
- 功能级别:0
stateOrProvince | 州或省 |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
setStateOrProvince
void setStateOrProvince(String stateOrProvince) throws JAXRException
- Sets the state or province.
- Capability Level: 0
- Parameters:
stateOrProvince
- the state or province- Throws:
JAXRException
- If the JAXR provider encounters an internal error
public String
getPostalCode() throws JAXRException
返回邮政编码。默认值为空字符串。
- 功能级别:0
return | 邮政编码(例如,US 邮编) |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
getPostalCode
String getPostalCode() throws JAXRException
- Returns the postal or zip code.
Default is an empty String.
- Capability Level: 0
- Returns:
- the postal code (e.g. US zip code)
- Throws:
JAXRException
- If the JAXR provider encounters an internal error
public void
setPostalCode(String postalCode) throws JAXRException
设置邮政编码。
- 功能级别:0
postalCode | 邮政编码(例如,US 邮编) |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
setPostalCode
void setPostalCode(String postalCode) throws JAXRException
- Sets the postal or zip code.
- Capability Level: 0
- Parameters:
postalCode
- the postal code (e.g. US zip code)- Throws:
JAXRException
- If the JAXR provider encounters an internal error
public String
getCountry() throws JAXRException
返回国家。默认值为空字符串。
- 功能级别:0
return | 国家 |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
getCountry
String getCountry() throws JAXRException
- Returns the country.
Default is an empty String.
- Capability Level: 0
- Returns:
- the country
- Throws:
JAXRException
- If the JAXR provider encounters an internal error
public void
setCountry(String country) throws JAXRException
设置国家。
- 功能级别:0
country | 国家 |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
setCountry
void setCountry(String country) throws JAXRException
- Sets the country.
- Capability Level: 0
- Parameters:
country
- the country- Throws:
JAXRException
- If the JAXR provider encounters an internal error
public String
getType() throws JAXRException
以 String 形式返回地址类型(例如,"headquarters")。
- 功能级别:0
return | 此 PostalAddress 的类型。这是一个任意字符串(例如 "Home"、"Office") |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
getType
String getType() throws JAXRException
- Returns the type of address (for example, "headquarters") as a String.
- Capability Level: 0
- Returns:
- the type for this PostalAddress. This is an arbitrary String (e.g. "Home", "Office")
- Throws:
JAXRException
- If the JAXR provider encounters an internal error
public void
setType(String type) throws JAXRException
以 String 形式设置地址类型(例如,"headquarters")。
- 功能级别:0
type | 此 PostalAddress 的类型。这是一个任意字符串(例如 "Home"、"Office") |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
setType
void setType(String type) throws JAXRException
- Sets the type of address (for example, "headquarters") as a String.
- Capability Level: 0
- Parameters:
type
- the type for this PostalAddress. This is an arbitrary String (e.g. "Home", "Office")- Throws:
JAXRException
- If the JAXR provider encounters an internal error
public void
setPostalScheme(ClassificationScheme scheme) throws JAXRException
设置用于对 PostalAddress 的属性进行编码的用户定义的邮政方案。
- 功能级别:0
scheme | 用户定义的邮政方案。 |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
setPostalScheme
void setPostalScheme(ClassificationScheme scheme) throws JAXRException
- Sets a user-defined postal scheme for codifying the attributes of PostalAddress.
- Capability Level: 0
- Parameters:
scheme
- the user defined postal scheme.- Throws:
JAXRException
- If the JAXR provider encounters an internal error
public ClassificationScheme
getPostalScheme() throws JAXRException
返回用于对 PostalAddress 属性进行编码的用户定义的邮政方案。如果没有为此对象定义邮政方案,则必须返回 RegistryService#getDefaultPostalScheme() 所返回的默认值
- 功能级别:0
return | 用户定义的邮政方案。 |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
See also | getDefaultPostalScheme() |
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
- Returns:
- the user defined postal scheme.
- Throws:
JAXRException
- If the JAXR provider encounters an internal error- See Also:
RegistryService.getDefaultPostalScheme()
|
|||||||||
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 : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!