[Acceleo] Direct access to the elements in a Collection or Sequence [message #714057] |
Tue, 09 August 2011 13:46  |
Eclipse User |
|
|
|
Hello
I am looking for an operation that returns the n-th element in a Sequence (or Collection if it is possible). I am transforming activity diagrams to source code and need to generate source code statements that use the name of the object flow edges incoming to an action's input pins. I am restricting every action to have only two input pins. Therefore, iterating over the collection of two input pins of an action is not convenient. The most readable solution to me is to directly access the instances of InputPin in the collection of input pins of every action.
Does anybody know how to directly access the elements in a collection (or sequence)? I looked for an operation in Accleo's Operation Reference and in the OCL specification and cannot find it. I think there should be support for this kind of access since I think it is a common requirement.
Thanks. Kindest regards.
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04536 seconds