Class Info

java.lang.Object
fr.formiko.usuel.Info

public class Info extends Object
New info, warning, error class call to print message.
It should replace erreur.java.
Example:
new Info().setType(2).setClassDepth(3).setContent("wrong name").setFix("set to \" \"")
Author:
Hydrolien
  • Field Details

    • type

      private Info.InfoType type
    • content

      private String content
    • fix

      private String fix
    • fatal

      private boolean fatal
    • classDepth

      private int classDepth
  • Constructor Details

    • Info

      public Info()
      Main contructor.
      All variables should be set with setter or will stay at default value.
    • Info

      public Info(String content)
      Secondary contructor.
      Parameters:
      content - content of the Info
  • Method Details

    • setType

      public Info setType(int i)
      Set type from an int.
      0=info, 1=warning, 2=error.
    • setType

      public Info setType(Info.InfoType type)
    • setContent

      public Info setContent(String content)
    • setFix

      public Info setFix(String fix)
    • setFatal

      public Info setFatal(boolean fatal)
    • setClassDepth

      public Info setClassDepth(int classDepth)
      to fix a stats.txt issue with public [...] cla ss [...]
    • print

      public void print()
      Main function that print this.
      Print will be colored & look like this:
      [INFO] $content. Fixed by : $fix