Book a Demo

Author Topic: OCL constraints for stereotypes  (Read 2178 times)

rastoml

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
OCL constraints for stereotypes
« on: March 14, 2006, 04:54:50 pm »
Hi,

I need to use OCL constraints in my profile. Let's consider this simple example: I need to make sure, that stereotype1 is connected to at least one stereotype2 (type of connection is not important know). Does anybody know, how to do it in EA? And does EA support constraints for metamodel?

R.

SF_lt

  • EA User
  • **
  • Posts: 216
  • Karma: +1/-0
  • The Truth Is Out There
    • View Profile
Re: OCL constraints for stereotypes
« Reply #1 on: March 15, 2006, 08:01:57 am »
in UML stereotypes doesn't connect, they are attached to UML elements - classes, methods, attributes & so on

look into MOF metamodel to find suitable classes for validation - then define OCL invariant
registertm everything to SparX