Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.juddi.datatype
Class Address  view Address download Address.java

java.lang.Object
  extended byorg.apache.juddi.datatype.Address
All Implemented Interfaces:
RegistryObject, java.io.Serializable

public class Address
extends java.lang.Object
implements RegistryObject

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.


Field Summary
(package private)  java.util.Vector addressLineVector
           
(package private)  java.lang.String sortCode
           
(package private)  java.lang.String tModelKey
           
(package private)  java.lang.String useType
           
 
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
 

Field Detail

useType

java.lang.String useType

sortCode

java.lang.String sortCode

tModelKey

java.lang.String tModelKey

addressLineVector

java.util.Vector addressLineVector
Constructor Detail

Address

public Address()
Constructs a new Address with no address-lines and no useType or sortCode attribute.


Address

public 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 Detail

setUseType

public void setUseType(java.lang.String type)
Sets the usetype of this address to the given usetype. If the new usetype is null, this address doesn't have a usetype anymore.


getUseType

public java.lang.String getUseType()
Returns the usetype of this address.


setSortCode

public void setSortCode(java.lang.String sort)
Sets the sortcode of this address to the given sortcode. If the new sortcode is null, this address doesn't have a sortcode anymore.


getSortCode

public java.lang.String getSortCode()
Returns the sortcode of this address.


setTModelKey

public void setTModelKey(java.lang.String key)
Sets the key of this tModel to the given key.


getTModelKey

public java.lang.String getTModelKey()
Returns the String of this Address.


addAddressLine

public void addAddressLine(AddressLine line)
Add a new addressline to this address. The addressline is added at the end of the already existing set of addresslines.


setAddressLineVector

public void setAddressLineVector(java.util.Vector lines)
Add a collection of new addresslines to this address. The new addresslines are added at the end of the set of the already existing addresslines.


getAddressLineVector

public java.util.Vector getAddressLineVector()
Returns the addresslines of this address.