net.objectlab.qalab.parser
Class SingleStat

java.lang.Object
  extended by net.objectlab.qalab.parser.SingleStat

public class SingleStat
extends java.lang.Object

A class to store each result which are stored as part of the FileStat. This class holds the following data; date, no. of errors and the type of reporting

 

Constructor Summary
SingleStat()
           
 
Method Summary
 java.util.Date getDate()
           
 int getStatValue()
           
 java.lang.String getType()
           
 void setDate(java.util.Date date)
           
 void setStatValue(int errors)
           
 void setType(java.lang.String statisticsType)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SingleStat

public SingleStat()
Method Detail

setDate

public final void setDate(java.util.Date date)
Parameters:
date - the date and time of detection of the errors.

getDate

public final java.util.Date getDate()
Returns:
the date and time of detection of the errors.

setStatValue

public final void setStatValue(int errors)
Parameters:
errors - the error count detected.

getStatValue

public final int getStatValue()
Returns:
the error count.

setType

public final void setType(java.lang.String statisticsType)
Parameters:
statisticsType - checkstyle|findbugs|pmd|simian

getType

public final java.lang.String getType()
Returns:
the statistic type

toString

public final java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
a text representation