|
VLab Common 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpl.psnc.vlab.util.i18n.ResourceBundleManager
public class ResourceBundleManager
ResourceBundleManager class - used for formating compound messages.
| Constructor Summary | |
|---|---|
ResourceBundleManager(java.lang.String bundle)
Creates a new instance of ResourceBundleManager |
|
ResourceBundleManager(java.lang.String bundle,
java.util.Locale locale)
Creates a new instance of ResourceBundleManager |
|
ResourceBundleManager(java.lang.String bundle,
java.util.Locale locale,
java.lang.String notFoundKey)
Creates a new instance of ResourceBundleManager |
|
| Method Summary | |
|---|---|
java.lang.String |
getFormattedValue(java.lang.String template,
java.lang.Object[] messageArguments)
Get the formatted key |
java.lang.String |
getValue(java.lang.String key)
Get the value for the given key for corresponding resource bundle |
java.lang.Boolean |
hasKey(java.lang.String key)
Test whether the given key is defined in the current bundle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceBundleManager(java.lang.String bundle)
throws java.util.MissingResourceException
bundle - resource bundle
java.util.MissingResourceException - exception which is thrown when no
resource bundle is found
public ResourceBundleManager(java.lang.String bundle,
java.util.Locale locale)
throws java.util.MissingResourceException
bundle - resource bundlelocale - current locale
java.util.MissingResourceException - exception which is thrown when no
resource bundle is found
public ResourceBundleManager(java.lang.String bundle,
java.util.Locale locale,
java.lang.String notFoundKey)
throws java.util.MissingResourceException
notFoundKey - key which will be used when searched key is not foundbundle - resource bundlelocale - current locale
java.util.MissingResourceException - exception which is thrown when no
resource bundle is found| Method Detail |
|---|
public java.lang.String getFormattedValue(java.lang.String template,
java.lang.Object[] messageArguments)
template - message templatemessageArguments - message arguments
public java.lang.String getValue(java.lang.String key)
key - key for the desired string
public java.lang.Boolean hasKey(java.lang.String key)
key - key for the desired string
true if key was found, false
otherwise
|
VLab Common 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||