public interface OperationContext extends PropertySet
OperationContext
with its nested Operations.
This interface is not intended to be implemented by clients. An instance of OperationContext
shall be obtained with the
Factory.create(MDWorkbench)
method.
OperationFactory.create(OperationContext)
,
OperationContext.Factory.create(MDWorkbench)
Modifier and Type | Interface and Description |
---|---|
static class |
OperationContext.Factory
Instantiates an
OperationContext . |
Modifier and Type | Method and Description |
---|---|
Mapping |
createMapping(Mapping first,
Mapping second)
Creates a mapping that is the composition of two other nested mappings.
|
Mapping |
createMapping(Model input,
Model output)
Creates a mapping to record transformation information from an input model into an output model.
|
TransientLinkManager |
getTransientLinks()
Returns the transient link manager, which provides facilities to dynamically create virtual links between objects of any type.
|
MDWorkbench |
getWorkbench()
Returns the workbench in which the execution is performed,
which may be used to access configuration properties.
|
void |
setObjectLogBuilder(EPackage ePackage,
ObjectLogBuilder builder)
Sets the builder used to compute presentation information for model elements of the specified
EPackage . |
getProperties, getProperty, getProperty, getProperty, getProperty, getProperty, getPropertyNames, loadProperties, saveProperties, setProperties, setProperties, setProperty, setProperty, setProperty, setProperty, setProperty
MDWorkbench getWorkbench()
Mapping createMapping(Model input, Model output)
input
- the input model.output
- the output model.Mapping createMapping(Mapping first, Mapping second)
A composite mapping is to use when an A->B
mapping exists, a B->C
mapping exists and a A->C
mapping is desired. A composite mapping uses information provided by the two underlying mappings to compute overall traceability information.
first
- the first mapping (e.g. A->B
)second
- the second mapping (e.g. B->C
)A->C
)TransientLinkManager getTransientLinks()
void setObjectLogBuilder(EPackage ePackage, ObjectLogBuilder builder)
EPackage
.
A custom builder is notably relevant when additional properties should be presented for some elements. A custom builder is to register at the very beginning of the main operation, as it can be used when building a log for an operation that does not complete properly.
ePackage
- the EPackage
for which issued EObject
instances can be described by the specified builder.builder
- the builder used to compute presentation information for model elements issued by the specified EPackage
.