public class Reporter
extends java.lang.Object
notice(String), progress(String) and error(String,
String, String). Supports collecting and reporting collected data, setQuiet(boolean) mode, reportJson() and one level of verbisity: setVerboseMode(boolean).| Constructor and Description |
|---|
Reporter() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
console(java.lang.String text)
print to console only, does notthing ing queit mode.
|
void |
error(java.lang.String code,
java.lang.String object,
java.lang.String text)
Report error.
|
java.util.List<Binder> |
getErrors() |
java.lang.String |
getMessage(int smartIndex) |
boolean |
isQuiet()
|
boolean |
isVerboseMode() |
void |
message(java.lang.String text)
message will be shown immediately or buffered and returned later in json mode.
|
void |
newLine()
Outputs newline on the console only (does nothing in quiet more).
|
void |
notice(java.lang.String text)
Message to show in the console mode (non json mode).
|
void |
progress(java.lang.String text) |
Binder |
report()
Get collected report as a Binder object.
|
java.lang.String |
reportJson()
Get collected report as JSON string
|
void |
setQuiet(boolean quiet)
Set quiet mode: all information is only collected.
|
void |
setVerboseMode(boolean verboseMode) |
void |
verbose(java.lang.String text) |
void |
warning(java.lang.String msg) |
public java.util.List<Binder> getErrors()
public boolean isQuiet()
public void setQuiet(boolean quiet)
report() or
reportJson(). If the work is not finished, consider clear() before collecting more data.
By default, reporter collects data and print itout messages to the stdout.
quiet - public void notice(java.lang.String text)
text - public void progress(java.lang.String text)
public void verbose(java.lang.String text)
public void message(java.lang.String text)
text - public void error(java.lang.String code,
java.lang.String object,
java.lang.String text)
code - object - text - public void warning(java.lang.String msg)
public Binder report()
public java.lang.String reportJson()
public java.lang.String getMessage(int smartIndex)
public void clear()
public boolean isVerboseMode()
public void setVerboseMode(boolean verboseMode)
public void newLine()
public void console(java.lang.String text)
text -