ch.tatool.app.export
Class FileDataExporter

java.lang.Object
  extended by ch.tatool.app.export.DataExporterImpl
      extended by ch.tatool.app.export.FileDataExporter
All Implemented Interfaces:
DataExporter

public class FileDataExporter
extends DataExporterImpl

Exports module data into a directory chosen by the uesr.

Author:
Michael Ruflin

Field Summary
 
Fields inherited from class ch.tatool.app.export.DataExporterImpl
dataService
 
Constructor Summary
FileDataExporter()
           
 
Method Summary
 String exportData(Component parentFrame, Module module, int fromSessionIndex, DataExporterError exporterError)
          Exports the module data to a file
 String getExporterName()
          Get the action name
static String getExtension(File f)
           
 String getPath()
           
 boolean isRelativeToHome()
           
static String removeSpecialCharacters(String str)
           
 void setPath(String path)
           
 void setRelativeToHome(boolean relativeToHome)
           
 
Methods inherited from class ch.tatool.app.export.DataExporterImpl
getAutoExport, getDataService, getId, getIncrementalExport, isAutoExport, isIncrementalExport, setAutoExport, setDataService, setId, setIncrementalExport
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileDataExporter

public FileDataExporter()
Method Detail

exportData

public String exportData(Component parentFrame,
                         Module module,
                         int fromSessionIndex,
                         DataExporterError exporterError)
Exports the module data to a file

Specified by:
exportData in interface DataExporter
Overrides:
exportData in class DataExporterImpl

removeSpecialCharacters

public static String removeSpecialCharacters(String str)

getExtension

public static String getExtension(File f)

getPath

public String getPath()

setPath

public void setPath(String path)

isRelativeToHome

public boolean isRelativeToHome()

setRelativeToHome

public void setRelativeToHome(boolean relativeToHome)

getExporterName

public String getExporterName()
Get the action name

Specified by:
getExporterName in interface DataExporter
Overrides:
getExporterName in class DataExporterImpl


Copyright © 2012. All Rights Reserved.