org.eclipse.emf.codegen.ecore.rose2ecore
Class Rose2Ecore

java.lang.Object
  extended byorg.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)
 


Field Summary
protected  ResourceSet resourceSet
           
protected  RoseUtil roseUtil
           
protected  UnitTreeNode unitTree
           
 
Fields inherited from interface org.eclipse.core.runtime.IPlatformRunnable
EXIT_OK, EXIT_RELAUNCH, EXIT_RESTART
 
Constructor Summary
Rose2Ecore()
           
 
Method Summary
protected  void convert(String fileName)
           
 ResourceSet getResourceSet()
           
protected  UnitTreeNode getUnitTree()
           
static void main(String[] argv)
           
 Object run(Object object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

roseUtil

protected RoseUtil roseUtil

unitTree

protected UnitTreeNode unitTree

resourceSet

protected ResourceSet resourceSet
Constructor Detail

Rose2Ecore

public Rose2Ecore()
Method Detail

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()

Copyright 2001-2004 IBM Corporation and others.
All Rights Reserved.