public class DefaultTransformationReporter extends AbstractReporter<TransformationMessage> implements TransformationReport, TransformationReporter
Modifier and Type | Class and Description |
---|---|
class |
DefaultTransformationReporter.TMessageKey
Transformation message key that decides on message equality.
|
class |
DefaultTransformationReporter.TMessages
Organizes transformation messages.
|
Constructor and Description |
---|
DefaultTransformationReporter(String taskName,
boolean doLog)
Create an empty report.
|
Modifier and Type | Method and Description |
---|---|
void |
error(TransformationMessage message)
Adds an error to the report.
|
Collection<TransformationMessage> |
getErrors()
Get the error messages
|
Collection<TransformationMessage> |
getInfos()
Get the info messages
|
Collection<TransformationMessage> |
getWarnings()
Get the warning messages
|
void |
info(TransformationMessage message)
Adds an info to the report.
|
void |
setSuccess(boolean success)
Set if the task was successful.
|
void |
warn(TransformationMessage message)
Adds a warning to the report.
|
getFailSummary, getMessageType, getStartTime, getSuccessSummary, getSummary, getTaskName, getTimestamp, isSuccess, setStartTime, setSummary, setTimestamp, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
setStartTime, setSummary, setTimestamp
getMessageType, getStartTime, getSummary, getTaskName, getTimestamp, isSuccess
public DefaultTransformationReporter(String taskName, boolean doLog)
setSuccess(boolean)
nonetheless to update the
timestamp after the task has finished.taskName
- the name of the task the report is related todoLog
- if added messages shall also be logged using ALogger
public void warn(TransformationMessage message)
ReportLog
warn
in interface ReportLog<TransformationMessage>
message
- the warning messagepublic void error(TransformationMessage message)
ReportLog
error
in interface ReportLog<TransformationMessage>
message
- the error messagepublic void info(TransformationMessage message)
ReportLog
info
in interface ReportLog<TransformationMessage>
message
- the info messagepublic Collection<TransformationMessage> getWarnings()
Report
getWarnings
in interface Report<TransformationMessage>
public Collection<TransformationMessage> getErrors()
Report
getErrors
in interface Report<TransformationMessage>
public Collection<TransformationMessage> getInfos()
Report
getInfos
in interface Report<TransformationMessage>
public void setSuccess(boolean success)
Reporter
setSuccess
in interface Reporter<TransformationMessage>
setSuccess
in class AbstractReporter<TransformationMessage>
success
- if the task was successfulReporter.setSuccess(boolean)
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a