|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.m2m.atl.core.ui.vm.RegularVMLauncher
public class RegularVMLauncher
The RegularVM implementation of the ILauncher
.
Field Summary |
---|
Fields inherited from interface org.eclipse.m2m.atl.core.launch.ILauncher |
---|
DEBUG_MODE, RUN_MODE |
Constructor Summary | |
---|---|
RegularVMLauncher()
|
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 . |
void |
addOutModel(IModel model,
java.lang.String name,
java.lang.String referenceModelName)
Adds an output model to the transformation context. |
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> options)
Initialize the launcher. |
protected java.lang.Object |
internalLaunch(Debugger debugger,
java.util.Map<java.lang.String,java.lang.Object> options,
java.lang.Object[] modules)
Launches the transformation using the specified debugger. |
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 |
Constructor Detail |
---|
public RegularVMLauncher()
Method Detail |
---|
public java.lang.String getName()
ILauncher
ILauncher
name.
getName
in interface ILauncher
ILauncher
namepublic void addInModel(IModel model, java.lang.String name, java.lang.String referenceModelName)
addInModel
in interface ILauncher
model
- 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 ILauncher
model
- 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 ILauncher
model
- 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 ILauncher
name
- 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> options)
initialize
in interface ILauncher
options
- initialization optionsILauncher.initialize(java.util.Map)
public java.lang.String getDefaultModelFactoryName()
getDefaultModelFactoryName
in interface ILauncher
ILauncher.getDefaultModelFactoryName()
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 ILauncher
mode
- 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.
org.eclipse.m2m.atl.core.launch.ILauncher#launch(java.lang.String,
org.eclipse.core.runtime.IProgressMonitor, java.util.Map, java.io.InputStream[])
protected java.lang.Object internalLaunch(Debugger debugger, java.util.Map<java.lang.String,java.lang.Object> options, java.lang.Object[] modules) throws AtlSuperimposeModule.AtlSuperimposeModuleException
debugger
- the debuggeroptions
- the launch optionsmodules
- the transformation modules
AtlSuperimposeModule.AtlSuperimposeModuleException
public java.lang.Object loadModule(java.io.InputStream inputStream)
InputStream
.
loadModule
in interface ILauncher
inputStream
- the input stream to load
ILauncher.loadModule(java.io.InputStream)
public IModel getModel(java.lang.String modelName)
getModel
in interface ILauncher
modelName
- the model name
ILauncher.getModel(java.lang.String)
public java.lang.Object getLibrary(java.lang.String libraryName)
getLibrary
in interface ILauncher
libraryName
- the library name
ILauncher.getLibrary(java.lang.String)
public java.lang.String[] getModes()
getModes
in interface ILauncher
ILauncher.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 |