public class ResourceBundle
extends java.lang.Object
Constructor and Description |
---|
ResourceBundle(java.lang.String baseName) |
Modifier and Type | Method and Description |
---|---|
protected void |
clearCache() |
boolean |
equals(java.lang.Object o) |
java.lang.String |
format(java.util.Locale locale,
java.lang.String key,
java.lang.Object... args) |
protected java.util.Properties |
get(java.lang.String key) |
java.lang.String |
getBaseName() |
java.lang.String |
getFormatString(java.util.Locale locale,
java.lang.String key)
Gets the format string for the given key.
|
java.lang.String |
getFormatStringWithoutDefaulting(java.util.Locale locale,
java.lang.String key)
Works like
getFormatString(Locale, String) except there's no
searching up the delegation chain. |
int |
hashCode() |
static ResourceBundle |
load(java.lang.String jellyUrl)
Loads the resource bundle associated with the Jelly script.
|
static ResourceBundle |
load(java.net.URL jellyUrl) |
protected java.util.Properties |
wrapUp(java.lang.String locale,
java.util.Properties props)
Interception point for property loading.
|
public java.lang.String getBaseName()
public java.lang.String format(java.util.Locale locale, java.lang.String key, java.lang.Object... args)
public java.lang.String getFormatString(java.util.Locale locale, java.lang.String key)
This method performs a search so that a look up for "pt_BR" would delegate to "pt" then "" (the no-locale locale.)
public java.lang.String getFormatStringWithoutDefaulting(java.util.Locale locale, java.lang.String key)
getFormatString(Locale, String)
except there's no
searching up the delegation chain.protected void clearCache()
protected java.util.Properties get(java.lang.String key)
protected java.util.Properties wrapUp(java.lang.String locale, java.util.Properties props)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public static ResourceBundle load(java.net.URL jellyUrl)
public static ResourceBundle load(java.lang.String jellyUrl)
Copyright © 2012. All Rights Reserved.