Validation & OCL [message #577191] |
Tue, 09 May 2006 08:25 |
asha![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=asha.g.pillai%40gmail.com) Messages: 2 Registered: July 2009 |
Junior Member |
|
|
Hi,
One Constraint from UML 1.3 spec : "No Attributes may have the same name
within a Classifier."
Various model update scenario could be adding attribute for classifier ,
modifying attribute name , deletion of attribute.
When I specify constraint as follows it can address adding attribute
scenario
<constraint lang="OCL" ...>
<target class="Classifier">
<event name="Set">
<feature name="attribute" />
</event>
</target>
self.feature->select ( a | a.oclIsKindOf (Attribute) )->forAll
( p, q |
p.name = q.name implies p = q )
</constraint>
But it does not address modifying of attribute name. How to specify such
indirect event for the target classes using validation framework?
Thanks and Regards,
Asha.
|
|
|
Powered by
FUDForum. Page generated in 0.03263 seconds