org.afcs.warts.report
Class CellDifferenceReport

java.lang.Object
  extended byorg.afcs.warts.report.CellDifferenceReport

public final class CellDifferenceReport
extends java.lang.Object

The CellDifferenceReport class is responsible for generating reports based on the information contained in a CellDifference instance. The report returned is plain text, so it can be used on the command line and in the GUI.

LICENSE: This code is released to the public domain and may be used for any purpose whatsoever without permission or acknowledgment.

Version:
Last Modified 18 September 2003
Author:
Warren Hedley ( whedley at sdsc dot edu )

Method Summary
static java.lang.String report(CellDifference difference)
          Returns a report on the specified difference in HTML.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

report

public static java.lang.String report(CellDifference difference)
Returns a report on the specified difference in HTML. The contents are wrapped in several block level HTML elements to make sure that, for instance, fixed-width fonts are used where appropriate, but the result will need to be wrapped in an <html> element before being used in a text pane or label.

Parameters:
difference - The difference to report on.
Returns:
A report on the specified difference.
Throws:
java.lang.NullPointerException - If difference is null.