Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Validation & OCL
Validation & OCL [message #33667] Tue, 09 May 2006 08:22
Eclipse UserFriend
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.
Previous Topic:WorkspaceCommandStackImpl should probably override isSaveNeeded and saveIsDone of BasicCommandStack
Next Topic:Validation & OCL
Goto Forum:
  


Current Time: Wed May 22 15:55:06 GMT 2024

Powered by FUDForum. Page generated in 0.03367 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top