public interface LocaleProvider
extends java.io.Serializable
AbstractItemModel.| Modifier and Type | Method and Description |
|---|---|
java.util.Locale |
getCurrentDataLocale()
Returns current (session) data locale to be used to read or store localized attribute data.
|
java.util.List<java.util.Locale> |
getFallbacks(java.util.Locale requestedLocale)
Returns a
List with fallback Locales for the given Locale. |
boolean |
isFallbackEnabled()
Returns
true if for the current session the Locale fallback is enabled. |
java.util.Locale |
toDataLocale(java.util.Locale external)
Converts a arbitrary locale instance into one which is allowed to read and write data with.
|
java.util.Locale getCurrentDataLocale()
I18NService.getCurrentLocale()!java.util.Locale toDataLocale(java.util.Locale external)
external - the localejava.lang.IllegalArgumentException - if no supported data locale could be foundboolean isFallbackEnabled()
true if for the current session the Locale fallback is enabled.false otherwise.java.util.List<java.util.Locale> getFallbacks(java.util.Locale requestedLocale)
List with fallback Locales for the given Locale.requestedLocale - the Locale for which all fallback Locales are requested.null if the locale fallback is not enabled (see isFallbackEnabled()).Copyright © 2018 SAP SE. All Rights Reserved.