Book a Demo

Author Topic: Qualified association  (Read 7751 times)

zyx

  • EA User
  • **
  • Posts: 95
  • Karma: +1/-1
    • View Profile
Qualified association
« on: January 28, 2016, 11:52:30 pm »
Hello All,

    As always my apologizies for my bad english.

    What is exactly a qualified association? What is the difference from class-owned ends? A qualified association means that an attribute in a class must be used to refere to another class (or object)?

     The example 11.37 (page 248) in the formal UML document is not wrong? The property did not should be an attribute that refers to the Person class? The attribute accountNo refers to the Bank class but do not identifies an objetct of the Person Class... Or I am understanding it wrong?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Qualified association
« Reply #1 on: January 29, 2016, 12:05:26 am »
The qualifier subsets the ownedElements of (associationEnd)Property, so it is not supposed to be property of either one of the connected elements.

I'm doing UML for a while now, and I never felt to need to use this weird construct. I would suggest you forget it.

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Qualified association
« Reply #2 on: January 29, 2016, 12:49:15 am »
You can't imagine how happy I am to hear that I'm not the only one not understanding the semantics/practical use of this construct. ;D

q.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Qualified association
« Reply #3 on: January 29, 2016, 09:23:10 am »
In terms of code it corresponds to using a map (or equivalent) to get the other end.

The qualifier corresponds to the type of key, and the opposite end corresponds to the type of value.