cyvis.core
Class ReportGenerator

java.lang.Object
  extended by cyvis.core.ReportGenerator

public class ReportGenerator
extends Object

Contains utility methods for generating reports based on the filenames specified in Settings.


Constructor Summary
ReportGenerator()
           
 
Method Summary
static boolean generateHTML(ProjectMetric project)
          Generates an HTML report for a ProjectMetric.
static boolean generateText(ProjectMetric project)
          Generates a text report for a ProjectMetric.
static boolean generateXML(ProjectMetric project)
          Generates an XML report for a ProjectMetric.
static void writeFile(String output, File fileName)
          Writes a string to a file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReportGenerator

public ReportGenerator()
Method Detail

generateXML

public static boolean generateXML(ProjectMetric project)
Generates an XML report for a ProjectMetric.

Returns:
true iff the report was successfully created

generateText

public static boolean generateText(ProjectMetric project)
Generates a text report for a ProjectMetric.

Returns:
true iff the report was successfully created

generateHTML

public static boolean generateHTML(ProjectMetric project)
Generates an HTML report for a ProjectMetric.

Returns:
true iff the report was successfully created

writeFile

public static void writeFile(String output,
                             File fileName)
                      throws IOException
Writes a string to a file.

Throws:
IOException