Book a Demo

Author Topic: Interfaces vs «interface»Classes  (Read 2308 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Interfaces vs «interface»Classes
« on: September 27, 2006, 10:46:23 pm »
In another post, I said:

Quote
EA inconsistently has two elements named Interface.  A true UML 2 Interface and an older UML 1.x Class with stereotype «interface».  You need to decide which form you are going to use.  Mixing them is NOT recommended!

We want to use true Interfaces - and we can force this by using direct SQL queries that will convert a Class EAElement stereotyped «interface» to an Interface EAElement.

We believe that this should not affect any forward generation of code as both Classes and Interfaces invoke to the Class related portions of the Code Generation Templates.

Can anyone confirm this?

Also, we are using the CORBA IDL add-in and it applies the CORBAInterface stereotype to Classes only.   If we change this it apply to Interfaces - this should not affect anything should it?

Can anyone confirm this?

BTW: in our view, the CORBA addin XML should define the stereotype to apply to both Classes and Interfaces. (We amended ours and it now appears in both drop-downs)

TIA,
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Interfaces vs «interface»Classes
« Reply #1 on: September 29, 2006, 01:25:23 am »
As I interpret the [size=13]UML 2.1 Superstructure (interim)[/size] Specification,  an Interface should be rendered with the adornment «interface» (in rectangle notation) - regardless of whether it has such a stereotype.

Thoughts?  EA doesn't, currently, behave this way.  Is it a bug?

TIA,
Paolo

Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!