Package org.openstreetmap.josm.tools
Enum LanguageInfo.LocaleType
- java.lang.Object
-
- java.lang.Enum<LanguageInfo.LocaleType>
-
- org.openstreetmap.josm.tools.LanguageInfo.LocaleType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<LanguageInfo.LocaleType>
- Enclosing class:
- LanguageInfo
public static enum LanguageInfo.LocaleType extends java.lang.Enum<LanguageInfo.LocaleType>
Type of the locale to use- Since:
- 5915
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BASELANGUAGE
The base language (i.e.DEFAULT
The current default languageDEFAULTNOTENGLISH
The current default language, but not englishENGLISH
The standard english textsOSM_WIKI
The locale prefix on the OSM wiki
-
Constructor Summary
Constructors Modifier Constructor Description private
LocaleType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LanguageInfo.LocaleType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static LanguageInfo.LocaleType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DEFAULT
public static final LanguageInfo.LocaleType DEFAULT
The current default language
-
DEFAULTNOTENGLISH
public static final LanguageInfo.LocaleType DEFAULTNOTENGLISH
The current default language, but not english
-
BASELANGUAGE
public static final LanguageInfo.LocaleType BASELANGUAGE
The base language (i.e. pt for pt_BR)
-
ENGLISH
public static final LanguageInfo.LocaleType ENGLISH
The standard english texts
-
OSM_WIKI
public static final LanguageInfo.LocaleType OSM_WIKI
The locale prefix on the OSM wiki
-
-
Constructor Detail
-
LocaleType
private LocaleType()
-
-
Method Detail
-
values
public static LanguageInfo.LocaleType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (LanguageInfo.LocaleType c : LanguageInfo.LocaleType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LanguageInfo.LocaleType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-