ch.elca.dependency.report
Class ReportManager

java.lang.Object
  |
  +--ch.elca.dependency.report.ReportManager

public class ReportManager
extends java.lang.Object

ReportManager used as an intermediary to create and manage Reports on the analyzed Project.

Version:
1.0-beta
Author:
Pawel Kowalski
See Also:
Report, DependencyModel

Constructor Summary
ReportManager()
           
 
Method Summary
static Report createReport(DependencyModel dependencyModel)
          Create a Report on the specified RawModel and DependencyModel.
static Report createReport(java.lang.String reportConfig, DependencyModel dependencyModel)
          Create a Report on the specified RawModel and DependencyModel.
static java.lang.Class[] getAvailableFormatters()
          import ch.elca.dependency.core.Filter; Returns all available Formatter classes that can be used to format a Report.
static java.lang.Class[] getAvailableReportInfos()
          Returns all available ReportInfo classes that can be used to build a Report.
static void performReporting(DependencyContext dependencyContext)
          Perform reporting accordingly to the settings provided within the Hashtable argument.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReportManager

public ReportManager()
Method Detail

createReport

public static Report createReport(DependencyModel dependencyModel)
                           throws ReportException
Create a Report on the specified RawModel and DependencyModel.

Returns:
a Report value
Throws:
ReportException - if an error occurs

createReport

public static Report createReport(java.lang.String reportConfig,
                                  DependencyModel dependencyModel)
                           throws ReportException
Create a Report on the specified RawModel and DependencyModel.

Parameters:
reportConfig - Filename of the Report config File
Returns:
a Report value
Throws:
ReportException - if an error occurs

performReporting

public static void performReporting(DependencyContext dependencyContext)
                             throws ReportException
Perform reporting accordingly to the settings provided within the Hashtable argument. This includes: creating an Analyzer, applying filters, choosing UserLayer, creating a Report and outputting the created Report.

Throws:
ReportException - if an error occurs

getAvailableReportInfos

public static java.lang.Class[] getAvailableReportInfos()
Returns all available ReportInfo classes that can be used to build a Report.

Returns:
a ReportInfo[] value

getAvailableFormatters

public static java.lang.Class[] getAvailableFormatters()
import ch.elca.dependency.core.Filter; Returns all available Formatter classes that can be used to format a Report.

Returns:
a Class[] value


Copyright © 2003 ELCA Informatique SA. All Rights Reserved.