Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [Xcore] How to allow null in an EList?
[Xcore] How to allow null in an EList? [message #1302283] Fri, 18 April 2014 16:41 Go to next message
Hugo A. Garcia is currently offline Hugo A. GarciaFriend
Messages: 258
Registered: July 2009
Senior Member
Hi

How can I write in Xcore that source and target can contain null?

class HyperEdge {
String name
refers HyperVertex[] source
refers HyperVertex[] target
}

-H
Re: [Xcore] How to allow null in an EList? [message #1302548 is a reply to message #1302283] Fri, 18 April 2014 20:15 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
Hugo,

EMF doesn't allow nulls in any of the EObject list implementations, so
there's no way to specify it and no way to support it.

On 18/04/2014 6:41 PM, Hugo A. Garcia wrote:
> Hi
>
> How can I write in Xcore that source and target can contain null?
>
> class HyperEdge {
> String name
> refers HyperVertex[] source
> refers HyperVertex[] target
> }
>
> -H


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:[CDO 4.1] Not active: CDOTransactionImpl
Next Topic:Ecore model namespace from EObject
Goto Forum:
  


Current Time: Fri Apr 26 07:24:41 GMT 2024

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

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

Back to the top