Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » applying stereotypes with the same name
applying stereotypes with the same name [message #477570] Sat, 05 July 2008 01:28 Go to next message
Hoze Nadav is currently offline Hoze NadavFriend
Messages: 9
Registered: July 2009
Junior Member
Hi all

could it be that there's a problem with applying stereotypes in the same
profile with the same name to different elements ?

I'm doing it programmatically and some how the elements are all applied
with the first element with the same name, If I change the names of the
stereotypes to be different it works like a charm.

please, can any one help ?


thx

Nadav
Re: applying stereotypes with the same name [message #477571 is a reply to message #477570] Sat, 05 July 2008 23:19 Go to previous message
Eclipse UserFriend
Originally posted by: cdamus.zeligsoft.com

--=-Mu4mYZNYsAbNg3do4Ush
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hi, Nadav,

A profile (or any other namespace) whose members are not distinguishable
(according to their specific isDistinguishableFrom(...) criteria) is
ill-formed. It is not expected that a profile that has
identically-named stereotypes would work.

>From a practical perspective, in the MDT UML2 implementation,
stereotypes in the same profile that have the same name will generate
XML elements that have the same name in your XML schema. Matching the
XML element names to stereotype names in the profile will naturally
result in only one of the stereotypes being selected in all cases.

Do you need these stereotypes to have the same name? That seems odd.

Cheers,

Christian


On Sat, 2008-07-05 at 01:28 +0000, Nadav wrote:

> Hi all
>
> could it be that there's a problem with applying stereotypes in the same
> profile with the same name to different elements ?
>
> I'm doing it programmatically and some how the elements are all applied
> with the first element with the same name, If I change the names of the
> stereotypes to be different it works like a charm.
>
> please, can any one help ?
>
>
> thx
>
> Nadav
>

--=-Mu4mYZNYsAbNg3do4Ush
Content-Type: text/html; charset=utf-8

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.16.0">
</HEAD>
<BODY>
Hi, Nadav,<BR>
<BR>
A profile (or any other namespace) whose members are not distinguishable (according to their specific isDistinguishableFrom(...) criteria) is ill-formed.&nbsp; It is not expected that a profile that has identically-named stereotypes would work.<BR>
<BR>
>From a practical perspective, in the MDT UML2 implementation, stereotypes in the same profile that have the same name will generate XML elements that have the same name in your XML schema.&nbsp; Matching the XML element names to stereotype names in the profile will naturally result in only one of the stereotypes being selected in all cases.<BR>
<BR>
Do you need these stereotypes to have the same name?&nbsp; That seems odd.<BR>
<BR>
Cheers,<BR>
<BR>
Christian<BR>
<BR>
<BR>
On Sat, 2008-07-05 at 01:28 +0000, Nadav wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">Hi all</FONT>

<FONT COLOR="#000000">could it be that there's a problem with applying stereotypes in the same </FONT>
<FONT COLOR="#000000">profile with the same name to different elements ? </FONT>

<FONT COLOR="#000000">I'm doing it programmatically and some how the elements are all applied </FONT>
<FONT COLOR="#000000">with the first element with the same name, If I change the names of the </FONT>
<FONT COLOR="#000000">stereotypes to be different it works like a charm.</FONT>

<FONT COLOR="#000000">please, can any one help ?</FONT>


<FONT COLOR="#000000">thx</FONT>

<FONT COLOR="#000000">Nadav</FONT>

</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>

--=-Mu4mYZNYsAbNg3do4Ush--
Re: applying stereotypes with the same name [message #626762 is a reply to message #477570] Sat, 05 July 2008 23:19 Go to previous message
Eclipse UserFriend
Originally posted by: cdamus.zeligsoft.com

--=-Mu4mYZNYsAbNg3do4Ush
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hi, Nadav,

A profile (or any other namespace) whose members are not distinguishable
(according to their specific isDistinguishableFrom(...) criteria) is
ill-formed. It is not expected that a profile that has
identically-named stereotypes would work.

>From a practical perspective, in the MDT UML2 implementation,
stereotypes in the same profile that have the same name will generate
XML elements that have the same name in your XML schema. Matching the
XML element names to stereotype names in the profile will naturally
result in only one of the stereotypes being selected in all cases.

Do you need these stereotypes to have the same name? That seems odd.

Cheers,

Christian


On Sat, 2008-07-05 at 01:28 +0000, Nadav wrote:

> Hi all
>
> could it be that there's a problem with applying stereotypes in the same
> profile with the same name to different elements ?
>
> I'm doing it programmatically and some how the elements are all applied
> with the first element with the same name, If I change the names of the
> stereotypes to be different it works like a charm.
>
> please, can any one help ?
>
>
> thx
>
> Nadav
>

--=-Mu4mYZNYsAbNg3do4Ush
Content-Type: text/html; charset=utf-8

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.16.0">
</HEAD>
<BODY>
Hi, Nadav,<BR>
<BR>
A profile (or any other namespace) whose members are not distinguishable (according to their specific isDistinguishableFrom(...) criteria) is ill-formed.&nbsp; It is not expected that a profile that has identically-named stereotypes would work.<BR>
<BR>
>From a practical perspective, in the MDT UML2 implementation, stereotypes in the same profile that have the same name will generate XML elements that have the same name in your XML schema.&nbsp; Matching the XML element names to stereotype names in the profile will naturally result in only one of the stereotypes being selected in all cases.<BR>
<BR>
Do you need these stereotypes to have the same name?&nbsp; That seems odd.<BR>
<BR>
Cheers,<BR>
<BR>
Christian<BR>
<BR>
<BR>
On Sat, 2008-07-05 at 01:28 +0000, Nadav wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">Hi all</FONT>

<FONT COLOR="#000000">could it be that there's a problem with applying stereotypes in the same </FONT>
<FONT COLOR="#000000">profile with the same name to different elements ? </FONT>

<FONT COLOR="#000000">I'm doing it programmatically and some how the elements are all applied </FONT>
<FONT COLOR="#000000">with the first element with the same name, If I change the names of the </FONT>
<FONT COLOR="#000000">stereotypes to be different it works like a charm.</FONT>

<FONT COLOR="#000000">please, can any one help ?</FONT>


<FONT COLOR="#000000">thx</FONT>

<FONT COLOR="#000000">Nadav</FONT>

</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>

--=-Mu4mYZNYsAbNg3do4Ush--
Previous Topic:applying stereotypes with the same name
Next Topic:Best way to model arguments of a message?
Goto Forum:
  


Current Time: Wed Sep 23 16:37:03 GMT 2020

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

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

Back to the top