|
||||||||||
| 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.MergeSpreadSheetColumns
public class MergeSpreadSheetColumns
Merges two or more columns in a spreadsheet into a single column.
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
-columns <adams.core.Range> (property: columns)
The range of columns to merge into a single one; A range is a comma-separated
list of single 1-based indices or sub-ranges of indices ('start-end'); '
inv(...)' inverts the range '...'; the following placeholders can be used
as well: first, second, third, last_2, last_1, last
default: first-last
-glue <java.lang.String> (property: glue) The 'glue' string to use between two values that get merged. default:
| Field Summary | |
|---|---|
protected Range |
m_Columns
the columns to merge. |
protected String |
m_Glue
the concatenation string to use. |
| 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 | |
|---|---|
MergeSpreadSheetColumns()
|
|
| Method Summary | |
|---|---|
String |
columnsTipText()
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. |
Range |
getColumns()
Returns the range of columns to merge. |
String |
getGlue()
Returns the "glue" to use between two columns. |
String |
globalInfo()
Returns a string describing the object. |
String |
glueTipText()
Returns the tip text for this property. |
void |
setColumns(Range value)
Sets the range of columns to merge. |
void |
setGlue(String value)
Sets the "glue" to use between two columns. |
| 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 Range m_Columns
protected String m_Glue
| Constructor Detail |
|---|
public MergeSpreadSheetColumns()
| Method Detail |
|---|
public String globalInfo()
globalInfo in class AbstractOptionHandlerpublic void defineOptions()
defineOptions in interface OptionHandlerdefineOptions in class AbstractOptionHandlerpublic void setColumns(Range value)
value - the rangepublic Range getColumns()
public String columnsTipText()
public void setGlue(String value)
value - the gluepublic String getGlue()
public String glueTipText()
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 | |||||||||