|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kohsuke.stapler.jelly.ResourceBundle
public class ResourceBundle
Cache of localization strings.
Constructor Summary | |
---|---|
ResourceBundle(java.lang.String baseName)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResourceBundle(java.lang.String baseName)
Method Detail |
---|
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |