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

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      IBM Copyright field
    • Constructor Summary

      Constructors 
      Constructor and Description
      Address()
      The Address constructor calls its superclass constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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.
      • Methods inherited from class java.lang.Object

        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()
        The Address constructor calls its superclass constructor.
    • Method Detail

      • equals

        public boolean equals(java.lang.Object obj)
        This method checks whether some other address equals this address
        Overrides:
        equals in class java.lang.Object
        Parameters:
        obj - An object to be compared against the current Address object.
        Returns:
        true if obj equals this address, otherwise false
      • getAddress1

        public java.lang.String getAddress1()
        This method gets the address line 1.
        Returns:
        the address1 field
      • getAddress2

        public java.lang.String getAddress2()
        This method gets the address line 2.
        Returns:
        the address2 field
      • getAddress3

        public java.lang.String getAddress3()
        This method gets the address line 3.
        Returns:
        the address3 field
      • getCity

        public java.lang.String getCity()
        This method gets the city name.
        Returns:
        the city name of the address
      • getCountry

        public java.lang.String getCountry()
        This method gets the country name.
        Returns:
        the country name of the address
      • getDeliverTo

        public java.lang.String getDeliverTo()
        This method gets the delivery address.
        Returns:
        the delivery address
      • getEmail

        public java.lang.String getEmail()
        This method gets the email address.
        Returns:
        the email address
      • getEmailType

        public java.lang.String getEmailType()
        This method gets the type of the email address (work / home).
        Returns:
        the email address type (work / home)
      • getFax

        public java.lang.String getFax()
        This method gets the fax number.
        Returns:
        the fax number
      • getFaxType

        public java.lang.String getFaxType()
        This method gets the type of the fax number (work / home).
        Returns:
        the fax number type (work / home)
      • getName

        public java.lang.String getName()
        This method gets the address name.
        Returns:
        address name
      • getPhoneNo

        public java.lang.String getPhoneNo()
        This method gets the phone number.
        Returns:
        the phone number
      • getPhoneType

        public java.lang.String getPhoneType()
        This method gets the type of the phone number (work / home).
        Returns:
        the type of phone number (work / home)
      • getPostalCode

        public java.lang.String getPostalCode()
        This method gets the postal code.
        Returns:
        the postal code
      • getState

        public java.lang.String getState()
        This method gets the state or province.
        Returns:
        the state or province
      • setAddress1

        public void setAddress1(java.lang.String newAddress1)
        This method sets the address line 1.
        Parameters:
        newAddress1 - the new address line 1
      • setAddress2

        public void setAddress2(java.lang.String newAddress2)
        This method sets the address line 2.
        Parameters:
        newAddress2 - the new address line 2
      • setAddress3

        public void setAddress3(java.lang.String newAddress3)
        This method sets the address line 3.
        Parameters:
        newAddress3 - the new address line 3
      • setCity

        public void setCity(java.lang.String newCity)
        This method sets the city name of the address.
        Parameters:
        newCity - the new city name
      • setCountry

        public void setCountry(java.lang.String newCountry)
        This method sets the country name of the address.
        Parameters:
        newCountry - the new country
      • setDeliverTo

        public void setDeliverTo(java.lang.String newDeliverTo)
        This method sets the delivery address.
        Parameters:
        newDeliverTo - the new delivery address
      • setEmail

        public void setEmail(java.lang.String newEmail)
        This method sets the email address.
        Parameters:
        newEmail - the new email address
      • setEmailType

        public void setEmailType(java.lang.String newEmail)
        This method sets the type of the email address (work / home).
        Parameters:
        newEmail - the email address type
      • setFax

        public void setFax(java.lang.String newFax)
        This method sets the fax number of the address.
        Parameters:
        newFax - the new fax number
      • setFaxType

        public void setFaxType(java.lang.String newFaxType)
        This method sets the type of the fax number (home / work).
        Parameters:
        newFaxType - the new fax number type
      • setName

        public void setName(java.lang.String newName)
        This method sets the address name.
        Parameters:
        newName - the address name
      • setPhoneNo

        public void setPhoneNo(java.lang.String newPhoneNo)
        This method sets the phone number of the address.
        Parameters:
        newPhoneNo - the new phone number
      • setPhoneType

        public void setPhoneType(java.lang.String newPhoneNo)
        This method 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)
        This method sets the postal code for the address.
        Parameters:
        newPostalCode - the new postal code
      • setState

        public void setState(java.lang.String newState)
        This method sets the state or province of the address.
        Parameters:
        newState - the new state or province of the address
      • toString

        public java.lang.String toString()
        This method gets the string representation of the address object.
        Overrides:
        toString in class java.lang.Object
        Returns:
        a string representation of the address