com.elasticpath.domain.shipping.impl
Class CountryImpl

java.lang.Object
  extended by com.elasticpath.domain.shipping.impl.CountryImpl
All Implemented Interfaces:
Country

public class CountryImpl
extends java.lang.Object
implements Country

Represents a configured country, including its ISO country code, country names (in different language [TBD]), and the subcountries code/label map.


Field Summary
static long serialVersionUID
          Serial version id.
 
Constructor Summary
CountryImpl()
           
 
Method Summary
 java.lang.String getCountryCode()
          Return the ISO country code for this Country.
 java.lang.String getCountryName()
          Return the country name (in English).
 java.util.Map getSubCountries()
          Returns a map of subcountries codes and their labels.
 void setCountryCode(java.lang.String countryCode)
          Set the ISO country code for this Country.
 void setCountryName(java.lang.String countryName)
          Set the country name (in English).
 void setSubCountries(java.util.Map subCountries)
          Returns a map of subcountries codes and their labels.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

public static final long serialVersionUID
Serial version id.

See Also:
Constant Field Values
Constructor Detail

CountryImpl

public CountryImpl()
Method Detail

getCountryCode

public java.lang.String getCountryCode()
Return the ISO country code for this Country.

Specified by:
getCountryCode in interface Country
Returns:
the ISO country code.

getCountryName

public java.lang.String getCountryName()
Return the country name (in English).

Specified by:
getCountryName in interface Country
Returns:
the country name (in English).

getSubCountries

public java.util.Map getSubCountries()
Returns a map of subcountries codes and their labels. Subcountries are any region of a country such as a province, state, or territory. Note that this method assumes the country information does not change at runtime.

Specified by:
getSubCountries in interface Country
Returns:
a map of codes to labels of subcountries for this country.

setCountryCode

public void setCountryCode(java.lang.String countryCode)
Set the ISO country code for this Country.

Specified by:
setCountryCode in interface Country
Parameters:
countryCode - - the ISO country code.

setCountryName

public void setCountryName(java.lang.String countryName)
Set the country name (in English).

Specified by:
setCountryName in interface Country
Parameters:
countryName - - the country name (in English).

setSubCountries

public void setSubCountries(java.util.Map subCountries)
Returns a map of subcountries codes and their labels. Subcountries are any region of a country such as a province, state, or territory. Note that this method assumes the country information does not change at runtime.

Specified by:
setSubCountries in interface Country
Parameters:
subCountries - a map of codes to labels of subcountries for this country.