Package de.xima.fc.gui.common.utils.msg
Class I18nUtils
- java.lang.Object
 - 
- de.xima.fc.gui.common.utils.msg.I18nUtils
 
 
- 
- Direct Known Subclasses:
 MessageUtils,PluginWrapperModel
public class I18nUtils extends Object
 
- 
- 
Constructor Summary
Constructors Constructor Description I18nUtils() 
- 
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static javax.faces.context.FacesContextgetFacesContext()Deprecated.UseFaces.getContext()static LocalegetLocale()Deprecated.static StringrbValue(String key, Object... params)Methode zum Auflösen eines i18n-Keys zum aktuellen Wert Zusätzlich werden Ersetzungen mittels der übergebenen Parameter (1..n) durchgeführt.static StringrbValue(String bundle, Locale loc, String key, Object... params)static StringrbValue(Locale loc, String key, Object... params)static StringrbValueOrDefault(String bundle, Locale loc, String key, String defaultValue, Object... params)static StringrbValueOrDefault(Locale loc, String key, String defaultValue, Object... params) 
 - 
 
- 
- 
Method Detail
- 
rbValue
public static String rbValue(String key, Object... params)
Methode zum Auflösen eines i18n-Keys zum aktuellen Wert Zusätzlich werden Ersetzungen mittels der übergebenen Parameter (1..n) durchgeführt. Das Ersetzungs-Pattern im hinterlegten i18n-Wert muss folgendermaßen sein: {0} ... {n} 
- 
rbValueOrDefault
public static String rbValueOrDefault(Locale loc, String key, String defaultValue, Object... params)
 
- 
rbValueOrDefault
public static String rbValueOrDefault(String bundle, Locale loc, String key, String defaultValue, Object... params)
 
- 
getLocale
@Deprecated public static Locale getLocale()
Deprecated.Gets the locale from the current Faces context, or the default locale when no Faces context is active.- Returns:
 - The locale from the current Faces context, or the default locale if no Faces context is active.
 
 
- 
getFacesContext
@Deprecated public static javax.faces.context.FacesContext getFacesContext()
Deprecated.UseFaces.getContext()Gets the current Faces context, which requires that the current thread is currently processing an HTTP request to the Faces servlet.- Returns:
 - The current Faces context, 
nullif no such context exists. 
 
 - 
 
 -