Package com.ibm.di.fc.sapr3rfcv3.i18n
Class DefaultMessagesImpl
- java.lang.Object
-
- com.ibm.di.fc.sapr3rfcv3.i18n.DefaultMessagesImpl
-
-
Constructor Summary
Constructors Constructor Description DefaultMessagesImpl(java.lang.String resourceName)
Loads the ResourceBundle identified by resourceName.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getMessage(java.lang.String id)
Get the globalized message for the given id.java.lang.String
getMessage(java.lang.String id, java.lang.Object[] args)
Get the globalized message for the given id.
-
-
-
Constructor Detail
-
DefaultMessagesImpl
public DefaultMessagesImpl(java.lang.String resourceName) throws java.util.MissingResourceException
Loads the ResourceBundle identified by resourceName.- Parameters:
resourceName
- A .properties or .class loadable resource bundle. See java.util.ResourceBundle.- Throws:
java.util.MissingResourceException
- If unable to load bundle named by resoureName.
-
-
Method Detail
-
getMessage
public java.lang.String getMessage(java.lang.String id, java.lang.Object[] args)
Get the globalized message for the given id.- Specified by:
getMessage
in interfaceMessages
- 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 java.lang.String getMessage(java.lang.String id)
Get the globalized message for the given id.- Specified by:
getMessage
in interfaceMessages
- Parameters:
id
- Identifier of the requested string.- Returns:
- The message associated with the id.
-
-