Interface IMdAdoptedPropertyMapper

All Known Implementing Classes:
NameBasedPropertyMapper

public interface IMdAdoptedPropertyMapper
Metadata property mapper maps original metadata properties with extension metadata properties. Properties are mapped one to one. Clients may get extension metadata property by the accoring original model property.
  • Method Summary

    Modifier and Type
    Method
    Description
    Optional<org.eclipse.emf.ecore.EClass>
    getExtensionClass(org.eclipse.emf.ecore.EClass originalClass)
    Returns an optional extension class for the original metadata class.
    Optional<Pair<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EStructuralFeature>>
    getExtensionProperty(org.eclipse.emf.ecore.EObject originalObject, org.eclipse.emf.ecore.EStructuralFeature originalProperty)
    Returns an optional pair: The extension metadata object by the original metadata object.
  • Method Details

    • getExtensionClass

      Optional<org.eclipse.emf.ecore.EClass> getExtensionClass(org.eclipse.emf.ecore.EClass originalClass)
      Returns an optional extension class for the original metadata class.
      Parameters:
      originalClass - the original metadata class, cannot be null
      Returns:
      the optional extension class for the original metadata class
    • getExtensionProperty

      Optional<Pair<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EStructuralFeature>> getExtensionProperty(org.eclipse.emf.ecore.EObject originalObject, org.eclipse.emf.ecore.EStructuralFeature originalProperty)
      Returns an optional pair:
      • The extension metadata object by the original metadata object.
      • The extension metadata property by the original metadata property.
      Parameters:
      originalObject - the original metadata object, cannot be null
      originalProperty - the original metadata property, cannot be null
      Returns:
      the optional extension metadata object and property accoring to the original model