Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Set attribute type in UML model to List or ArrayList
Set attribute type in UML model to List or ArrayList [message #1062712] Mon, 10 June 2013 13:06 Go to next message
moon daz is currently offline moon dazFriend
Messages: 3
Registered: June 2013
Junior Member
Im creating a UML model in EMF and I have a class called
Event
And the
Event
class has an attribute called
time
which is has long integer values. I need to store an array of long integer values in time i.e I want to set it to List or ArrayList type of long integer values which are read from another file. When I set it to EList type or set it to Multi-Value(Upper bound -1), it is set to EList and when I use setTime with List type in java, there is a mismatch and values are not getting assigned. How do I solve this?
Re: Set attribute type in UML model to List or ArrayList [message #1062802 is a reply to message #1062712] Mon, 10 June 2013 19:21 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
You can define an EDataType that wraps long[]. Is that what you want?

On 10/06/2013 7:59 PM, moon daz wrote:
> Im creating a UML model in EMF and I have a class called Event And the
> Event class has an attribute called time which is has long integer
> values. I need to store an array of long integer values in time i.e I
> want to set it to List or ArrayList type of long integer values which
> are read from another file. When I set it to EList type or set it to
> Multi-Value(Upper bound -1), it is set to EList and when I use setTime
> with List type in java, there is a mismatch and values are not getting
> assigned. How do I solve this?


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:problem with generating Ecore model from XSD
Next Topic:How to access EMF objects into a transaction
Goto Forum:
  


Current Time: Thu Mar 28 15:52:14 GMT 2024

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

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

Back to the top