it.eng.spagobi.engines.talend.utils
Class EngineMessageBundle

java.lang.Object
  extended by it.eng.spagobi.engines.talend.utils.EngineMessageBundle

public class EngineMessageBundle
extends java.lang.Object


Constructor Summary
EngineMessageBundle()
           
 
Method Summary
static java.lang.String getMessage(java.lang.String code, java.util.Locale userLocale)
          Gets the message.
static java.lang.String getMessage(java.lang.String code, java.util.Locale userLocale, java.lang.String[] arguments)
          Gets the message.
static java.lang.String getMessage(java.lang.String code, java.lang.String bundle, java.util.Locale userLocale)
          Returns an internazionalized message.
static java.lang.String getMessage(java.lang.String code, java.lang.String bundle, java.util.Locale userLocale, java.lang.String[] arguments)
          Gets the message.
protected static java.lang.String replace(java.lang.String messageFormat, int iParameter, java.lang.Object value)
          Substitutes the message value to the placeholders.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EngineMessageBundle

public EngineMessageBundle()
Method Detail

getMessage

public static java.lang.String getMessage(java.lang.String code,
                                          java.lang.String bundle,
                                          java.util.Locale userLocale)
Returns an internazionalized message.

Parameters:
code - the code of the message.
bundle - the message bundle.
userLocale - the user locale
Returns:
the internazionalized message.

getMessage

public static java.lang.String getMessage(java.lang.String code,
                                          java.util.Locale userLocale)
Gets the message.

Parameters:
code - the code
userLocale - the user locale
Returns:
the message

getMessage

public static java.lang.String getMessage(java.lang.String code,
                                          java.lang.String bundle,
                                          java.util.Locale userLocale,
                                          java.lang.String[] arguments)
Gets the message.

Parameters:
code - the code
bundle - the bundle
userLocale - the user locale
arguments - the arguments
Returns:
the message

getMessage

public static java.lang.String getMessage(java.lang.String code,
                                          java.util.Locale userLocale,
                                          java.lang.String[] arguments)
Gets the message.

Parameters:
code - the code
userLocale - the user locale
arguments - the arguments
Returns:
the message

replace

protected static java.lang.String replace(java.lang.String messageFormat,
                                          int iParameter,
                                          java.lang.Object value)
Substitutes the message value to the placeholders.

Parameters:
messageFormat - The String representing the message format
iParameter - The numeric value defining the replacing string
value - Input object containing parsing information
Returns:
The parsed string