org.keridwen.modelling.reporting.io
Class ODFReportGenerator

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

public class ODFReportGenerator
extends Object
implements ReportGenerator

Author:
pierre

Constructor Summary
ODFReportGenerator(File file)
          Generates an open office odf report.
ODFReportGenerator(String filename, String directory)
          Generates an open office odf 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

ODFReportGenerator

public ODFReportGenerator(String filename,
                          String directory)
Generates an open office odf report.

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

ODFReportGenerator

public ODFReportGenerator(File file)
Generates an open office odf report.

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.