Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » EOperation return type
EOperation return type [message #425825] Tue, 09 December 2008 13:30 Go to next message
David Michonneau is currently offline David MichonneauFriend
Messages: 85
Registered: July 2009
Member
Hi,

I would like to specify an EOperation in my .ecore model that generates a
signature as follows:

Iterator getIterator();

What should I set in EType for that?

Thanks,

David
Re: EOperation return type [message #425827 is a reply to message #425825] Tue, 09 December 2008 13:35 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
David,

For Java types that are not modeled as EClasses you need to define an
EDataType in your model and specify the instance class name of the Java
type (here: java.util.Iterator). Then you can use this EDataType as the
return EType of an EOperation and elsewhere.

Cheers
/Eike

----
http://thegordian.blogspot.com



David Michonneau schrieb:
> Hi,
>
> I would like to specify an EOperation in my .ecore model that generates a
> signature as follows:
>
> Iterator getIterator();
>
> What should I set in EType for that?
>
> Thanks,
>
> David
>
>
>


Re: EOperation return type [message #425829 is a reply to message #425827] Tue, 09 December 2008 14:13 Go to previous message
David Michonneau is currently offline David MichonneauFriend
Messages: 85
Registered: July 2009
Member
Thanks,

David

"Eike Stepper" <stepper@esc-net.de> wrote in message
news:ghls6g$37u$1@build.eclipse.org...
> David,
>
> For Java types that are not modeled as EClasses you need to define an
> EDataType in your model and specify the instance class name of the Java
> type (here: java.util.Iterator). Then you can use this EDataType as the
> return EType of an EOperation and elsewhere.
>
> Cheers
> /Eike
>
> ----
> http://thegordian.blogspot.com
>
>
>
> David Michonneau schrieb:
>> Hi,
>>
>> I would like to specify an EOperation in my .ecore model that generates a
>> signature as follows:
>>
>> Iterator getIterator();
>>
>> What should I set in EType for that?
>>
>> Thanks,
>>
>> David
>>
>>
Previous Topic:EMF Editors with files on EFS don't show local change history
Next Topic:eSet in multiple (parent/child) models
Goto Forum:
  


Current Time: Fri Apr 26 22:16:43 GMT 2024

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

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

Back to the top