Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [XCore] EList<? extends Class>
[XCore] EList<? extends Class> [message #1066995] Fri, 05 July 2013 11:27 Go to next message
Martin  odloucký is currently offline Martin odlouckýFriend
Messages: 49
Registered: July 2010
Member
Hi,

is there a way to specify return type for operation in XCore looking like this:

EList<? extends SomeClass>

I know that I can specify EList<SomeClass> as SomeClass[] but I need the former variant.

Thanks in advance
Re: [XCore] EList&lt;? extends Class&gt; [message #1067002 is a reply to message #1066995] Fri, 05 July 2013 11:51 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Martin,

You need an EDataType for EList, but Ecore provides one for its own
internal needs, so you can use that as follows:

import org.eclipse.emf.ecore.EEList

class X extends Library {
op EEList<? extends Library> foo() {
}
}


On 05/07/2013 1:27 PM, Martin odloucký wrote:
> Hi,
> is there a way to specify return type for operation in XCore looking
> like this:
>
> EList<? extends SomeClass>
>
> I know that I can specify EList<SomeClass> as SomeClass[] but I need
> the former variant.
> Thanks in advance


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: [XCore] EList&lt;? extends Class&gt; [message #1067005 is a reply to message #1067002] Fri, 05 July 2013 12:01 Go to previous message
Martin  odloucký is currently offline Martin odlouckýFriend
Messages: 49
Registered: July 2010
Member
HA, it works! Thank you Ed for your brisk answer. Have a nice day. Smile
Previous Topic:Fwd: [CDO/EMF] Modeling BIG amounts of tiny data
Next Topic:Need an Adapter to be notified of changing references (with containment="false")
Goto Forum:
  


Current Time: Fri Apr 19 11:37:22 GMT 2024

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

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

Back to the top