public class LocaleUtils
extends org.apache.commons.lang3.LocaleUtils
Constructor and Description |
---|
LocaleUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
getCountryISO2(String country)
Return an ISO-2 country code from a country name.
|
static String |
getCountryISO2FromISO3(String iso3Code)
Create an ISO-2 country code from an ISO-3 country code.
|
static String |
getCountryISO3(String country)
Return an ISO-3 country code from a country name.
|
static String |
getCountryISO3FromISO2(String iso2Code)
Create an ISO-3 country code from an ISO-2 country code.
|
static String |
getCountryName(String country,
Locale language)
Return a country name in another language.
|
static String |
translateCountryName(String country,
Locale language)
Translate a country name into another language.
|
public static String getCountryISO2(String country)
country
- country namepublic static String getCountryISO2FromISO3(String iso3Code)
iso3Code
- ISO-3 country codepublic static String getCountryISO3(String country)
country
- country namepublic static String getCountryISO3FromISO2(String iso2Code)
iso2Code
- ISO-2 country codepublic static String getCountryName(String country, Locale language)
country
- country namelanguage
- language to translateCopyright © 2015 OpenEstate. All rights reserved.