[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.m2m] Re: [ATL] how to get the parent's name in UML

unique schrieb:
> Hi everyone,
> 
> I want to judge if a class is in the compsite package,for example :
> 
> <packagedElement xmi:type="uml:Package"  name="Composite Package">
>     <packagedElement xmi:type="uml:Class"  name="onlinesale"/>
> </packagedElement>
> 
> 
> now in another package named "class package" it also has a class named
> "onlinesale",I want to judge the class named "onlinesale" belonging to
> Package named "Compsite Package".
> How should I do it ?
> 
> Thanks very much.
> Best for wishes!
you can get the container of an element with refImmediateComposite(),
for the class it would the containing package.

greetings, urs.