Package com.ibm.di.UpdateInstaller
Class UpdateInstallerMsgs
- java.lang.Object
-
- com.ibm.di.UpdateInstaller.UpdateInstallerMsgs
-
public class UpdateInstallerMsgs extends java.lang.Object
Implements the messaging and logging functions required by the update installer
-
-
Constructor Summary
Constructors Constructor Description UpdateInstallerMsgs()
Default class constructor for the UpdateInstallerMsgs object
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getString(java.lang.String resource)
Return the NLS string given the resourcestatic java.lang.String
getString(java.lang.String resource, java.lang.Object param)
Return the NLS string given the resource and a parameterstatic java.lang.String
getString(java.lang.String resource, java.lang.Object[] params)
Returns the NLS string value for the passed "resource" (key) and replaces the placeholders {0},{1},etc by the corresponding params[0], params[1], etc.static java.lang.String
getString(java.lang.String resource, java.lang.Object param, java.lang.Object param2)
Return the NLS string given the resource and 2 parametersstatic java.lang.String
getString(java.lang.String resource, java.lang.Object param, java.lang.Object param2, java.lang.Object param3)
Return the NLS string given the resource and 3 parametersstatic java.lang.String
getString(java.lang.String resource, java.lang.Object param, java.lang.Object param2, java.lang.Object param3, java.lang.Object param4)
Return the NLS string given the resource and 4 parametersstatic java.lang.String
getString(java.lang.String resource, java.lang.Object param, java.lang.Object param2, java.lang.Object param3, java.lang.Object param4, java.lang.Object param5)
Return the NLS string given the resource and 5 parametersstatic java.lang.String
getString(java.lang.String resource, java.lang.Object param, java.lang.Object param2, java.lang.Object param3, java.lang.Object param4, java.lang.Object param5, java.lang.Object param6)
Return the NLS string given the resource and 6 parametersstatic void
log(java.lang.String msg, int level)
Logs the specified message with the specified level using the log4j utility.
-
-
-
Field Detail
-
FATAL
public static final int FATAL
FATAL log level- See Also:
- Constant Field Values
-
ERROR
public static final int ERROR
ERROR log level- See Also:
- Constant Field Values
-
WARN
public static final int WARN
WARN log level- See Also:
- Constant Field Values
-
INFO
public static final int INFO
INFO log level- See Also:
- Constant Field Values
-
DEBUG
public static final int DEBUG
DEBUG log level- See Also:
- Constant Field Values
-
TRACE
public static final int TRACE
TRACE log level- See Also:
- Constant Field Values
-
-
Method Detail
-
getString
public static java.lang.String getString(java.lang.String resource)
Return the NLS string given the resource- Parameters:
resource
- The TMS file resource to be looked up from the resource bundle- Returns:
- The NLS string representing the specified resource
-
getString
public static java.lang.String getString(java.lang.String resource, java.lang.Object param)
Return the NLS string given the resource and a parameter- Parameters:
resource
- The TMS file resource to be looked up from the resource bundleparam
- A parameter to substitute into a variable in the resource string- Returns:
- The NLS string representing the specified resource with the placeholder replaced
-
getString
public static java.lang.String getString(java.lang.String resource, java.lang.Object param, java.lang.Object param2)
Return the NLS string given the resource and 2 parameters- Parameters:
resource
- The TMS file resource to be looked up from the resource bundleparam
- A parameter to substitute into the 1st variable in the resource stringparam2
- A parameter to substitute into the 2nd variable in the resource string- Returns:
- The NLS string representing the specified resource with placeholders replaced
-
getString
public static java.lang.String getString(java.lang.String resource, java.lang.Object param, java.lang.Object param2, java.lang.Object param3)
Return the NLS string given the resource and 3 parameters- Parameters:
resource
- The TMS file resource to be looked up from the resource bundleparam
- A parameter to substitute into the 1st variable in the resource stringparam2
- A parameter to substitute into the 2nd variable in the resource stringparam3
- A parameter to substitute into the 3rd variable in the resource string- Returns:
- The NLS string representing the specified resource with placeholders replaced
-
getString
public static java.lang.String getString(java.lang.String resource, java.lang.Object param, java.lang.Object param2, java.lang.Object param3, java.lang.Object param4)
Return the NLS string given the resource and 4 parameters- Parameters:
resource
- The TMS file resource to be looked up from the resource bundleparam
- A parameter to substitute into the 1st variable in the resource stringparam2
- A parameter to substitute into the 2nd variable in the resource stringparam3
- A parameter to substitute into the 3rd variable in the resource stringparam4
- A parameter to substitute into the 4th variable in the resource string- Returns:
- The NLS string representing the specified resource with placeholders replaced
-
getString
public static java.lang.String getString(java.lang.String resource, java.lang.Object param, java.lang.Object param2, java.lang.Object param3, java.lang.Object param4, java.lang.Object param5)
Return the NLS string given the resource and 5 parameters- Parameters:
resource
- The TMS file resource to be looked up from the resource bundleparam
- A parameter to substitute into the 1st variable in the resource stringparam2
- A parameter to substitute into the 2nd variable in the resource stringparam3
- A parameter to substitute into the 3rd variable in the resource stringparam4
- A parameter to substitute into the 4th variable in the resource stringparam5
- A parameter to substitute into the 5th variable in the resource string- Returns:
- The NLS string representing the specified resource with placeholders replaced
-
getString
public static java.lang.String getString(java.lang.String resource, java.lang.Object param, java.lang.Object param2, java.lang.Object param3, java.lang.Object param4, java.lang.Object param5, java.lang.Object param6)
Return the NLS string given the resource and 6 parameters- Parameters:
resource
- The TMS file resource to be looked up from the resource bundleparam
- A parameter to substitute into the 1st variable in the resource stringparam2
- A parameter to substitute into the 2nd variable in the resource stringparam3
- A parameter to substitute into the 3rd variable in the resource stringparam4
- A parameter to substitute into the 4th variable in the resource stringparam5
- A parameter to substitute into the 5th variable in the resource stringparam6
- A parameter to substitute into the 6th variable in the resource string- Returns:
- The NLS string representing the specified resource with placeholders replaced
-
getString
public static java.lang.String getString(java.lang.String resource, java.lang.Object[] params)
Returns the NLS string value for the passed "resource" (key) and replaces the placeholders {0},{1},etc by the corresponding params[0], params[1], etc.- Parameters:
resource
- The key whose value is to be retrieved.params
- An array of strings which will replace placeholders- Returns:
- The value with placeholders replaced.
-
log
public static void log(java.lang.String msg, int level)
Logs the specified message with the specified level using the log4j utility.- Parameters:
msg
- The message to be loggedlevel
- The level at which to log this message
-
-