Plugins (1057)


Training and Consulting (44)



EPIC Poll

What is your favourite developer portal?

[ Results | Polls ]

Votes: 541
Comments: 0

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
eftike
8 Post subject: OCL costraints on stereotypes in a profile  PostPosted: 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
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits