| Author |
Message |
|
|
|
Post subject: OCL costraints on stereotypes in a profile
Posted: Apr 25, 2008 - 01:11 PM
|
|
Joined: Apr 25, 2008
Posts: 1
|
|
Hi!
I'm working on a profile with Borland Together v6. I'm trying to write some constraints, which must access some attributes defined on stereotypes in the profile. So this is my problem:
In package p I have defined a stereotype A, which extends uml20.classes.Class. A has an attribute b:Boolean. I tried this simple constraint:
context uml20::classes::Class
inv: stereotypes->includes('A') implies oclAsType(p::A).b
(If a class has the stereotype <<A>>, then b must be set to true).
It is not working and I really don't know what's wrong.
Please give me some help!
Thaks,
Eszter |
|
|
| |
|
|
|
 |
|
|
| |