eclipse-ocl / org.eclipse.ocl

Eclipse Public License 2.0
1 stars 0 forks source link

[pivot] Support nullable EEnums #862

Open eclipse-ocl-bot opened 2 months ago

eclipse-ocl-bot commented 2 months ago

| --- | --- | | Bugzilla Link | 372531 | | Status | NEW | | Importance | P3 enhancement | | Reported | Feb 24, 2012 13:40 EDT | | Modified | Aug 01, 2019 10:56 EDT | | Version | 3.2.0 | | Reporter | Ed Willink |

Description

Ecore has a nullable EEnum idiom used in conjunction with XSD.

datatype GenderObject : 'org.eclipse.emf.common.util.Enumerator' { serializable }\ {\ annotation _'http:///org/eclipse/emf/ecore/util/ExtendedMetaData'\ (\ 'name' = 'Gender:Object',\ 'baseType' = 'Gender' );\ }

This perhaps needs to recognised in the Ecore2Pivot conversion and/or in the ValueFactory.valueOf loader.

eclipse-ocl-bot commented 2 months ago

By Ed Willink on Mar 01, 2013 10:25

All e.g.

property gender : GenderObject;

'just' need mapping to

property gender : Gender[?];