Class ApplicationResourceBundle


  • public class ApplicationResourceBundle
    extends Object

    Contains an application level resource bundle name and its associated descriptions, if any.

    • 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 the ResourceBundle
        displayNames - any display names that were associated with the resource bundle definition in the configuration resource
        descriptions - 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 this ApplicationResourceBundle instance
      • getResourceBundle

        public ResourceBundle getResourceBundle​(Locale locale)
        Parameters:
        locale - a Locale
        Returns:
        return the ResourceBundle associated with the specified locale
      • getDisplayName

        public String getDisplayName​(Locale locale)
        Parameters:
        locale - a Locale
        Returns:
        a text of a display-name element associated with the specified locale
      • getDescription

        public String getDescription​(Locale locale)
        Parameters:
        locale - a Locale
        Returns:
        a text of a description element associated with the specified locale