Skip to main content


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 12:46 Go to next message
ModelGeek Mising name is currently offline ModelGeek Mising nameFriend
Messages: 550
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 13:11 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
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: Thu Apr 18 16:42:55 GMT 2024

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

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

Back to the top