uml2 genmodel, abstract classes and operations [message #625169] |
Wed, 10 October 2007 14:28 |
Javi 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();}
|
|
|
Powered by
FUDForum. Page generated in 0.03451 seconds