public final class TransformationExecutor extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
TransformationExecutor.BlackboxRegistry
Support for blackbox libraries in standalone mode.
|
Constructor and Description |
---|
TransformationExecutor(URI uri)
Constructs the executor for the given transformation URI.
|
TransformationExecutor(URI uri,
EPackage.Registry registry)
Constructs the executor for the given transformation URI.
|
Modifier and Type | Method and Description |
---|---|
void |
cleanup()
Clean all resources associated with the executor.
|
ExecutionDiagnostic |
execute(ExecutionContext executionContext,
ModelExtent... modelParameters)
Executes the transformation referred by this executor using the given
model parameters and execution context.
|
Diagnostic |
loadTransformation()
Attempts to load the transformation referred by this executor and checks
if it is valid for execution.
|
Diagnostic |
loadTransformation(IProgressMonitor monitor)
Attempts to load the transformation referred by this executor and checks
if it is valid for execution.
|
public TransformationExecutor(URI uri)
No attempt to resolve and load the transformation is done at this step
uri
- the URI of an existing transformationpublic TransformationExecutor(URI uri, EPackage.Registry registry)
No attempt to resolve and load the transformation is done at this step
uri
- the URI of an existing transformationregistry
- a package registry of meta-models to be referenced by the
executed transformationpublic Diagnostic loadTransformation()
Remark: Only the first performs the actual transformation loading, subsequent calls to this method will return the existing diagnostic.
public Diagnostic loadTransformation(IProgressMonitor monitor)
Remark: Only the first performs the actual transformation loading, subsequent calls to this method will return the existing diagnostic.
the
- monitor indicating load progress and cancellationpublic ExecutionDiagnostic execute(ExecutionContext executionContext, ModelExtent... modelParameters)
executionContext
- the context object keeping the execution environment detailsmodelParameters
- the actual model arguments to the transformationIllegalArgumentException
- if the context or any of the model parameters is
null
public void cleanup()
Copyright © 2008, 2018 Borland Software Corporation and others. All Rights Reserved.