pl.edu.agh.cast.importer.base.parser
Interface IImportParser

All Known Implementing Classes:
ImportParser

public interface IImportParser

Interface for all classes responsible for syntactic analysis of the data in particular records. The ImportParser is aware of the order, in which tokens should appear, and analyzes them, using an appropriate sequence (a "state machine") of IAnalyzers.

Author:
AGH CAST Team

Method Summary
 IImportParser createCopy()
          Create parser copy which contains copies of all analyzers.
 ErrorsLog getParseErrorsLog()
          Retrieves the parsing errors log.
 boolean isComplete()
          Checks if the parser has configured properly its analyzers.
 List<TabularData> parse(List<RawTabularData> rawTabularDatas, org.eclipse.core.runtime.IProgressMonitor monitor)
          Parse given unanalyzed tabular data.
 

Method Detail

parse

List<TabularData> parse(List<RawTabularData> rawTabularDatas,
                        org.eclipse.core.runtime.IProgressMonitor monitor)
Parse given unanalyzed tabular data.

Parameters:
rawTabularDatas - the raw tabular data to parse
monitor - the progress monitor for the parse operation
Returns:
the list of parsed tabular data objects

getParseErrorsLog

ErrorsLog getParseErrorsLog()
Retrieves the parsing errors log.

Returns:
errors log

isComplete

boolean isComplete()
Checks if the parser has configured properly its analyzers.

Returns:
true if all analyzers are configured

createCopy

IImportParser createCopy()
Create parser copy which contains copies of all analyzers. Note, that nor raw data, nor error logs are not copied.

Returns:
parser copy


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