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: 33136
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


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Lost xml comments save editor
Next Topic:[Teneo] Mixing dynamicly generated mapping along with static xml
Goto Forum:
  


Current Time: Thu Apr 18 22:05:11 GMT 2024

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

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

Back to the top