Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » collection declarations in OCL expressions
collection declarations in OCL expressions [message #428167] Thu, 12 March 2009 12:39 Go to next message
Ali Koudri is currently offline Ali KoudriFriend
Messages: 118
Registered: July 2009
Senior Member
Hi all,

I use OCL constraints and I have a problem using Collections:
This expression

let res : OrderedSet(MyConcept) = OrderedSet{} in ...

throws an error. Is the syntax wrong or the EMF OCL implementation that
does'nt support this kind of declaration ?

Cheers.
Re: collection declarations in OCL expressions [message #428168 is a reply to message #428167] Thu, 12 March 2009 12:43 Go to previous messageGo to next message
Ali Koudri is currently offline Ali KoudriFriend
Messages: 118
Registered: July 2009
Senior Member
I forgot to precise the message error:

Unknown type (MyConcept)

exquisitus a écrit :
> Hi all,
>
> I use OCL constraints and I have a problem using Collections:
> This expression
>
> let res : OrderedSet(MyConcept) = OrderedSet{} in ...
>
> throws an error. Is the syntax wrong or the EMF OCL implementation that
> does'nt support this kind of declaration ?
>
> Cheers.
Re: collection declarations in OCL expressions [message #428173 is a reply to message #428168] Thu, 12 March 2009 14:50 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
It's best to ask on the OCL newsgroup, which I've added to the "to" list
of the reply, so no need to repost.


exquisitus wrote:
> I forgot to precise the message error:
>
> Unknown type (MyConcept)
>
> exquisitus a écrit :
>> Hi all,
>>
>> I use OCL constraints and I have a problem using Collections:
>> This expression
>>
>> let res : OrderedSet(MyConcept) = OrderedSet{} in ...
>>
>> throws an error. Is the syntax wrong or the EMF OCL implementation
>> that does'nt support this kind of declaration ?
>>
>> Cheers.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: collection declarations in OCL expressions [message #428182 is a reply to message #428173] Thu, 12 March 2009 16:02 Go to previous message
Ali Koudri is currently offline Ali KoudriFriend
Messages: 118
Registered: July 2009
Senior Member
OK, thanks

Ed Merks a écrit :
> It's best to ask on the OCL newsgroup, which I've added to the "to" list
> of the reply, so no need to repost.
>
>
> exquisitus wrote:
>> I forgot to precise the message error:
>>
>> Unknown type (MyConcept)
>>
>> exquisitus a écrit :
>>> Hi all,
>>>
>>> I use OCL constraints and I have a problem using Collections:
>>> This expression
>>>
>>> let res : OrderedSet(MyConcept) = OrderedSet{} in ...
>>>
>>> throws an error. Is the syntax wrong or the EMF OCL implementation
>>> that does'nt support this kind of declaration ?
>>>
>>> Cheers.
Previous Topic:EMF Test Data Generation
Next Topic:[Teneo] Teneo mapping vs driver implementations
Goto Forum:
  


Current Time: Fri Apr 19 10:48:02 GMT 2024

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

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

Back to the top