Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » Define ArrayList of type ArraysList
Define ArrayList of type ArraysList [message #991306] Tue, 18 December 2012 07:46 Go to next message
ModelGeek Mising name is currently offline ModelGeek Mising name
Messages: 500
Registered: June 2011
Senior Member
Hi,

How to define an attribute type of ArrayList containing ArrayLists as elements?

for example ArrayList<ArrayList<E>> where E can be any type.. Double, Int.... etc

Cheers,

Re: Define ArrayList of type ArraysList [message #991308 is a reply to message #991306] Tue, 18 December 2012 08:11 Go to previous message
Ed Willink is currently offline Ed Willink
Messages: 4026
Registered: July 2009
Senior Member
Hi

You are beyond the core consensus of the OCL specification...

OCL is UML aligned but has no support for generic types as such; though
what is a Set(T) if not a generic type? Conversely UML has no support
for nested types although Set(Tuple{...}) is used by the OCL spec.

Creeping support in Eclipse OCL means that what you want is increasingly
supported.

You should find that the current pivot-based Eclipse OCL (M4 release on
Wednesday) should allow you to use Sequence(Sequence(Real)) as a
property type. The Kepler M4 relrease should be installable on Juno.

Regards

Ed Willink

On 18/12/2012 12:46, ModelGeek Mising name wrote:
> Hi,
>
> How to define an attribute type of ArrayList containing ArrayLists as
> elements?
>
> for example ArrayList<ArrayList<E>> where E can be any type.. Double,
> Int.... etc
>
> Cheers,
>
>
Previous Topic:Using static variables in OCL constraints
Next Topic:[Announce] Eclipse OCL 4.1.0 (Kepler) M4 is now available
Goto Forum:
  


Current Time: Wed Aug 20 20:42:11 EDT 2014

Powered by FUDForum. Page generated in 0.01800 seconds