Simplifies code for getting multiple resources from a single string file. The resource package will store the prefix in "." separated form (note that you should not have directory paths that contain . for properties files, since . is special. the methods use the "." separated form. strings passed to the get* methods should already have the "." form in them. (i.e. use getString("strings.bar.foo") )
ResourceSvc
Method Summary |
public |
|
public | |
public | |
public |
|
Method Detail |
publicFind a string by package relative ID. Note that this method differs from getString in that it does not assert if the string cannot be found e.g. "strings.workshop.shell.dialog.file.Title"String
findString(String
sStringId)
publicGet a formatted string resource from a relative string ID.String
format(String
sStringId,Object
[] args)
Related Topics
MessageFormat.format(String, Object[])
publicGet a string by package relative ID. This method will assert if the string is not found. This will help catch cases where someone has left out a string. If it is possible to not have the string and still have a valid scenario, you should use findString instead.String
getString(String
sStringId)
publicGet full ID from a package relative ID.String
getStringId(String
sStringSubid)