ru.onego.industrial.catalog.reports
Class TextReport

java.lang.Object
  extended by java.util.Observable
      extended by ru.onego.industrial.catalog.reports.AbstractReport
          extended by ru.onego.industrial.catalog.reports.TextReport
All Implemented Interfaces:
Report

public final class TextReport
extends AbstractReport

Store report in the file of text format.

Version:
1.0
Author:
Lev Levin

Constructor Summary
TextReport()
           
 
Method Summary
 void createReport(java.lang.String filename)
          Creates new report and stores in the file specified by the filename.
 java.lang.String getName()
          Returns report name.
 java.lang.String getStdFileExt()
          Return extension of the report file.
 java.lang.String getStdFilenameExt()
           
 void setCatalog(Catalog catalog)
          Sets catalog to be shown with help of this report.
 
Methods inherited from class ru.onego.industrial.catalog.reports.AbstractReport
getCatalog
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextReport

public TextReport()
Method Detail

setCatalog

public void setCatalog(Catalog catalog)
Description copied from class: AbstractReport
Sets catalog to be shown with help of this report.

Specified by:
setCatalog in interface Report
Overrides:
setCatalog in class AbstractReport
Parameters:
catalog - Catalog object to be shown

createReport

public void createReport(java.lang.String filename)
                  throws ru.onego.industrial.catalog.reports.ReportException
Creates new report and stores in the file specified by the filename.

Specified by:
createReport in interface Report
Specified by:
createReport in class AbstractReport
Parameters:
filename - Name of the file storing text report
Throws:
ReportException

getName

public java.lang.String getName()
Returns report name.

Specified by:
getName in interface Report
Specified by:
getName in class AbstractReport
Returns:
Name of the report

getStdFilenameExt

public java.lang.String getStdFilenameExt()

getStdFileExt

public java.lang.String getStdFileExt()
Return extension of the report file.

Specified by:
getStdFileExt in interface Report
Specified by:
getStdFileExt in class AbstractReport
Returns:
String representing extension