org.keridwen.modelling.reporting.io
Class PlainTextReportGenerator

java.lang.Object
  extended by org.keridwen.modelling.reporting.io.PlainTextReportGenerator
All Implemented Interfaces:
ReportGenerator

public class PlainTextReportGenerator
extends Object
implements ReportGenerator

Author:
pierre

Constructor Summary
PlainTextReportGenerator(File file)
          Generates a plain text report.
PlainTextReportGenerator(String filename, String directory)
          Generates a plain text report.
 
Method Summary
 File generate(Report report)
          Generates the report.
 String getDirectory()
          directory path for output file
 File getFile()
          get output file
 String getFilename()
          name of output file
 void setFile(File file)
          directly set file
 void setFile(String filename, String directory)
          Set output file using name & directory path
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlainTextReportGenerator

public PlainTextReportGenerator(String filename,
                                String directory)
Generates a plain text report. With links to images.

Parameters:
filename - of the report file.
directory - to create file to (null or empty if no directory).

PlainTextReportGenerator

public PlainTextReportGenerator(File file)
Generates a plain text report. With links to images.

Parameters:
file -
Method Detail

generate

public File generate(Report report)
Description copied from interface: ReportGenerator
Generates the report.

Specified by:
generate in interface ReportGenerator
Parameters:
report - report object to generate

getFilename

public String getFilename()
Description copied from interface: ReportGenerator
name of output file

Specified by:
getFilename in interface ReportGenerator
Returns:
the filename

getDirectory

public String getDirectory()
Description copied from interface: ReportGenerator
directory path for output file

Specified by:
getDirectory in interface ReportGenerator
Returns:
the directory

getFile

public File getFile()
Description copied from interface: ReportGenerator
get output file

Specified by:
getFile in interface ReportGenerator
Returns:
the outputFile

setFile

public void setFile(File file)
directly set file

Specified by:
setFile in interface ReportGenerator
Parameters:
file -

setFile

public void setFile(String filename,
                    String directory)
Set output file using name & directory path

Specified by:
setFile in interface ReportGenerator
Parameters:
filename -


Copyright © 2012-2013 Artenum. All Rights Reserved.