Book a Demo

Author Topic: UML Profile and OCL constraints  (Read 2862 times)

gusta

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
UML Profile and OCL constraints
« on: January 24, 2009, 04:52:45 am »
Hello,

I created a simple UML profile, with 2 stereotypes ("stereotypeA" and "stereotypeB") that extend the metaclass Class. I need to add one constraint in "stereotypeA", written in OCL, saying that every class that has the stereotype "stereotypeA" can not have the stereotype "stereotypeB”.

My questions are:

1) How can I do this in the EA Version 7.1 ?

2) Is there a method to get the stereotypes applied to a class, such as a method self.getAppliedStereotypes() ?

Thanks for your help