Venice 0.751beta

nz.org.venice.util
Class Report

java.lang.Object
  extended bynz.org.venice.util.Report

public class Report
extends java.lang.Object

Manages a report or log. The class keeps the report in memory and keeps track of the number of warnings and errors that have been logged.

Author:
Andrew Leppard

Field Summary
static int TRUNCATE_LINE
          The line number where the report is truncated.
 
Constructor Summary
Report()
          Create a new empty report.
 
Method Summary
 void addError(java.lang.String text)
          Add an error message to the report.
 void addMessage(java.lang.String text)
          Add a message to the report.
 void addWarning(java.lang.String text)
          Add a warning message to the report.
 int getErrorCount()
          Get the number of errors logged.
 java.lang.String getText()
          Get the report text.
 int getWarningCount()
          Get the number of warnings logged.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TRUNCATE_LINE

public static int TRUNCATE_LINE
The line number where the report is truncated.

Constructor Detail

Report

public Report()
Create a new empty report.

Method Detail

addMessage

public void addMessage(java.lang.String text)
Add a message to the report.

Parameters:
text - text of message

addWarning

public void addWarning(java.lang.String text)
Add a warning message to the report.

Parameters:
text - text of message

addError

public void addError(java.lang.String text)
Add an error message to the report.

Parameters:
text - text of message

getText

public java.lang.String getText()
Get the report text.

Returns:
text the text of the report

getWarningCount

public int getWarningCount()
Get the number of warnings logged.

Returns:
warning count

getErrorCount

public int getErrorCount()
Get the number of errors logged.

Returns:
error count

Venice 0.751beta