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 class
ConsoleFormat.Color
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static @Nullable String
formatActionStartMessage(Action action)
static String
formatCommand(String message)
static String
formatInputPrompt()
static String
formatLogMessage(LogLevel level, String msg)
static String
formatMessage(String message, ConsoleFormat.Color color)
static String
formatMessageWithErrorParameters(String message, Object... parameters)
static String
formatMessageWithInfoParameters(String message, Object... parameters)
static String
formatMessageWithParameters(String message, Object[] parameters, ConsoleFormat.Color level)
static String
formatMessageWithWarningParameters(String message, Object... parameters)
static String
formatSuccessMessage(String message)
static boolean
isBatchMode()
static String
rewriteConsoleLine(String newLine)
Technically removes two lines, since adds new line at the end of the messagestatic void
setBatchMode(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()
-
-