Class ViolationReason


  • public class ViolationReason
    extends java.lang.Object
    This class contains information about the reason of the violation.
    • Constructor Summary

      Constructors 
      Constructor Description
      ViolationReason​(int nr, java.lang.String insert, com.uc4.translate.Message translator)
      Constructs a ViolationReason.
    • 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.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • ViolationReason

        public ViolationReason​(int nr,
                               java.lang.String insert,
                               com.uc4.translate.Message translator)
        Constructs a ViolationReason.
        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
      • getNumber

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

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

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