com.ibm.commerce.me.datatype
Class Address

java.lang.Object
  com.ibm.commerce.me.datatype.Address
All Implemented Interfaces:
java.io.Serializable

public class Address
extends java.lang.Object
implements java.io.Serializable

This class stores the shipping address information

See Also:
Serialized Form

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

COPYRIGHT

public static final java.lang.String COPYRIGHT
IBM Copyright field
See Also:
Constant Field Values
Constructor Detail

Address

public Address()
Address constructor comment.
Method Detail

equals

public boolean equals(java.lang.Object obj)
Checks whether some other address is equals to this address
Parameters:
obj - An object to be compared against to the current Address object.
Returns:
true if obj equals to this address, false if otherwise

getAddress1

public java.lang.String getAddress1()
Gets line 1 of address
Returns:
the line 1 field of address

getAddress2

public java.lang.String getAddress2()
Gets line 2 of address
Returns:
the line 2 field of address

getAddress3

public java.lang.String getAddress3()
Gets line 3 of address
Returns:
the line 3 field of address

getCity

public java.lang.String getCity()
Gets the city name
Returns:
the city name of the current address

getCountry

public java.lang.String getCountry()
Gets the country
Returns:
the country name of the current address

getDeliverTo

public java.lang.String getDeliverTo()
Gets the deliver to address
Returns:
the deliver to address

getEmail

public java.lang.String getEmail()
Gets the email address
Returns:
the email address

getEmailType

public java.lang.String getEmailType()
Gets the type of the email address
Returns:
the email address type

getFax

public java.lang.String getFax()
Gets the fax number
Returns:
the fax number

getFaxType

public java.lang.String getFaxType()
Gets the type of the fax number (work / home)
Returns:
the fax number type (work/home)

getName

public java.lang.String getName()
Gets the name
Returns:
the name of address

getPhoneNo

public java.lang.String getPhoneNo()
Gets the phone number
Returns:
the phone number

getPhoneType

public java.lang.String getPhoneType()
Gets the type of the phone number (work / home)
Returns:
the type of phone number (work / home)

getPostalCode

public java.lang.String getPostalCode()
Gets the postal code
Returns:
the postal code of the address

getState

public java.lang.String getState()
Gets the state
Returns:
the state of the current address

setAddress1

public void setAddress1(java.lang.String newAddress1)
Sets the line1 of address
Parameters:
newAddress1 - the new line 1 of address

setAddress2

public void setAddress2(java.lang.String newAddress2)
Sets the line 2 of address
Parameters:
newAddress2 - the new line 2 of address

setAddress3

public void setAddress3(java.lang.String newAddress3)
Sets the line 3 of address
Parameters:
newAddress3 - the line 3 of address

setCity

public void setCity(java.lang.String newCity)
Sets the city
Parameters:
newCity - the new city name

setCountry

public void setCountry(java.lang.String newCountry)
Sets the country
Parameters:
newCountry - the new country

setDeliverTo

public void setDeliverTo(java.lang.String newDeliverTo)
Sets the deliver to address
Parameters:
newDeliverTo - the new deliver to address

setEmail

public void setEmail(java.lang.String newEmail)
Sets the email address
Parameters:
newEmail - the new email address

setEmailType

public void setEmailType(java.lang.String newEmail)
Sets the type of the email address
Parameters:
newEmail - the email address type

setFax

public void setFax(java.lang.String newFax)
Sets the fax number
Parameters:
newFax - the new fax number

setFaxType

public void setFaxType(java.lang.String newFaxType)
Sets the type of the fax number (home / work)
Parameters:
newFaxType - the new fax number type

setName

public void setName(java.lang.String newName)
Sets the name
Parameters:
newName - the name of the address

setPhoneNo

public void setPhoneNo(java.lang.String newPhoneNo)
Sets the phone number
Parameters:
newPhoneNo - the new phone number

setPhoneType

public void setPhoneType(java.lang.String newPhoneNo)
Sets the type of the phone number (home / work)
Parameters:
newPhoneNo - the new phone number type (home / work)

setPostalCode

public void setPostalCode(java.lang.String newPostalCode)
Sets the postal code
Parameters:
newPostalCode - the new postal code

setState

public void setState(java.lang.String newState)
Sets the state
Parameters:
newState - the state of the address

toString

public java.lang.String toString()
Gets the string representation of the address object.
Returns:
a string represnetation of the address

Feedback