Package com.sun.faces.application
Class ApplicationResourceBundle
java.lang.Object
com.sun.faces.application.ApplicationResourceBundle
public class ApplicationResourceBundle extends Object
Contains an application level resource bundle name and its associated descriptions, if any.
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_KEY
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description String
getBaseName()
String
getDescription(Locale locale)
String
getDisplayName(Locale locale)
ResourceBundle
getResourceBundle(Locale locale)
-
Field Details
-
DEFAULT_KEY
- See Also:
- Constant Field Values
-
-
Constructor Details
-
ApplicationResourceBundle
public ApplicationResourceBundle(String baseName, Map<String,String> displayNames, Map<String,String> descriptions)Constructs a new ApplicationResourceBundle
- Parameters:
baseName
- the base name of theResourceBundle
displayNames
- any display names that were associated with the resource bundle definition in the configuration resourcedescriptions
- any descriptions that were associated with the resource bundle definition in the configuration resource
-
-
Method Details
-
getBaseName
- Returns:
- the base name of the
ResourceBundle
associated with thisApplicationResourceBundle
instance
-
getResourceBundle
- Parameters:
locale
- aLocale
- Returns:
- return the
ResourceBundle
associated with the specified locale
-
getDisplayName
- Parameters:
locale
- aLocale
- Returns:
- a text of a
display-name
element associated with the specified locale
-
getDescription
- Parameters:
locale
- aLocale
- Returns:
- a text of a
description
element associated with the specified locale
-