R
- the type of result produced by the function.public abstract class MappingFunction<R> extends Function<R>
Clients may extend this class.
Constructor and Description |
---|
MappingFunction(String name,
Mapping mapping)
Creates an new instance of
MappingFunction , using a shared Mapping instance. |
Modifier and Type | Method and Description |
---|---|
OperationContext |
getContext()
Returns the context in which this function is executed.
|
Mapping |
getMapping()
Returns the mapping in which this function is executed.
|
protected ObjectMapping |
getMapping(EObject input)
Returns the mapping information associated with the specified instance, part of the input model.
|
getName, getStatus, isCanceledOrFailed, run, run, run
public MappingFunction(String name, Mapping mapping)
MappingFunction
, using a shared Mapping
instance.
The name of the function is used as a message of the corresponding function status.name
- the function name.mapping
- the mapping in which this function is executed.public final OperationContext getContext()
public final Mapping getMapping()
protected final ObjectMapping getMapping(EObject input)
null
.input
- an instance part of the input model.