[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.mdt.uml2] Re: Enumeration Default Value

Kenn,

You can define an EDataType whose instance class in the enum's class and that data type will allow nulls.


Kenn Hussey wrote:
Alexandre,

This is a side-effect of the fact that Ecore (from EMF) is used to represent 
the metadata for (defined) profiles - in Ecore, an enumeration, like 
primitive (data) types, must have an implicit default. Unfortunately, I 
don't think there's much that can be done to change this. :(

Kenn

"Alexandre Torres" <alexandre.torres@xxxxxxxxx> wrote in message 
news:c083e22b68ab5c671880a8c4bffc028b$1@xxxxxxxxxxxxxxx...
  
Hi.
I created a profile where one of the stereotype properties points to an 
enumeraton. The property is set as [0..1] with default value null literal.
But it's just impossible to set a null value to this property. When the 
profile is defined (define menu) it chooses one of the literals as an 
arbitrary default value.
How can I create a property that accept nulls with Enumerations ?

Thanks