com.ibm.di.connector.tam
Class TMSMessageGetter

java.lang.Object
  extended by com.ibm.di.connector.tam.TMSMessageGetter

public final class TMSMessageGetter
extends Object

Wrapper class used to retrieve TMS messages for the TAM Connector. The properties file used for the messages is named "tamconnector".


Field Summary
static String MESSAGE_PROPERTIES_NAME
           
 
Method Summary
static String getMessage(String id)
          Get the globalized message for the given String identifier.
static String getMessage(String id, Object arg)
          Get the globalized message for the given String identifier.
static String getMessage(String id, Object[] args)
          Get the globalized message for the given String identifier.
static String getMessage(TMSMsgId id)
          Get the globalized message for the given MessageID.
static String getMessage(TMSMsgId id, Object arg)
          Get the globalized message for the given MessageID.
static String getMessage(TMSMsgId id, Object[] args)
          Get the globalized message for the given MessageID.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MESSAGE_PROPERTIES_NAME

public static final String MESSAGE_PROPERTIES_NAME
See Also:
Constant Field Values
Method Detail

getMessage

public static String getMessage(String id,
                                Object[] args)
Get the globalized message for the given String identifier.

Parameters:
id - Identifier of the requested string.
args - Substitutable arguments to be inserted into the result string.
Returns:
The message associated with the id. The args will be substitued into the result string.

getMessage

public static String getMessage(String id,
                                Object arg)
Get the globalized message for the given String identifier.

Parameters:
id - Identifier of the requested string.
arg - Substitutable argument to be inserted into the result string.
Returns:
The message associated with the id. The args will be substitued into the result string.

getMessage

public static String getMessage(String id)
Get the globalized message for the given String identifier.

Parameters:
id - Identifier of the requested string.
Returns:
The message associated with the id.

getMessage

public static String getMessage(TMSMsgId id,
                                Object[] args)
Get the globalized message for the given MessageID.

Parameters:
id - Identifier of the requested string.
args - Substitutable arguments to be inserted into the result string.
Returns:
The message associated with the id. The args will be substitued into the result string.

getMessage

public static String getMessage(TMSMsgId id,
                                Object arg)
Get the globalized message for the given MessageID.

Parameters:
id - Identifier of the requested string.
arg - Substitutable argument to be inserted into the result string.
Returns:
The message associated with the id. The args will be substitued into the result string.

getMessage

public static String getMessage(TMSMsgId id)
Get the globalized message for the given MessageID.

Parameters:
id - Identifier of the requested string.
Returns:
The message associated with the id.