Enum LocaleStringLiteralStyle

java.lang.Object
java.lang.Enum<LocaleStringLiteralStyle>
io.guise.framework.converter.LocaleStringLiteralStyle
All Implemented Interfaces:
Serializable, Comparable<LocaleStringLiteralStyle>

public enum LocaleStringLiteralStyle extends Enum<LocaleStringLiteralStyle>
The style of a date in its string literal form.
  • Enum Constant Details

    • 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 Details

    • values

      public static LocaleStringLiteralStyle[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static LocaleStringLiteralStyle 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 name
      NullPointerException - if the argument is null