org.eclipse.emf.codegen.ecore.rose2ecore
Class Rose2Ecore
java.lang.Object
|
+--org.eclipse.emf.codegen.ecore.rose2ecore.Rose2Ecore
- All Implemented Interfaces:
- org.eclipse.core.boot.IPlatformRunnable
- public class Rose2Ecore
- extends java.lang.Object
- implements org.eclipse.core.boot.IPlatformRunnable
Converts a Rose model to an Ecore model.
This will load a Rose .mdl file with Rose .cat files and generate multiple .ecore files.
Each Rose .mdl and Rose .cat file ---> one resource/extent ---> one ecore xmi file
Mapping rules:
Package -----------> ePackage
Class -----------> eClass/eNum/eInterface
Attribute -----------> eAttribute
Operation -----------> eOperation
Association (no mapping)
AssociationEnd -----------> eReference
Inheritance -----------> super/
Parameter ----------->
Dependency (implement later)
Realization (implement later)
Fields inherited from interface org.eclipse.core.boot.IPlatformRunnable |
EXIT_OK, EXIT_RESTART |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
roseUtil
protected RoseUtil roseUtil
unitTree
protected UnitTreeNode unitTree
resourceSet
protected ResourceSet resourceSet
Rose2Ecore
public Rose2Ecore()
main
public static void main(java.lang.String[] argv)
run
public java.lang.Object run(java.lang.Object object)
- Specified by:
run
in interface org.eclipse.core.boot.IPlatformRunnable
convert
protected void convert(java.lang.String fileName)
getResourceSet
public ResourceSet getResourceSet()
getUnitTree
protected UnitTreeNode getUnitTree()