Enumeration and null values [message #627009] |
Fri, 10 October 2008 21:18 |
Alexandre Torres Messages: 139 Registered: July 2009 |
Senior Member |
|
|
Hi.
I have an Stereotype with a property. The property's type is an
Enumeration.
The problem is: even if I set the multiplicity to [0..1], my property does
not allow a null value.
Worse, it assumes the first enumeration literal as the default value.
Looking in the profile generated definition I found that it picks the
first value as the default.
I don't think this is the expected behaviour for UML...
my reasoning is...if I set [0..*] it will generate an infinite list of
default values ? of course not...
Do I have to create an specific literal named NULL ?
Thanks
|
|
|
Powered by
FUDForum. Page generated in 0.03453 seconds