org.eclipse.emf.codegen.ecore.rose2ecore
Class Rose2Ecore
java.lang.Object
org.eclipse.emf.codegen.ecore.rose2ecore.Rose2Ecore
- All Implemented Interfaces:
- IPlatformRunnable
- public class Rose2Ecore
- extends Object
- implements 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)
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(String[] argv)
run
public Object run(Object object)
- Specified by:
run
in interface IPlatformRunnable
convert
protected void convert(String fileName)
getResourceSet
public ResourceSet getResourceSet()
getUnitTree
protected UnitTreeNode getUnitTree()