[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.emf] How is EDataType modeled to relate to its instances EString, EInt and so on

Hi,
I am looking at the ecore metamodel at or.eclipse.emf.ecore.metamodel and I am wondering how exactly is it specified that the primitive data types with instance classes the corresponding java types are connected to EDataType. There is no "visible" connection. Attributes have eattributeType reference to EDataType and then is the link to the primitive data types lost for me. If I look at the serialized version of the ecore, I can see that EInt, EString and so on are instances of EDataType, but I definetely do not see this in the model.
I am trying to do a small metamodel of mine. which lets say has just classe, which have attributes, and the attributes have a type, how do I model this (I want it to be the same as in Ecore, as I will also have enumerations).
Thank you for your help and for making things clear.