org.eclipse.xtend.util.stdlib
Class SlotCopier

java.lang.Object
  extended by org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent
      extended by org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent2
          extended by org.eclipse.xtend.util.stdlib.SlotCopier
All Implemented Interfaces:
org.eclipse.emf.mwe.core.WorkflowComponent, org.eclipse.emf.mwe.core.WorkflowComponentWithID, org.eclipse.emf.mwe2.runtime.workflow.IWorkflowComponent

public class SlotCopier
extends org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent2

This component copies an element from one slot to another. The slot content is not cloned.

Properties

Property Type Mandatory Description
fromSlot String yes Source slot name.
toSlot String yes Destination slot name.
removeTopLevelList boolean no If true the source slot must contain a list and the top level list is removed (i.e. the first element from the list is copied to the destination slot), otherwise it is not removed.


Constructor Summary
SlotCopier()
           
 
Method Summary
protected  void checkConfigurationInternal(org.eclipse.emf.mwe.core.issues.Issues issues)
           
 java.lang.String getComponentName()
           
 java.lang.String getLogMessage()
           
protected  void invokeInternal(org.eclipse.emf.mwe.core.WorkflowContext ctx, org.eclipse.emf.mwe.core.monitor.ProgressMonitor mon, org.eclipse.emf.mwe.core.issues.Issues issues)
           
 void setFromSlot(java.lang.String fromSlot)
          Sets the source slot.
 void setRemoveTopLevelList(boolean removeTopLevelList)
          Enables or disables the removal of the top level list.
 void setToSlot(java.lang.String toSlot)
          Sets the destination slot.
 
Methods inherited from class org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent2
checkConfiguration
 
Methods inherited from class org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent
checkRequiredConfigProperty, getBridge, getContainer, getId, getLocation, invoke, invoke, postInvoke, preInvoke, setContainer, setId, setLocation, setSkipOnErrors
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SlotCopier

public SlotCopier()
Method Detail

checkConfigurationInternal

protected void checkConfigurationInternal(org.eclipse.emf.mwe.core.issues.Issues issues)
Overrides:
checkConfigurationInternal in class org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent2

getLogMessage

public java.lang.String getLogMessage()
Specified by:
getLogMessage in interface org.eclipse.emf.mwe.core.WorkflowComponentWithID
Overrides:
getLogMessage in class org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent
See Also:
AbstractWorkflowComponent.getLogMessage()

invokeInternal

protected void invokeInternal(org.eclipse.emf.mwe.core.WorkflowContext ctx,
                              org.eclipse.emf.mwe.core.monitor.ProgressMonitor mon,
                              org.eclipse.emf.mwe.core.issues.Issues issues)
Specified by:
invokeInternal in class org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent

setFromSlot

public void setFromSlot(java.lang.String fromSlot)
Sets the source slot.

Parameters:
fromSlot - name of slot

setToSlot

public void setToSlot(java.lang.String toSlot)
Sets the destination slot.

Parameters:
toSlot - name of slot

setRemoveTopLevelList

public void setRemoveTopLevelList(boolean removeTopLevelList)
Enables or disables the removal of the top level list.

Parameters:
removeTopLevelList - If true, the top level list is removed, otherwise it is not removed.

getComponentName

public java.lang.String getComponentName()
Specified by:
getComponentName in interface org.eclipse.emf.mwe.core.WorkflowComponent
Overrides:
getComponentName in class org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent
See Also:
AbstractWorkflowComponent.getComponentName()