public interface ObjectMapping
An input element is usually transformed into one output element, known here as its primary corresponding element. The primary corresponding element
is notably used by the ReferenceManager
to build references in the output model.
The input element might also generate additional elements in the output model (e.g. UML dependencies), known here as secondary elements.
Information stored in ObjectMapping
instances is also used to build traceability matrices in the main operation log.
This interface is not intended to be implemented by clients.
MappingFunction.getMapping(EObject)
,
Mapping.getMapping(EObject)
,
ReferenceManager
Modifier and Type | Method and Description |
---|---|
EObject |
getInput()
Returns the input element.
|
EObject |
getPrimary()
Returns the primary output element corresponding to the underlying input element, if any.
|
List<EObject> |
getSecondary()
Returns a modifiable list of known secondary output elements corresponding to the underlying input element.
|
void |
setPrimary(EObject output)
Associates an output element to the underlying input element.
|
EObject getInput()
EObject getPrimary()
null
if no output element is associated.setPrimary(EObject)
void setPrimary(EObject output)
The primary element is used by the ReferenceManager
to build references in the output model.
output
- the element part of the output model corresponding to the underlying input element.ReferenceManager
List<EObject> getSecondary()