gov.nih.nci.caarray.services.fileparse2.parsers
Class DataSetMapper

java.lang.Object
  extended by gov.nih.nci.caarray.services.fileparse2.parsers.DataSetMapper
Direct Known Subclasses:
ArrayDesignDataSetMapper

public class DataSetMapper
extends java.lang.Object

This class glues the mappings of headers and data table for a data file structured as a simple list of header records and data rows to the file's and file header's parsers.

Author:
TranP

Constructor Summary
DataSetMapper()
           
 
Method Summary
 DataHeaderMap getDataHeaderMap()
           
 DataTableMap getDataTableMap()
           
 BaseMicroarrayFileHeaderParser getFileHeaderParser()
          Returns the optionally configured parser for parsing a file's header.
 BaseMicroarrayFileParser getFileParser()
           
 void setDataHeaderMap(DataHeaderMap dataHeaderMap)
           
 void setDataTableMap(DataTableMap dataTableMap)
           
 void setFileHeaderParserFactory(org.springframework.aop.target.AbstractBeanFactoryBasedTargetSource fileHeaderParserFactory)
           
 void setFileParserFactory(org.springframework.aop.target.AbstractBeanFactoryBasedTargetSource fileParserFactory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataSetMapper

public DataSetMapper()
Method Detail

getDataHeaderMap

public DataHeaderMap getDataHeaderMap()
Returns:
Returns the dataHeaderMap.

setDataHeaderMap

public void setDataHeaderMap(DataHeaderMap dataHeaderMap)
Parameters:
dataHeaderMap - The dataHeaderMap to set.

getDataTableMap

public DataTableMap getDataTableMap()
Returns:
Returns the dataTableMap.

setDataTableMap

public void setDataTableMap(DataTableMap dataTableMap)
Parameters:
dataTableMap - The dataTableMap to set.

getFileParser

public BaseMicroarrayFileParser getFileParser()
                                       throws java.lang.Exception
Throws:
java.lang.Exception

getFileHeaderParser

public BaseMicroarrayFileHeaderParser getFileHeaderParser()
                                                   throws java.lang.Exception
Returns the optionally configured parser for parsing a file's header.

Returns:
null if no parser factory is not specified in BeanFactory.
Throws:
java.lang.Exception

setFileHeaderParserFactory

public void setFileHeaderParserFactory(org.springframework.aop.target.AbstractBeanFactoryBasedTargetSource fileHeaderParserFactory)
Parameters:
fileHeaderParserFactory - The fileHeaderParserFactory to set.

setFileParserFactory

public void setFileParserFactory(org.springframework.aop.target.AbstractBeanFactoryBasedTargetSource fileParserFactory)
Parameters:
fileParserFactory - The fileParserFactory to set.