public class Address
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM Copyright field
|
Constructor and Description |
---|
Address()
The Address constructor calls its superclass constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
This method checks whether some other address equals
this address
|
java.lang.String |
getAddress1()
This method gets the address line 1.
|
java.lang.String |
getAddress2()
This method gets the address line 2.
|
java.lang.String |
getAddress3()
This method gets the address line 3.
|
java.lang.String |
getCity()
This method gets the city name.
|
java.lang.String |
getCountry()
This method gets the country name.
|
java.lang.String |
getDeliverTo()
This method gets the delivery address.
|
java.lang.String |
getEmail()
This method gets the email address.
|
java.lang.String |
getEmailType()
This method gets the type of the email address (work / home).
|
java.lang.String |
getFax()
This method gets the fax number.
|
java.lang.String |
getFaxType()
This method gets the type of the fax number (work / home).
|
java.lang.String |
getName()
This method gets the address name.
|
java.lang.String |
getPhoneNo()
This method gets the phone number.
|
java.lang.String |
getPhoneType()
This method gets the type of the phone number (work / home).
|
java.lang.String |
getPostalCode()
This method gets the postal code.
|
java.lang.String |
getState()
This method gets the state or province.
|
void |
setAddress1(java.lang.String newAddress1)
This method sets the address line 1.
|
void |
setAddress2(java.lang.String newAddress2)
This method sets the address line 2.
|
void |
setAddress3(java.lang.String newAddress3)
This method sets the address line 3.
|
void |
setCity(java.lang.String newCity)
This method sets the city name of the address.
|
void |
setCountry(java.lang.String newCountry)
This method sets the country name of the address.
|
void |
setDeliverTo(java.lang.String newDeliverTo)
This method sets the delivery address.
|
void |
setEmail(java.lang.String newEmail)
This method sets the email address.
|
void |
setEmailType(java.lang.String newEmail)
This method sets the type of the email address (work / home).
|
void |
setFax(java.lang.String newFax)
This method sets the fax number of the address.
|
void |
setFaxType(java.lang.String newFaxType)
This method sets the type of the fax number (home / work).
|
void |
setName(java.lang.String newName)
This method sets the address name.
|
void |
setPhoneNo(java.lang.String newPhoneNo)
This method sets the phone number of the address.
|
void |
setPhoneType(java.lang.String newPhoneNo)
This method sets the type of the phone number (home / work).
|
void |
setPostalCode(java.lang.String newPostalCode)
This method sets the postal code for the address.
|
void |
setState(java.lang.String newState)
This method sets the state or province of the address.
|
java.lang.String |
toString()
This method gets the string representation of the address object.
|
public static final java.lang.String COPYRIGHT
public Address()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- An object to be compared against the current Address object.obj
equals this address, otherwise falsepublic java.lang.String getAddress1()
address1
fieldpublic java.lang.String getAddress2()
address2
fieldpublic java.lang.String getAddress3()
address3
fieldpublic java.lang.String getCity()
public java.lang.String getCountry()
public java.lang.String getDeliverTo()
public java.lang.String getEmail()
public java.lang.String getEmailType()
public java.lang.String getFax()
public java.lang.String getFaxType()
public java.lang.String getName()
public java.lang.String getPhoneNo()
public java.lang.String getPhoneType()
public java.lang.String getPostalCode()
public java.lang.String getState()
public void setAddress1(java.lang.String newAddress1)
newAddress1
- the new address line 1public void setAddress2(java.lang.String newAddress2)
newAddress2
- the new address line 2public void setAddress3(java.lang.String newAddress3)
newAddress3
- the new address line 3public void setCity(java.lang.String newCity)
newCity
- the new city namepublic void setCountry(java.lang.String newCountry)
newCountry
- the new countrypublic void setDeliverTo(java.lang.String newDeliverTo)
newDeliverTo
- the new delivery addresspublic void setEmail(java.lang.String newEmail)
newEmail
- the new email addresspublic void setEmailType(java.lang.String newEmail)
newEmail
- the email address typepublic void setFax(java.lang.String newFax)
newFax
- the new fax numberpublic void setFaxType(java.lang.String newFaxType)
newFaxType
- the new fax number typepublic void setName(java.lang.String newName)
newName
- the address namepublic void setPhoneNo(java.lang.String newPhoneNo)
newPhoneNo
- the new phone numberpublic void setPhoneType(java.lang.String newPhoneNo)
newPhoneNo
- the new phone number type (home / work)public void setPostalCode(java.lang.String newPostalCode)
newPostalCode
- the new postal codepublic void setState(java.lang.String newState)
newState
- the new state or province of the addresspublic java.lang.String toString()
toString
in class java.lang.Object