Class ConsoleFormat

java.lang.Object
com.evolveum.midpoint.ninja.util.ConsoleFormat

public final class ConsoleFormat extends Object
  • Method Details

    • setBatchMode

      public static void setBatchMode(boolean batchMode)
    • isBatchMode

      public static boolean isBatchMode()
    • formatActionStartMessage

      @Nullable public static @Nullable String formatActionStartMessage(Action action)
    • formatMessageWithErrorParameters

      public static String formatMessageWithErrorParameters(String message, Object... parameters)
    • formatMessageWithSuccessParameters

      public static String formatMessageWithSuccessParameters(String message, Object... parameters)
    • formatMessageWithWarningParameters

      public static String formatMessageWithWarningParameters(String message, Object... parameters)
    • formatMessageWithInfoParameters

      public static String formatMessageWithInfoParameters(String message, Object... parameters)
    • formatMessageWithParameters

      public static String formatMessageWithParameters(String message, Object[] parameters, ConsoleFormat.Color level)
    • formatSuccessMessage

      public static String formatSuccessMessage(String message)
    • formatMessage

      public static String formatMessage(String message, ConsoleFormat.Color color)
    • formatLogMessage

      public static String formatLogMessage(LogLevel level, String msg)
    • formatCommand

      public static String formatCommand(String message)
    • rewriteConsoleLine

      public static String rewriteConsoleLine(String newLine)
      Technically removes two lines, since adds new line at the end of the message
    • formatInputPrompt

      public static String formatInputPrompt()