|
||||||||||
| 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.flow.core.AbstractActor
adams.flow.transformer.AbstractTransformer
adams.flow.transformer.AbstractSpreadSheetTransformer
adams.flow.transformer.SpreadSheetCopyColumns
public class SpreadSheetCopyColumns
Copies a range of columns to a specific position in the spreadsheets coming through.
Input/output:-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
-name <java.lang.String> (property: name) The name of the actor. default: SpreadSheetCopyColumns
-annotation <adams.core.base.BaseText> (property: annotations) The annotations to attach to this actor. default:
-skip (property: skip) If set to true, transformation is skipped and the input token is just forwarded as it is.
-stop-flow-on-error (property: stopFlowOnError) If set to true, the flow gets stopped in case this actor encounters an error; useful for critical actors.
-columns <adams.core.Range> (property: columns)
The range of columns to copy; 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
-position <adams.core.Index> (property: position) The position where to insert the column; 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
-after (property: after) If enabled, the column is inserted after the position instead of at the position.
-prefix <java.lang.String> (property: prefix) The prefix to use for the column headers, can be empty. default: Copy-
| Field Summary | |
|---|---|
protected boolean |
m_After
whether to insert after the position instead of at. |
protected SpreadSheetColumnRange |
m_Columns
the range of columns to copy. |
protected SpreadSheetColumnIndex |
m_Position
the position where to insert the copied columns. |
protected String |
m_Prefix
the prefix for the new columns. |
| Fields inherited from class adams.flow.transformer.AbstractTransformer |
|---|
BACKUP_INPUT, BACKUP_OUTPUT, m_InputToken, m_OutputToken |
| Fields inherited from class adams.flow.core.AbstractActor |
|---|
m_Annotations, m_BackupState, m_DetectedObjectVariables, m_DetectedVariables, m_ErrorHandler, m_Executed, m_Executing, m_ExecutionListeningSupporter, m_FullName, m_Headless, m_Name, m_Parent, m_Root, m_ScopeHandler, m_Self, m_Skip, m_StopFlowOnError, m_StopMessage, m_Stopped, m_StorageHandler, m_VariablesUpdated |
| Fields inherited from class adams.core.option.AbstractOptionHandler |
|---|
m_DebugLevel, m_OptionManager |
| Fields inherited from interface adams.flow.core.Actor |
|---|
FILE_EXTENSION, FILE_EXTENSION_GZ |
| Constructor Summary | |
|---|---|
SpreadSheetCopyColumns()
|
|
| Method Summary | |
|---|---|
String |
afterTipText()
Returns the tip text for this property. |
String |
columnsTipText()
Returns the tip text for this property. |
void |
defineOptions()
Adds options to the internal list of options. |
protected String |
doExecute()
Executes the flow item. |
boolean |
getAfter()
Returns whether to insert at or after the position. |
SpreadSheetColumnRange |
getColumns()
Returns the range of columns to copy. |
SpreadSheetColumnIndex |
getPosition()
Returns the position where to insert the string. |
String |
getPrefix()
Returns the prefix to use for the copied column headers. |
String |
getQuickInfo()
Returns a quick info about the actor, which will be displayed in the GUI. |
String |
globalInfo()
Returns a string describing the object. |
protected void |
initialize()
Initializes the members. |
String |
positionTipText()
Returns the tip text for this property. |
String |
prefixTipText()
Returns the tip text for this property. |
void |
setAfter(boolean value)
Sets whether to insert at or after the position. |
void |
setColumns(SpreadSheetColumnRange value)
Sets the range of columns to copy. |
void |
setPosition(SpreadSheetColumnIndex value)
Sets the position where to insert the string. |
void |
setPrefix(String value)
Sets the prefix to use for the copied column headers. |
| Methods inherited from class adams.flow.transformer.AbstractSpreadSheetTransformer |
|---|
accepts, generates |
| Methods inherited from class adams.flow.transformer.AbstractTransformer |
|---|
backupState, execute, hasPendingOutput, input, output, postExecute, reset, restoreState, wrapUp |
| Methods inherited from class adams.core.option.AbstractOptionHandler |
|---|
cleanUpOptions, debug, debugLevelTipText, finishInit, getDebugLevel, getOptionManager, isDebugOn, newOptionManager, setDebugLevel, toCommandLine, toString |
| Methods inherited from class adams.core.ConsoleObject |
|---|
getDebugging, getSystemErr, getSystemOut |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface adams.flow.core.Actor |
|---|
cleanUp, compareTo, debug, destroy, equals, findVariables, getAnnotations, getDefaultName, getDetectedVariables, getErrorHandler, getFlowExecutionListeningSupporter, getFullName, getName, getNextSibling, getParent, getParentComponent, getPreviousSibling, getRoot, getScopeHandler, getSkip, getStopFlowOnError, getStopMessage, getStorageHandler, getVariables, handleError, hasErrorHandler, hasStopMessage, index, isExecuted, isFinished, isHeadless, isStopped, setAnnotations, setErrorHandler, setHeadless, setName, setParent, setSkip, setStopFlowOnError, setUp, setVariables, sizeOf, stopExecution, stopExecution, variableChanged |
| Methods inherited from interface adams.core.AdditionalInformationHandler |
|---|
getAdditionalInformation |
| Methods inherited from interface adams.core.option.OptionHandler |
|---|
cleanUpOptions, getOptionManager |
| Field Detail |
|---|
protected SpreadSheetColumnRange m_Columns
protected SpreadSheetColumnIndex m_Position
protected boolean m_After
protected String m_Prefix
| Constructor Detail |
|---|
public SpreadSheetCopyColumns()
| Method Detail |
|---|
public String globalInfo()
globalInfo in class AbstractOptionHandlerprotected void initialize()
initialize in class AbstractActorpublic void defineOptions()
defineOptions in interface OptionHandlerdefineOptions in class AbstractActorpublic String getQuickInfo()
getQuickInfo in interface QuickInfoSupportergetQuickInfo in interface ActorgetQuickInfo in class AbstractActorpublic void setColumns(SpreadSheetColumnRange value)
value - the rangepublic SpreadSheetColumnRange getColumns()
public String columnsTipText()
public void setPosition(SpreadSheetColumnIndex value)
value - the positionpublic SpreadSheetColumnIndex getPosition()
public String positionTipText()
public void setAfter(boolean value)
value - true if to add afterpublic boolean getAfter()
public String afterTipText()
public void setPrefix(String value)
value - the prefixpublic String getPrefix()
public String prefixTipText()
protected String doExecute()
doExecute in class AbstractActor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||