com.ibm.di.fc.remotecmdlnfc
Class TMSMessagesImpl

java.lang.Object
  extended by com.ibm.di.fc.remotecmdlnfc.TMSMessagesImpl
All Implemented Interfaces:
Messages

public final class TMSMessagesImpl
extends Object
implements Messages

The default implementation of Messages. This implementation is a wrapper for java.util.ResourceBundle strings.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.ibm.di.fc.remotecmdlnfc.Messages
Messages.MessageID
 
Constructor Summary
TMSMessagesImpl(String resourceName)
          Loads the ResourceBundle identified by resourceName.
 
Method Summary
 String getMessage(Messages.MessageID id)
          Get the globalized message for the given MessageID.
 String getMessage(Messages.MessageID id, Object[] args)
          Get the globalized message for the given MessageID.
 String getMessage(String id)
          Get the globalized message for the given String identifier.
 String getMessage(String id, Object[] args)
          Get the globalized message for the given String identifier.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TMSMessagesImpl

public TMSMessagesImpl(String resourceName)
Loads the ResourceBundle identified by resourceName.

Parameters:
resourceName - A .properties or .class loadable resource bundle.
Method Detail

getMessage

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

Specified by:
getMessage in interface Messages
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 String getMessage(String id)
Get the globalized message for the given String identifier.

Specified by:
getMessage in interface Messages
Parameters:
id - Identifier of the requested string.
Returns:
The message associated with the id.

getMessage

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

Specified by:
getMessage in interface Messages
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 String getMessage(Messages.MessageID id)
Get the globalized message for the given MessageID.

Specified by:
getMessage in interface Messages
Parameters:
id - Identifier of the requested string.
Returns:
The message associated with the id.