pl.edu.agh.cast.importer.base.converter
Interface IImportConverter

All Known Implementing Classes:
AbstractImportConverter, GeneralImportConverter

public interface IImportConverter

Interface for classes responsible for conversion of tables of objects to data sets, according to an appropriate specified domain model. The IImportConverter also performs semantic verification of the data being converted.

Author:
AGH CAST Team

Method Summary
 List<IDataSet<IDomainElement>> convert(List<TabularData> tabularDatas, org.eclipse.core.runtime.IProgressMonitor monitor)
          Converts tabular data into data sets.
 ErrorsLog getErrorsLog()
          Retrieves the conversion errors log.
 boolean isComplete()
          Checks if the converter has configured properly mandatory rules.
 List<TabularData> preview(List<TabularData> tabularDatas)
          Creates preview of specified tabular data.
 void setImportLoggerData(List<List<IImportLogger>> importLoggers, String importFilePath)
          Sets the import process logger data.
 

Method Detail

convert

List<IDataSet<IDomainElement>> convert(List<TabularData> tabularDatas,
                                       org.eclipse.core.runtime.IProgressMonitor monitor)
Converts tabular data into data sets.

Parameters:
tabularDatas - the tabular data to convert
monitor - the progress monitor for the conversion operation
Returns:
the converted data

preview

List<TabularData> preview(List<TabularData> tabularDatas)
Creates preview of specified tabular data.

Parameters:
tabularDatas - the tabular data to preview
Returns:
the preview in form of tabular data

setImportLoggerData

void setImportLoggerData(List<List<IImportLogger>> importLoggers,
                         String importFilePath)
Sets the import process logger data.

Parameters:
importLoggers - the list of import logger lists for tabular datas
importFilePath - the path to the imported file

getErrorsLog

ErrorsLog getErrorsLog()
Retrieves the conversion errors log.

Returns:
errors log

isComplete

boolean isComplete()
Checks if the converter has configured properly mandatory rules.

Returns:
true if all mandatory rules are configured


Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.