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 -
Constructor Summary
-
Method Summary
Modifier and Type Method Description StringgetBaseName()StringgetDescription(Locale locale)StringgetDisplayName(Locale locale)ResourceBundlegetResourceBundle(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 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 Details
-
getBaseName
- Returns:
- the base name of the
ResourceBundleassociated with thisApplicationResourceBundleinstance
-
getResourceBundle
- Parameters:
locale- aLocale- Returns:
- return the
ResourceBundleassociated with the specified locale
-
getDisplayName
- Parameters:
locale- aLocale- Returns:
- a text of a
display-nameelement associated with the specified locale
-
getDescription
- Parameters:
locale- aLocale- Returns:
- a text of a
descriptionelement associated with the specified locale
-