Author Topic: Does package element support stereotype ???  (Read 4041 times)

futuros

  • EA Novice
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Does package element support stereotype ???
« on: June 09, 2004, 05:28:10 am »
Hi gurus,

i have a problem with package element. I need to verify, if some package has concrete stereotype, but package doesn't support stereotype in Automation Interface.

I tryed this

if (((EA.Element)Package.Packages.GetAt(idx)).Type=="AD-BusinessProfile") .....

-> becouse EA.Element has type as property, but it is also wrong ...

barny451

  • EA Novice
  • *
  • Posts: 19
  • Karma: +0/-0
    • View Profile
Re: Does package element support stereotype ???
« Reply #1 on: June 11, 2004, 07:51:53 am »
I'm sure I've answered this one before...

every EA.Package object has an Element property which, like any other EA.Element, can have a stereotype.

So, the stereotype is on p.Element, specifically its in p.Element.Stereotype.

HTH
Ian