[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
|
- From: urs zeidler <me@xxxxxxxxxxxxx>
- Date: Sat, 31 May 2008 12:41:40 +0200
- Newsgroups: eclipse.modeling.m2m
- Organization: EclipseCorner
- User-agent: Thunderbird 2.0.0.0 (Windows/20070326)
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.