com.sun.faces.application
Class ApplicationResourceBundle

java.lang.Object
  extended by com.sun.faces.application.ApplicationResourceBundle

public class ApplicationResourceBundle
extends java.lang.Object

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


Field Summary
static java.lang.String DEFAULT_KEY
           
 
Constructor Summary
ApplicationResourceBundle(java.lang.String baseName, java.util.Map<java.lang.String,java.lang.String> displayNames, java.util.Map<java.lang.String,java.lang.String> descriptions)
           Constructs a new ApplicationResourceBundle
 
Method Summary
 java.lang.String getBaseName()
           
 java.lang.String getDescription(java.util.Locale locale)
           
 java.lang.String getDisplayName(java.util.Locale locale)
           
 java.util.ResourceBundle getResourceBundle(java.util.Locale locale)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_KEY

public static final java.lang.String DEFAULT_KEY
See Also:
Constant Field Values
Constructor Detail

ApplicationResourceBundle

public ApplicationResourceBundle(java.lang.String baseName,
                                 java.util.Map<java.lang.String,java.lang.String> displayNames,
                                 java.util.Map<java.lang.String,java.lang.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 java.lang.String getBaseName()
Returns:
the base name of the ResourceBundle associated with this ApplicationResourceBundle instance

getResourceBundle

public java.util.ResourceBundle getResourceBundle(java.util.Locale locale)
Parameters:
locale - a Locale
Returns:
return the ResourceBundle associated with the specified locale

getDisplayName

public java.lang.String getDisplayName(java.util.Locale locale)
Parameters:
locale - a Locale
Returns:
a text of a display-name element associated with the specified locale

getDescription

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


Copyright © 2011 Oracle America, Inc. All Rights Reserved.