Map EMF type elements

From Eclipsepedia

Jump to: navigation, search

Below you see how the EMF type elements are mapped to JCR type elements. The pseudo objects "eClass" and "nodeType" are used to illustrate the concrete properties. The mapping is implemented as a model to model transformation in the oee.jcrm.conversion plugin using the oAW Xtend expressions language. It is triggered and configured using the oAW workflow engine. The mapping from a concrete Ecore model to node types is declared in the annotations of the Ecore classes.

EMF ECore Element JCR node type Element
eClass nodeType
eClass.name nodeType.name
eClass.isInterface nodeType.isMixin
eClass.eSuperTypes nodeType.declaredSuperTypes
eClass.eAttribute nodeType.propertyWithPrimaryType
eClass.eReference nodeType.propertyWithComplexType