java.lang.Object | +--com.ibm.commerce.me.datatype.Address
This class stores the shipping address information
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT IBM Copyright field |
Constructor Summary | |
---|---|
Address() Address constructor comment. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj) Checks whether some other address is equals to this address |
java.lang.String |
getAddress1() Gets line 1 of address |
java.lang.String |
getAddress2() Gets line 2 of address |
java.lang.String |
getAddress3() Gets line 3 of address |
java.lang.String |
getCity() Gets the city name |
java.lang.String |
getCountry() Gets the country |
java.lang.String |
getDeliverTo() Gets the deliver to address |
java.lang.String |
getEmail() Gets the email address |
java.lang.String |
getEmailType() Gets the type of the email address |
java.lang.String |
getFax() Gets the fax number |
java.lang.String |
getFaxType() Gets the type of the fax number (work / home) |
java.lang.String |
getName() Gets the name |
java.lang.String |
getPhoneNo() Gets the phone number |
java.lang.String |
getPhoneType() Gets the type of the phone number (work / home) |
java.lang.String |
getPostalCode() Gets the postal code |
java.lang.String |
getState() Gets the state |
void |
setAddress1(java.lang.String newAddress1) Sets the line1 of address |
void |
setAddress2(java.lang.String newAddress2) Sets the line 2 of address |
void |
setAddress3(java.lang.String newAddress3) Sets the line 3 of address |
void |
setCity(java.lang.String newCity) Sets the city |
void |
setCountry(java.lang.String newCountry) Sets the country |
void |
setDeliverTo(java.lang.String newDeliverTo) Sets the deliver to address |
void |
setEmail(java.lang.String newEmail) Sets the email address |
void |
setEmailType(java.lang.String newEmail) Sets the type of the email address |
void |
setFax(java.lang.String newFax) Sets the fax number |
void |
setFaxType(java.lang.String newFaxType) Sets the type of the fax number (home / work) |
void |
setName(java.lang.String newName) Sets the name |
void |
setPhoneNo(java.lang.String newPhoneNo) Sets the phone number |
void |
setPhoneType(java.lang.String newPhoneNo) Sets the type of the phone number (home / work) |
void |
setPostalCode(java.lang.String newPostalCode) Sets the postal code |
void |
setState(java.lang.String newState) Sets the state |
java.lang.String |
toString() Gets the string representation of the address object. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait,
wait |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
Constructor Detail |
---|
public Address()
Method Detail |
---|
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- An object to be compared against to the current Address
object.public java.lang.String getAddress1()
public java.lang.String getAddress2()
public java.lang.String getAddress3()
public 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 line 1 of addresspublic void setAddress2(java.lang.String newAddress2)
newAddress2
- the new line 2 of addresspublic void setAddress3(java.lang.String newAddress3)
newAddress3
- the line 3 of addresspublic 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 deliver to 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 name of the addresspublic 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 state of the addresspublic java.lang.String toString()
toString
in class java.lang.Object