Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Stereotype property typed with other stereotype
Stereotype property typed with other stereotype [message #476667] Fri, 23 November 2007 21:34 Go to next message
Eclipse UserFriend
Originally posted by: luciananegri81.yahoo.it

Hi,
I have extend the UML Metamodel (it is .Ecore file)
with a stereotype where the type of stereotype property
is another stereotype and evaluate
from another.
How must I add the classes in my metamodel?

Thanks
Luciana
Re: Stereotype property typed with other stereotype [message #476669 is a reply to message #476667] Mon, 26 November 2007 14:57 Go to previous messageGo to next message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Luciana,

From the first part of your question, it seems that you have a stereotype
that is typed by another stereotype ... that's good.
What I'm puzzled about is the last sentence "How must I add the classes in
my metamodel?". What do you mean by "the classes"? Do you want to
know how to programatically set the value of the property (that is typed by
the stereotype)? What "metamodel" are you referring to?

I would need more information to answer this.

Perhaps a good starting point would be this article :
http://www.eclipse.org/modeling/mdt/uml2/docs/articles/Intro duction_to_UML2_Profiles/article.html


- James.



"Luciana" <luciananegri81@yahoo.it> wrote in message
news:161591192154fa28c0a229ca3b6ed082$1@www.eclipse.org...
> Hi,
> I have extend the UML Metamodel (it is .Ecore file)
> with a stereotype where the type of stereotype property
> is another stereotype and evaluate from another.
> How must I add the classes in my metamodel?
>
> Thanks
> Luciana
Re: Stereotype property typed with other stereotype [message #476670 is a reply to message #476669] Mon, 26 November 2007 17:49 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: luciananegri81.yahoo.it

Hi James,
about the last sentency I wanted to say as I add the metaclasses which
represent the stereotype in UML Metamodel and particulary how set (in the
graphical interface "sample ecore model editor") the value of the property
typed by other stereotype.
I don't succeed in understanding the mechanism, however I see the article
that you have recommended me.
I want to also ask you another thing: is it possible to extend one
metaclass whit two different stereotype? If it's possible, when (in the
model) I instance the class which stereotype I must use?
Thank you very much
Luciana.
Re: Stereotype property typed with other stereotype [message #476678 is a reply to message #476670] Wed, 28 November 2007 01:46 Go to previous messageGo to next message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Luciana,

If the Stereotype that you wish to set as the type of the property in
question is in the same profile, then you should see it as an option when
you try to set the type from the editor.

Currently, setting the type to a stereotype in a separate profile is not
supported.

And, yes, you can apply any number of stereotypes to an element ( discussed
in section 18 of the UML superstructure spec ).

Regards,
- James


"Luciana" <luciananegri81@yahoo.it> wrote in message
news:b3a086b9c4710bcbe05bcf3ffd1fd7ca$1@www.eclipse.org...
> Hi James, about the last sentency I wanted to say as I add the metaclasses
> which represent the stereotype in UML Metamodel and particulary how set
> (in the graphical interface "sample ecore model editor") the value of the
> property typed by other stereotype.
> I don't succeed in understanding the mechanism, however I see the article
> that you have recommended me.
> I want to also ask you another thing: is it possible to extend one
> metaclass whit two different stereotype? If it's possible, when (in the
> model) I instance the class which stereotype I must use?
> Thank you very much
> Luciana.
Re: Stereotype property typed with other stereotype [message #476687 is a reply to message #476678] Thu, 29 November 2007 16:33 Go to previous message
Eclipse UserFriend
Originally posted by: luciananegri81.yahoo.it

Thank you for the information.
Luciana
Re: Stereotype property typed with other stereotype [message #625569 is a reply to message #476667] Mon, 26 November 2007 14:57 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Luciana,

From the first part of your question, it seems that you have a stereotype
that is typed by another stereotype ... that's good.
What I'm puzzled about is the last sentence "How must I add the classes in
my metamodel?". What do you mean by "the classes"? Do you want to
know how to programatically set the value of the property (that is typed by
the stereotype)? What "metamodel" are you referring to?

I would need more information to answer this.

Perhaps a good starting point would be this article :
http://www.eclipse.org/modeling/mdt/uml2/docs/articles/Intro duction_to_UML2_Profiles/article.html


- James.



"Luciana" <luciananegri81@yahoo.it> wrote in message
news:161591192154fa28c0a229ca3b6ed082$1@www.eclipse.org...
> Hi,
> I have extend the UML Metamodel (it is .Ecore file)
> with a stereotype where the type of stereotype property
> is another stereotype and evaluate from another.
> How must I add the classes in my metamodel?
>
> Thanks
> Luciana
Re: Stereotype property typed with other stereotype [message #625570 is a reply to message #476669] Mon, 26 November 2007 17:49 Go to previous message
Eclipse UserFriend
Originally posted by: luciananegri81.yahoo.it

Hi James,
about the last sentency I wanted to say as I add the metaclasses which
represent the stereotype in UML Metamodel and particulary how set (in the
graphical interface "sample ecore model editor") the value of the property
typed by other stereotype.
I don't succeed in understanding the mechanism, however I see the article
that you have recommended me.
I want to also ask you another thing: is it possible to extend one
metaclass whit two different stereotype? If it's possible, when (in the
model) I instance the class which stereotype I must use?
Thank you very much
Luciana.
Re: Stereotype property typed with other stereotype [message #625578 is a reply to message #476670] Wed, 28 November 2007 01:46 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Luciana,

If the Stereotype that you wish to set as the type of the property in
question is in the same profile, then you should see it as an option when
you try to set the type from the editor.

Currently, setting the type to a stereotype in a separate profile is not
supported.

And, yes, you can apply any number of stereotypes to an element ( discussed
in section 18 of the UML superstructure spec ).

Regards,
- James


"Luciana" <luciananegri81@yahoo.it> wrote in message
news:b3a086b9c4710bcbe05bcf3ffd1fd7ca$1@www.eclipse.org...
> Hi James, about the last sentency I wanted to say as I add the metaclasses
> which represent the stereotype in UML Metamodel and particulary how set
> (in the graphical interface "sample ecore model editor") the value of the
> property typed by other stereotype.
> I don't succeed in understanding the mechanism, however I see the article
> that you have recommended me.
> I want to also ask you another thing: is it possible to extend one
> metaclass whit two different stereotype? If it's possible, when (in the
> model) I instance the class which stereotype I must use?
> Thank you very much
> Luciana.
Re: Stereotype property typed with other stereotype [message #625658 is a reply to message #476678] Thu, 29 November 2007 16:33 Go to previous message
Eclipse UserFriend
Originally posted by: luciananegri81.yahoo.it

Thank you for the information.
Luciana
Previous Topic:[Announce] MDT UML2 2.2.0 I200711291020 is available
Next Topic:[UML2] Empty list of stereotypes
Goto Forum:
  


Current Time: Wed Sep 25 14:42:58 GMT 2024

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

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

Back to the top