| java.lang.Object net.sourceforge.squirrel_sql.fw.util.StringManager
StringManager | public class StringManager (Code) | | This class defines i18nized strings. These strings are stored in a file
with a base name I18NStrings.properties in each package directory.
author: Colin Bell |
Method Summary | |
public String | getString(String key) Retrieve the localized string for the passed key. | public String | getString(String key, String[] args) Retrieve the localized string for the passed key and format it with the
passed arguments.
Parameters: key - Key to retrieve string for. Parameters: args - Any string arguments that should be used as values to parameters found in the localized string. | public String | getString(String key, Object... args) Retrieve the localized string for the passed key and format it with the
passed arguments.
Parameters: key - Key to retrieve string for. Parameters: args - Any string arguments that should be used as values to parameters found in the localized string. |
StringManager | StringManager(String packageName, ClassLoader loader)(Code) | | Ctor specifying the package name. Attempt to load a resource bundle
from the package directory.
Parameters: packageName - Name of package Parameters: classLoader - Class loader to use |
getString | public String getString(String key)(Code) | | Retrieve the localized string for the passed key. If it isn't found
an error message is returned instead.
Parameters: key - Key to retrieve string for. Localized string or error message. throws: IllegalArgumentException - Thrown if null key passed. |
getString | public String getString(String key, String[] args)(Code) | | Retrieve the localized string for the passed key and format it with the
passed arguments.
Parameters: key - Key to retrieve string for. Parameters: args - Any string arguments that should be used as values to parameters found in the localized string. Localized string or error message. throws: IllegalArgumentException - Thrown if null key passed. |
getString | public String getString(String key, Object... args)(Code) | | Retrieve the localized string for the passed key and format it with the
passed arguments.
Parameters: key - Key to retrieve string for. Parameters: args - Any string arguments that should be used as values to parameters found in the localized string. Localized string or error message. throws: IllegalArgumentException - Thrown if null key passed. |
|
|