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

java.lang.Object
  extended by de.cau.cs.kieler.core.model.xtend.util.XpandTransformationUtil

public final class XpandTransformationUtil
extends Object

Utility class for performing model to text transformations using xpand.

Rating red

Method Summary
static XtendStatus model2TextTransform(KielerProgressMonitor monitor, String xpandFile, String startFunction, URI inputModelURI, String outPath, EPackage... modelPackages)
          This transformation uses the xpand transformation language.
static XtendStatus model2TextTransform(KielerProgressMonitor monitor, String xpandFile, String startFunction, URI inputModelURI, String outPath, org.eclipse.xpand2.output.PostProcessor postProcessor, EPackage... modelPackages)
          This transformation uses the xpand transformation language.
static XtendStatus model2TextTransform(String xpandFile, String startFunction, URI inputModelURI, String outPath, EPackage... modelPackages)
          This transformation uses the xpand transformation language.
static XtendStatus model2TextTransform(String xpandFile, String startFunction, URI inputModelURI, String outPath, org.eclipse.xpand2.output.PostProcessor postProcessor, EPackage... modelPackages)
          This transformation uses the xpand transformation language.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

model2TextTransform

public static XtendStatus model2TextTransform(KielerProgressMonitor monitor,
                                              String xpandFile,
                                              String startFunction,
                                              URI inputModelURI,
                                              String outPath,
                                              EPackage... modelPackages)
This transformation uses the xpand transformation language.

Parameters:
monitor - if true a progress bar is displayed
xpandFile - filename that holds the xpand functions
startFunction - initial transformation function
inputModelURI - EMF URI for input model (may be a local resource URI)
outPath - the output path
modelPackages - EPackage of the metamodels that need to be known to the transformation
Returns:
the Status about success and errors and warnings

model2TextTransform

public static XtendStatus model2TextTransform(KielerProgressMonitor monitor,
                                              String xpandFile,
                                              String startFunction,
                                              URI inputModelURI,
                                              String outPath,
                                              org.eclipse.xpand2.output.PostProcessor postProcessor,
                                              EPackage... modelPackages)
This transformation uses the xpand transformation language.

Parameters:
monitor - if true a progress bar is displayed
xpandFile - filename that holds the xpand functions
startFunction - initial transformation function
inputModelURI - EMF URI for input model (may be a local resource URI)
outPath - the output path
postProcessor - the post processor
modelPackages - EPackage of the metamodels that need to be known to the transformation
Returns:
the Status about success and errors and warnings

model2TextTransform

public static XtendStatus model2TextTransform(String xpandFile,
                                              String startFunction,
                                              URI inputModelURI,
                                              String outPath,
                                              EPackage... modelPackages)
                                       throws TransformException
This transformation uses the xpand transformation language. Same as model2TextTransform but executes the transformation in a MonitoredOperation and automatically pops up a progress bar.

Parameters:
xpandFile - filename that holds the xpand functions
startFunction - initial transformation function
inputModelURI - EMF URI for input model (may be a local resource URI)
outPath - the output path of the transformation
modelPackages - EPackages of the metamodels that need to be known to the transformation
Returns:
the Status about success and errors and warnings
Throws:
TransformException - if something fails

model2TextTransform

public static XtendStatus model2TextTransform(String xpandFile,
                                              String startFunction,
                                              URI inputModelURI,
                                              String outPath,
                                              org.eclipse.xpand2.output.PostProcessor postProcessor,
                                              EPackage... modelPackages)
                                       throws TransformException
This transformation uses the xpand transformation language. Same as

Parameters:
xpandFile - filename that holds the xpand functions
startFunction - initial transformation function
inputModelURI - EMF URI for input model (may be a local resource URI)
outPath - the output path of the transformation
postProcessor - the post processor
modelPackages - EPackages of the metamodels that need to be known to the transformation
Returns:
the Status about success and errors and warnings
Throws:
TransformException - if something fails model2TextTransform but executes the transformation in a MonitoredOperation and automatically pops up a progress bar.