Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.common.align.transformation.report.impl
Class CellLog

java.lang.Object
  extended by eu.esdihumboldt.hale.common.align.transformation.report.impl.CellLog
All Implemented Interfaces:
TransformationLog, ReportLog<TransformationMessage>

@Immutable
public class CellLog
extends Object
implements TransformationLog

Transformation log for a fixed cell.

Author:
Simon Templer

Constructor Summary
CellLog(ReportLog<TransformationMessage> log, Cell cell)
          Create a transformation log based on the given cell
 
Method Summary
 TransformationMessage createMessage(String message, Throwable throwable)
          Create a message configured with the current cell for use with the log
 void error(TransformationMessage message)
          Adds an error to the report.
 void info(TransformationMessage message)
          Adds an info to the report.
 void warn(TransformationMessage message)
          Adds a warning to the report.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CellLog

public CellLog(ReportLog<TransformationMessage> log,
               Cell cell)
Create a transformation log based on the given cell

Parameters:
log - the transformation message report log to decorate
cell - the cell the transformation messages shall be associated to
Method Detail

warn

public void warn(TransformationMessage message)
Description copied from interface: ReportLog
Adds a warning to the report. If configured accordingly a log message will also be created.

Specified by:
warn in interface ReportLog<TransformationMessage>
Parameters:
message - the warning message
See Also:
ReportLog.warn(Message)

error

public void error(TransformationMessage message)
Description copied from interface: ReportLog
Adds an error to the report. If configured accordingly a log message will also be created.

Specified by:
error in interface ReportLog<TransformationMessage>
Parameters:
message - the error message
See Also:
ReportLog.error(Message)

createMessage

public TransformationMessage createMessage(String message,
                                           Throwable throwable)
Description copied from interface: TransformationLog
Create a message configured with the current cell for use with the log

Specified by:
createMessage in interface TransformationLog
Parameters:
message - the message string
throwable - a throwable associated to the message, may be null
Returns:
the message
See Also:
TransformationLog.createMessage(String, Throwable)

info

public void info(TransformationMessage message)
Description copied from interface: ReportLog
Adds an info to the report. If configured accordingly a log message will also be created.

Specified by:
info in interface ReportLog<TransformationMessage>
Parameters:
message - the info message
See Also:
ReportLog.info(eu.esdihumboldt.hale.common.core.report.Message)

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d