com.ibm.di.UpdateInstaller
Class UpdateInstallerMsgs

java.lang.Object
  extended by com.ibm.di.UpdateInstaller.UpdateInstallerMsgs

public class UpdateInstallerMsgs
extends java.lang.Object

Implements the messaging and logging functions required by the update installer


Field Summary
static int DEBUG
          DEBUG log level
static int ERROR
          ERROR log level
static int FATAL
          FATAL log level
static int INFO
          INFO log level
static int TRACE
          TRACE log level
static int WARN
          WARN log level
 
Constructor Summary
UpdateInstallerMsgs()
          Default class constructor for the UpdateInstallerMsgs object
 
Method Summary
static java.lang.String getString(java.lang.String resource)
          Return the NLS string given the resource
static java.lang.String getString(java.lang.String resource, java.lang.Object param)
          Return the NLS string given the resource and a parameter
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.
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
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
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
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
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
static void log(java.lang.String msg, int level)
          Logs the specified message with the specified level using the log4j utility.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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
Constructor Detail

UpdateInstallerMsgs

public UpdateInstallerMsgs()
Default class constructor for the UpdateInstallerMsgs object

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 bundle
param - 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 bundle
param - A parameter to substitute into the 1st variable in the resource string
param2 - 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 bundle
param - A parameter to substitute into the 1st variable in the resource string
param2 - A parameter to substitute into the 2nd variable in the resource string
param3 - 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 bundle
param - A parameter to substitute into the 1st variable in the resource string
param2 - A parameter to substitute into the 2nd variable in the resource string
param3 - A parameter to substitute into the 3rd variable in the resource string
param4 - 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 bundle
param - A parameter to substitute into the 1st variable in the resource string
param2 - A parameter to substitute into the 2nd variable in the resource string
param3 - A parameter to substitute into the 3rd variable in the resource string
param4 - A parameter to substitute into the 4th variable in the resource string
param5 - 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 bundle
param - A parameter to substitute into the 1st variable in the resource string
param2 - A parameter to substitute into the 2nd variable in the resource string
param3 - A parameter to substitute into the 3rd variable in the resource string
param4 - A parameter to substitute into the 4th variable in the resource string
param5 - A parameter to substitute into the 5th variable in the resource string
param6 - 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 logged
level - The level at which to log this message