|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.elasticpath.domain.impl.AbstractEpDomainImpl
com.elasticpath.domain.impl.AbstractPersistenceImpl
com.elasticpath.domain.impl.AbstractEntityImpl
com.elasticpath.domain.shipping.impl.ShippingRegionImpl
public class ShippingRegionImpl
A ShippingRegion represents a region that will be associated with one or more shipping services. It could be composed of countries and country/subCountry combinations. When persisted, the region definition will be saved in a string of format: [countryCode(\(subCountryCode (,subCountryCode)*\))](,[countryCode(\(subCountryCode (,subCountryCode)*\))]?)+ For example, [CA(AB,BC)],[US]
| Field Summary | |
|---|---|
static long |
serialVersionUID
Serial version id. |
| Constructor Summary | |
|---|---|
ShippingRegionImpl()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getName()
Get the shipping region name. |
java.util.Map |
getRegionMap()
Get the Map of regions assoicated with this shippingregion. |
java.lang.String |
getRegionStr()
Get the string representation of the region definition (for persistence). |
boolean |
isInShippionRegion(Address shippingAddress)
Check if the given shippingAdress is in the range of this ShippingRegion. |
void |
setName(java.lang.String name)
Set the shipping region name. |
void |
setRegionMap(java.util.Map regionMap)
Set the Map of regions assoicated with this shippingregion. |
void |
setRegionStr(java.lang.String regionStr)
Set the string representation of the region definition (for persistence). |
| Methods inherited from class com.elasticpath.domain.impl.AbstractEntityImpl |
|---|
convertAttributeGroupAttributes, getGuid, setDefaultValues, setGuid |
| Methods inherited from class com.elasticpath.domain.impl.AbstractPersistenceImpl |
|---|
executeBeforePersistAction, getUidPk, isPersistent, setUidPk |
| Methods inherited from class com.elasticpath.domain.impl.AbstractEpDomainImpl |
|---|
getElasticPath, setElasticPath |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.elasticpath.domain.Entity |
|---|
getGuid, setGuid |
| Methods inherited from interface com.elasticpath.domain.Persistence |
|---|
executeBeforePersistAction, getUidPk, isPersistent, setDefaultValues, setUidPk |
| Methods inherited from interface com.elasticpath.domain.EpDomain |
|---|
getElasticPath, setElasticPath |
| Field Detail |
|---|
public static final long serialVersionUID
| Constructor Detail |
|---|
public ShippingRegionImpl()
| Method Detail |
|---|
public java.lang.String getName()
getName in interface ShippingRegionpublic java.util.Map getRegionMap()
Region.
getRegionMap in interface ShippingRegionpublic java.lang.String getRegionStr()
public boolean isInShippionRegion(Address shippingAddress)
ShippingRegion.
isInShippionRegion in interface ShippingRegionshippingAddress - the shippingAddress to be evaluated. Assume shippingAddress always carries a country code, but subCountry could be
null.
ShippingRegion.public void setName(java.lang.String name)
setName in interface ShippingRegionname - the parameter namepublic void setRegionMap(java.util.Map regionMap)
setRegionMap in interface ShippingRegionregionMap - the map of regions to be assoicated with this shippingregion.public void setRegionStr(java.lang.String regionStr)
regionStr - the string representation of the region definition
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||