public class ConsoleHelper extends Object implements Console
Console.MessageType
Constructor and Description |
---|
ConsoleHelper(Console console) |
Modifier and Type | Method and Description |
---|---|
void |
debug(Element element,
String message) |
void |
debug(String message) |
void |
error(Element element,
String message) |
void |
error(String message) |
Console.MessageType |
getVerbosity() |
void |
info(Element element,
String message) |
void |
info(String message) |
boolean |
isShowing(Console.MessageType messageType) |
boolean |
isVerbose() |
static String |
prependElementLocation(Element element,
String message) |
void |
setVerbosity(Console.MessageType verbosity) |
void |
showMessage(String message,
Console.MessageType messageType)
Show specified message to user.
|
void |
verbose(Element element,
String message) |
void |
verbose(String message) |
void |
warning(Element element,
String message) |
void |
warning(String message) |
public final Console console
public ConsoleHelper(Console console)
public void setVerbosity(Console.MessageType verbosity)
public Console.MessageType getVerbosity()
public boolean isVerbose()
public void error(String message)
public void warning(String message)
public void info(String message)
public void verbose(String message)
public void debug(String message)
public boolean isShowing(Console.MessageType messageType)
public void showMessage(String message, Console.MessageType messageType)
Console
showMessage
in interface Console
message
- a possibly multi-line messagemessageType
- type of message: Console.MessageType.INFO
, Console.MessageType.WARNING
, Console.MessageType.ERROR
or Console.MessageType.DEBUG
.