Package com.uc4.api

Class TranslatedMessage


  • public final class TranslatedMessage
    extends java.lang.Object
    This class represents a translated message.
    • Constructor Summary

      Constructors 
      Constructor Description
      TranslatedMessage​(int nr, java.lang.String insert, com.uc4.translate.Message translator)
      Constructs a ActivationMessage.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getInsert()
      Returns the insert of this message.
      int getNumber()
      Returns the number of this message.
      java.lang.String getText()
      Returns the translated message text.
      char getType()
      Returns the type of the message.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • TranslatedMessage

        public TranslatedMessage​(int nr,
                                 java.lang.String insert,
                                 com.uc4.translate.Message translator)
        Constructs a ActivationMessage.
        Parameters:
        nr - Message number
        insert - Message insert
        translator - translator
    • Method Detail

      • getInsert

        public java.lang.String getInsert()
        Returns the insert of this message.
        Returns:
        insert
      • getText

        public java.lang.String getText()
        Returns the translated message text. The message is translated using the logon language.
        Returns:
        text
      • getNumber

        public int getNumber()
        Returns the number of this message.
        Returns:
        number
      • getType

        public char getType()
        Returns the type of the message.
        • I ... Information
        • E ... Error
        • W ... Warning
        Returns:
        type
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object