Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community Forums(no subject)
https://www.eclipse.org/forums/index.php/mv/msg/214853/687177/#msg_687177
shall be returned for an attribute having this enumeration type, if no
value is set to the attribute before?
So I want a behavior like EBooleanObject is for EBoolean.]]>John Smith2011-06-11T09:05:40-00:00(no subject)
https://www.eclipse.org/forums/index.php/mv/msg/214853/687179/#msg_687179
Enumerations always have a value, but Features can have optional
multiplicity so why not just use lowerBound=0 ?
Regards
Ed Willink
On 11/06/2011 10:05, exquisitus wrote:
> Is it possible to model an enumeration, where actually
> <code>null</code> shall be returned for an attribute having this
> enumeration type, if no value is set to the attribute before?
>
> So I want a behavior like EBooleanObject is for EBoolean.]]>Ed Willink2011-06-11T10:03:17-00:00(no subject)
https://www.eclipse.org/forums/index.php/mv/msg/214853/687436/#msg_687436
Enumerations always have a value, but Features can have optional
multiplicity so why not just use lowerBound=0 ?
Regards
Ed Willink
On 11/06/2011 10:05, exquisitus wrote:
> Is it possible to model an enumeration, where actually
> <code>null</code> shall be returned for an attribute having this
> enumeration type, if no value is set to the attribute before?
>
> So I want a behavior like EBooleanObject is for EBoolean.]]>Ed Willink2011-06-11T10:03:17-00:00(no subject)
https://www.eclipse.org/forums/index.php/mv/msg/214853/687180/#msg_687180
qualified name of the generated enum and use that instead of the EEnum.
exquisitus wrote:
> Is it possible to model an enumeration, where actually
> <code>null</code> shall be returned for an attribute having this
> enumeration type, if no value is set to the attribute before?
>
> So I want a behavior like EBooleanObject is for EBoolean.]]>Ed Merks2011-06-11T16:25:27-00:00(no subject)
https://www.eclipse.org/forums/index.php/mv/msg/214853/687437/#msg_687437
qualified name of the generated enum and use that instead of the EEnum.
exquisitus wrote:
> Is it possible to model an enumeration, where actually
> <code>null</code> shall be returned for an attribute having this
> enumeration type, if no value is set to the attribute before?
>
> So I want a behavior like EBooleanObject is for EBoolean.]]>Ed Merks2011-06-11T16:25:27-00:00(no subject)
https://www.eclipse.org/forums/index.php/mv/msg/214853/687182/#msg_687182
> multiplicity so why not just use lowerBound=0 ?
>
because even with lowerBound=0 and the feature is unset, I will get the
default value, and not null.]]>John Smith2011-06-12T11:22:17-00:00(no subject)
https://www.eclipse.org/forums/index.php/mv/msg/214853/687439/#msg_687439
> multiplicity so why not just use lowerBound=0 ?
>
because even with lowerBound=0 and the feature is unset, I will get the
default value, and not null.]]>John Smith2011-06-12T11:22:17-00:00(no subject)
https://www.eclipse.org/forums/index.php/mv/msg/214853/687184/#msg_687184
Which is why you need to call eIsSet to distinguish the two cases.
Regards
Ed Willink
On 12/06/2011 12:22, exquisitus wrote:
>
>> Enumerations always have a value, but Features can have optional
>> multiplicity so why not just use lowerBound=0 ?
>>
> because even with lowerBound=0 and the feature is unset, I will get
> the default value, and not null.]]>Ed Willink2011-06-12T12:45:51-00:00(no subject)
https://www.eclipse.org/forums/index.php/mv/msg/214853/687441/#msg_687441
Which is why you need to call eIsSet to distinguish the two cases.
Regards
Ed Willink
On 12/06/2011 12:22, exquisitus wrote:
>
>> Enumerations always have a value, but Features can have optional
>> multiplicity so why not just use lowerBound=0 ?
>>
> because even with lowerBound=0 and the feature is unset, I will get
> the default value, and not null.]]>Ed Willink2011-06-12T12:45:51-00:00