Class Address
- java.lang.Object
-
- com.broadleafcommerce.inventory.domain.Address
-
- All Implemented Interfaces:
Serializable
public class Address extends Object implements Serializable
Business domain representing an address. Specifically, in this context, address is a physical address forInventoryLocationrecords. The address has latitude and longitude coordinates as well as a physical address, which is often used for sales tax determination, shipping cost determination, and customer inventory pickup messaging.- Author:
- Kelly Tisdell (ktisdell)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Address()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)StringgetAddressLine1()Address 1StringgetAddressLine2()Address 2StringgetAddressLine3()Address 3StringgetCity()CityStringgetCountry()Typically 2 or 3 character country code (e.g.DoublegetLatitude()Latitude portion of GPS coordinates.DoublegetLongitude()Longitude portion of GPS coordinates.StringgetPostalCode()Postal code (or Zip code in the US, usually excluding a 4 digit Zip code extension).StringgetStateProvinceRegion()State / Province / Region (e.g.inthashCode()voidsetAddressLine1(String addressLine1)Address 1voidsetAddressLine2(String addressLine2)Address 2voidsetAddressLine3(String addressLine3)Address 3voidsetCity(String city)CityvoidsetCountry(String country)Typically 2 or 3 character country code (e.g.voidsetLatitude(Double latitude)Latitude portion of GPS coordinates.voidsetLongitude(Double longitude)Longitude portion of GPS coordinates.voidsetPostalCode(String postalCode)Postal code (or Zip code in the US, usually excluding a 4 digit Zip code extension).voidsetStateProvinceRegion(String stateProvinceRegion)State / Province / Region (e.g.StringtoString()
-
-
-
Method Detail
-
getLatitude
public Double getLatitude()
Latitude portion of GPS coordinates.- Returns:
- latitude
-
getLongitude
public Double getLongitude()
Longitude portion of GPS coordinates.- Returns:
- longitude
-
getAddressLine1
public String getAddressLine1()
Address 1- Returns:
- address1
-
getAddressLine2
public String getAddressLine2()
Address 2- Returns:
- address2
-
getAddressLine3
public String getAddressLine3()
Address 3- Returns:
- address3
-
getCity
public String getCity()
City- Returns:
- city
-
getStateProvinceRegion
public String getStateProvinceRegion()
State / Province / Region (e.g. in the US: TX, CA, NY; in Canada: AB, BC, ON)- Returns:
- stateProvinceRegion
-
getCountry
public String getCountry()
Typically 2 or 3 character country code (e.g. US, CA, GB; or USA, CAN, GBR)- Returns:
- country
-
getPostalCode
public String getPostalCode()
Postal code (or Zip code in the US, usually excluding a 4 digit Zip code extension).- Returns:
- postalCode
-
setLatitude
public void setLatitude(Double latitude)
Latitude portion of GPS coordinates.- Parameters:
latitude-
-
setLongitude
public void setLongitude(Double longitude)
Longitude portion of GPS coordinates.- Parameters:
longitude-
-
setAddressLine1
public void setAddressLine1(String addressLine1)
Address 1- Parameters:
address1-
-
setAddressLine2
public void setAddressLine2(String addressLine2)
Address 2- Parameters:
address2-
-
setAddressLine3
public void setAddressLine3(String addressLine3)
Address 3- Parameters:
address3-
-
setCity
public void setCity(String city)
City- Parameters:
city-
-
setStateProvinceRegion
public void setStateProvinceRegion(String stateProvinceRegion)
State / Province / Region (e.g. in the US: TX, CA, NY; in Canada: AB, BC, ON)- Parameters:
stateProvinceRegion-
-
setCountry
public void setCountry(String country)
Typically 2 or 3 character country code (e.g. US, CA, GB; or USA, CAN, GBR)- Parameters:
country-
-
setPostalCode
public void setPostalCode(String postalCode)
Postal code (or Zip code in the US, usually excluding a 4 digit Zip code extension).- Parameters:
postalCode-
-
canEqual
protected boolean canEqual(Object other)
-
-