public class CountryMapper extends AbstractISOCodeMapper
http://www.iso.ch/iso/en/prods-services/iso3166ma/02iso-3166-code-lists/iso_3166-1_decoding_table.html
Constructor and Description |
---|
CountryMapper()
Constructs an empty CountryMapper object.
|
CountryMapper(int a_maxCountryLength)
Constructs an empty CountryMapper object.
|
CountryMapper(java.lang.String a_ISO2CountryCode)
Constructs a new CountryMapper that uses the default Locale to
translate its country code.
|
CountryMapper(java.lang.String a_ISO2CountryCode,
int a_maxCountryLength)
Constructs a new CountryMapper that uses the default Locale to
translate its country code.
|
CountryMapper(java.lang.String a_ISO2CountryCode,
int a_maxCountryLength,
java.util.Locale a_locale)
Constructs a new CountryMapper that uses a specific Locale to
translate its country code.
|
CountryMapper(java.lang.String a_ISO2CountryCode,
java.util.Locale a_locale)
Constructs a new CountryMapper that uses a specific Locale to
translate its country code.
|
Modifier and Type | Method and Description |
---|---|
static java.util.Vector |
getLocalisedCountries()
Returns a Vector with CountryMappers for all officially assigned
country codes.
|
static java.util.Vector |
getLocalisedCountries(int a_maxCountryLength)
Returns a Vector with CountryMappers for all officially assigned
country codes.
|
static java.util.Vector |
getLocalisedCountries(int a_maxCountryLength,
java.util.Locale a_loc)
Returns a Vector with CountryMappers for all officially assigned
country codes.
|
static java.util.Vector |
getLocalisedCountries(java.util.Locale a_loc)
Returns a Vector with CountryMappers for all officially assigned
country codes.
|
equals, getISOCode, hashCode, toString
public CountryMapper()
public CountryMapper(int a_maxCountryLength)
a_maxCountryLength
- the maximum length of the toString() outputpublic CountryMapper(java.lang.String a_ISO2CountryCode, int a_maxCountryLength) throws java.lang.IllegalArgumentException
a_ISO2CountryCode
- a two-letter country codea_maxCountryLength
- the maximum length of the toString() outputjava.lang.IllegalArgumentException
getLocalisedCountries(int)
public CountryMapper(java.lang.String a_ISO2CountryCode) throws java.lang.IllegalArgumentException
a_ISO2CountryCode
- a two-letter country codejava.lang.IllegalArgumentException
getLocalisedCountries(int)
public CountryMapper(java.lang.String a_ISO2CountryCode, java.util.Locale a_locale) throws java.lang.IllegalArgumentException
a_ISO2CountryCode
- a two-letter country codea_locale
- a Localejava.lang.IllegalArgumentException
getLocalisedCountries(int, Locale)
public CountryMapper(java.lang.String a_ISO2CountryCode, int a_maxCountryLength, java.util.Locale a_locale) throws java.lang.IllegalArgumentException
a_ISO2CountryCode
- a two-letter country codea_locale
- a Localea_maxCountryLength
- the maximum length of the toString() outputjava.lang.IllegalArgumentException
getLocalisedCountries(int, Locale)
public static java.util.Vector getLocalisedCountries()
public static java.util.Vector getLocalisedCountries(java.util.Locale a_loc)
a_loc
- the locale that is used in all contructed CountryMapperspublic static java.util.Vector getLocalisedCountries(int a_maxCountryLength)
a_maxCountryLength
- the maximum length of the toString() outputpublic static java.util.Vector getLocalisedCountries(int a_maxCountryLength, java.util.Locale a_loc)
a_loc
- the locale that is used in all constructed CountryMappersa_maxCountryLength
- the maximum length of the toString() outputCopyright © 2023. All rights reserved.