Package io.guise.framework.converter
Enum LocaleStringLiteralStyle
- java.lang.Object
-
- java.lang.Enum<LocaleStringLiteralStyle>
-
- io.guise.framework.converter.LocaleStringLiteralStyle
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<LocaleStringLiteralStyle>
public enum LocaleStringLiteralStyle extends java.lang.Enum<LocaleStringLiteralStyle>
The style of a date in its string literal form.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COUNTRY
A name for the locale's country that is appropriate for display to the user.COUNTRY_CODE_2
The uppercase ISO 3166 two-letter country/region code for the locale.COUNTRY_CODE_3
The uppercase ISO 3166 three-letter country/region code for the locale.LANGUAGE
A name for the locale's language that is appropriate for display to the user.LANGUAGE_CODE_2
The lowercase ISO 639 two-letter language code for the locale.LANGUAGE_CODE_3
The lowercase ISO 639-2/T three-letter language codeLANGUAGE_TAG
The RFC 1766 language tag, such as en-US.NAME
A name for the locale that is appropriate for display to the user, such as language (country, variant).VARIANT
A name for the locale's variant code that is appropriate for display to the user.VARIANT_CODE
The variant code for the locale.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LocaleStringLiteralStyle
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static LocaleStringLiteralStyle[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
COUNTRY
public static final LocaleStringLiteralStyle COUNTRY
A name for the locale's country that is appropriate for display to the user.
-
COUNTRY_CODE_2
public static final LocaleStringLiteralStyle COUNTRY_CODE_2
The uppercase ISO 3166 two-letter country/region code for the locale.
-
COUNTRY_CODE_3
public static final LocaleStringLiteralStyle COUNTRY_CODE_3
The uppercase ISO 3166 three-letter country/region code for the locale.
-
LANGUAGE
public static final LocaleStringLiteralStyle LANGUAGE
A name for the locale's language that is appropriate for display to the user.
-
LANGUAGE_CODE_2
public static final LocaleStringLiteralStyle LANGUAGE_CODE_2
The lowercase ISO 639 two-letter language code for the locale.
-
LANGUAGE_CODE_3
public static final LocaleStringLiteralStyle LANGUAGE_CODE_3
The lowercase ISO 639-2/T three-letter language code
-
LANGUAGE_TAG
public static final LocaleStringLiteralStyle LANGUAGE_TAG
The RFC 1766 language tag, such as en-US.
-
NAME
public static final LocaleStringLiteralStyle NAME
A name for the locale that is appropriate for display to the user, such as language (country, variant).
-
VARIANT
public static final LocaleStringLiteralStyle VARIANT
A name for the locale's variant code that is appropriate for display to the user.
-
VARIANT_CODE
public static final LocaleStringLiteralStyle VARIANT_CODE
The variant code for the locale.
-
-
Method Detail
-
values
public static LocaleStringLiteralStyle[] 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 (LocaleStringLiteralStyle c : LocaleStringLiteralStyle.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LocaleStringLiteralStyle 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
-
-