com.sun.faces.application
Class ApplicationResourceBundle
java.lang.Object
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.
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_KEY
public static final java.lang.String DEFAULT_KEY
- See Also:
- Constant Field Values
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 resourcedescriptions
- any descriptions that were associated
with the resource bundle definition in the configuration resource
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.