Class SetLocaleSupport

    • Field Detail

      • value

        protected Object value
      • variant

        protected String variant
    • Constructor Detail

      • SetLocaleSupport

        public SetLocaleSupport()
    • Method Detail

      • setScope

        public void setScope​(String scope)
      • parseLocale

        public static Locale parseLocale​(String locale)
        See parseLocale(String, String) for details.
      • parseLocale

        public static Locale parseLocale​(String locale,
                                         String variant)
        Parses the given locale string into its language and (optionally) country components, and returns the corresponding java.util.Locale object. If the given locale string is null or empty, the runtime's default locale is returned.
        Parameters:
        locale - the locale string to parse
        variant - the variant
        Returns:
        java.util.Locale object corresponding to the given locale string, or the runtime's default locale if the locale string is null or empty
        Throws:
        IllegalArgumentException - if the given locale does not have a language component or has an empty country component