com.ibm.commerce.user.beans

Class CountryStateListDataBean.Country

  • java.lang.Object
    • com.ibm.commerce.user.beans.CountryStateListDataBean.Country
  • Enclosing class:
    CountryStateListDataBean


    public static final class CountryStateListDataBean.Country
    extends java.lang.Object
    This class contains properties that describe a country or region.
    • Constructor Summary

      Constructors 
      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.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Country

        public Country()
        The default constructor.
      • Country

        public 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.
        Parameters:
        inCode - The country or region code
        inName - The country or region name
        inLangId - The language
        inLocale - The locale
      • Country

        public 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.
        Parameters:
        inCode - The country or region code
        inName - The country or region name
        inCallingCode - The mobile country code
        inLangId - The language
        inLocale - The locale
    • Method Detail

      • getCode

        public java.lang.String getCode()
        Gets the abbreviation code of the country or region.
        Returns:
        The abbreviation code of the country or region.
      • getDisplayName

        public java.lang.String getDisplayName()
        Gets the display name of the country or region in the required language.
        Returns:
        the display name of the country or region in the required language.
      • getCallingCode

        public java.lang.String getCallingCode()
        Gets the mobile country code of the country or region.
        Returns:
        The mobile country code of the country or region.
      • getLangId

        public java.lang.String getLangId()
        Gets the language ID of the country or region on which the information is based.
        Returns:
        The language ID of the country or region on which the information.
      • getLocale

        public java.util.Locale getLocale()
        Gets the locale of the country on which the information is based.
        Returns:
        The locale of the country on which the information is based.
      • getStates

        public CountryStateListDataBean.StateProvince[] getStates()
        Gets all the states or provinces of the country or region.
        Returns:
        The sorted array of the states or provinces of the country or regions.
      • populateStates

        public void populateStates()
        Retrieve all the states or provinces object for this country or region.
      • setCode

        public void setCode(java.lang.String inCode)
        Sets the abbreviation code of the country or region.
        Parameters:
        inCode - The abbreviation code of the country or region.
      • setDisplayName

        public void setDisplayName(java.lang.String inName)
        Sets the display name of the country or region.
        Parameters:
        inName - The display name of the country or region.
      • setCallingCode

        public void setCallingCode(java.lang.String inCallingCode)
        Sets the mobile country code of the country or region.
        Parameters:
        inCallingCode - The mobile country code of the country or region.
      • setLangId

        public void setLangId(java.lang.String inLangId)
        Sets the language ID to be used for retrieving the country or region information.
        Parameters:
        inLangId - The language ID to be used for retrieving the country or region information
      • setLocale

        public void setLocale(java.util.Locale inLocale)
        Sets the locale to be used for retrieving the country or region information.
        Parameters:
        inLocale - The locale to be used for retrieving the country or region information
      • setStates

        public void setStates(CountryStateListDataBean.StateProvince[] inStates)
        Sets the states or provinces of the country or region.
        Parameters:
        inStates - The states or provinces of the country or region.