|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.core.model.xtend.util.XtendTransformationUtil
public final class XtendTransformationUtil
Utitlity class to conveniently execute Xtend transformations.
Method Summary | |
---|---|
static org.eclipse.xtend.XtendFacade |
initializeFacade(String extensionFile,
String[] basePackages)
initializes an XtendFacade and returns the instance. |
static org.eclipse.xtend.XtendFacade |
initializeFacade(String extentionFile,
String[] basePackages,
Map<String,org.eclipse.xtend.expression.Variable> globalVars)
initializes an XtendFacade and returns the instance. |
static XtendStatus |
model2ModelTransform(KielerProgressMonitor monitor,
String xtendFile,
String startFunction,
URI inputModelURI,
URI outputModelURI,
EPackage... involvedMetamodels)
This transformation uses the Xtend transformation language. |
static XtendStatus |
model2ModelTransform(KielerProgressMonitor monitor,
String xtendFile,
String startFunction,
URI inputModelURI,
URI outputModelURI,
TransformationWorkflowHook workflowHook,
EPackage... involvedMetamodels)
This transformation uses the Xtend transformation language. |
static IStatus |
model2ModelTransform(String xtendFile,
String startFunction,
URI inputModelURI,
URI outputModelURI,
EPackage... involvedMetamodels)
This transformation uses the Xtend transformation language. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static XtendStatus model2ModelTransform(KielerProgressMonitor monitor, String xtendFile, String startFunction, URI inputModelURI, URI outputModelURI, TransformationWorkflowHook workflowHook, EPackage... involvedMetamodels)
monitor
- if true a progress bar is displayedxtendFile
- filename that holds the xtend functionsstartFunction
- initial transformation functioninputModelURI
- EMF URI for input model (may be a local resource URI)outputModelURI
- EMF URI for output modelworkflowHook
- This component is hooked into the workflow just before the transformed model is
written to a file. Can be used to do some last transformation work.involvedMetamodels
- EPackages of metamodels that need to be known to the transformation
public static XtendStatus model2ModelTransform(KielerProgressMonitor monitor, String xtendFile, String startFunction, URI inputModelURI, URI outputModelURI, EPackage... involvedMetamodels)
monitor
- if true a progress bar is displayedxtendFile
- filename that holds the xtend functionsstartFunction
- initial transformation functioninputModelURI
- EMF URI for input model (may be a local resource URI)outputModelURI
- EMF URI for output modelinvolvedMetamodels
- EPackages of metamodels that need to be known to the transformation
public static IStatus model2ModelTransform(String xtendFile, String startFunction, URI inputModelURI, URI outputModelURI, EPackage... involvedMetamodels) throws TransformException
model2ModelTransform
but executes the transformation in a MonitoredOperation an
automatically pops up a progress bar.
xtendFile
- filename that holds the xtend functionsstartFunction
- initial transformation functioninputModelURI
- EMF URI for input model (may be a local resource URI)outputModelURI
- EMF URI for output modelinvolvedMetamodels
- EPackages of metamodels that need to be known to the transformation
TransformException
- if something failspublic static org.eclipse.xtend.XtendFacade initializeFacade(String extensionFile, String[] basePackages)
extensionFile
- file containing the extentions.basePackages
- emf packages needed within the transformation.
public static org.eclipse.xtend.XtendFacade initializeFacade(String extentionFile, String[] basePackages, Map<String,org.eclipse.xtend.expression.Variable> globalVars)
extentionFile
- file containing the extentions.basePackages
- emf packages needed within the transformation.globalVars
- map with global variables
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |