com.wm.app.tn.profile
Class Address

java.lang.Object
  extended by com.wm.app.tn.util.TNFixedData
      extended by com.wm.app.tn.profile.Address
All Implemented Interfaces:
FieldGroup, com.wm.data.IData, java.lang.Cloneable

public class Address
extends TNFixedData
implements FieldGroup

An address on the profile. An address may be associated with a Contact or a Corporation.

See Also:
Corporation, Contact

Nested Class Summary
 
Nested classes/interfaces inherited from class com.wm.app.tn.util.TNFixedData
TNFixedData.TreeCursor
 
Constructor Summary
Address()
          Creates an Address.
 
Method Summary
static com.wm.data.IData create()
          Creates an Address.
 java.lang.String getAddressID()
           
 java.lang.String getCity()
           
 java.lang.String getContactID()
           
 java.lang.String getCountry()
           
 java.lang.String getErrorTemplate()
          for internal use only
 int getID()
           
 java.lang.String getLine1()
           
 java.lang.String getLine2()
           
 java.lang.String getLine3()
           
 java.lang.String getName()
           
 java.lang.String getPartnerID()
           
 short getSeqNo()
           
 java.lang.String getStateProvince()
           
 java.lang.String getZipPostalCode()
           
 void setAddressID(java.lang.String s)
          do not use - for internal use only
 void setCity(java.lang.String s)
          Sets the Address' city
 void setContactID(java.lang.String s)
          Indicates that the Address is assocaited with a Contact.
 void setCountry(java.lang.String s)
          Sets the Address' country
 void setIData(com.wm.data.IData data)
           
 void setLine1(java.lang.String s)
          Sets the first line of the Address
 void setLine2(java.lang.String s)
          Sets the second line of the Address
 void setLine3(java.lang.String s)
          Sets the third line of the Address
 void setPartnerID(java.lang.String s)
          Indicates that the Address is assocaited with a partner Corporation.
 void setSeqNo(short s)
          Sets the sequenc enumber of the Address.
 void setStateProvince(java.lang.String s)
          Sets the Address' state or province
 void setZipPostalCode(java.lang.String s)
          Sets the Address' postal code
 java.lang.String toString()
          Default toString implementation returns class name followed by contents.
 
Methods inherited from class com.wm.app.tn.util.TNFixedData
clone, dataSize, get, get, getCursor, getHashCursor, getIndexCursor, getKey, getSharedCursor, getTreeCursor, indexOf, merge, set, set
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Address

public Address()
Creates an Address.

Method Detail

getName

public final java.lang.String getName()
Returns:
the name of the Address group.

getID

public final int getID()
Specified by:
getID in interface FieldGroup
Returns:
the ID of the Address group.
See Also:
Constants

create

public static com.wm.data.IData create()
Creates an Address. Used by the IDataCoders.


getAddressID

public final java.lang.String getAddressID()
Returns:
the internal webMethods id for the Address

getPartnerID

public final java.lang.String getPartnerID()
Returns:
If the Address is associated with a Corporation, the internal webMethods id for the partner; if the Address is associated with a Contact, null

getContactID

public final java.lang.String getContactID()
Returns:
If the Address is associated with a Contact, the internal webMethods ID for the Contact; if the Address is associated with a Corporation, null

getLine1

public final java.lang.String getLine1()
Returns:
the first line of the Address

getLine2

public final java.lang.String getLine2()
Returns:
the second line of the Address

getLine3

public final java.lang.String getLine3()
Returns:
the third line of the Address

getCity

public final java.lang.String getCity()
Returns:
the Address' city

getStateProvince

public final java.lang.String getStateProvince()
Returns:
the Address' state or province

getZipPostalCode

public final java.lang.String getZipPostalCode()
Returns:
the Address' postal code

getCountry

public final java.lang.String getCountry()
Returns:
the Address' country

getSeqNo

public final short getSeqNo()
Returns:
the sequence number of the Address. The TN Consnole uses this to display Corporate Addresses in the correct order.

setAddressID

public final void setAddressID(java.lang.String s)
do not use - for internal use only


setPartnerID

public final void setPartnerID(java.lang.String s)
Indicates that the Address is assocaited with a partner Corporation.

Parameters:
s - the internal webMethods ID of a partner. If this is a Contact's Address, do not set the partner ID.

setContactID

public final void setContactID(java.lang.String s)
Indicates that the Address is assocaited with a Contact.

Parameters:
s - the internal webMethods ID of a Contact. If this is a partner's corporate Address, do not set the contact ID.

setLine1

public final void setLine1(java.lang.String s)
Sets the first line of the Address


setLine2

public final void setLine2(java.lang.String s)
Sets the second line of the Address


setLine3

public final void setLine3(java.lang.String s)
Sets the third line of the Address


setCity

public final void setCity(java.lang.String s)
Sets the Address' city


setStateProvince

public final void setStateProvince(java.lang.String s)
Sets the Address' state or province


setZipPostalCode

public final void setZipPostalCode(java.lang.String s)
Sets the Address' postal code


setCountry

public final void setCountry(java.lang.String s)
Sets the Address' country


setSeqNo

public final void setSeqNo(short s)
Sets the sequenc enumber of the Address. The TN Console uses this to display the Addresses in the correct order.


toString

public final java.lang.String toString()
Description copied from class: TNFixedData
Default toString implementation returns class name followed by contents.

Overrides:
toString in class TNFixedData
Returns:
a String representing an Address

getErrorTemplate

public final java.lang.String getErrorTemplate()
Description copied from interface: FieldGroup
for internal use only

Specified by:
getErrorTemplate in interface FieldGroup
Returns:
a template for formatting error messages.

setIData

public void setIData(com.wm.data.IData data)