|Re: Ecore defaultValue for EByteArray or EFloat with multiplicities [message #1694614 is a reply to message #1227105]
||Wed, 06 May 2015 16:29
| Darrel Karisch
Registered: July 2012
How can one provide a default attribute value for a generic type?|
for generic types a create???FromString is generated but never invoked despite including a default String value in an ecore model.
genericType.ecore defines generic type
example.ecore includes a genericType with default String value
It appears that the implementation does not handle default generic type values.
since EDataType will not have any reference to the required type it appears that it is not doable. create???FromString would require some kind of "hint" for the types required.
Nevertheless, initializePackageContents does record the default String Literal for the generic type attribute. Is it not possible to have a create???FromString using the Attribute argument so the correct type information can be derived for a new instance?
[Updated on: Wed, 06 May 2015 16:56]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01662 seconds