Skip to main content



      Home
Home » Modeling » EMF » Should reference to EDataType be containment or not?
Should reference to EDataType be containment or not? [message #422540] Mon, 08 September 2008 18:33 Go to next message
Eclipse UserFriend
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.

Bryan
Re: Should reference to EDataType be containment or not? [message #422545 is a reply to message #422540] Mon, 08 September 2008 18:58 Go to previous message
Eclipse UserFriend
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
>
Previous Topic:Constraints Using OCL (Dave S. please help me)
Next Topic:Containment
Goto Forum:
  


Current Time: Tue Jul 08 15:32:58 EDT 2025

Powered by FUDForum. Page generated in 0.25005 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top