Class FulfillmentDestinationDetail
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
protected boolean
checkValue
(String destDetailValue, String addressValue) Returns true if the dest detail value is not set.boolean
Address number and street.getCity()
CityCountry codegetId()
The id of this instance.Latitude of the center of the circle of the destination area.Longitude of the center of the circle of the destination area.getName()
A name for this instance.Postal CodeThe radius distance from the given address or coordinates.The unit of measurement of the radius.Region, state, or provincegetType()
The type of destination detail, either zone or radius.int
hashCode()
boolean
Indicate if coordinates or an address should be used for the middle of the circle.boolean
matches
(com.broadleafcommerce.fulfillment.common.domain.Address address) Return true if this detail matches the passed in Address.void
setAddressLine1
(String addressLine1) Address number and street.void
Cityvoid
setCountryCode
(String countryCode) Country codevoid
The id of this instance.void
setLatitude
(Double latitude) Latitude of the center of the circle of the destination area.void
setLongitude
(Double longitude) Longitude of the center of the circle of the destination area.void
A name for this instance.void
setPostalCode
(String postalCode) Postal Codevoid
The radius distance from the given address or coordinates.void
setRadiusUnit
(String radiusUnit) The unit of measurement of the radius.void
setRegionCode
(String regionCode) Region, state, or provincevoid
The type of destination detail, either zone or radius.void
setUseCoordinates
(boolean useCoordinates) Indicate if coordinates or an address should be used for the middle of the circle.toString()
-
Constructor Details
-
FulfillmentDestinationDetail
public FulfillmentDestinationDetail()
-
-
Method Details
-
matches
public boolean matches(com.broadleafcommerce.fulfillment.common.domain.Address address) Return true if this detail matches the passed in Address. Does not check radius, only checks fields used withDestinationDetailType.ZONE
.- Parameters:
address
- TheAddress
to check.- Returns:
- True if the given address matches this destination detail. False otherwise.
-
checkValue
Returns true if the dest detail value is not set. Otherwise, returns true if the two values are equal ignoring case.- Parameters:
destDetailValue
- The value from this destination detail to compareaddressValue
- The value from the address to compare- Returns:
- True if the given
destDetailValue
is empty or if the two given value match ignoring case. False otherwise.
-
getId
The id of this instance. -
getName
A name for this instance. -
getCountryCode
Country code -
getRegionCode
Region, state, or province -
getCity
City -
getPostalCode
Postal Code -
getType
The type of destination detail, either zone or radius.- See Also:
-
getRadius
The radius distance from the given address or coordinates.
Only used with
DestinationDetailType.RADIUS
. -
getRadiusUnit
The unit of measurement of the radius. Miles or Kilometers.
Only used with
DestinationDetailType.RADIUS
. -
getAddressLine1
Address number and street.
Only used with
DestinationDetailType.RADIUS
. -
isUseCoordinates
public boolean isUseCoordinates()Indicate if coordinates or an address should be used for the middle of the circle.
Only used with
DestinationDetailType.RADIUS
.Only used to drive the admin display.
-
getLatitude
Latitude of the center of the circle of the destination area.
Only used with
DestinationDetailType.RADIUS
. -
getLongitude
Longitude of the center of the circle of the destination area.
Only used with
DestinationDetailType.RADIUS
. -
setId
The id of this instance. -
setName
A name for this instance. -
setCountryCode
Country code -
setRegionCode
Region, state, or province -
setCity
City -
setPostalCode
Postal Code -
setType
The type of destination detail, either zone or radius.- See Also:
-
setRadius
The radius distance from the given address or coordinates.
Only used with
DestinationDetailType.RADIUS
. -
setRadiusUnit
The unit of measurement of the radius. Miles or Kilometers.
Only used with
DestinationDetailType.RADIUS
. -
setAddressLine1
Address number and street.
Only used with
DestinationDetailType.RADIUS
. -
setUseCoordinates
public void setUseCoordinates(boolean useCoordinates) Indicate if coordinates or an address should be used for the middle of the circle.
Only used with
DestinationDetailType.RADIUS
.Only used to drive the admin display.
-
setLatitude
Latitude of the center of the circle of the destination area.
Only used with
DestinationDetailType.RADIUS
. -
setLongitude
Longitude of the center of the circle of the destination area.
Only used with
DestinationDetailType.RADIUS
. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-