public static final class CountryStateListDataBean.Country
extends java.lang.Object
Constructor and Description |
---|
Country()
The default constructor.
|
Country(java.lang.String inCode,
java.lang.String inName,
java.lang.String inLangId,
java.util.Locale inLocale)
This constructor takes a country or region code, country or region name, language, and locale.
|
Country(java.lang.String inCode,
java.lang.String inName,
java.lang.String inCallingCode,
java.lang.String inLangId,
java.util.Locale inLocale)
This constructor takes a country or region code, country or region name, mobile country code, language, and locale.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCallingCode()
Gets the mobile country code of the country or region.
|
java.lang.String |
getCode()
Gets the abbreviation code of the country or region.
|
java.lang.String |
getDisplayName()
Gets the display name of the country or region in the required language.
|
java.lang.String |
getLangId()
Gets the language ID of the country or region on which the information is based.
|
java.util.Locale |
getLocale()
Gets the locale of the country on which the information is based.
|
CountryStateListDataBean.StateProvince[] |
getStates()
Gets all the states or provinces of the country or region.
|
void |
populateStates()
Retrieve all the states or provinces object for this country or region.
|
void |
setCallingCode(java.lang.String inCallingCode)
Sets the mobile country code of the country or region.
|
void |
setCode(java.lang.String inCode)
Sets the abbreviation code of the country or region.
|
void |
setDisplayName(java.lang.String inName)
Sets the display name of the country or region.
|
void |
setLangId(java.lang.String inLangId)
Sets the language ID to be used for retrieving the country or region information.
|
void |
setLocale(java.util.Locale inLocale)
Sets the locale to be used for retrieving the country or region information.
|
void |
setStates(CountryStateListDataBean.StateProvince[] inStates)
Sets the states or provinces of the country or region.
|
public Country()
public Country(java.lang.String inCode, java.lang.String inName, java.lang.String inLangId, java.util.Locale inLocale)
inCode
- The country or region codeinName
- The country or region nameinLangId
- The languageinLocale
- The localepublic Country(java.lang.String inCode, java.lang.String inName, java.lang.String inCallingCode, java.lang.String inLangId, java.util.Locale inLocale)
inCode
- The country or region codeinName
- The country or region nameinCallingCode
- The mobile country codeinLangId
- The languageinLocale
- The localepublic java.lang.String getCode()
public java.lang.String getDisplayName()
public java.lang.String getCallingCode()
public java.lang.String getLangId()
public java.util.Locale getLocale()
public CountryStateListDataBean.StateProvince[] getStates()
public void populateStates()
public void setCode(java.lang.String inCode)
inCode
- The abbreviation code of the country or region.public void setDisplayName(java.lang.String inName)
inName
- The display name of the country or region.public void setCallingCode(java.lang.String inCallingCode)
inCallingCode
- The mobile country code of the country or region.public void setLangId(java.lang.String inLangId)
inLangId
- The language ID to be used for retrieving the country or region informationpublic void setLocale(java.util.Locale inLocale)
inLocale
- The locale to be used for retrieving the country or region informationpublic void setStates(CountryStateListDataBean.StateProvince[] inStates)
inStates
- The states or provinces of the country or region.