T
- the message typepublic class DefaultReporter<T extends Message> extends AbstractReporter<T>
Modifier and Type | Field and Description |
---|---|
static de.cs3d.util.logging.ALogger |
log
The logger
|
Constructor and Description |
---|
DefaultReporter(String taskName,
Class<T> messageType,
boolean doLog)
Create an empty report.
|
Modifier and Type | Method and Description |
---|---|
void |
error(T message)
Adds an error to the report.
|
Collection<T> |
getErrors()
Get the error messages
|
Collection<T> |
getInfos()
Get the info messages
|
Collection<T> |
getWarnings()
Get the warning messages
|
void |
info(T message)
Adds an info to the report.
|
void |
warn(T message)
Adds a warning to the report.
|
getFailSummary, getMessageType, getStartTime, getSuccessSummary, getSummary, getTaskName, getTimestamp, isSuccess, setStartTime, setSuccess, setSummary, setTimestamp, toString
public DefaultReporter(String taskName, Class<T> messageType, boolean doLog)
AbstractReporter.setSuccess(boolean)
nonetheless to update the
timestamp after the task has finished.taskName
- the name of the task the report is related tomessageType
- the message typedoLog
- if added messages shall also be logged using ALogger
public void warn(T message)
message
- the warning messagepublic void error(T message)
message
- the error messagepublic void info(T message)
ReportLog
message
- the info messageReportLog.info(eu.esdihumboldt.hale.common.core.report.Message)
public Collection<T> getErrors()
Report
Report.getErrors()
public Collection<T> getWarnings()
Report
Report.getWarnings()
public Collection<T> getInfos()
Report
Report.getInfos()
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a