|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.m2m.atl.core.service.LauncherService
public final class LauncherService
The LauncherService utility class provides a generic way to launch a transformation using the ATL Core API.
To parameterize launch accurately, use directly the ILauncher
implementations.
Field Summary | |
---|---|
static java.lang.String |
REFINING_TRACE_METAMODEL
The refining trace metamodel name, as defined by the compiler. |
static java.lang.String |
REFINING_TRACE_MODEL
The refining trace model name, as defined by the compiler. |
Method Summary | |
---|---|
static boolean |
getBooleanOption(java.lang.Object value,
boolean defaultValue)
Returns the boolean value of the given input, or the defaultValue if null. |
static java.lang.String |
getRefinedModelName(java.lang.String modelName)
Returns the refined model name. |
static java.lang.Object |
launch(java.lang.String mode,
org.eclipse.core.runtime.IProgressMonitor monitor,
ILauncher launcher,
java.util.Map<java.lang.String,ModelFactory> modelFactories,
java.util.Map<java.lang.String,IExtractor> extractors,
java.util.Map<java.lang.String,IInjector> injectors,
java.util.Map<java.lang.String,java.lang.String> inModels,
java.util.Map<java.lang.String,java.lang.String> inoutModels,
java.util.Map<java.lang.String,java.lang.String> outModels,
java.util.Map<java.lang.String,java.lang.String> paths,
java.util.Map<java.lang.String,java.lang.Object> options,
java.util.Map<java.lang.String,java.io.InputStream> libraries,
java.io.InputStream... modules)
Launches a transformation using the given parameters. |
static java.lang.Object |
launch(java.lang.String mode,
org.eclipse.core.runtime.IProgressMonitor monitor,
ILauncher launcher,
java.util.Map<java.lang.String,java.lang.String> inModels,
java.util.Map<java.lang.String,java.lang.String> inoutModels,
java.util.Map<java.lang.String,java.lang.String> outModels,
java.util.Map<java.lang.String,java.lang.String> paths,
java.util.Map<java.lang.String,java.lang.Object> options,
java.util.Map<java.lang.String,java.io.InputStream> libraries,
java.io.InputStream... modules)
Launches a transformation using the given parameters. |
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 REFINING_TRACE_METAMODEL
public static final java.lang.String REFINING_TRACE_MODEL
Method Detail |
---|
public static java.lang.Object launch(java.lang.String mode, org.eclipse.core.runtime.IProgressMonitor monitor, ILauncher launcher, java.util.Map<java.lang.String,java.lang.String> inModels, java.util.Map<java.lang.String,java.lang.String> inoutModels, java.util.Map<java.lang.String,java.lang.String> outModels, java.util.Map<java.lang.String,java.lang.String> paths, java.util.Map<java.lang.String,java.lang.Object> options, java.util.Map<java.lang.String,java.io.InputStream> libraries, java.io.InputStream... modules) throws ATLCoreException
mode
- the launching modemonitor
- the progress monitorlauncher
- the ILauncher
inModels
- a map defining the source models names: [model name, reference model name]inoutModels
- a map defining the inout models names: [model name, reference model name]outModels
- a map defining the target models names: [model name, reference model name]paths
- a map defining the location of each model name: [model name, model location]options
- a map of transformation options: [key, value]libraries
- a map of libraries modules: [library name, module]modules
- a list of modules to superimpose. The first module overrides the next ones.
ATLCoreException
public static java.lang.Object launch(java.lang.String mode, org.eclipse.core.runtime.IProgressMonitor monitor, ILauncher launcher, java.util.Map<java.lang.String,ModelFactory> modelFactories, java.util.Map<java.lang.String,IExtractor> extractors, java.util.Map<java.lang.String,IInjector> injectors, java.util.Map<java.lang.String,java.lang.String> inModels, java.util.Map<java.lang.String,java.lang.String> inoutModels, java.util.Map<java.lang.String,java.lang.String> outModels, java.util.Map<java.lang.String,java.lang.String> paths, java.util.Map<java.lang.String,java.lang.Object> options, java.util.Map<java.lang.String,java.io.InputStream> libraries, java.io.InputStream... modules) throws ATLCoreException
mode
- the launching modemonitor
- the progress monitorlauncher
- the ILauncher
modelFactories
- a map defining which ModelFactory
to use, for each model nameextractors
- a map defining which IExtractor
to use, for each model nameinjectors
- a map defining which IInjector
to use, for each model nameinModels
- a map defining the source models names: [model name, reference model name]inoutModels
- a map defining the inout models names: [model name, reference model name]outModels
- a map defining the target models names: [model name, reference model name]paths
- a map defining the location of each model name: [model name, model location]options
- a map of transformation options: [key, value]libraries
- a map of libraries modules: [library name, module]modules
- a list of modules to superimpose. The first module overrides the next ones.
ATLCoreException
public static java.lang.String getRefinedModelName(java.lang.String modelName)
modelName
- the inital model name
public static boolean getBooleanOption(java.lang.Object value, boolean defaultValue)
value
- the input valuedefaultValue
- the default boolean value to return in case of null
|
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 |