|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ILauncher
The ILauncher interface defines a transformation launcher, and a set of associated options. To use all
launchers in a generic way, you can use the LauncherService
class.
Field Summary | |
---|---|
static java.lang.String |
DEBUG_MODE
A launch in a special debug mode (value "debug" ). |
static java.lang.String |
RUN_MODE
A launch in a normal, non-debug mode(value "run" ). |
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. |
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 . |
Field Detail |
---|
static final java.lang.String RUN_MODE
"run"
).
static final java.lang.String DEBUG_MODE
"debug"
).
Method Detail |
---|
java.lang.String getName()
ILauncher
name.
ILauncher
namevoid addInModel(IModel model, java.lang.String name, java.lang.String referenceModelName)
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 modulevoid addOutModel(IModel model, java.lang.String name, java.lang.String referenceModelName)
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 modulevoid addInOutModel(IModel model, java.lang.String name, java.lang.String referenceModelName)
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 modulevoid addLibrary(java.lang.String name, java.lang.Object library)
InputStream
.
library
- the loaded libraryname
- the name of the library as described in the main modulevoid initialize(java.util.Map<java.lang.String,java.lang.Object> options)
options
- initialization optionsjava.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
.
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.
java.lang.Object loadModule(java.io.InputStream inputStream)
InputStream
.
inputStream
- the input stream to load
IModel getModel(java.lang.String modelName)
modelName
- the model name
java.lang.Object getLibrary(java.lang.String libraryName)
libraryName
- the library name
java.lang.String getDefaultModelFactoryName()
java.lang.String[] 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 |