|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.juddi.datatype.Address
public class Address
Represents a postal address. Essentially holds a simple set of AddressLines, but can be adorned with an optional useType attribute and sortcode. The useType attribute is used to describe the type of the address in freeform text. Examples are "headquarters", "billing department", etc. The sortCode values are not significant, but can be used by user-interfaces that present contact information in some ordered fashion, thereby using the sortCode values.
Constructor Summary | |
---|---|
Address()
Constructs a new Address with no address-lines and no useType or sortCode attribute. |
|
Address(java.lang.String type,
java.lang.String sort)
Constructs a new Address with no address-lines, but with the given useType and sortCode attributes. |
Method Summary | |
---|---|
void |
addAddressLine(AddressLine line)
Add a new addressline to this address. |
java.util.Vector |
getAddressLineVector()
Returns the addresslines of this address. |
java.lang.String |
getSortCode()
Returns the sortcode of this address. |
java.lang.String |
getTModelKey()
Returns the String of this Address. |
java.lang.String |
getUseType()
Returns the usetype of this address. |
void |
setAddressLineVector(java.util.Vector lines)
Add a collection of new addresslines to this address. |
void |
setSortCode(java.lang.String sort)
Sets the sortcode of this address to the given sortcode. |
void |
setTModelKey(java.lang.String key)
Sets the key of this tModel to the given key. |
void |
setUseType(java.lang.String type)
Sets the usetype of this address to the given usetype. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Address()
public Address(java.lang.String type, java.lang.String sort)
type
- The usetype of the new address, or null if the address
doesn't have a usetype.sort
- The sortcode of the new address, or null if the address
doesn't have a sortcode.Method Detail |
---|
public void setUseType(java.lang.String type)
type
- The new usetype of this address, or null if the address
doesn't have an usetype anymore.public java.lang.String getUseType()
public void setSortCode(java.lang.String sort)
sort
- The new sortcode of this address, or null if the address
doesn't have a sortcode anymore.public java.lang.String getSortCode()
public void setTModelKey(java.lang.String key)
key
- The new key of this tModel.public java.lang.String getTModelKey()
public void addAddressLine(AddressLine line)
line
- The addressline to be added to this address.public void setAddressLineVector(java.util.Vector lines)
lines
- The collection of addresslines to add.public java.util.Vector getAddressLineVector()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |