|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.edsdev.jconvert.util.Messages
This class is used to load String resources specific to the current Locale
| Constructor Summary | |
Messages()
|
|
| Method Summary | |
static java.lang.String |
getResource(java.lang.String key)
Gets the resource specific to the specified key |
static java.lang.String |
getResource(java.lang.String key,
java.lang.Object[] values)
Gets the resource specific to the specified key, replacing the parmeters in the string with the values passed in |
static java.lang.String |
getResource(java.lang.String key,
java.lang.String replacementValue)
Gets the resource specific to the specified key |
static java.lang.String |
getResource(java.lang.String key,
java.lang.String value1,
java.lang.String value2)
Gets the resource specific to the specified key, replacing the parmeters in the string with the two passed in values |
static java.lang.String |
getReverseLookup(java.lang.String value)
Special method!!! This is messed up, but we need to be able to lookup the original key from the resource bundle from the target resource. |
static java.lang.String |
getUnitTranslation(java.lang.String key)
Specialized translation designed to handle missing resources in the bundle. |
static void |
resetBundle()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Messages()
| Method Detail |
public static void resetBundle()
public static java.lang.String getResource(java.lang.String key)
key - String value key that you are looking up
public static java.lang.String getResource(java.lang.String key,
java.lang.String replacementValue)
key - String value key that you are looking upreplacementValue - replaces the first parameter in the string result with this value
public static java.lang.String getResource(java.lang.String key,
java.lang.String value1,
java.lang.String value2)
key - String value key that you are looking upvalue1 - replaces the first parameter in the string result with this valuevalue2 - replaces the second parameter in the string result with this value
public static java.lang.String getResource(java.lang.String key,
java.lang.Object[] values)
key - String value key that you are looking upvalues - Object array of values to replace in the string result.
public static java.lang.String getUnitTranslation(java.lang.String key)
key - String value key that you are looking up
public static java.lang.String getReverseLookup(java.lang.String value)
value - Source Value in the bundle
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||