public interface LocaleProvider
Locale.
 
 This is useful for when an action may wish override the default locale. All that is
 needed is to implement this interface and return your own custom locale.
 The TextProvider interface uses this interface heavily for retrieving
 internationalized messages from resource bundles.
 
| Modifier and Type | Method and Description | 
|---|---|
| Locale | getLocale()Gets the provided locale. | 
| boolean | isValidLocale(Locale locale)Validates if provided  Localeis value | 
| boolean | isValidLocaleString(String localeStr)Validates if provided string is a valid  Locale | 
| default Locale | toLocale(String localeStr)Tries to convert provided locale string into  Localeor returns null | 
Locale getLocale()
boolean isValidLocaleString(String localeStr)
LocalelocaleStr - a String representing locale, e.g. en_ENboolean isValidLocale(Locale locale)
Locale is valuelocale - instance of Locale to validateCopyright © 2000–2025 Apache Software Foundation. All rights reserved.