|
|
Re: Check Assoziation in Xtend [message #658889 is a reply to message #658451] |
Thu, 10 March 2011 10:26   |
Dennis Melzer Messages: 244 Registered: July 2009 |
Senior Member |
|
|
Hello,
how can i check association they are non-navigable and have no name.
My try:
context uml::Class ERROR this.name + ": Error should have no name": allOwnedElements()
.typeSelect(uml::Property)
.select(p|p.association!=null && !p.isNavigable())
.forAll(p|p.name == null || p.name.length == 0);
[Updated on: Wed, 23 March 2011 09:43] Report message to a moderator
|
|
|
Re: Check Assoziation in Xtend [message #661123 is a reply to message #658889] |
Wed, 23 March 2011 09:46  |
Dennis Melzer Messages: 244 Registered: July 2009 |
Senior Member |
|
|
Has nobody an idea, how i can check non navigable association without a rolename?
A non navigable association doesn't have to contain a rolename.
Doesn't work =(
context uml::Class ERROR this.name + " ERROR":
allOwnedElements()
.typeSelect(uml::Property)
.select(p|p.association!=null && !p.isNavigable())
.forAll(p|p.isUnnamed());
[Updated on: Wed, 23 March 2011 09:56] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.02192 seconds