|
||||||||||
| 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.RenameSpreadSheetColumn
public class RenameSpreadSheetColumn
Renames a single column in a spreadsheet.
Valid options are:-D <int> (property: debugLevel) The greater the number the more additional info the scheme may output to the console (0 = off). default: 0 minimum: 0
-column <adams.core.Index> (property: column) The index of the column to rename; An index is a number starting with 1; the following placeholders can be used as well: first, second, third, last _2, last_1, last default: first
-new-name <java.lang.String> (property: newName) The new name of the column. default: Blah
| Field Summary | |
|---|---|
protected Index |
m_Column
the column to rename. |
protected String |
m_NewName
the new name for the column. |
| 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 | |
|---|---|
RenameSpreadSheetColumn()
|
|
| Method Summary | |
|---|---|
String |
columnTipText()
Returns the tip text for this property. |
protected SpreadSheet |
convert(SpreadSheet input)
Returns a string describing the object. |
void |
defineOptions()
Adds options to the internal list of options. |
Index |
getColumn()
Returns the index of the column to rename. |
String |
getNewName()
Returns the new name for the column. |
String |
globalInfo()
Returns a string describing the object. |
String |
newNameTipText()
Returns the tip text for this property. |
void |
setColumn(Index value)
Sets the index of the column to rename. |
void |
setNewName(String value)
Sets the new name of the column. |
| 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, 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
protected String m_NewName
| Constructor Detail |
|---|
public RenameSpreadSheetColumn()
| Method Detail |
|---|
public String globalInfo()
globalInfo in class AbstractOptionHandlerpublic void defineOptions()
defineOptions in interface OptionHandlerdefineOptions in class AbstractInPlaceSpreadSheetConversionpublic void setColumn(Index value)
value - the indexpublic Index getColumn()
public String columnTipText()
public void setNewName(String value)
value - the namepublic String getNewName()
public String newNameTipText()
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 | |||||||||