| java.lang.Object com.metaboss.util.ResourceUtils
ResourceUtils | public class ResourceUtils (Code) | | Useful utilities dealing with resource bundles
|
getClassResourceString | public static String getClassResourceString(Class pResourceOwnerClass, String pStringId, String pDefaultStringValue)(Code) | | Loads resource bundle associated with the given class. Returns value of the string
with given id or specified default string if nothing was found. This version of the method uses
default locale.
Parameters: pResourceOwnerClass - the class we have to load resource for Parameters: pStringId - - the identifier of the string Parameters: pDefaultStringValue - - the default value to use if resource or string within resource was not found |
getLocalisedClassResourceString | public static String getLocalisedClassResourceString(Locale pDesiredLocale, Class pResourceOwnerClass, String pStringId, String pDefaultStringValue)(Code) | | Loads resource bundle associated with the given class. Returns value of the string
with given id or specified default string if nothing was found. This version of the method uses
specified locale.
Parameters: pDesiredLocale - the locale we would like to try to load resources for Parameters: pResourceOwnerClass - the class we have to load resource for Parameters: pStringId - - the identifier of the string Parameters: pDefaultStringValue - - the default value to use if resource or string within resource was not found |
|
|