Package com.evolveum.midpoint.ninja.util
Class ConsoleFormat
- java.lang.Object
-
- com.evolveum.midpoint.ninja.util.ConsoleFormat
-
public final class ConsoleFormat extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classConsoleFormat.Color
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static @Nullable StringformatActionStartMessage(Action action)static StringformatCommand(String message)static StringformatInputPrompt()static StringformatLogMessage(LogLevel level, String msg)static StringformatMessage(String message, ConsoleFormat.Color color)static StringformatMessageWithErrorParameters(String message, Object... parameters)static StringformatMessageWithInfoParameters(String message, Object... parameters)static StringformatMessageWithParameters(String message, Object[] parameters, ConsoleFormat.Color level)static StringformatMessageWithWarningParameters(String message, Object... parameters)static StringformatSuccessMessage(String message)static booleanisBatchMode()static StringrewriteConsoleLine(String newLine)Technically removes two lines, since adds new line at the end of the messagestatic voidsetBatchMode(boolean batchMode)
-
-
-
Method Detail
-
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)
-
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)
-
formatMessage
public static String formatMessage(String message, ConsoleFormat.Color color)
-
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()
-
-