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
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getBaseName()
String
getDescription(Locale locale)
String
getDisplayName(Locale locale)
ResourceBundle
getResourceBundle(Locale locale)
-
-
-
Field Detail
-
DEFAULT_KEY
public static final String DEFAULT_KEY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
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 Detail
-
getBaseName
public String getBaseName()
- Returns:
- the base name of the
ResourceBundle
associated with thisApplicationResourceBundle
instance
-
getResourceBundle
public ResourceBundle getResourceBundle(Locale locale)
- Parameters:
locale
- aLocale
- Returns:
- return the
ResourceBundle
associated with the specifiedlocale
-
getDisplayName
public String getDisplayName(Locale locale)
- Parameters:
locale
- aLocale
- Returns:
- a text of a
display-name
element associated with the specifiedlocale
-
-