Community
Participate
Working Groups
I've an attribute of the Ecore type EDouble, and the HUTN editor complains that 1.0 is not an EDouble value. If I change the type to EFloat 1.0 is accepted. I guess that float is treated specially, but there should be generic support for other EDataTypes. The natural solution is to give the literal string to the EFactory's createFromString method. Since an EDataType's createFromString method is free to define its own syntax, e.g. include whitespace and commas, some EDataTypes may be impossible to parse correctly. E.g. a Point data type with the syntax x,y will trip the parser. One solution is to allow String literals with quotes and remove the quotes before calling createFromString.