I often use iterate for exactly this purpose. It works.
Without seeing your code there is no chance of telling why it doesn't
work for you.
On 01/08/2012 16:10, Matthias N wrote:
> I have a class A which can have multiple references to class B
> What I want to do is, to concatenate all referenced names.
> When I use the following command
> I get:
> But what I want to have sth like this:
> 'name1, name2, name3'
> How can I achive this with OCL ?! I found an example with
> "->iterate()", however my OCL sais "cannot find operation iterate()
> for the type (OrderedSet(VVCase)).
Completion assist was ropy in Indigo. It's much better in Juno. Works
for me in Juno.
[Not even JDT is perfect on Completion assist; it is only a guide of
On 02/08/2012 11:03, Matthias N wrote:
> Okay, I modelled the following with Ecore
> | root |
> | +--------+ dogs * +-------+
> | Person | <>----------- | Dog |
> +--------+ +-------+
> I populated the model with 3 dogs.
> I use the interactive OCL console, e.g. context Person:
> self.dogs->size() results to 3.
> When I input self.dogs->, auto-completion gives me
> no iterate ;(