|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.virtualmock.resource.ResourceManager
Class to manage access to resource files.
| Constructor Summary | |
ResourceManager(java.lang.String resourceFileName,
java.lang.String language,
java.lang.String country)
Constructor which takes resource file name, language, and country. |
|
| Method Summary | |
java.lang.String |
getString(java.lang.String key)
Gets a string from the resource file. |
java.lang.String |
getString(java.lang.String key,
java.lang.String argument1)
Gets a string from the resource file, substituting an argument. |
java.lang.String |
getString(java.lang.String key,
java.lang.String[] arguments)
Gets a string from the resource file, substituting arguments. |
java.lang.String |
getString(java.lang.String key,
java.lang.String argument1,
java.lang.String argument2)
Gets a string from the resource file, substituting arguments. |
java.lang.String |
getString(java.lang.String key,
java.lang.String argument1,
java.lang.String argument2,
java.lang.String argument3)
Gets a string from the resource file, substituting arguments. |
java.lang.String |
getString(java.lang.String key,
java.lang.String argument1,
java.lang.String argument2,
java.lang.String argument3,
java.lang.String argument4)
Gets a string from the resource file, substituting arguments. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ResourceManager(java.lang.String resourceFileName,
java.lang.String language,
java.lang.String country)
resourceFileName - the name of the resource filelanguage - the language of the localecountry - the country of the locale| Method Detail |
public java.lang.String getString(java.lang.String key)
key - the key to look up in the resource file
java.lang.RuntimeException - if the key isn't in the resource file
public java.lang.String getString(java.lang.String key,
java.lang.String[] arguments)
key - the key to look up in the resource filearguments - the arguments to substitute
public java.lang.String getString(java.lang.String key,
java.lang.String argument1,
java.lang.String argument2)
key - the key to look up in the resource fileargument1 - the first argument to substituteargument2 - the second argument to substitute
public java.lang.String getString(java.lang.String key,
java.lang.String argument1,
java.lang.String argument2,
java.lang.String argument3)
key - the key to look up in the resource fileargument1 - the first argument to substituteargument2 - the second argument to substituteargument3 - the third argument to substitute
public java.lang.String getString(java.lang.String key,
java.lang.String argument1,
java.lang.String argument2,
java.lang.String argument3,
java.lang.String argument4)
key - the key to look up in the resource fileargument1 - the first argument to substituteargument2 - the second argument to substituteargument3 - the third argument to substituteargument4 - the fourth argument to substitute
public java.lang.String getString(java.lang.String key,
java.lang.String argument1)
key - the key to look up in the resource fileargument1 - the single argument to substitute
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||