Book a Demo

Author Topic: Display association as attribute  (Read 5624 times)

IritP

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Display association as attribute
« on: May 15, 2007, 03:45:02 am »
Hello,

I have 2 classes (A, B) and I add direct association between them (A->B).
In a diagram I add A.
I want to see that A has an attribute of type B (without adding B to the diagram).
According to UML2.0 this feature is mentioned...

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Display association as attribute
« Reply #1 on: May 15, 2007, 04:37:05 am »
Quote
Hello,

I have 2 classes (A, B) and I add direct association between them (A->B).
In a diagram I add A.
I want to see that A has an attribute of type B (without adding B to the diagram).
According to UML2.0 this feature is mentioned...
Until the AssociationEnd is named, there is no Attribute under UML 2.x.

Unfortunately, EA (806) still does not automatically support a Named AssociationEnd as an Attribute.

You have to do it manually.

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

IritP

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: Display association as attribute
« Reply #2 on: May 16, 2007, 02:01:39 am »
Thanks Paolo.

Could you tel me how can I edit AssociationEnd property manualy?
I can't found this property. I tried to add name to targer role but it doesn't help.

Regards,
Irit

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Display association as attribute
« Reply #3 on: May 16, 2007, 02:15:26 am »
Quote
Thanks Paolo.

Could you tel me how can I edit AssociationEnd property manually?
I can't found this property. I tried to add name to target role but it doesn't help.

Regards,
Irit
Hi Irit,

It is better to add the attribute first and then it will appear in the source/target (as appropriate) dropdown when you open the Association Properties.

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