Book a Demo

Author Topic: stereotype with package as base class in EA  (Read 3151 times)

bruno.lopes

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
stereotype with package as base class in EA
« on: April 21, 2006, 03:38:49 am »
Hi

I'm currently trying EA v6.1(trial) and I'm trying to create a profile to be used in data warehouse modulation. One of the stereotypes that i want to associate with this profile uses as base class a package. This is where my problems start... What i first did was to drag and drop a "stereotype" component into the profile but, by doing this, my stereotype appears as using "Class" as base class.
The next thing I tried was to create a stereotype using the "Stereotypes..." menu under Settings -> UML this allows me to define the base class as package however, although i create this new stereotype, I cannot see it anywhere in EA and i don't know how to use it.

Can someone explain me how this should be done? The EA manual isn't very helpful... Thanks in advance and sorry for my english.

Best regards

Bruno

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: stereotype with package as base class in EA
« Reply #1 on: April 23, 2006, 03:04:11 pm »
To create a stereotype for a package in a profile you need to create a stereotype like you did, drag a metaclass from the toolbox and select package.  Your stereotype then needs to Generalize the metaclass created.

Note that both of the elements that you created are stereotyped classes and are not packages themselves.  It's only when the profile is exported and then imported into a model that a stereotype that can be applied to a package is created.

The other method that you mentioned bypasses the profile mechanism in EA, but it is essentially doing the same thing, where the Base Class corresponds to the metaclass you would have used creating a profile.  In this case no elements are created, only the necessary stereotype definition.