Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » List<String> as operation return type in EMF
List<String> as operation return type in EMF [message #425855] Wed, 10 December 2008 09:24 Go to next message
Anders Forsell is currently offline Anders ForsellFriend
Messages: 127
Registered: July 2009
Senior Member
Hi,

Is it possible to define an operation in my .ecore file that returns a
typed list "List<String>".
Defining a data type with "java.util.List<String>" did not work well.

Thanks,

---
Anders
Re: List<String> as operation return type in EMF [message #425858 is a reply to message #425855] Wed, 10 December 2008 09:45 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 30917
Registered: July 2009
Senior Member
Anders,

You'd use java.util.List<java.lang.String>. You can also look at how
the Ecore modeling defines the return type for things like
EObject.eContents...


Anders Forsell wrote:
> Hi,
>
> Is it possible to define an operation in my .ecore file that returns a
> typed list "List<String>".
> Defining a data type with "java.util.List<String>" did not work well.
>
> Thanks,
>
> ---
> Anders
Previous Topic:Lost xml comments save editor
Next Topic:[Teneo] Mixing dynamicly generated mapping along with static xml
Goto Forum:
  


Current Time: Sat Feb 29 13:57:35 GMT 2020

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

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

Back to the top