Book a Demo

Author Topic: Showing inherited private variables in Child Obj.  (Read 5209 times)

ChristophBroz

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Showing inherited private variables in Child Obj.
« on: October 06, 2010, 07:48:58 pm »
Hi there,

we are just sitting in a training and facing the following issue.

we have an object <person> with a private attribute called "name".

then we inherited this object to <author>.

In the inherited object we set the <feature visibility> <inherited feature> <show attributes>.

And now EA shows the private attribute from <person> at the attributes list from <author>.

Is there a way to hide this "wrong" information?

Is there a workaround?

Thx in advance,

Chris

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Showing inherited private variables in Child O
« Reply #1 on: October 06, 2010, 10:17:23 pm »
Don't show inherited features?

Otherwhise I don't see a way to hide the private attributes of its parent class.

Geert

ChristophBroz

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Showing inherited private variables in Child O
« Reply #2 on: October 06, 2010, 10:27:40 pm »
Thanks Geert, this is the way it works,

but it does not help us in detail descriptions

where it is important to us to see the attributes from the parents.

Chris

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Showing inherited private variables in Child O
« Reply #3 on: October 06, 2010, 10:45:21 pm »
Quote
Thanks Geert, this is the way it works,

but it does not help us in detail descriptions

where it is important to us to see the attributes from the parents.

Chris
Hi Chris,

you DO realize that you can place the Class on more than one diagram and have each diagram only show what you want to see...

(However, you CAN'T say: show me private local attributes but not private inherited ones.)

You could have one diagam only show the local attributes and another show the full details, including the inherited ones.

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

ChristophBroz

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Showing inherited private variables in Child O
« Reply #4 on: October 06, 2010, 10:54:13 pm »
Hi Paolo,

Thanky for your answer, but ..

The main question ist: is it ok to see in a detail diagram the private attributes of the parent objects.

There should be methods to work with this attributes and not the attributes themself.

I do not agree with you that when you show the local private attributes ( which is OK for me )

you cannot hide the inherited private attributes.

On the other way, what should be the reason that you show them?

Greetings from Austria,

Chris
« Last Edit: October 06, 2010, 11:06:50 pm by ChristophBroz »

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Showing inherited private variables in Child O
« Reply #5 on: October 07, 2010, 11:11:48 am »
Hi Chris,

I should have been more explicit...  You can't do it in EA.  

I wasn't making a judgment on whether it should be possible or not.

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

ChristophBroz

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Showing inherited private variables in Child O
« Reply #6 on: October 07, 2010, 06:56:42 pm »
Hi Paolo,

I understood it the same way.

But i guess you agree that it is very misleading and dangerous to see these attributes where they should not be seen.

So I would say: This is a bug or has nothing to do with OO-development!

Have a nice day,

Chris

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Showing inherited private variables in Child O
« Reply #7 on: October 07, 2010, 07:08:58 pm »
I don't see it as a bug.
Its a feature that allows you to see the attributes (all of them) of the parent class (no more/no less).
Only the name of the feature (inherited attributes) is a bit misleading.

Geert