ru.onego.industrial.catalog.reports
Interface Report

All Known Implementing Classes:
AbstractReport, CSVReport, ExcelReport, TextReport

public interface Report

Every report system should implement this interface.

Version:
1.0
Author:
Lev Levin

Method Summary
 void createReport(java.lang.String filename)
          Core method of creating report.
 java.lang.String getName()
          Returns name of this report.
 java.lang.String getStdFileExt()
          Returns extension for filename of the report.
 void setCatalog(Catalog catalog)
          Sets catalog which should be reported.
 

Method Detail

setCatalog

void setCatalog(Catalog catalog)
Sets catalog which should be reported.

Parameters:
catalog - Catalog to be reported

createReport

void createReport(java.lang.String filename)
                  throws ru.onego.industrial.catalog.reports.ReportException
Core method of creating report.

Parameters:
filename - Name of file this report should be written to.
Throws:
ReportException - Thrown if any error occur while creating report

getName

java.lang.String getName()
Returns name of this report. This name if shown in Info panel of the interface dialog.

Returns:
Name of the report

getStdFileExt

java.lang.String getStdFileExt()
Returns extension for filename of the report.

Returns:
File extension including "."