|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.m2m.atl.engine.emfvm.launch.EMFVMLauncher
public class EMFVMLauncher
The EMFVM implementation of the ILauncher interface.
| Field Summary | |
|---|---|
static java.lang.String |
LAUNCHER_NAME
The ILauncher extension name. |
protected java.util.Map<java.lang.String,ASM> |
libraries
|
static java.lang.String |
MODEL_FACTORY_NAME
The Default model factory name to use. |
protected java.util.Map<java.lang.String,IModel> |
models
|
| Fields inherited from interface org.eclipse.m2m.atl.core.launch.ILauncher |
|---|
DEBUG_MODE, RUN_MODE |
| Constructor Summary | |
|---|---|
EMFVMLauncher()
|
|
| Method Summary | |
|---|---|
void |
addInModel(IModel model,
java.lang.String name,
java.lang.String referenceModelName)
Adds an input model to the transformation context. |
void |
addInOutModel(IModel model,
java.lang.String name,
java.lang.String referenceModelName)
Adds an input/output model to the transformation context. |
void |
addLibrary(java.lang.String name,
java.lang.Object library)
Adds a preloaded library module to the transformation, or an InputStream. |
protected void |
addModel(IModel model,
java.lang.String name,
java.lang.String referenceModelName)
Adds any model to the local map. |
void |
addOutModel(IModel model,
java.lang.String name,
java.lang.String referenceModelName)
Adds an output model to the transformation context. |
protected ASM |
getASMFromObject(java.lang.Object module)
Load a module if necessary. |
java.lang.String |
getDefaultModelFactoryName()
Returns the default ModelFactory name. |
java.lang.Object |
getLibrary(java.lang.String libraryName)
Returns a previously added library with the given name. |
IModel |
getModel(java.lang.String modelName)
Returns a previously added model with the given name. |
java.lang.String[] |
getModes()
Returns the supported modes. |
java.lang.String |
getName()
Returns the ILauncher name. |
void |
initialize(java.util.Map<java.lang.String,java.lang.Object> parameters)
Initialize the launcher. |
protected java.lang.Object |
internalLaunch(ITool[] tools,
org.eclipse.core.runtime.IProgressMonitor monitor,
java.util.Map<java.lang.String,java.lang.Object> options,
java.lang.Object... modules)
Launches the transformation with preloaded modules. |
java.lang.Object |
launch(java.lang.String mode,
org.eclipse.core.runtime.IProgressMonitor monitor,
java.util.Map<java.lang.String,java.lang.Object> options,
java.lang.Object... modules)
Launches the transformation using the given parameters and the given set of preloaded modules, or InputStream. |
java.lang.Object |
loadModule(java.io.InputStream inputStream)
Loads a transformation module from an InputStream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String LAUNCHER_NAME
ILauncher extension name.
public static final java.lang.String MODEL_FACTORY_NAME
protected java.util.Map<java.lang.String,IModel> models
protected java.util.Map<java.lang.String,ASM> libraries
| Constructor Detail |
|---|
public EMFVMLauncher()
| Method Detail |
|---|
public java.lang.String getName()
ILauncherILauncher name.
getName in interface ILauncherILauncher name
protected void addModel(IModel model,
java.lang.String name,
java.lang.String referenceModelName)
model - the IModelname - the model namereferenceModelName - the model reference model name
public void addInModel(IModel model,
java.lang.String name,
java.lang.String referenceModelName)
addInModel in interface ILaunchermodel - the loaded modelname - the name of the model as described in the main modulereferenceModelName - the name of the metamodel as described in the main moduleILauncher.addInModel(org.eclipse.m2m.atl.core.IModel,
java.lang.String, java.lang.String)
public void addInOutModel(IModel model,
java.lang.String name,
java.lang.String referenceModelName)
addInOutModel in interface ILaunchermodel - the loaded modelname - the name of the model as described in the main modulereferenceModelName - the name of the metamodel as described in the main moduleILauncher.addInOutModel(org.eclipse.m2m.atl.core.IModel,
java.lang.String, java.lang.String)
public void addOutModel(IModel model,
java.lang.String name,
java.lang.String referenceModelName)
addOutModel in interface ILaunchermodel - the loaded modelname - the name of the model as described in the main modulereferenceModelName - the name of the metamodel as described in the main moduleILauncher.addOutModel(org.eclipse.m2m.atl.core.IModel,
java.lang.String, java.lang.String)
public void addLibrary(java.lang.String name,
java.lang.Object library)
InputStream.
addLibrary in interface ILaunchername - the name of the library as described in the main modulelibrary - the loaded libraryILauncher.addLibrary(java.lang.String, java.lang.Object)public void initialize(java.util.Map<java.lang.String,java.lang.Object> parameters)
initialize in interface ILauncherparameters - initialization optionsILauncher.initialize(java.util.Map)
public java.lang.Object launch(java.lang.String mode,
org.eclipse.core.runtime.IProgressMonitor monitor,
java.util.Map<java.lang.String,java.lang.Object> options,
java.lang.Object... modules)
InputStream.
launch in interface ILaunchermode - the launching modemonitor - the progress monitoroptions - vm optionsmodules - single module/ordered module set. A module set is used for superimposition, where the first
module of the set is override by the next ones. A module can be passed as an InputStream or
directly a module loaded by the loadModule method.
ILauncher.launch(java.lang.String,
org.eclipse.core.runtime.IProgressMonitor, java.util.Map, java.lang.Object[])
protected java.lang.Object internalLaunch(ITool[] tools,
org.eclipse.core.runtime.IProgressMonitor monitor,
java.util.Map<java.lang.String,java.lang.Object> options,
java.lang.Object... modules)
tools - the execution toolsmonitor - the progression monitoroptions - the launching optionsmodules - the transformation modules
public java.lang.Object loadModule(java.io.InputStream inputStream)
InputStream.
loadModule in interface ILauncherinputStream - the input stream to load
ILauncher.loadModule(java.io.InputStream)protected ASM getASMFromObject(java.lang.Object module)
module - the given ASM or InputStream.
ASMpublic IModel getModel(java.lang.String modelName)
getModel in interface ILaunchermodelName - the model name
ILauncher.getModel(java.lang.String)public java.lang.Object getLibrary(java.lang.String libraryName)
getLibrary in interface ILauncherlibraryName - the library name
ILauncher.getLibrary(java.lang.String)public java.lang.String getDefaultModelFactoryName()
getDefaultModelFactoryName in interface ILauncherILauncher.getDefaultModelFactoryName()public java.lang.String[] getModes()
getModes in interface ILauncherILauncher.getModes()
|
Copyright 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||