de.cau.cs.kieler.core.model.transformation.xtend
Class XtendTransformation

java.lang.Object
  extended by de.cau.cs.kieler.core.model.transformation.AbstractTransformation
      extended by de.cau.cs.kieler.core.model.transformation.xtend.XtendTransformation

public class XtendTransformation
extends AbstractTransformation

A transformation used by the Xtend framework.

Rating red

Constructor Summary
XtendTransformation()
          Creates a new Xtend transformation.
XtendTransformation(String transformationName, List<String> params)
          Creates a new Xtend transformation.
 
Method Summary
 List<String> getParameterList()
          Gets the list of parameters.
 String[] getParameters()
          Gets the list of parameters as an array.
 String getTransformation()
          Returns the Xtend extension name.
 void setParameters(List<String> params)
          Sets the parameters for this transformation.
 void setParameters(String[] param)
          Sets the parameters from an array.
 void setTransformation(String value)
          Sets the name of the transformation to be executed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XtendTransformation

public XtendTransformation()
Creates a new Xtend transformation.


XtendTransformation

public XtendTransformation(String transformationName,
                           List<String> params)
Creates a new Xtend transformation.

Parameters:
transformationName - The transformation name
params - The transformation parameters
Method Detail

getParameterList

public final List<String> getParameterList()
Gets the list of parameters.

Specified by:
getParameterList in class AbstractTransformation
Returns:
A list of parameters.

getParameters

public final String[] getParameters()
Gets the list of parameters as an array.

Specified by:
getParameters in class AbstractTransformation
Returns:
An array of parameters.

setParameters

public final void setParameters(String[] param)
Description copied from class: AbstractTransformation
Sets the parameters from an array.

Specified by:
setParameters in class AbstractTransformation
Parameters:
param - The parameters for this transformation.

setParameters

public final void setParameters(List<String> params)
Sets the parameters for this transformation.

Specified by:
setParameters in class AbstractTransformation
Parameters:
params - a List of parameters

getTransformation

public final String getTransformation()
Returns the Xtend extension name.

Specified by:
getTransformation in class AbstractTransformation
Returns:
The name of this transformation

setTransformation

public void setTransformation(String value)
Sets the name of the transformation to be executed. The value is unchecked so giving an invalid name here will result in an Xtend error.

Specified by:
setTransformation in class AbstractTransformation
Parameters:
value - The name of the Xtend transformation to execute