|
|||||||||
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.AbstractTransientImpl
com.elasticpath.domain.shipping.impl.RegionImpl
public class RegionImpl
A Region represents a geography definition of an area. For now, it is composed of country and a subcountry, i.e. CA(country) and BC(subcountry).
Field Summary | |
---|---|
static long |
serialVersionUID
Serial version id. |
Constructor Summary | |
---|---|
RegionImpl()
Default constructor. |
|
RegionImpl(java.lang.String countryCode)
Constructor. |
|
RegionImpl(java.lang.String countryCode,
java.util.List subCountryCodeList)
Constructor. |
Method Summary | |
---|---|
Region |
fromString(java.lang.String regionStr)
Return the Region from parsing the given string representation. |
java.lang.String |
getCountryCode()
Get the region's country code (ISO country code). |
java.util.List |
getSubCountryCodeList()
Get the region's subcountry code list. |
void |
mergeSubCountryCodeList(java.util.List additionalSubCountryCodeList)
Merge the given additionalSubCountryCodeList into the existing subCountryCodeList of this Region instance. |
void |
setCountryCode(java.lang.String countryCode)
Set the region's country code (ISO country code). |
void |
setSubCountryCodeList(java.util.List subCountryCodeList)
Set the region's subcountry code list. |
java.lang.String |
toString()
Return the String representation of this Region . |
Methods inherited from class com.elasticpath.domain.impl.AbstractEpDomainImpl |
---|
getElasticPath, setElasticPath |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.elasticpath.domain.EpDomain |
---|
getElasticPath, setElasticPath |
Field Detail |
---|
public static final long serialVersionUID
Constructor Detail |
---|
public RegionImpl()
public RegionImpl(java.lang.String countryCode)
countryCode
- - the ISO country code for this region.public RegionImpl(java.lang.String countryCode, java.util.List subCountryCodeList)
countryCode
- - the ISO country code for this region.subCountryCodeList
- - the list of ISO subCountry code for this region.Method Detail |
---|
public Region fromString(java.lang.String regionStr)
Region
from parsing the given string representation.
fromString
in interface Region
regionStr
- - the String representation of the Region
Region
public java.lang.String getCountryCode()
getCountryCode
in interface Region
public java.util.List getSubCountryCodeList()
getSubCountryCodeList
in interface Region
public void mergeSubCountryCodeList(java.util.List additionalSubCountryCodeList)
Region
instance.
mergeSubCountryCodeList
in interface Region
additionalSubCountryCodeList
- - the additional subCountryCodeList to be merged in.public void setCountryCode(java.lang.String countryCode)
setCountryCode
in interface Region
countryCode
- the region's country code.public void setSubCountryCodeList(java.util.List subCountryCodeList)
setSubCountryCodeList
in interface Region
subCountryCodeList
- the region's subcountry code.public java.lang.String toString()
Region
.
toString
in interface Region
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |