com.avalara.avatax.services.tax
Class BaseAddress

java.lang.Object
  extended by com.avalara.avatax.services.tax.BaseAddress
All Implemented Interfaces:
java.io.Serializable

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

Object representation of an Address with fields for multiple address lines, city, region, postal code and country.

See Also:
Serialized Form

Constructor Summary
BaseAddress()
          Default Constructor for BaseAddress object.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Determines if a BaseAddress object is equal to another object.
 boolean equivalent(java.lang.Object obj)
           
 java.lang.String getAddressCode()
          Recalculates and then returns the addressCode value for this BaseAddress.
 java.lang.String getCity()
          Gets the city value for this BaseAddress.
 java.lang.String getCountry()
          Gets the country value for this BaseAddress.
static org.apache.axis.encoding.Deserializer getDeserializer(java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType)
          Get Custom Deserializer
 java.lang.String getLine1()
          Gets the line1 value for this BaseAddress.
 java.lang.String getLine2()
          Gets the line2 value for this BaseAddress.
 java.lang.String getLine3()
          Gets the line3 value for this BaseAddress.
 java.lang.String getPostalCode()
          Gets the postalCode value for this BaseAddress.
 java.lang.String getRegion()
          Gets the region value for this BaseAddress.
static org.apache.axis.encoding.Serializer getSerializer(java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType)
          Get Custom Serializer.
 int getTaxRegionId()
          Gets the taxRegionId value for this BaseAddress.
static org.apache.axis.description.TypeDesc getTypeDesc()
          Return type metadata object.
 int hashCode()
          Determines a "unique" hash code String value to be used for this BaseAddress object.
 void setAddressCode(java.lang.String addressCode)
          Sets the addressCode value for this BaseAddress.
 void setCity(java.lang.String city)
          Sets the city value for this BaseAddress.
 void setCountry(java.lang.String country)
          Sets the country value for this BaseAddress.
 void setLine1(java.lang.String line1)
          Sets the line1 value for this BaseAddress.
 void setLine2(java.lang.String line2)
          Sets the line2 value for this BaseAddress.
 void setLine3(java.lang.String line3)
          Sets the line3 value for this BaseAddress.
 void setPostalCode(java.lang.String postalCode)
          Sets the postalCode value for this BaseAddress.
 void setRegion(java.lang.String region)
          Sets the region value for this BaseAddress.
 void setTaxRegionId(int taxRegionId)
          Sets the taxRegionId value for this BaseAddress.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseAddress

public BaseAddress()
Default Constructor for BaseAddress object.

Method Detail

getAddressCode

public java.lang.String getAddressCode()
Recalculates and then returns the addressCode value for this BaseAddress. This acts as a unique identifier for this addressObject's content.

Returns:
addressCode

setAddressCode

public void setAddressCode(java.lang.String addressCode)
Sets the addressCode value for this BaseAddress.

Parameters:
addressCode -

getLine1

public java.lang.String getLine1()
Gets the line1 value for this BaseAddress.

Returns:
line1

setLine1

public void setLine1(java.lang.String line1)
Sets the line1 value for this BaseAddress.

Parameters:
line1 -

getLine2

public java.lang.String getLine2()
Gets the line2 value for this BaseAddress.

Returns:
line2

setLine2

public void setLine2(java.lang.String line2)
Sets the line2 value for this BaseAddress.

Parameters:
line2 -

getLine3

public java.lang.String getLine3()
Gets the line3 value for this BaseAddress.

Returns:
line3

setLine3

public void setLine3(java.lang.String line3)
Sets the line3 value for this BaseAddress.

Parameters:
line3 -

getCity

public java.lang.String getCity()
Gets the city value for this BaseAddress.

Returns:
city

setCity

public void setCity(java.lang.String city)
Sets the city value for this BaseAddress.

Parameters:
city -

getRegion

public java.lang.String getRegion()
Gets the region value for this BaseAddress.

Returns:
region

setRegion

public void setRegion(java.lang.String region)
Sets the region value for this BaseAddress.

Parameters:
region -

getPostalCode

public java.lang.String getPostalCode()
Gets the postalCode value for this BaseAddress.

Returns:
postalCode

setPostalCode

public void setPostalCode(java.lang.String postalCode)
Sets the postalCode value for this BaseAddress.

Parameters:
postalCode -

getCountry

public java.lang.String getCountry()
Gets the country value for this BaseAddress.

Returns:
country

setCountry

public void setCountry(java.lang.String country)
Sets the country value for this BaseAddress.

Parameters:
country -

getTaxRegionId

public int getTaxRegionId()
Gets the taxRegionId value for this BaseAddress.

Returns:
taxRegionId

setTaxRegionId

public void setTaxRegionId(int taxRegionId)
Sets the taxRegionId value for this BaseAddress.

TaxRegionId provides the ability to override the tax region assignment for an address.

Parameters:
taxRegionId -

equals

public boolean equals(java.lang.Object obj)
Determines if a BaseAddress object is equal to another object.

Overrides:
equals in class java.lang.Object
Parameters:
obj -
Returns:
boolean value telling whether the object passed in as a parameter is equal in its field values to the BaseAddress value object on which equals was called.

equivalent

public boolean equivalent(java.lang.Object obj)

hashCode

public int hashCode()
Determines a "unique" hash code String value to be used for this BaseAddress object. Used as a pointer of sorts from a Line object to its parent GetTaxRequest object that holds the actual address object.

Overrides:
hashCode in class java.lang.Object
Returns:
the String hashcode for this BaseAddress object.

getTypeDesc

public static org.apache.axis.description.TypeDesc getTypeDesc()
Return type metadata object.

Returns:
TypeDesc for this BaseAddress object

getSerializer

public static org.apache.axis.encoding.Serializer getSerializer(java.lang.String mechType,
                                                                java.lang.Class _javaType,
                                                                javax.xml.namespace.QName _xmlType)
Get Custom Serializer.

Parameters:
mechType -
_javaType -
_xmlType -
Returns:
a new serializer for this object.

getDeserializer

public static org.apache.axis.encoding.Deserializer getDeserializer(java.lang.String mechType,
                                                                    java.lang.Class _javaType,
                                                                    javax.xml.namespace.QName _xmlType)
Get Custom Deserializer

Parameters:
mechType -
_javaType -
_xmlType -
Returns:
a Deserializer object for this BaseAddress.