Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

EMF Search OCL Extensibility---org.eclipse.emf.search.ocl.targetMetaModel

org.eclipse.emf.search.ocl.targetMetaModel

Users wanting to contribute a target metamodel for OCL expression contextual evaluation should extends targetMetaModel.

targetMetaModel extension point requires three different atributes :


* nsURI - An EPackage nsURI according to the one set in .genmodel configuration file to generate the Java code of this Ecore package.
* level - The modeling level which will be used for the contextual OCL expression evaluation.
This level comes from the meta modeling levels commomly described in corresponding domain writtings 
(eg: M1 is an instance of a model, M2 a model, M3 the Ecore metamodel & M4 the EMOF).
* target - There are currently only two targets : "Ecore" & "UML". This has to be extended to support arbitrary model target contributions.


    <extension
          point="org.eclipse.emf.search.ocl.targetMetaModel">
       <targetMetaModel
             nsURI="http://www.eclipse.org/emf/2002/Ecore"
             level="M2"
             target="Ecore">
       </targetMetaModel>
    </extension>

Back to the top