Jump to: navigation, search

Difference between revisions of "EMF Search OCL Extensibility---org.eclipse.emf.search.ocl.targetMetaModel"

(org.eclipse.emf.search.ocl.targetMetaModel)
(org.eclipse.emf.search.ocl.targetMetaModel)
 
Line 11: Line 11:
 
  (eg: M1 is an instance of a model, M2 a model, M3 the Ecore metamodel & M4 the EMOF).
 
  (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.
 
  * '''target''' - There are currently only two targets : "Ecore" & "UML". This has to be extended to support arbitrary model target contributions.
 +
 +
 +
<source lang="xml">
 +
    <extension
 +
          point="org.eclipse.emf.search.ocl.targetMetaModel">
 +
      <targetMetaModel
 +
            nsURI="http://www.eclipse.org/emf/2002/Ecore"
 +
            level="M2"
 +
            target="Ecore">
 +
      </targetMetaModel>
 +
    </extension>
 +
</source>

Latest revision as of 09:49, 25 April 2008

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>