Package it.uniroma1.lcl.babelnet.data
Enum Locale
- java.lang.Object
-
- java.lang.Enum<Locale>
-
- it.uniroma1.lcl.babelnet.data.Locale
-
- All Implemented Interfaces:
Tag<Locale>
,Serializable
,Comparable<Locale>
public enum Locale extends Enum<Locale> implements Tag<Locale>
Enumeration describing lexical and orthographic variations
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AFRICA
ALASKA
AMERICA
AUSTRALIA
BRAZIL
CANADA
EAST_AFRICA
ENGLAND
HAWAII
HONG_KONG
INDIA
IRELAND
MIDLAND_US
MIDWESTERN_US
NEW_ZEALAND
NORTHERN_ENGLAND
NORTHERN_IRELAND
PHILIPPINES
PORTUGAL
SCOTLAND
SINGAPORE
SOUTH_AFRICA
SOUTHERN_ENGLAND
UK
US
WALES
WESTERN_US
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Locale
coarseGrained()
Returns a coarse grained LocaleLocale
getValue()
Returns the tag value.static Locale
valueOf(String name)
Returns the enum constant of this type with the specified name.static Locale[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AFRICA
public static final Locale AFRICA
-
ALASKA
public static final Locale ALASKA
-
AMERICA
public static final Locale AMERICA
-
AUSTRALIA
public static final Locale AUSTRALIA
-
CANADA
public static final Locale CANADA
-
EAST_AFRICA
public static final Locale EAST_AFRICA
-
ENGLAND
public static final Locale ENGLAND
-
HAWAII
public static final Locale HAWAII
-
HONG_KONG
public static final Locale HONG_KONG
-
INDIA
public static final Locale INDIA
-
IRELAND
public static final Locale IRELAND
-
MIDLAND_US
public static final Locale MIDLAND_US
-
MIDWESTERN_US
public static final Locale MIDWESTERN_US
-
NEW_ZEALAND
public static final Locale NEW_ZEALAND
-
NORTHERN_ENGLAND
public static final Locale NORTHERN_ENGLAND
-
NORTHERN_IRELAND
public static final Locale NORTHERN_IRELAND
-
PHILIPPINES
public static final Locale PHILIPPINES
-
SCOTLAND
public static final Locale SCOTLAND
-
SINGAPORE
public static final Locale SINGAPORE
-
SOUTH_AFRICA
public static final Locale SOUTH_AFRICA
-
SOUTHERN_ENGLAND
public static final Locale SOUTHERN_ENGLAND
-
UK
public static final Locale UK
-
US
public static final Locale US
-
WALES
public static final Locale WALES
-
WESTERN_US
public static final Locale WESTERN_US
-
BRAZIL
public static final Locale BRAZIL
-
PORTUGAL
public static final Locale PORTUGAL
-
-
Method Detail
-
values
public static Locale[] 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 (Locale c : Locale.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Locale valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
coarseGrained
public Locale coarseGrained()
Returns a coarse grained Locale- Returns:
- a coarse grained Locale
-
-