|
IBM Rational Functional Tester Version 8.2.1 IBM Rational Functional Tester API Reference Project Version 2.3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.rational.test.ft.services.StringTableService
public class StringTableService
Provides a mechanism for doing lookups on localized string resources. String tables should be named after the project and stored in the resources directory, using the same naming convention as java localized properties files. i.e. in a project named MyProject on an US English machine the list of files searched would be: \MyProject\resources\MyProject_en_US.properties \MyProject\resources\MyProject_en.properties \MyProject\resources\MyProject.properties
Constructor Summary | |
---|---|
StringTableService()
|
Method Summary | |
---|---|
static java.lang.String |
getString(java.lang.String key)
Lookup and return the string table entry corresponding to the given key. |
static java.lang.String[] |
getStringTableResourceCandidates(java.util.Locale locale)
Get the list of resource files to look for based on the locale. |
static boolean |
isLocalizedResourceAvailable()
Check to see if a localized string table is loaded. |
static void |
setStringTableLocale(java.util.Locale locale)
Load the string table for the specified Locale . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StringTableService()
Method Detail |
---|
public static java.lang.String getString(java.lang.String key)
setStringTableLocale
key:
- the key to look for in the string table properties file.public static void setStringTableLocale(java.util.Locale locale)
Locale
.
locale:
- the Locale
to load the string table for.public static boolean isLocalizedResourceAvailable()
public static java.lang.String[] getStringTableResourceCandidates(java.util.Locale locale)
locale
- the locale to get resource files for. If null
is passed in the default locale is used.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |