Stereotype property with defined type [message #59682] |
Tue, 28 August 2007 13:26  |
Eclipse User |
|
|
|
Hi
I'm experimenting with ATL and profiles.
I did create a profile with stereotype and added a property wich points to
one of uml meta-classes (Class metaclass for instance). This worked.
Now I want to define my own metaclass. A metaclass that has as properties
a Property element, and them bind it to my stereotype.
I create a class inside the profile definition named PropertyDependency,
and make the bind in the stereotype, something like:
<mystereo>
ClassDependency : Class
properties: PropertyDependency [0..*]
<Class> PropertyDependency
dependentProperty: Property [1]
kind: String
The point I'm stuck is, when I apply the sterotype, I can't create
PropertyDependency object in the UML editor. I don't think it's the proper
place to ask this, but I don't even know if this is the way to do that :)
Later my ATL will need to interpret this metamodel.
Thanks.
|
|
|
|
Re: Stereotype property with defined type [message #59779 is a reply to message #59706] |
Wed, 29 August 2007 05:06  |
Eclipse User |
|
|
|
Originally posted by: Hugo.Bruneliere.univ-nantes.fr
Hi Alexandre,
Alexandre Torres a écrit :
> I did some homework and find this
>
> http://dev.eclipse.org/newslists/news.eclipse.tools.uml2/msg 03997.html
>
> Just had to set the property as COMPOSITE. It seems to have solved the
> issue. going to test it now.
>
> Very cool. Now the eclipse's "new child" show my new property. Where is
> the best place to ask some tips to create profiles ?
The best place to ask questions about UML2 profiles and their creation
is the eclipse.modeling.mdt.uml2 newsgroup.
Of course, if your profiles (and UML2 models) are created and/or handled
by ATL transformations you're still invited to ask questions on this
newsgroup ;-)
> I would like very
> much to attach an OCL expression to the property, so that it would
> filter only properties of related classes in the stereotype.
> Thanks
>
>
>
Best regards,
Hugo
--
--------------------------------------------------------
Hugo Bruneliere - R&D Engineer
ATLAS Group (INRIA & LINA) - University of Nantes
2, rue de la Houssiniere
44322 Nantes Cedex 3 - France
office +33 2 51 12 58 10 /\ cell.+33 6 07 42 45 30
EMail: Hugo.Bruneliere@univ-nantes.fr
http://www.sciences.univ-nantes.fr/lina/atl/
--------------------------------------------------------
|
|
|
Powered by
FUDForum. Page generated in 0.03298 seconds