net.objectlab.qalab.parser
Class FileStats

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

public class FileStats
extends java.lang.Object

As part of the up/down movers task, this class contains info about a given file.

 

Constructor Summary
FileStats(java.util.Map types, java.lang.String fileSurveyed, java.lang.String pathToFile, java.util.Date cutoff)
           
 
Method Summary
 void constructXML()
          Construct the XML buffers.
 java.lang.String getDownXmlResult()
           
 java.util.Date getEndDateCutoff()
           
 java.lang.String getFileName()
           
 int getOffsetForLastRun()
           
 java.lang.String getPathToFile()
           
 java.lang.String getUpXmlResult()
           
 void setEndDateCutoff(java.util.Date endDate)
           
 void setOffsetForLastRun(int offsetForLastRun)
           
 void setPathToFile(java.lang.String pathToFile)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileStats

public FileStats(java.util.Map types,
                 java.lang.String fileSurveyed,
                 java.lang.String pathToFile,
                 java.util.Date cutoff)
Parameters:
types - the types surveyed.
fileSurveyed - the file name surveyed.
cutoff - earliest date to take into account.
Method Detail

getFileName

public final java.lang.String getFileName()
Returns:
Return filename of this object.

getUpXmlResult

public final java.lang.String getUpXmlResult()
Returns:
Return the XML entry for UP movers (increased violations).

getDownXmlResult

public final java.lang.String getDownXmlResult()
Returns:
Return the XML entry for DOWN movers (decreased violations).

constructXML

public final void constructXML()
Construct the XML buffers.


setEndDateCutoff

public final void setEndDateCutoff(java.util.Date endDate)
Parameters:
endDate - The endDateCutoff to set.

getEndDateCutoff

public final java.util.Date getEndDateCutoff()
Returns:
Returns the endDateCutoff.

getPathToFile

public final java.lang.String getPathToFile()
Returns:
Returns the pathToFile.

setPathToFile

public final void setPathToFile(java.lang.String pathToFile)
Parameters:
pathToFile - The pathToFile to set.

getOffsetForLastRun

public int getOffsetForLastRun()

setOffsetForLastRun

public void setOffsetForLastRun(int offsetForLastRun)