| [news.eclipse.tools.emf] Re: extending eType(s) |
Hi Ed,
thanks - looks promising ... :)
Greetings,
Ralf
Ralf,
Both EcorePackage and XMLTypePackage show numerous examples for how to introduce new EDataTypes. You'd just create a new EPackage xyz with an EDataType Abc for each Java type you want to support. Then you'd implement the createAbcFromString/converterAbcToString in the XyzFactoryImpl. Once you've done that, you'd be able to use that package's data types in any other Ecore model. In terms of the Java APIs, clients would use those existing classes and interfaces directly as normal.
Ralf Buschermoehle wrote:Hello,
what would be a good starting point to introduce more (e)types e.g., from java.math or the jscience api like LargeInteger, Rational numbers a.s.o. (including (their) methods to handle/compute such values)?
Greetings,
Ralf