com.vladium.emma.report
Class ReportProcessor

java.lang.Object
  extended by com.vladium.emma.Processor
      extended by com.vladium.emma.report.ReportProcessor
All Implemented Interfaces:
IAppErrorCodes

public final class ReportProcessor
extends Processor
implements IAppErrorCodes

Author:
Vlad Roubtsov, (C) 2003

Field Summary
private static java.lang.Class[] EXPECTED_FAILURES
           
private  int m_dataFileCount
           
private  java.io.File[] m_dataPath
           
private  IReportGenerator[] m_reportGenerators
           
private  java.io.File[] m_sourcePath
           
 
Fields inherited from class com.vladium.emma.Processor
m_appName, m_log, m_propertyOverrides
 
Fields inherited from interface com.vladium.emma.IAppErrorCodes
ARGS_IO_FAILURE, CLASS_STAMP_MISMATCH, INSTR_IO_FAILURE, INVALID_COLUMN_NAME, INVALID_PARAMETER_VALUE, MAIN_CLASS_BAD_DELEGATION, MAIN_CLASS_LOAD_FAILURE, MAIN_CLASS_NOT_FOUND, MAIN_METHOD_FAILURE, MAIN_METHOD_NOT_FOUND, OUT_IO_FAILURE, OUT_MKDIR_FAILURE, REPORT_GEN_FAILURE, REPORT_IO_FAILURE, REQUIRED_PARAMETER_MISSING, SECURITY_RESTRICTION, UNEXPECTED_FAILURE
 
Constructor Summary
private ReportProcessor()
           
 
Method Summary
protected  void _run(IProperties toolProperties)
           
static ReportProcessor create()
           
private  void reset()
           
 void setDataPath(java.lang.String[] path)
           
 void setReportTypes(java.lang.String[] types)
           
 void setSourcePath(java.lang.String[] path)
           
protected  void validateState()
           
 
Methods inherited from class com.vladium.emma.Processor
run, setAppName, setPropertyOverrides, setPropertyOverrides
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_dataPath

private java.io.File[] m_dataPath

m_sourcePath

private java.io.File[] m_sourcePath

m_reportGenerators

private IReportGenerator[] m_reportGenerators

m_dataFileCount

private int m_dataFileCount

EXPECTED_FAILURES

private static final java.lang.Class[] EXPECTED_FAILURES
Constructor Detail

ReportProcessor

private ReportProcessor()
Method Detail

create

public static ReportProcessor create()

setDataPath

public final void setDataPath(java.lang.String[] path)
Parameters:
path - [null is equivalent to an empty array]

setSourcePath

public void setSourcePath(java.lang.String[] path)
Parameters:
path - [null is equivalent to no source path]

setReportTypes

public void setReportTypes(java.lang.String[] types)
Parameters:
types - [may not be null]

validateState

protected void validateState()
Overrides:
validateState in class Processor

_run

protected void _run(IProperties toolProperties)
Specified by:
_run in class Processor

reset

private void reset()