public class ResourceBundle extends Object
Constructor and Description |
---|
ResourceBundle(String baseName) |
Modifier and Type | Method and Description |
---|---|
protected void |
clearCache() |
boolean |
equals(Object o) |
String |
format(Locale locale,
String key,
Object... args) |
protected Properties |
get(String key) |
String |
getBaseName() |
String |
getFormatString(Locale locale,
String key)
Gets the format string for the given key.
|
String |
getFormatStringWithoutDefaulting(Locale locale,
String key)
Works like
getFormatString(Locale, String) except there's no
searching up the delegation chain. |
int |
hashCode() |
static ResourceBundle |
load(String jellyUrl)
Loads the resource bundle associated with the Jelly script.
|
static ResourceBundle |
load(URL jellyUrl) |
protected Properties |
wrapUp(String locale,
Properties props)
Interception point for property loading.
|
public ResourceBundle(String baseName)
public String getBaseName()
public String getFormatString(Locale locale, 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 String getFormatStringWithoutDefaulting(Locale locale, String key)
getFormatString(Locale, String)
except there's no
searching up the delegation chain.protected void clearCache()
protected Properties get(String key)
protected Properties wrapUp(String locale, Properties props)
public static ResourceBundle load(URL jellyUrl)
public static ResourceBundle load(String jellyUrl)
Copyright © 2013. All rights reserved.