|
||||||||||
| 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.SpreadSheetSplitColumn
public class SpreadSheetSplitColumn
Splits the string representation of the cells of a column into multiple columns using a regular expression.
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 column to split. default: first
-expression <java.lang.String> (property: expression) The regular expression used for splitting the column; \t\n\r\b\f get automatically converted into their character counterparts. default: \\t
-delimiter <DISCARD|APPEND|PREPEND> (property: delimiter) Defines what to do with the delimiters (= expression). default: DISCARD
| Field Summary | |
|---|---|
protected SpreadSheetColumnIndex |
m_Column
the column to process. |
protected StringSplit.Delimiter |
m_Delimiter
what to do with the delimiters. |
protected BaseRegExp |
m_Expression
the regular expression to use for splitting the string. |
| Fields inherited from class adams.data.conversion.AbstractConversion |
|---|
m_Input, m_Output, m_Owner, m_Stopped |
| Fields inherited from class adams.core.option.AbstractOptionHandler |
|---|
m_DebugLevel, m_OptionManager |
| Constructor Summary | |
|---|---|
SpreadSheetSplitColumn()
|
|
| 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. |
String |
delimiterTipText()
Returns the tip text for this property. |
String |
expressionTipText()
Returns the tip text for this property. |
SpreadSheetColumnIndex |
getColumn()
Returns the column to split. |
StringSplit.Delimiter |
getDelimiter()
Returns what to do with the delimiter (= expression). |
BaseRegExp |
getExpression()
Returns the regular expression for splitting the string. |
String |
getQuickInfo()
Returns a quick info about the actor, which will be displayed in the GUI. |
String |
globalInfo()
Returns a string describing the object. |
void |
setColumn(SpreadSheetColumnIndex value)
Sets the column to split. |
void |
setDelimiter(StringSplit.Delimiter value)
Sets what to do with the delimiter (= expression). |
void |
setExpression(BaseRegExp value)
Sets the regular expression used for splitting the string. |
| 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, reset, setInput, setOwner, shallowCopy, shallowCopy, stopExecution |
| 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 SpreadSheetColumnIndex m_Column
protected BaseRegExp m_Expression
protected StringSplit.Delimiter m_Delimiter
| Constructor Detail |
|---|
public SpreadSheetSplitColumn()
| Method Detail |
|---|
public String globalInfo()
globalInfo in class AbstractOptionHandlerpublic void defineOptions()
defineOptions in interface OptionHandlerdefineOptions in class AbstractOptionHandlerpublic String getQuickInfo()
getQuickInfo in interface QuickInfoSupportergetQuickInfo in class AbstractConversionpublic void setColumn(SpreadSheetColumnIndex value)
value - the indexpublic SpreadSheetColumnIndex getColumn()
public String columnTipText()
public void setExpression(BaseRegExp value)
value - the expressionpublic BaseRegExp getExpression()
public String expressionTipText()
public void setDelimiter(StringSplit.Delimiter value)
value - the actionpublic StringSplit.Delimiter getDelimiter()
public String delimiterTipText()
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 | |||||||||