Class 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
    • Constructor Detail

      • Mapping

        public Mapping()
        Constructor
    • 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 class MappingBase
      • 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 class MappingBase
      • 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