Book a Demo

Author Topic: How to elide superclass property membership?  (Read 2878 times)

Davis

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
How to elide superclass property membership?
« on: July 14, 2008, 11:07:12 pm »
Hi, if you have two classes in an inheritance relationship and the superclass has a property that is inherited by the subclass, and you show the inherited property, it shows the superclass classifier like this:

superclass:
  property

is there a way to elide that superclass notation so it just shows the property name, and not the superclass it belongs to?

davisford

  • EA User
  • **
  • Posts: 63
  • Karma: +0/-0
    • View Profile
Re: How to elide superclass property membership?
« Reply #1 on: August 04, 2008, 08:00:31 pm »
Hi, I looked into this further, and I still can't figure out a way to do this, so I'm bumping this message up to see if anyone has any other ideas.

I want to elide the superclass qualifier on attributes that are inherited when showing the subclass.

For example, Parent class has attribute called "foo" and Child class has attribute called "bar".

When I show Child class I see this in attributes compartment:

Parent::
  foo : int
bar : int

I want to get rid of the Parent:: qualifier.  I tried several things in Feature Visibility dialog to no avail.

I looked into creating a custom ShapeScript to do this, but had no luck.

Does anyone have any clue if this can be done?

FYI: the reason for desiring this behavior is that the UML in question is a specification, and the published specification has different audiences.  Some audiences will not care about this superclass relationship, and it will only cause confusion when reading the spec..but we need to maintain this relationship for modeling/software purposes.

TIA