Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » OCL Constraint: No two diagram elements can have the same name
OCL Constraint: No two diagram elements can have the same name [message #635833] Thu, 28 October 2010 10:08 Go to next message
Mostafa ElShafei is currently offline Mostafa ElShafei
Messages: 39
Registered: October 2010
Member
Dear Experts,

I am curious to know the OCL best practice to check if two diagram elements have the same name.

Thx, for any reply Smile
Re: OCL Constraint: No two diagram elements can have the same name [message #635944 is a reply to message #635833] Thu, 28 October 2010 16:20 Go to previous messageGo to next message
Ed Willink is currently offline Ed Willink
Messages: 4093
Registered: July 2009
Senior Member
On 28/10/2010 11:08, Mostafa ElShafei wrote:
> Dear Experts,
>
> I am curious to know the OCL best practice to check if two diagram
> elements have the same name.
>
> Thx, for any reply :)
A very vague question.

Your meta-model can sometimes specify uniqueness directly, or you could
specify a validation constraint involving ->isUnique(name).

Regards

Ed Willink
Re: OCL Constraint: No two diagram elements can have the same name [message #635986 is a reply to message #635833] Thu, 28 October 2010 20:23 Go to previous messageGo to next message
Mostafa ElShafei is currently offline Mostafa ElShafei
Messages: 39
Registered: October 2010
Member
Hello Edward,

I would like to thank you again for your useful help, Its exactly what I wanted.

I found a lot of ways to do this, but this is the best.

Thank you again Smile

Anyway I'll try to give you more information next time :D:D
Re: OCL Constraint: No two diagram elements can have the same name [message #636046 is a reply to message #635833] Fri, 29 October 2010 07:19 Go to previous message
Mostafa ElShafei is currently offline Mostafa ElShafei
Messages: 39
Registered: October 2010
Member
No Message Body

[Updated on: Fri, 29 October 2010 07:20]

Report message to a moderator

Previous Topic:OCL XOR link constraint
Next Topic:Loop on all nodes to check if they are all connected together
Goto Forum:
  


Current Time: Thu Oct 23 01:42:07 GMT 2014

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

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