|
Re: Should reference to EDataType be containment or not? [message #422545 is a reply to message #422540] |
Mon, 08 September 2008 22:58 |
Ed Merks Messages: 33140 Registered: July 2009 |
Senior Member |
|
|
Bryan,
Comments below.
Bryan Hunt wrote:
> If I model a class such as:
>
> public class Foo
> {
> private EDataType type;
> }
>
> should I model type as containment or non-containment? My guess is
> non-containment, but the whole meta - meta thing hurts my head
> sometimes, and I just wanted to be sure.
An EDataType is a thing from the Ecore model and generally an EDataType
is an EClassifier so we would expect such an EClassifier is contained by
an EPackage's getEClassifiers. An EClassifier that isn't contained by
an EPackage doesn't have much meaning, i.e., we can't figure out what
factory would be used for converting values to and from a string the way
EcoreUtil.convertToString/createFromString would normally do it.
>
> Bryan
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.03127 seconds