Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » UML Operation Object to EOperation
UML Operation Object to EOperation [message #626977] Thu, 02 October 2008 15:50
Roshan S. is currently offline Roshan S.Friend
Messages: 125
Registered: July 2009
Senior Member
I'm trying to map my org.eclipse.uml2.uml.Operation to an
org.eclipse.emf.ecore.EOperation. I know that the uml classes are built
on top of EObject, but my question is there any easy way to convert UML to

I guess a way to do this would be map only the attributes I need like name
visibility, return type, parameters, etc..) something like this, but
before I start it'd be nice if there was a simpler approach.

protected EOperation createUOpertion2EOperation(
org.eclipse.uml2.uml.Operation umlOperation){

EOperation eOperation = EcoreFactory.eINSTANCE.createEOperation();
//get umlOperation (type, name, parameters, etc) and map to eOperation

return eOperation;
Previous Topic:eclipse 3.5M2 versus uml2 tools?
Next Topic:Serialize a UMLResource as OMG XMI
Goto Forum:

Current Time: Tue Aug 09 11:57:46 GMT 2022

Powered by FUDForum. Page generated in 0.01996 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top