Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » OCL Constraint: No two diagram elements have the same name.
OCL Constraint: No two diagram elements have the same name. [message #638215] Wed, 10 November 2010 09:38 Go to next message
Mostafa ElShafei is currently offline Mostafa ElShafei
Messages: 39
Registered: October 2010
Member
Dear all,

Can you please help me with an OCL constraint that returns false if there is two diagram elements of type Message that have the same name.

Thank you in advance.
Re: OCL Constraint: No two diagram elements have the same name. [message #638218 is a reply to message #638215] Wed, 10 November 2010 09:46 Go to previous message
Mostafa ElShafei is currently offline Mostafa ElShafei
Messages: 39
Registered: October 2010
Member
Hello,

The answer of my question is

messages->isUnique(c:Message|c.code)

Thanks anyway.
Previous Topic:UML2 domain file
Next Topic:Customizing compartment item labels
Goto Forum:
  


Current Time: Mon Jul 28 22:49:24 EDT 2014

Powered by FUDForum. Page generated in 0.01596 seconds