Skip to main content



      Home
Home » Modeling » UML2 » uml2 genmodel, abstract classes and operations
uml2 genmodel, abstract classes and operations [message #625169] Wed, 10 October 2007 10:28
Eclipse UserFriend
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: Sun Aug 31 04:10:45 EDT 2025

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

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

Back to the top