Validation & OCL [message #33667] |
Tue, 09 May 2006 08:22 |
Eclipse User |
|
|
|
Originally posted by: asha_rajbhoj.yahoo.com
Hi,
How to specify following constraint using Validation Framework.
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 for "Class" alonf with "attribute" feature it
can address adding attribute scenario , but it does not address modifying
of attribute name.
<constraint lang="OCL" ...>
<description>%example2.desc</description>
<target class="Classifier">
<event name="Set">
<feature name="author" />
</event>
</target>
- <!-- Books must have authors.
-->
not author.oclIsUndefined()
</constraint>
How to specify such indirect event for the classes?
Thanks and Regards,
Asha.
|
|
|
Powered by
FUDForum. Page generated in 0.02776 seconds