Return a set of Tuple in OCLInEcore editor [message #1241116] |
Fri, 07 February 2014 14:07 |
MinhTu TonThat Messages: 38 Registered: February 2012 |
Member |
|
|
Hello everyone,
When defining an operation returning a set of tuples using OCLInEcore editor like this: operation createTupleSet() : Tuple(name : String, alias : String[*])[*] {ordered} , the return type is always considered as Void and thus, I've always got the following error:
Quote:An operation with void return type must have an upper bound of 1 not -1 . Would you mind telling me what is the proper way of declaring an operation with the return type containing Tuples?
Best regards,
[Updated on: Fri, 07 February 2014 14:08] Report message to a moderator
|
|
|
|
Re: Return a set of Tuple in OCLInEcore editor [message #1241836 is a reply to message #1241155] |
Sat, 08 February 2014 16:16 |
MinhTu TonThat Messages: 38 Registered: February 2012 |
Member |
|
|
Hi Ed,
I've got the following errors while trying to install OCL-5.0.0M5 from OCL Milestones Repositories:
Quote:An error occurred while collecting items to be installed
session context was:(profile=epp.package.standard, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
No repository found containing: org.eclipse.update.feature,org.eclipse.ocl.master,5.0.0.v20140124-1452
By the way, the problem is not solved with OCL-4.2.0M4 and Eclipse Luna, on my computer. Would you mind checking on this issue?
Many thanks,
|
|
|
Re: Return a set of Tuple in OCLInEcore editor [message #1241840 is a reply to message #1241836] |
Sat, 08 February 2014 16:22 |
MinhTu TonThat Messages: 38 Registered: February 2012 |
Member |
|
|
For more information, a simple ecore model like this:
package test : test = 'http://test.fr/test/1.0'
{
class Test
{
operation createTupleSet(): Tuple(name : String, alias : String[*])[*] {ordered}
{
body: null;
}
}
}
would cause the following validation error on createTupleSet if the model is opened using the Sample Ecore Model Editor:
Quote:
An operation with void return type must have an upper bound of 1 not -1
Regards,
[Updated on: Sat, 08 February 2014 16:29] Report message to a moderator
|
|
|
Re: Return a set of Tuple in OCLInEcore editor [message #1243303 is a reply to message #1241836] |
Mon, 10 February 2014 20:23 |
Ed Willink Messages: 7670 Registered: July 2009 |
Senior Member |
|
|
Hi
I'm totally confused.
This is a thread about a semantic error but you comment on an
installation error. So I ignore both.
Regards
Ed Willink
On 08/02/2014 16:16, Capi Tali wrote:
> Hi Ed,
> I've got the following errors while trying to install OCL-5.0.0M5 from
> OCL Milestones Repositories:
>
> Quote:
>> An error occurred while collecting items to be installed
>> session context was:(profile=epp.package.standard,
>> phase=org.eclipse.equinox.internal.p2.engine.phases.Collect,
>> operand=, action=).
>> No repository found containing:
>> org.eclipse.update.feature,org.eclipse.ocl.master,5.0.0.v20140124-1452
>
>
> By the way, the problem is not solved with OCL-4.2.0M4 and Eclipse
> Luna, on my computer. Would you mind checking on this issue?
> Many thanks,
|
|
|
|
Powered by
FUDForum. Page generated in 0.04180 seconds