Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » derived tagged value in a stereotype.
derived tagged value in a stereotype. [message #473108] Thu, 07 June 2007 05:03 Go to next message
Eclipse User
Originally posted by: firstname.name.gmail.com

Hello,

According to UML OMG specification, i may define a stereotype having a derived
tag value.

This feature seems to be useful in some case but I am wondering how could be it
supported/used. I think that one of the most proper way should be to define a
OCL expression to compute the derived value (the UML specification mostly
defines derived expression in english) and maybe use it as constraint.

But, if we consider this mechanism, I really don't know how this value may be
"in live" computed when a profile is applied.

Does someone has any ideas?

--
F. Lagarde
Re: derived tagged value in a stereotype. [message #473117 is a reply to message #473108] Thu, 07 June 2007 12:01 Go to previous messageGo to next message
james bruck is currently offline james bruck
Messages: 1724
Registered: July 2009
Senior Member
Hi Fran
Re: derived tagged value in a stereotype. [message #473124 is a reply to message #473117] Fri, 08 June 2007 04:32 Go to previous messageGo to next message
Eclipse User
Originally posted by: firstname.name.gmail.com

In the last post, on 06/07 about 06h, "James" (James Bruck) wrote:


James> 1. Use static profile definition. That is, generate code from
James> your profile [...] There is support for this in the 2.1 release.

thanks for your reply.

I "discovered" this feature, but I have not yet understood how use this
mechanism.

I guess that since profiles are dynamics and can't affect the UML metamodel,
static profile result in a kind of "plugin" in addition to the classic profile
definition. This plugin could be a charge of useful things... but I do not know
what..

Is there any tutorial or example to provide helps.

--
F. Lagarde
Re: derived tagged value in a stereotype. [message #473131 is a reply to message #473124] Fri, 08 June 2007 16:41 Go to previous messageGo to next message
james bruck is currently offline james bruck
Messages: 1724
Registered: July 2009
Senior Member
Hi Fran
Re: derived tagged value in a stereotype. [message #473133 is a reply to message #473131] Fri, 08 June 2007 22:58 Go to previous message
james bruck is currently offline james bruck
Messages: 1724
Registered: July 2009
Senior Member
... In 3.3 below, make sure that the path uses a fragment part at the end
with the ID of the profile
For example ...
file:/c:/UMLDevelopment//test/My1.profile.uml#_DqRFwAlREdyIH rX0Afxt4g or
by using a relative path.

- James.


"James Bruck" <jbruck@ca.ibm.com> wrote in message
news:f4ceul$oi9$2@build.eclipse.org...
> Hi Fran
Re: derived tagged value in a stereotype. [message #619787 is a reply to message #473108] Thu, 07 June 2007 12:01 Go to previous message
james bruck is currently offline james bruck
Messages: 1724
Registered: July 2009
Senior Member
Hi Fran
Re: derived tagged value in a stereotype. [message #619912 is a reply to message #473117] Fri, 08 June 2007 04:32 Go to previous message
Eclipse User
Originally posted by: firstname.name.gmail.com

In the last post, on 06/07 about 06h, "James" (James Bruck) wrote:


James> 1. Use static profile definition. That is, generate code from
James> your profile [...] There is support for this in the 2.1 release.

thanks for your reply.

I "discovered" this feature, but I have not yet understood how use this
mechanism.

I guess that since profiles are dynamics and can't affect the UML metamodel,
static profile result in a kind of "plugin" in addition to the classic profile
definition. This plugin could be a charge of useful things... but I do not know
what..

Is there any tutorial or example to provide helps.

--
F. Lagarde
Re: derived tagged value in a stereotype. [message #619919 is a reply to message #473124] Fri, 08 June 2007 16:41 Go to previous message
james bruck is currently offline james bruck
Messages: 1724
Registered: July 2009
Senior Member
Hi Fran
Re: derived tagged value in a stereotype. [message #619921 is a reply to message #473131] Fri, 08 June 2007 22:58 Go to previous message
james bruck is currently offline james bruck
Messages: 1724
Registered: July 2009
Senior Member
... In 3.3 below, make sure that the path uses a fragment part at the end
with the ID of the profile
For example ...
file:/c:/UMLDevelopment//test/My1.profile.uml#_DqRFwAlREdyIH rX0Afxt4g or
by using a relative path.

- James.


"James Bruck" <jbruck@ca.ibm.com> wrote in message
news:f4ceul$oi9$2@build.eclipse.org...
> Hi Fran
Previous Topic:dynamic pathmap:// variable registration & opening, editing, creating models with pathmap URIs
Next Topic:Determine accessible Types
Goto Forum:
  


Current Time: Fri Apr 18 19:31:33 EDT 2014

Powered by FUDForum. Page generated in 0.01772 seconds