Class MappingBase

  • Direct Known Subclasses:
    CompositeMapping, Mapping

    public abstract class MappingBase
    extends Object
    Base class for mappings between model elements
    Version:
    $Rev$
    Author:
    herrmama, $Author$
    • Constructor Summary

      Constructors 
      Constructor Description
      MappingBase()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      org.eclipse.emf.ecore.EObject copyResolveSource​(org.eclipse.emf.ecore.EObject target)
      Copy an element and automatically resolve links to the metamodel from target to source.
      org.eclipse.emf.ecore.EObject copyResolveSource​(org.eclipse.emf.ecore.EObject target, boolean deepCopy)
      Copy an element and automatically resolve links to the metamodel from target to source.
      org.eclipse.emf.ecore.EObject copyResolveTarget​(org.eclipse.emf.ecore.EObject source)
      Copy an element and automatically resolve links to the metamodel from source to target.
      org.eclipse.emf.ecore.EObject copyResolveTarget​(org.eclipse.emf.ecore.EObject source, boolean deepCopy)
      Copy an element and automatically resolve links to the metamodel from source to target.
      abstract 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)
      abstract 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)
      <V> V resolveSource​(V target)
      Resolve a source element(s) for target element(s) (Return target element(s) in case it (they) cannot be resolved)
      <V> V resolveTarget​(V source)
      Resolve a target element(s) for source element(s) (Return source element(s) in case it (they) cannot be resolved)
    • Constructor Detail

      • MappingBase

        public MappingBase()
    • Method Detail

      • getSource

        public abstract 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)
      • getTarget

        public abstract 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)
      • resolveTarget

        public <V> V resolveTarget​(V source)
        Resolve a target element(s) for source element(s) (Return source element(s) in case it (they) cannot be resolved)
      • copyResolveTarget

        public org.eclipse.emf.ecore.EObject copyResolveTarget​(org.eclipse.emf.ecore.EObject source,
                                                               boolean deepCopy)
        Copy an element and automatically resolve links to the metamodel from source to target.
      • copyResolveTarget

        public org.eclipse.emf.ecore.EObject copyResolveTarget​(org.eclipse.emf.ecore.EObject source)
        Copy an element and automatically resolve links to the metamodel from source to target.
      • resolveSource

        public <V> V resolveSource​(V target)
        Resolve a source element(s) for target element(s) (Return target element(s) in case it (they) cannot be resolved)
      • copyResolveSource

        public org.eclipse.emf.ecore.EObject copyResolveSource​(org.eclipse.emf.ecore.EObject target,
                                                               boolean deepCopy)
        Copy an element and automatically resolve links to the metamodel from target to source.
      • copyResolveSource

        public org.eclipse.emf.ecore.EObject copyResolveSource​(org.eclipse.emf.ecore.EObject target)
        Copy an element and automatically resolve links to the metamodel from target to source.