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 TypeMethodDescriptionOptional<org.eclipse.emf.ecore.EClass>
getExtensionClass
(org.eclipse.emf.ecore.EClass originalClass) Returns an optional extension class for the original metadata class.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 benull
- 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 benull
originalProperty
- the original metadata property, cannot benull
- Returns:
- the optional extension metadata object and property accoring to the original model
-