Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.milligan.eccles
Class ReportType  view ReportType download ReportType.java

java.lang.Object
  extended byorg.milligan.eccles.ReportType

public class ReportType
extends java.lang.Object

A report type, name, level, code etc.


Field Summary
private  java.lang.String code
          Code of report type
static int COUNTER_LEVEL
          Level for counters - will not have messages reported but will be counted by the ResultCollator
private  java.lang.String description
          Description of report
static int ERROR_LEVEL
          All levels including this one and above are 'errors' and will be reported to JUnit
private  int level
          Level of report
 
Constructor Summary
ReportType()
           
ReportType(java.lang.String code, java.lang.String description, int level)
           
 
Method Summary
 java.lang.String getCode()
           
 java.lang.String getDescription()
           
 int getLevel()
           
 boolean isAtLeastError()
          Returns true if the level of this object is a least the error level
 void setCode(java.lang.String code)
           
 void setDescription(java.lang.String description)
           
 void setLevel(int level)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

code

private java.lang.String code
Code of report type


level

private int level
Level of report


description

private java.lang.String description
Description of report


COUNTER_LEVEL

public static final int COUNTER_LEVEL
Level for counters - will not have messages reported but will be counted by the ResultCollator

See Also:
Constant Field Values

ERROR_LEVEL

public static final int ERROR_LEVEL
All levels including this one and above are 'errors' and will be reported to JUnit

See Also:
Constant Field Values
Constructor Detail

ReportType

public ReportType(java.lang.String code,
                  java.lang.String description,
                  int level)

ReportType

public ReportType()
Method Detail

isAtLeastError

public boolean isAtLeastError()
Returns true if the level of this object is a least the error level


setCode

public void setCode(java.lang.String code)

getCode

public java.lang.String getCode()

setLevel

public void setLevel(int level)

getLevel

public int getLevel()

setDescription

public void setDescription(java.lang.String description)

getDescription

public java.lang.String getDescription()