com.ibm.tivoli.maximo.report.cognos.metadata.generator

Class Translation

  • java.lang.Object
    • com.ibm.tivoli.maximo.report.cognos.metadata.generator.Translation


  • public class Translation
    extends java.lang.Object
    This class is a data structure class to hold translation data (languages and translated values).
    • Constructor Summary

      Constructors 
      Constructor and Description
      Translation(java.lang.String language)
      Constructs a Translation with the passed language converted to lower-case and an empty value.
      Translation(java.lang.String language, java.lang.String value)
      Constructs a Translation with the passed language code converted to lower-case and a translated string value.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.String getLanguage()
      Returns the lower-case language code for this translation.
      java.lang.String getValue()
      Returns the value for this translation.
      void setLanguage(java.lang.String language)
      Sets the language code for this translation.
      void setValue(java.lang.String value)
      Sets the value for this translation.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Translation

        public Translation(java.lang.String language,
                           java.lang.String value)
        Constructs a Translation with the passed language code converted to lower-case and a translated string value.
        Parameters:
        language - the language code
        value - the translated string
      • Translation

        public Translation(java.lang.String language)
        Constructs a Translation with the passed language converted to lower-case and an empty value.
        Parameters:
        language - the language code
    • Method Detail

      • getLanguage

        public java.lang.String getLanguage()
        Returns the lower-case language code for this translation.
        Returns:
        the language code
      • getValue

        public java.lang.String getValue()
        Returns the value for this translation.
        Returns:
        the translated value
      • setLanguage

        public void setLanguage(java.lang.String language)
        Sets the language code for this translation. Converts the passed value to lower-case to comply with action log syntax.
        Parameters:
        the - language code
      • setValue

        public void setValue(java.lang.String value)
        Sets the value for this translation.
        Parameters:
        the - translated value