Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » Stereotype property with defined type
Stereotype property with defined type [message #59682] Tue, 28 August 2007 17:26 Go to next message
Alexandre Torres is currently offline Alexandre TorresFriend
Messages: 139
Registered: July 2009
Senior Member
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 #59706 is a reply to message #59682] Tue, 28 August 2007 18:01 Go to previous messageGo to next message
Alexandre Torres is currently offline Alexandre TorresFriend
Messages: 139
Registered: July 2009
Senior Member
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 ? 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
Re: Stereotype property with defined type [message #59779 is a reply to message #59706] Wed, 29 August 2007 09:06 Go to previous message
Eclipse UserFriend
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/
--------------------------------------------------------
Previous Topic:[ATL] how to match rules only once
Next Topic:[QVT] Generic typed function
Goto Forum:
  


Current Time: Fri Apr 26 07:15:51 GMT 2024

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

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

Back to the top