|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectadams.core.ConsoleObject
adams.core.option.AbstractOptionHandler
adams.data.conversion.AbstractConversion
adams.data.conversion.AbstractSpreadSheetConversion
adams.data.conversion.AbstractInPlaceSpreadSheetConversion
adams.data.conversion.AbstractSpreadSheetColumnConverter<T>
T - the type of class to convert the cell values topublic abstract class AbstractSpreadSheetColumnConverter<T>
Ancestor for column converter schemes.
| Field Summary | |
|---|---|
protected Index |
m_Column
the column to process. |
| Fields inherited from class adams.data.conversion.AbstractInPlaceSpreadSheetConversion |
|---|
m_NoCopy |
| Fields inherited from class adams.data.conversion.AbstractConversion |
|---|
m_Input, m_Output, m_Owner |
| Fields inherited from class adams.core.option.AbstractOptionHandler |
|---|
m_DebugLevel, m_OptionManager |
| Constructor Summary | |
|---|---|
AbstractSpreadSheetColumnConverter()
|
|
| Method Summary | |
|---|---|
abstract String |
columnTipText()
Returns the tip text for this property. |
protected abstract void |
convert(Cell cellOld,
Cell cellNew)
Converts the cell's content to a new format. |
protected SpreadSheet |
convert(SpreadSheet input)
Generates the new spreadsheet from the input. |
void |
defineOptions()
Adds options to the internal list of options. |
Index |
getColumn()
Returns the column to convert. |
protected void |
preConvert(SpreadSheet input)
Prepares the conversion. |
void |
setColumn(Index value)
Sets the column to convert. |
| Methods inherited from class adams.data.conversion.AbstractInPlaceSpreadSheetConversion |
|---|
getNoCopy, noCopyTipText, setNoCopy |
| Methods inherited from class adams.data.conversion.AbstractSpreadSheetConversion |
|---|
accepts, doConvert, generates |
| Methods inherited from class adams.data.conversion.AbstractConversion |
|---|
checkData, cleanUp, convert, getInput, getOutput, getOwner, getQuickInfo, reset, setInput, setOwner, shallowCopy, shallowCopy |
| Methods inherited from class adams.core.option.AbstractOptionHandler |
|---|
cleanUpOptions, debug, debug, debugLevelTipText, destroy, finishInit, getDebugLevel, getOptionManager, globalInfo, initialize, isDebugOn, newOptionManager, setDebugLevel, toCommandLine, toString |
| Methods inherited from class adams.core.ConsoleObject |
|---|
getDebugging, getSystemErr, getSystemOut, sizeOf |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Index m_Column
| Constructor Detail |
|---|
public AbstractSpreadSheetColumnConverter()
| Method Detail |
|---|
public void defineOptions()
defineOptions in interface OptionHandlerdefineOptions in class AbstractInPlaceSpreadSheetConversionpublic void setColumn(Index value)
value - the indexpublic Index getColumn()
public abstract String columnTipText()
protected void preConvert(SpreadSheet input)
input - the spreadsheet to convert
protected abstract void convert(Cell cellOld,
Cell cellNew)
throws Exception
cellOld - the current cellcellNew - the new cell with the converted content
Exception - if conversion fails
protected SpreadSheet convert(SpreadSheet input)
throws Exception
convert in class AbstractSpreadSheetConversioninput - the incoming spreadsheet
Exception - if conversion fails for some reason
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||