com.softwareag.cis.plugin.ext
Class CommonI18NHandler

java.lang.Object
  extended by com.softwareag.cis.plugin.extpt.util.AbstractExtensionImplementation
      extended by com.softwareag.cis.plugin.ext.CommonI18NHandler
All Implemented Interfaces:
I18NHandler, ExtensionImplementation

public class CommonI18NHandler
extends AbstractExtensionImplementation
implements I18NHandler


Field Summary
static java.lang.String rcs_id
           
 
Constructor Summary
CommonI18NHandler()
           
 
Method Summary
 boolean equals(java.lang.Object o)
          Allow to compare instances of ControlI18NHandler
 java.lang.String getMessage(java.lang.String id, java.lang.String language)
          Get localized string for given id
 java.lang.String getMessage(java.lang.String id, java.lang.String language, java.lang.Object[] parms)
          Get localized string for given id
 int hashCode()
          Overrides hashCode()
 boolean providesMessage(java.lang.String project, java.lang.String id)
          Check whether the extension implementing this interface provides strings for the given project.
 void setExtensionInternal(Extension ext)
          This method may be overwritten by subclasses when some initialization is required after setting the Extension implemented by this ExtensionImplementation.
 
Methods inherited from class com.softwareag.cis.plugin.extpt.util.AbstractExtensionImplementation
getExtension, getPlugIn, popContextClassLoader, pushContextClassLoader, setExtension
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rcs_id

public static final java.lang.String rcs_id
See Also:
Constant Field Values
Constructor Detail

CommonI18NHandler

public CommonI18NHandler()
Method Detail

equals

public boolean equals(java.lang.Object o)
Allow to compare instances of ControlI18NHandler

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides hashCode()

Overrides:
hashCode in class java.lang.Object

setExtensionInternal

public void setExtensionInternal(Extension ext)
Description copied from class: AbstractExtensionImplementation
This method may be overwritten by subclasses when some initialization is required after setting the Extension implemented by this ExtensionImplementation.

See Also:
AbstractExtensionImplementation.setExtensionInternal(com.softwareag.cis.plugin.registry.Extension)

providesMessage

public boolean providesMessage(java.lang.String project,
                               java.lang.String id)
Description copied from interface: I18NHandler
Check whether the extension implementing this interface provides strings for the given project.

Specified by:
providesMessage in interface I18NHandler
id - message id
Returns:
true if this I18NHandler is capable or responsible to provide the localized string for the given project and id
See Also:
(java.lang.String, java.lang.String)

getMessage

public java.lang.String getMessage(java.lang.String id,
                                   java.lang.String language)
Description copied from interface: I18NHandler
Get localized string for given id

Specified by:
getMessage in interface I18NHandler
Parameters:
id - message id
language - the language/locale
Returns:
the localized string for the given language/locale
See Also:
I18NHandler.getMessage(java.lang.String, java.lang.String)

getMessage

public java.lang.String getMessage(java.lang.String id,
                                   java.lang.String language,
                                   java.lang.Object[] parms)
Description copied from interface: I18NHandler
Get localized string for given id

Specified by:
getMessage in interface I18NHandler
Parameters:
id - message id
language - the language/locale
parms - the parameters to the message
Returns:
the localized string for the given language/locale
See Also:
I18NHandler.getMessage(java.lang.String, java.lang.String, java.lang.Object[])