de.cau.cs.kieler.core.model.xtend.util
Class TransformationWorkflowHook

java.lang.Object
  extended by org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent
      extended by de.cau.cs.kieler.core.model.xtend.util.TransformationWorkflowHook
All Implemented Interfaces:
org.eclipse.emf.mwe.core.WorkflowComponent, org.eclipse.emf.mwe.core.WorkflowComponentWithID, org.eclipse.emf.mwe2.runtime.workflow.IWorkflowComponent
Direct Known Subclasses:
PtolemyAnnotationHandler

public abstract class TransformationWorkflowHook
extends org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent

A workflow component that knows about the reader that loaded a source model. An instance of this class can be hooked into the transformation run by XtendTransformationUtil just before the transformed model is written to do some last work.

Rating red

Constructor Summary
TransformationWorkflowHook()
           
 
Method Summary
 void checkConfiguration(org.eclipse.emf.mwe.core.issues.Issues issues)
          
 String getInputModelSlot()
          Returns the name of the slot containing the original model.
 String getOutputModelSlot()
          Returns the name of the slot containing the model to be transformed.
 org.eclipse.emf.mwe.utils.Reader getReader()
          Returns the reader used to read the input model.
 void setInputModelSlot(String slot)
          Sets the name of the slot containing the originally loaded model.
 void setOutputModelSlot(String slot)
          Sets the name of the slot containing the model to be transformed.
 void setReader(org.eclipse.emf.mwe.utils.Reader reader)
          Sets the reader used to load the source model.
 
Methods inherited from class org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent
checkRequiredConfigProperty, getBridge, getComponentName, getContainer, getId, getLocation, getLogMessage, invoke, invoke, invokeInternal, 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

TransformationWorkflowHook

public TransformationWorkflowHook()
Method Detail

getReader

public org.eclipse.emf.mwe.utils.Reader getReader()
Returns the reader used to read the input model.

Returns:
the reader.

setReader

public void setReader(org.eclipse.emf.mwe.utils.Reader reader)
Sets the reader used to load the source model.

Parameters:
reader - the reader used to load the source model.

getInputModelSlot

public String getInputModelSlot()
Returns the name of the slot containing the original model.

Returns:
the slot's name.

setInputModelSlot

public void setInputModelSlot(String slot)
Sets the name of the slot containing the originally loaded model.

Parameters:
slot - the slot's name.

getOutputModelSlot

public String getOutputModelSlot()
Returns the name of the slot containing the model to be transformed.

Returns:
the slot's name.

setOutputModelSlot

public void setOutputModelSlot(String slot)
Sets the name of the slot containing the model to be transformed. The model is stored in a workflow context under the given slot name.

Parameters:
slot - the slot's name.

checkConfiguration

public void checkConfiguration(org.eclipse.emf.mwe.core.issues.Issues issues)