| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpl.edu.agh.cast.importer.base.parser.ImportParser
public class ImportParser
Simple universal parser implementation.
| Constructor Summary | |
|---|---|
ImportParser(List<IAnalyzer> importAnalyzers)
The default constructor.  | 
|
| Method Summary | |
|---|---|
 void | 
changeRowValueAfterParsing(TabularData parsedData,
                           ErrorsLog errorsLog,
                           DataRow row,
                           int index,
                           String value)
Changes token value in input row.  | 
 ImportParser | 
createCopy()
Create parser copy which contains copies of all analyzers.  | 
 boolean | 
equals(Object obj)
 | 
 List<IAnalyzer> | 
getAnalyzers()
 | 
 ErrorsLog | 
getParseErrorsLog()
Retrieves the parsing errors log.  | 
 int | 
hashCode()
 | 
 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.  | 
 void | 
setAnalyzers(List<IAnalyzer> analyzers)
 | 
| Methods inherited from class java.lang.Object | 
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public ImportParser(List<IAnalyzer> importAnalyzers)
importAnalyzers - the import analyzers| Method Detail | 
|---|
public List<TabularData> parse(List<RawTabularData> rawTabularDatas,
                               org.eclipse.core.runtime.IProgressMonitor monitor)
parse in interface IImportParserrawTabularDatas - the raw tabular data to parsemonitor - the progress monitor for the parse operation
pl.edu.agh.cast.importer.base.parser.IImportParser#parse(java.util.List)
public void changeRowValueAfterParsing(TabularData parsedData,
                                       ErrorsLog errorsLog,
                                       DataRow row,
                                       int index,
                                       String value)
row - input rowindex - token indexvalue - token new valuepublic ErrorsLog getParseErrorsLog()
getParseErrorsLog in interface IImportParserIImportParser.getParseErrorsLog()public boolean isComplete()
isComplete in interface IImportParsertrue if all analyzers are configuredIImportParser.isComplete()public ImportParser createCopy()
createCopy in interface IImportParserIImportParser.createCopy()public void setAnalyzers(List<IAnalyzer> analyzers)
public List<IAnalyzer> getAnalyzers()
public boolean equals(Object obj)
equals in class Objectjava.lang.Object#equals()public int hashCode()
hashCode in class ObjectObject.hashCode()
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||