[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.mdt.uml2] Re: Problems to patrticipate in a DerivedSubset-Association

Hi Marc-Florian,

It would seem that you are looking for a DerivedUnionEObjectEList or 
DerivedSubsetEObjectEList.  The various SubsetSuperset lists are used when 
you want to automatically add to the superset when an element gets added to 
the subset but not vice versa.
I'm not sure if you are implementing these things by hand but specifying the 
various subset rules in the model and using the code generator to determine 
the best list may be easier.

Cheers,
- James.

"Marc-Florian Wendland" <florianwendland@xxxxxxxxxx> wrote in message 
news:gh0th0$u6v$1@xxxxxxxxxxxxxxxxxxxx
> Hi all,
>
> i've a problem in my metamodel, which i create by using the UML2 genmodel. 
> That work's fine, but now i have a technical or knowledge problem.
>
> Is it possible to participate a derived subset???
>
> I have a derived subset between two elements (exactly like the 
> associations between Package and Type in the UML2 spec (fig. 7-14)). Now, 
> i have some subclasses of Type, which i want directly be accesible from 
> the Package. Therefore i create a new association from Package to let's 
> say TestComponent (which is a Type), that subsets the /ownedType 
> association end. But i didn't know, how to implement the getOwnedTypes(). 
> Actually, i use the DerivedSubsetEObjectList, but there, if have no 
> possibilities, to define the participating subsets (like 
> onwedTestComponent).
> IMHO, i need something like DerivedSubsetSupersetEObjectList...
>
> Thanks in advance.
>
> Marc-Florian
>