Package se.conciliate.extensions.store
Enum Class MTLocale
- All Implemented Interfaces:
Serializable
,Comparable<MTLocale>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionReturns a string representation of the locale in the format languageISOCode_countryISOCodeReturns the country code.Returns the icon for the flag used for this locale.getIconURL
(int size) Returns the icon for the flag used for this locale.Returns the ISO code of the language.static MTLocale
Returns the enum constant of this class with the specified name.static MTLocale[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FLAG_AFGHANISTAN
-
FLAG_ALBANIA
-
FLAG_ALGERIA
-
FLAG_AMERICAN_SAMOA
-
FLAG_ANDORRA
-
FLAG_ANGOLA
-
FLAG_ANGUILLA
-
FLAG_ANTIGUA_AND_BARBUDA
-
FLAG_ARGENTINA
-
FLAG_ARMENIA
-
FLAG_ARUBA
-
FLAG_AUSTRALIA
-
FLAG_AUSTRIA
-
FLAG_AZERBAIJAN
-
FLAG_BAHAMAS
-
FLAG_BAHRAIN
-
FLAG_BANGLADESH
-
FLAG_BARBADOS
-
FLAG_BELARUS
-
FLAG_BELGIUM
-
FLAG_BELIZE
-
FLAG_BENIN
-
FLAG_BERMUDA
-
FLAG_BHUTAN
-
FLAG_BOLIVIA
-
FLAG_BOSNIA_AND_HERZEGOVINA
-
FLAG_BOTSWANA
-
FLAG_BRAZIL
-
FLAG_BRITISH_INDIAN_OCEAN_TERRITORY
-
FLAG_BRITISH_VIRGIN_ISLANDS
-
FLAG_BRUNEI
-
FLAG_BULGARIA
-
FLAG_BURKINA_FASO
-
FLAG_BURMA
-
FLAG_BURUNDI
-
FLAG_CAMBODIA
-
FLAG_CAMEROON
-
FLAG_CANADA
-
FLAG_CAPE_VERDE
-
FLAG_CAYMAN_ISLANDS
-
FLAG_CENTRAL_AFRICAN_REPUBLIC
-
FLAG_CHAD
-
FLAG_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AND_THE_GRENADINES
-
FLAG_SAMOA
-
FLAG_SAN_MARINO
-
FLAG_SAO_TOME_AND_PRINCIPE
-
FLAG_SAUDI_ARABIA
-
FLAG_SCOTLAND
-
FLAG_SENEGAL
-
FLAG_SERBIA_MONTENEGRO
-
FLAG_SEYCHELLES
-
FLAG_SIERRA_LEONE
-
FLAG_SINGAPORE
-
FLAG_SLOVAKIA
-
FLAG_SLOVENIA
-
FLAG_SOLOMON_ISLANDS
-
FLAG_SOMALIA
-
FLAG_SOUTH_AFRICA
-
FLAG_SOUTH_GEORGIA
-
FLAG_SOUTH_KOREA
-
FLAG_SPAIN
-
FLAG_SRI_LANKA
-
FLAG_SUDAN
-
FLAG_SURINAME
-
FLAG_SWAZILAND
-
FLAG_SWEDEN
-
FLAG_SWITZERLAND
-
FLAG_SYRIA
-
FLAG_TAIWAN
-
FLAG_TAJIKISTAN
-
FLAG_TANZANIA
-
FLAG_THAILAND
-
FLAG_TIBET
-
FLAG_TOGO
-
FLAG_TONGA
-
FLAG_TRINIDAD_AND_TOBAGO
-
FLAG_TUNISIA
-
FLAG_TURKEY
-
FLAG_TURKMENISTAN
-
FLAG_TURKS_AND_CAICOS_ISLANDS
-
FLAG_TUVALU
-
FLAG_UGANDA
-
FLAG_UKRAINE
-
FLAG_UNITED_ARAB_EMIRATES
-
FLAG_URUQUAY
-
FLAG_USA
-
FLAG_UZBEKISTAN
-
FLAG_VANUATU
-
FLAG_VATICAN_CITY
-
FLAG_VENEZUELA
-
FLAG_VIETNAM
-
FLAG_VIRGIN_ISLANDS
-
FLAG_WALES
-
FLAG_WALLIS_AND_FUTUNA
-
FLAG_YEMEN
-
FLAG_ZAMBIA
-
FLAG_ZIMBABWE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getIconURL
Returns the icon for the flag used for this locale. -
getIconURL
Returns the icon for the flag used for this locale.- Parameters:
size
- The icon size.
-
getLanguageISOCode
Returns the ISO code of the language. The ISO code is inferred by the flag used for the language. Since a country can have multiple languages this is in no way a "correct" mapping, it is only intended to be used for example to provide reasonable guesses when mapping languages in an export file or publish profile to languages in a repository.- Returns:
- The ISO code of the official language in the country represented by the current flag icon used (or one of the official languages in cases where multiple languages are available). If no language code can be inferred by the current flag icon used then "en" will be returned.
- Since:
- 3.0
-
getCountryISOCode
Returns the country code.- Returns:
- the ISO 3166-1 alpha-2 code of the language
-
getCombinedISOCode
Returns a string representation of the locale in the format languageISOCode_countryISOCode
-