Class Mapping
- java.lang.Object
-
- org.eclipse.emf.edapt.history.reconstruction.MappingBase
-
- org.eclipse.emf.edapt.history.reconstruction.Mapping
-
public class Mapping extends MappingBase
Mapping between elements of two metamodel versions- Version:
- $Rev$
- Author:
- herrmama, $Author$
-
-
Constructor Summary
Constructors Constructor Description Mapping()
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.emf.ecore.EObject
getSource(org.eclipse.emf.ecore.EObject target)
Get the source element for a target element (to be implemented by subclasses)org.eclipse.emf.ecore.EObject
getTarget(org.eclipse.emf.ecore.EObject source)
Get the target element for a source element (to be implemented by subclasses)boolean
isMapped(org.eclipse.emf.ecore.EObject source, org.eclipse.emf.ecore.EObject target)
Decide whether there is a bidirectional relationship between source and target elementvoid
map(org.eclipse.emf.ecore.EObject source, org.eclipse.emf.ecore.EObject target)
Add bidirectional relationship between source and target elementString
toString()
void
unmap(org.eclipse.emf.ecore.EObject source)
Remove bidirectional relationship between source and target element-
Methods inherited from class org.eclipse.emf.edapt.history.reconstruction.MappingBase
copyResolveSource, copyResolveSource, copyResolveTarget, copyResolveTarget, resolveSource, resolveTarget
-
-
-
-
Method Detail
-
getTarget
public org.eclipse.emf.ecore.EObject getTarget(org.eclipse.emf.ecore.EObject source)
Get the target element for a source element (to be implemented by subclasses)- Specified by:
getTarget
in classMappingBase
-
getSource
public org.eclipse.emf.ecore.EObject getSource(org.eclipse.emf.ecore.EObject target)
Get the source element for a target element (to be implemented by subclasses)- Specified by:
getSource
in classMappingBase
-
map
public void map(org.eclipse.emf.ecore.EObject source, org.eclipse.emf.ecore.EObject target)
Add bidirectional relationship between source and target element
-
unmap
public void unmap(org.eclipse.emf.ecore.EObject source)
Remove bidirectional relationship between source and target element
-
isMapped
public boolean isMapped(org.eclipse.emf.ecore.EObject source, org.eclipse.emf.ecore.EObject target)
Decide whether there is a bidirectional relationship between source and target element- Returns:
- true whether there is a bidirectional relationship, false otherwise
-
-