Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [TEXO] unbounded type
[TEXO] unbounded type [message #870897] Thu, 10 May 2012 08:07 Go to next message
Gary Godfrey is currently offline Gary GodfreyFriend
Messages: 31
Registered: February 2012
Member
Hi,

Is there a way to convert an unbounded XSD element into a Java array rather than a List/Set?

e.g.
<xs:element name="scapName" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>


This creates:
private List<String> scapName = new ArrayList<String>();

Can it instead create:
protected String[] scapName;


Regards,
Gary
Re: [TEXO] unbounded type [message #870926 is a reply to message #870897] Thu, 10 May 2012 09:29 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Not yet, Set is supported next to List, but not array, can you enter a feature request/bugzilla for this then I can add it?

gr. Martin

On 05/10/2012 10:07 AM, Gary Godfrey wrote:
> Hi,
>
> Is there a way to convert an unbounded XSD element into a Java array rather than a List/Set?
>
> e.g.
>
> <xs:element name="scapName" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
>
>
> This creates:
>
> private List<String> scapName = new ArrayList<String>();
>
> Can it instead create:
>
> protected String[] scapName;
>
>
> Regards,
> Gary


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@xxxxxxxx - mtaal@xxxxxxxx
Web: www.springsite.com - www.elver.org
Previous Topic:[EEF] Customizing EEF Generation
Next Topic:Re: Texo: how to declare one-to-many relations for different parent types?
Goto Forum:
  


Current Time: Thu Apr 25 16:07:22 GMT 2024

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

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

Back to the top