Package adams.data.featureconverter
Class SpreadSheet
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.data.featureconverter.AbstractFeatureConverter<SpreadSheet,Row>
-
- adams.data.featureconverter.SpreadSheet
-
- All Implemented Interfaces:
Destroyable,GlobalInfoSupporter,LoggingLevelHandler,LoggingSupporter,OptionHandler,QuickInfoSupporter,SizeOfHandler,DataRowTypeHandler,SpreadSheetTypeHandler,Serializable
- Direct Known Subclasses:
Dataset
public class SpreadSheet extends AbstractFeatureConverter<SpreadSheet,Row> implements SpreadSheetTypeHandler
Generates features in spreadsheet format.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected DataRowm_DataRowTypethe data row type to use.protected SpreadSheetm_SpreadSheetTypethe type of spreadsheet to use.-
Fields inherited from class adams.data.featureconverter.AbstractFeatureConverter
m_Dataset, m_Header, m_HeaderDefinition
-
Fields inherited from class adams.core.option.AbstractOptionHandler
m_OptionManager
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description SpreadSheet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringdataRowTypeTipText()Returns the tip text for this property.voiddefineOptions()Adds options to the internal list of options.protected SpreadSheetdoGenerateHeader(HeaderDefinition header)Performs the actual generation of the header data structure using the supplied header definition.protected RowdoGenerateRow(List<Object> data)Performs the actual generation of a row from the raw data.DataRowgetDataRowType()Returns the type of data row to use.ClassgetDatasetFormat()Returns the class of the dataset that the converter generates.protected DataRowgetDefaultDataRowType()Returns the default row type.protected SpreadSheetgetDefaultSpreadSheetType()Returns the default spreadsheet to use.ClassgetRowFormat()Returns the class of the row that the converter generates.SpreadSheetgetSpreadSheetType()Returns the type of spreadsheet to use.StringglobalInfo()Returns a string describing the object.voidsetDataRowType(DataRow value)Sets the type of data row to use.voidsetSpreadSheetType(SpreadSheet value)Sets the type of spreadsheet to use.StringspreadSheetTypeTipText()Returns the tip text for this property.-
Methods inherited from class adams.data.featureconverter.AbstractFeatureConverter
datasetTipText, generateHeader, generateRow, getDataset, getHeader, getHeaderDefinition, getQuickInfo, isInitialized, reset, setDataset
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, initialize, loggingLevelTipText, newOptionManager, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
-
-
-
Field Detail
-
m_DataRowType
protected DataRow m_DataRowType
the data row type to use.
-
m_SpreadSheetType
protected SpreadSheet m_SpreadSheetType
the type of spreadsheet to use.
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfoin interfaceGlobalInfoSupporter- Specified by:
globalInfoin classAbstractOptionHandler- Returns:
- a description suitable for displaying in the gui
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptionsin interfaceOptionHandler- Overrides:
defineOptionsin classAbstractFeatureConverter<SpreadSheet,Row>
-
getDefaultDataRowType
protected DataRow getDefaultDataRowType()
Returns the default row type.- Returns:
- the default
-
setDataRowType
public void setDataRowType(DataRow value)
Sets the type of data row to use.- Specified by:
setDataRowTypein interfaceDataRowTypeHandler- Parameters:
value- the type
-
getDataRowType
public DataRow getDataRowType()
Returns the type of data row to use.- Specified by:
getDataRowTypein interfaceDataRowTypeHandler- Returns:
- the type
-
dataRowTypeTipText
public String dataRowTypeTipText()
Returns the tip text for this property.- Specified by:
dataRowTypeTipTextin interfaceDataRowTypeHandler- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
getDefaultSpreadSheetType
protected SpreadSheet getDefaultSpreadSheetType()
Returns the default spreadsheet to use.- Returns:
- the spreadsheet
-
setSpreadSheetType
public void setSpreadSheetType(SpreadSheet value)
Sets the type of spreadsheet to use.- Specified by:
setSpreadSheetTypein interfaceSpreadSheetTypeHandler- Parameters:
value- the type
-
getSpreadSheetType
public SpreadSheet getSpreadSheetType()
Returns the type of spreadsheet to use.- Specified by:
getSpreadSheetTypein interfaceSpreadSheetTypeHandler- Returns:
- the type
-
spreadSheetTypeTipText
public String spreadSheetTypeTipText()
Returns the tip text for this property.- Specified by:
spreadSheetTypeTipTextin interfaceSpreadSheetTypeHandler- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
getDatasetFormat
public Class getDatasetFormat()
Returns the class of the dataset that the converter generates.- Specified by:
getDatasetFormatin classAbstractFeatureConverter<SpreadSheet,Row>- Returns:
- the format
-
getRowFormat
public Class getRowFormat()
Returns the class of the row that the converter generates.- Specified by:
getRowFormatin classAbstractFeatureConverter<SpreadSheet,Row>- Returns:
- the format
-
doGenerateHeader
protected SpreadSheet doGenerateHeader(HeaderDefinition header)
Performs the actual generation of the header data structure using the supplied header definition.- Specified by:
doGenerateHeaderin classAbstractFeatureConverter<SpreadSheet,Row>- Parameters:
header- the header definition- Returns:
- the dataset structure
-
doGenerateRow
protected Row doGenerateRow(List<Object> data)
Performs the actual generation of a row from the raw data.- Specified by:
doGenerateRowin classAbstractFeatureConverter<SpreadSheet,Row>- Parameters:
data- the data of the row, elements can be null (= missing)- Returns:
- the dataset structure
-
-