Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » uml2 genmodel, abstract classes and operations
uml2 genmodel, abstract classes and operations [message #625169] Wed, 10 October 2007 14:28
Javi is currently offline JaviFriend
Messages: 23
Registered: July 2009
Junior Member
Hello,

When a class implements an interface and the operations package
is turned on, I found that the operations class is created for the
interface instead of for the concrete class.

Thank you.

This is the situation in depth:

I have a model in UML like this:
- Interface A
- op()
- Class B implements A

When I create a genmodel from it, I get an ecore like this:
- Class A (abstract)
- op()
- Class B extends A

When I generate model code with an (operations package) I get:
ImplPackage
- Class BImpl
- op() {OperationsPackage.AOperations.op(this)}

OperationsPackage
- Class AOperations
- op() {throw new UnsupportedOperationException();}

I expected:
ImplPackage
- Class BImpl
- op() {OperationsPackage.BOperations.op(this)}

OperationsPackage
- Class BOperations
- op() {throw new UnsupportedOperationException();}
Previous Topic:Property redefinitions
Next Topic:Stereotype Application very slow
Goto Forum:
  


Current Time: Fri Apr 26 21:49:46 GMT 2024

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

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

Back to the top