[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.emf] EReference and primitive types

Hi all,

I am trying to build a meta-model which describes an application that contains types, which contain fields.

Application <>--0..* Type
Type <>--0..* Field

Type has a name attribute. Field has a name attribute too.
Field also has a type reference (EReference). In the instance the reference should be of an existing Type.


So far so good. But how to add primitive types to the system without requiring the user to define them as "Type"-s?

My current solution is to add an enumerated "kind" attribute to the Field. Any better ideas?

Adrian.