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 StringDEFAULT_KEY
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBaseName()StringgetDescription(Locale locale)StringgetDisplayName(Locale locale)ResourceBundlegetResourceBundle(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 theResourceBundledisplayNames- 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
ResourceBundleassociated with thisApplicationResourceBundleinstance
-
getResourceBundle
public ResourceBundle getResourceBundle(Locale locale)
- Parameters:
locale- aLocale- Returns:
- return the
ResourceBundleassociated with the specifiedlocale
-
getDisplayName
public String getDisplayName(Locale locale)
- Parameters:
locale- aLocale- Returns:
- a text of a
display-nameelement associated with the specifiedlocale
-
-