public class Address extends Object implements Serializable
address represents the contact’s postal address, in a form suitable for addressing an envelope. The address structure is a simple list of address lines.
Attributes
Name |
Use |
xml:lang |
optional |
useType |
optional |
sortCode |
optional |
tModelKey |
optional |
Address structures have four optional attributes.
The xml:lang value describes the language the address is expressed in. There is no restriction on the number of addresses or what xml:lang value they may have. Publication of addresses in several languages, e.g. for use in multilingual countries, is supported. See Appendix D Internationalization for an example.
The useType describes the address’ type in unstructured text. Suggested examples include "headquarters", "sales office", "billing department", etc.
The sortCode attribute is deprecated because of the guarantee of preserving the document order (see Section 4.5.3 Preservation of Document Order). In order to achieve this behavior, the data has just to be published in the desired order.
The tModelKey is a tModel reference that specifies that keyName keyValue pairs given by subsequent addressLine elements, if addressLine elements are present at all, are to be interpreted by the address structure associated with the tModel that is referenced. For a description of how to use tModels in order to give the addressLine list structure and meaning, see Appendix D Internationalization.
Java class for address complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="address"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element ref="{urn:uddi-org:api_v3}addressLine" maxOccurs="unbounded"/> </sequence> <attribute ref="{http://www.w3.org/XML/1998/namespace}lang"/> <attribute name="useType" type="{urn:uddi-org:api_v3}useType" default="" /> <attribute name="sortCode" type="{urn:uddi-org:api_v3}sortCode" default="" /> <attribute name="tModelKey" type="{urn:uddi-org:api_v3}tModelKey" /> </restriction> </complexContent> </complexType>
Modifier and Type | Field and Description |
---|---|
protected List<AddressLine> |
addressLine |
protected String |
lang |
protected String |
sortCode |
protected String |
tModelKey |
protected String |
useType |
Constructor and Description |
---|
Address() |
Modifier and Type | Method and Description |
---|---|
List<AddressLine> |
getAddressLine()
Gets the value of the addressLine property.
|
String |
getLang()
Gets the value of the lang property.
|
String |
getSortCode()
Gets the value of the sortCode property.
|
String |
getTModelKey()
Gets the value of the tModelKey property.
|
String |
getUseType()
Gets the value of the useType property.
|
void |
setLang(String value)
Sets the value of the lang property.
|
void |
setSortCode(String value)
Sets the value of the sortCode property.
|
void |
setTModelKey(String value)
Sets the value of the tModelKey property.
|
void |
setUseType(String value)
Sets the value of the useType property.
|
protected List<AddressLine> addressLine
protected String lang
protected String useType
protected String sortCode
protected String tModelKey
public List<AddressLine> getAddressLine()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set
method for the addressLine property.
For example, to add a new item, do as follows:
getAddressLine().add(newItem);
Objects of the following type(s) are allowed in the list
AddressLine
public String getLang()
String
public void setLang(String value)
value
- allowed object is
String
public String getUseType()
String
public void setUseType(String value)
value
- allowed object is
String
public String getSortCode()
String
public void setSortCode(String value)
value
- allowed object is
String
public String getTModelKey()
String
Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.