Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » UML Primitive types and non-primitive types
UML Primitive types and non-primitive types [message #477450] Mon, 26 May 2008 21:02 Go to next message
Timothy Marc is currently offline Timothy MarcFriend
Messages: 547
Registered: July 2009
Senior Member
Hi,

i have modeled some classes and want to include not the
UMLPrimitiveTypes, but types like Date, List, Map, etc. In my JET for
the concrete language, i than want to map between this "default" types
into the platform specific types, e.g. java.util.List for Java or even
array() for PHP.

What is the best solution for providing these types? One way, we had
suggested, was to remodel all the "default" types we need as
PrimitiveTypes of our model and the simply read them out during the
evaluation of the UML Superstructure.

Another idea was to use the Ecore datatypes.

But i think there is a more elegant solution for this common situation?

Thanks for any meanings
Timothy
Re: UML Primitive types and non-primitive types [message #477455 is a reply to message #477450] Wed, 28 May 2008 13:38 Go to previous messageGo to next message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Timothy,

You could possibly apply the Ecore profile and specify the java types.
Look at the 'Ecore Classifier' stereotype 'instance class name' for example.
Also have a look at the org.eclipse.uml2.uml.resources\libraries . There
are libraries for Java primitive types, XML primitive types etc.

Cheers
- James.

"Timothy Marc" <timothymarc@freenet.de> wrote in message
news:g1f8gs$f3$1@build.eclipse.org...
> Hi,
>
> i have modeled some classes and want to include not the UMLPrimitiveTypes,
> but types like Date, List, Map, etc. In my JET for the concrete language,
> i than want to map between this "default" types into the platform specific
> types, e.g. java.util.List for Java or even array() for PHP.
>
> What is the best solution for providing these types? One way, we had
> suggested, was to remodel all the "default" types we need as
> PrimitiveTypes of our model and the simply read them out during the
> evaluation of the UML Superstructure.
>
> Another idea was to use the Ecore datatypes.
>
> But i think there is a more elegant solution for this common situation?
>
> Thanks for any meanings
> Timothy
Re: UML Primitive types and non-primitive types [message #477459 is a reply to message #477455] Thu, 29 May 2008 09:29 Go to previous messageGo to next message
Timothy Marc is currently offline Timothy MarcFriend
Messages: 547
Registered: July 2009
Senior Member
Hey James,

i see. Let me consider, whether i have understood the import mechanism
correctly:

You can load several ressources into the model by using "Load Resource".
Than, one had to import the required elements such as Primitive Type int
(for Java, e.g.) with the "Element Import" node in the editor. Is that the
correct?

Thanks
Timothy

"James Bruck" <jbruck@ca.ibm.com> schrieb im Newsbeitrag
news:g1jn7p$s5t$1@build.eclipse.org...
> Hi Timothy,
>
> You could possibly apply the Ecore profile and specify the java types.
> Look at the 'Ecore Classifier' stereotype 'instance class name' for
> example.
> Also have a look at the org.eclipse.uml2.uml.resources\libraries . There
> are libraries for Java primitive types, XML primitive types etc.
>
> Cheers
> - James.
>
> "Timothy Marc" <timothymarc@freenet.de> wrote in message
> news:g1f8gs$f3$1@build.eclipse.org...
>> Hi,
>>
>> i have modeled some classes and want to include not the
>> UMLPrimitiveTypes, but types like Date, List, Map, etc. In my JET for the
>> concrete language, i than want to map between this "default" types into
>> the platform specific types, e.g. java.util.List for Java or even array()
>> for PHP.
>>
>> What is the best solution for providing these types? One way, we had
>> suggested, was to remodel all the "default" types we need as
>> PrimitiveTypes of our model and the simply read them out during the
>> evaluation of the UML Superstructure.
>>
>> Another idea was to use the Ecore datatypes.
>>
>> But i think there is a more elegant solution for this common situation?
>>
>> Thanks for any meanings
>> Timothy
>
>
Re: UML Primitive types and non-primitive types [message #477461 is a reply to message #477459] Fri, 30 May 2008 14:06 Go to previous messageGo to next message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Timothy,

Yes... have a look at the getting started article:
http://www.eclipse.org/modeling/mdt/uml2/docs/articles/Intro duction_to_UML2_Profiles/article.html
for tips on how to do this programatically and with the UML editor.

Cheers,
- James.

"Timothy Marc" <timothymarc@freenet.de> wrote in message
news:g1lt2g$kj0$1@build.eclipse.org...
> Hey James,
>
> i see. Let me consider, whether i have understood the import mechanism
> correctly:
>
> You can load several ressources into the model by using "Load Resource".
> Than, one had to import the required elements such as Primitive Type int
> (for Java, e.g.) with the "Element Import" node in the editor. Is that the
> correct?
>
> Thanks
> Timothy
>
> "James Bruck" <jbruck@ca.ibm.com> schrieb im Newsbeitrag
> news:g1jn7p$s5t$1@build.eclipse.org...
>> Hi Timothy,
>>
>> You could possibly apply the Ecore profile and specify the java types.
>> Look at the 'Ecore Classifier' stereotype 'instance class name' for
>> example.
>> Also have a look at the org.eclipse.uml2.uml.resources\libraries .
>> There are libraries for Java primitive types, XML primitive types etc.
>>
>> Cheers
>> - James.
>>
>> "Timothy Marc" <timothymarc@freenet.de> wrote in message
>> news:g1f8gs$f3$1@build.eclipse.org...
>>> Hi,
>>>
>>> i have modeled some classes and want to include not the
>>> UMLPrimitiveTypes, but types like Date, List, Map, etc. In my JET for
>>> the concrete language, i than want to map between this "default" types
>>> into the platform specific types, e.g. java.util.List for Java or even
>>> array() for PHP.
>>>
>>> What is the best solution for providing these types? One way, we had
>>> suggested, was to remodel all the "default" types we need as
>>> PrimitiveTypes of our model and the simply read them out during the
>>> evaluation of the UML Superstructure.
>>>
>>> Another idea was to use the Ecore datatypes.
>>>
>>> But i think there is a more elegant solution for this common situation?
>>>
>>> Thanks for any meanings
>>> Timothy
>>
>>
>
>
Re: UML Primitive types and non-primitive types [message #477469 is a reply to message #477459] Tue, 03 June 2008 00:38 Go to previous messageGo to next message
Kenn Hussey is currently offline Kenn HusseyFriend
Messages: 1620
Registered: July 2009
Senior Member
Timothy,

It's actually not mandatory to import the elements you wish to reference...
all imports accomplish is that they allow reference to imported elements to
be made without having to use their qualified names (much like in Java).

Kenn

"Timothy Marc" <timothymarc@freenet.de> wrote in message
news:g1lt2g$kj0$1@build.eclipse.org...
> Hey James,
>
> i see. Let me consider, whether i have understood the import mechanism
> correctly:
>
> You can load several ressources into the model by using "Load Resource".
> Than, one had to import the required elements such as Primitive Type int
> (for Java, e.g.) with the "Element Import" node in the editor. Is that the
> correct?
>
> Thanks
> Timothy
>
> "James Bruck" <jbruck@ca.ibm.com> schrieb im Newsbeitrag
> news:g1jn7p$s5t$1@build.eclipse.org...
>> Hi Timothy,
>>
>> You could possibly apply the Ecore profile and specify the java types.
>> Look at the 'Ecore Classifier' stereotype 'instance class name' for
>> example.
>> Also have a look at the org.eclipse.uml2.uml.resources\libraries .
>> There are libraries for Java primitive types, XML primitive types etc.
>>
>> Cheers
>> - James.
>>
>> "Timothy Marc" <timothymarc@freenet.de> wrote in message
>> news:g1f8gs$f3$1@build.eclipse.org...
>>> Hi,
>>>
>>> i have modeled some classes and want to include not the
>>> UMLPrimitiveTypes, but types like Date, List, Map, etc. In my JET for
>>> the concrete language, i than want to map between this "default" types
>>> into the platform specific types, e.g. java.util.List for Java or even
>>> array() for PHP.
>>>
>>> What is the best solution for providing these types? One way, we had
>>> suggested, was to remodel all the "default" types we need as
>>> PrimitiveTypes of our model and the simply read them out during the
>>> evaluation of the UML Superstructure.
>>>
>>> Another idea was to use the Ecore datatypes.
>>>
>>> But i think there is a more elegant solution for this common situation?
>>>
>>> Thanks for any meanings
>>> Timothy
>>
>>
>
>
Re: UML Primitive types and non-primitive types [message #477475 is a reply to message #477469] Tue, 03 June 2008 10:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cdamus.zeligsoft.com

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

Hi, Kenn,

Where in the UML are references made by name, except in expression
languages such as OCL?

cW

On Mon, 2008-06-02 at 20:38 -0400, Kenn Hussey wrote:

> Timothy,
>
> It's actually not mandatory to import the elements you wish to reference...
> all imports accomplish is that they allow reference to imported elements to
> be made without having to use their qualified names (much like in Java).
>
> Kenn
>
> "Timothy Marc" <timothymarc@freenet.de> wrote in message
> news:g1lt2g$kj0$1@build.eclipse.org...
> > Hey James,
> >
> > i see. Let me consider, whether i have understood the import mechanism
> > correctly:
> >
> > You can load several ressources into the model by using "Load Resource".
> > Than, one had to import the required elements such as Primitive Type int
> > (for Java, e.g.) with the "Element Import" node in the editor. Is that the
> > correct?
> >
> > Thanks
> > Timothy
> >
> > "James Bruck" <jbruck@ca.ibm.com> schrieb im Newsbeitrag
> > news:g1jn7p$s5t$1@build.eclipse.org...
> >> Hi Timothy,
> >>
> >> You could possibly apply the Ecore profile and specify the java types.
> >> Look at the 'Ecore Classifier' stereotype 'instance class name' for
> >> example.
> >> Also have a look at the org.eclipse.uml2.uml.resources\libraries .
> >> There are libraries for Java primitive types, XML primitive types etc.
> >>
> >> Cheers
> >> - James.
> >>
> >> "Timothy Marc" <timothymarc@freenet.de> wrote in message
> >> news:g1f8gs$f3$1@build.eclipse.org...
> >>> Hi,
> >>>
> >>> i have modeled some classes and want to include not the
> >>> UMLPrimitiveTypes, but types like Date, List, Map, etc. In my JET for
> >>> the concrete language, i than want to map between this "default" types
> >>> into the platform specific types, e.g. java.util.List for Java or even
> >>> array() for PHP.
> >>>
> >>> What is the best solution for providing these types? One way, we had
> >>> suggested, was to remodel all the "default" types we need as
> >>> PrimitiveTypes of our model and the simply read them out during the
> >>> evaluation of the UML Superstructure.
> >>>
> >>> Another idea was to use the Ecore datatypes.
> >>>
> >>> But i think there is a more elegant solution for this common situation?
> >>>
> >>> Thanks for any meanings
> >>> Timothy
> >>
> >>
> >
> >
>
>

--=-NYBJQnhZXINggnIW7oMe
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, Kenn,<BR>
<BR>
Where in the UML are references made by name, except in expression languages such as OCL?<BR>
<BR>
cW<BR>
<BR>
On Mon, 2008-06-02 at 20:38 -0400, Kenn Hussey wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">Timothy,</FONT>

<FONT COLOR="#000000">It's actually not mandatory to import the elements you wish to reference... </FONT>
<FONT COLOR="#000000">all imports accomplish is that they allow reference to imported elements to </FONT>
<FONT COLOR="#000000">be made without having to use their qualified names (much like in Java).</FONT>

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

<FONT COLOR="#000000">&quot;Timothy Marc&quot; &lt;<A HREF="mailto:timothymarc@freenet.de">timothymarc@freenet.de</A>&gt; wrote in message </FONT>
<FONT COLOR="#000000">news:<A HREF="mailto:g1lt2g$kj0$1@build.eclipse.org">g1lt2g$kj0$1@build.eclipse.org</A>...</FONT>
<FONT COLOR="#000000">&gt; Hey James,</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt; i see. Let me consider, whether i have understood the import mechanism </FONT>
<FONT COLOR="#000000">&gt; correctly:</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt; You can load several ressources into the model by using &quot;Load Resource&quot;. </FONT>
<FONT COLOR="#000000">&gt; Than, one had to import the required elements such as Primitive Type int </FONT>
<FONT COLOR="#000000">&gt; (for Java, e.g.) with the &quot;Element Import&quot; node in the editor. Is that the </FONT>
<FONT COLOR="#000000">&gt; correct?</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt; Thanks</FONT>
<FONT COLOR="#000000">&gt; Timothy</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt; &quot;James Bruck&quot; &lt;<A HREF="mailto:jbruck@ca.ibm.com">jbruck@ca.ibm.com</A>&gt; schrieb im Newsbeitrag </FONT>
<FONT COLOR="#000000">&gt; news:<A HREF="mailto:g1jn7p$s5t$1@build.eclipse.org">g1jn7p$s5t$1@build.eclipse.org</A>...</FONT>
<FONT COLOR="#000000">&gt;&gt; Hi Timothy,</FONT>
<FONT COLOR="#000000">&gt;&gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; You could possibly apply the Ecore profile and specify the java types. </FONT>
<FONT COLOR="#000000">&gt;&gt; Look at the 'Ecore Classifier' stereotype 'instance class name' for </FONT>
<FONT COLOR="#000000">&gt;&gt; example.</FONT>
<FONT COLOR="#000000">&gt;&gt; Also have a look at the org.eclipse.uml2.uml.resources\libraries . </FONT>
<FONT COLOR="#000000">&gt;&gt; There are libraries for Java primitive types, XML primitive types etc.</FONT>
<FONT COLOR="#000000">&gt;&gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; Cheers</FONT>
<FONT COLOR="#000000">&gt;&gt; - James.</FONT>
<FONT COLOR="#000000">&gt;&gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; &quot;Timothy Marc&quot; &lt;<A HREF="mailto:timothymarc@freenet.de">timothymarc@freenet.de</A>&gt; wrote in message </FONT>
<FONT COLOR="#000000">&gt;&gt; news:<A HREF="mailto:g1f8gs$f3$1@build.eclipse.org">g1f8gs$f3$1@build.eclipse.org</A>...</FONT>
<FONT COLOR="#000000">&gt;&gt;&gt; Hi,</FONT>
<FONT COLOR="#000000">&gt;&gt;&gt;</FONT>
<FONT COLOR="#000000">&gt;&gt;&gt; i have modeled some classes and want to include not the </FONT>
<FONT COLOR="#000000">&gt;&gt;&gt; UMLPrimitiveTypes, but types like Date, List, Map, etc. In my JET for </FONT>
<FONT COLOR="#000000">&gt;&gt;&gt; the concrete language, i than want to map between this &quot;default&quot; types </FONT>
<FONT COLOR="#000000">&gt;&gt;&gt; into the platform specific types, e.g. java.util.List for Java or even </FONT>
<FONT COLOR="#000000">&gt;&gt;&gt; array() for PHP.</FONT>
<FONT COLOR="#000000">&gt;&gt;&gt;</FONT>
<FONT COLOR="#000000">&gt;&gt;&gt; What is the best solution for providing these types? One way, we had </FONT>
<FONT COLOR="#000000">&gt;&gt;&gt; suggested, was to remodel all the &quot;default&quot; types we need as </FONT>
<FONT COLOR="#000000">&gt;&gt;&gt; PrimitiveTypes of our model and the simply read them out during the </FONT>
<FONT COLOR="#000000">&gt;&gt;&gt; evaluation of the UML Superstructure.</FONT>
<FONT COLOR="#000000">&gt;&gt;&gt;</FONT>
<FONT COLOR="#000000">&gt;&gt;&gt; Another idea was to use the Ecore datatypes.</FONT>
<FONT COLOR="#000000">&gt;&gt;&gt;</FONT>
<FONT COLOR="#000000">&gt;&gt;&gt; But i think there is a more elegant solution for this common situation?</FONT>
<FONT COLOR="#000000">&gt;&gt;&gt;</FONT>
<FONT COLOR="#000000">&gt;&gt;&gt; Thanks for any meanings</FONT>
<FONT COLOR="#000000">&gt;&gt;&gt; Timothy</FONT>
<FONT COLOR="#000000">&gt;&gt;</FONT>
<FONT COLOR="#000000">&gt;&gt;</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt; </FONT>


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

--=-NYBJQnhZXINggnIW7oMe--
Re: UML Primitive types and non-primitive types [message #477476 is a reply to message #477475] Tue, 03 June 2008 11:20 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 32438
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------070806000104000404050102
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

Christian,

It's funny you ask the same question that popped to mind when I read the
aliasing question from Felix. It's a bit odd that there is a feature in
there to support some sort of lexical scoping that's not directly used
by UML itself. I suppose that's convenient to someone, but it seems to
make assumptions about how such lexical scoping ought to work without a
demonstrated use case. I wonder if there are constraints that two
imports use the same unqualified name, or if two imports result in
collisions with each other or a collision with something locally visible
already. I guess package imports can induce all such problems too,
except for the aliasing support...


Christian W. Damus wrote:
> Hi, Kenn,
>
> Where in the UML are references made by name, except in expression
> languages such as OCL?
>
> cW
>
> On Mon, 2008-06-02 at 20:38 -0400, Kenn Hussey wrote:
>> Timothy,
>>
>> It's actually not mandatory to import the elements you wish to reference...
>> all imports accomplish is that they allow reference to imported elements to
>> be made without having to use their qualified names (much like in Java).
>>
>> Kenn
>>
>> "Timothy Marc" <timothymarc@freenet.de <mailto:timothymarc@freenet.de>> wrote in message
>> news:g1lt2g$kj0$1@build.eclipse.org <mailto:g1lt2g$kj0$1@build.eclipse.org>...
>> > Hey James,
>> >
>> > i see. Let me consider, whether i have understood the import mechanism
>> > correctly:
>> >
>> > You can load several ressources into the model by using "Load Resource".
>> > Than, one had to import the required elements such as Primitive Type int
>> > (for Java, e.g.) with the "Element Import" node in the editor. Is that the
>> > correct?
>> >
>> > Thanks
>> > Timothy
>> >
>> > "James Bruck" <jbruck@ca.ibm.com <mailto:jbruck@ca.ibm.com>> schrieb im Newsbeitrag
>> > news:g1jn7p$s5t$1@build.eclipse.org <mailto:g1jn7p$s5t$1@build.eclipse.org>...
>> >> Hi Timothy,
>> >>
>> >> You could possibly apply the Ecore profile and specify the java types.
>> >> Look at the 'Ecore Classifier' stereotype 'instance class name' for
>> >> example.
>> >> Also have a look at the org.eclipse.uml2.uml.resources\libraries .
>> >> There are libraries for Java primitive types, XML primitive types etc.
>> >>
>> >> Cheers
>> >> - James.
>> >>
>> >> "Timothy Marc" <timothymarc@freenet.de <mailto:timothymarc@freenet.de>> wrote in message
>> >> news:g1f8gs$f3$1@build.eclipse.org <mailto:g1f8gs$f3$1@build.eclipse.org>...
>> >>> Hi,
>> >>>
>> >>> i have modeled some classes and want to include not the
>> >>> UMLPrimitiveTypes, but types like Date, List, Map, etc. In my JET for
>> >>> the concrete language, i than want to map between this "default" types
>> >>> into the platform specific types, e.g. java.util.List for Java or even
>> >>> array() for PHP.
>> >>>
>> >>> What is the best solution for providing these types? One way, we had
>> >>> suggested, was to remodel all the "default" types we need as
>> >>> PrimitiveTypes of our model and the simply read them out during the
>> >>> evaluation of the UML Superstructure.
>> >>>
>> >>> Another idea was to use the Ecore datatypes.
>> >>>
>> >>> But i think there is a more elegant solution for this common situation?
>> >>>
>> >>> Thanks for any meanings
>> >>> Timothy
>> >>
>> >>
>> >
>> >
>>
>>
>>


--------------070806000104000404050102
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Christian,<br>
<br>
It's funny you ask the same question that popped to mind when I read
the aliasing question from Felix.  It's a bit odd that there is a
feature in there to support some sort of lexical scoping that's not
directly used by UML itself.  I suppose that's convenient to someone,
but it seems to make assumptions about how such lexical scoping ought
to work without a demonstrated use case.  I wonder if there are
constraints that two imports use the same unqualified name, or if two
imports result in collisions with each other or a collision with
something locally visible already.  I guess package imports can induce
all such problems too, except for the aliasing support...<br>
<br>
<br>
Christian W. Damus wrote:
<blockquote cite="mid:1212490687.6514.10.camel@cwdlappy" type="cite">
<meta http-equiv="Content-Type" content="text/html; ">
<meta name="GENERATOR" content="GtkHTML/3.16.0">
Hi, Kenn,<br>
<br>
Where in the UML are references made by name, except in expression
languages such as OCL?<br>
<br>
cW<br>
<br>
On Mon, 2008-06-02 at 20:38 -0400, Kenn Hussey wrote:
<blockquote type="CITE">
<pre><font color="#000000">Timothy,</font>

<font color="#000000">It's actually not mandatory to import the elements you wish to reference... </font>
<font color="#000000">all imports accomplish is that they allow reference to imported elements to </font>
<font color="#000000">be made without having to use their qualified names (much like in Java).</font>

<font color="#000000">Kenn</font>

<font color="#000000">"Timothy Marc" &lt;<a moz-do-not-send="true"
href="mailto:timothymarc@freenet.de">timothymarc@freenet.de</a>&gt; wrote in message </font>
<font color="#000000">news:<a moz-do-not-send="true"
href="mailto:g1lt2g$kj0$1@build.eclipse.org">g1lt2g$kj0$1@build.eclipse.org</a>...</font>
<font color="#000000">&gt; Hey James,</font>
<font color="#000000">&gt;</font>
<font color="#000000">&gt; i see. Let me consider, whether i have understood the import mechanism </font>
<font color="#000000">&gt; correctly:</font>
<font color="#000000">&gt;</font>
<font color="#000000">&gt; You can load several ressources into the model by using "Load Resource". </font>
<font color="#000000">&gt; Than, one had to import the required elements such as Primitive Type int </font>
<font color="#000000">&gt; (for Java, e.g.) with the "Element Import" node in the editor. Is that the </font>
<font color="#000000">&gt; correct?</font>
<font color="#000000">&gt;</font>
<font color="#000000">&gt; Thanks</font>
<font color="#000000">&gt; Timothy</font>
<font color="#000000">&gt;</font>
<font color="#000000">&gt; "James Bruck" &lt;<a moz-do-not-send="true"
href="mailto:jbruck@ca.ibm.com">jbruck@ca.ibm.com</a>&gt; schrieb im Newsbeitrag </font>
<font color="#000000">&gt; news:<a moz-do-not-send="true"
href="mailto:g1jn7p$s5t$1@build.eclipse.org">g1jn7p$s5t$1@build.eclipse.org</a>...</font>
<font color="#000000">&gt;&gt; Hi Timothy,</font>
<font color="#000000">&gt;&gt;</font>
<font color="#000000">&gt;&gt; You could possibly apply the Ecore profile and specify the java types. </font>
<font color="#000000">&gt;&gt; Look at the 'Ecore Classifier' stereotype 'instance class name' for </font>
<font color="#000000">&gt;&gt; example.</font>
<font color="#000000">&gt;&gt; Also have a look at the org.eclipse.uml2.uml.resources\libraries . </font>
<font color="#000000">&gt;&gt; There are libraries for Java primitive types, XML primitive types etc.</font>
<font color="#000000">&gt;&gt;</font>
<font color="#000000">&gt;&gt; Cheers</font>
<font color="#000000">&gt;&gt; - James.</font>
<font color="#000000">&gt;&gt;</font>
<font color="#000000">&gt;&gt; "Timothy Marc" &lt;<a
moz-do-not-send="true" href="mailto:timothymarc@freenet.de">timothymarc@freenet.de</a>&gt; wrote in message </font>
<font color="#000000">&gt;&gt; news:<a moz-do-not-send="true"
href="mailto:g1f8gs$f3$1@build.eclipse.org">g1f8gs$f3$1@build.eclipse.org</a>...</font>
<font color="#000000">&gt;&gt;&gt; Hi,</font>
<font color="#000000">&gt;&gt;&gt;</font>
<font color="#000000">&gt;&gt;&gt; i have modeled some classes and want to include not the </font>
<font color="#000000">&gt;&gt;&gt; UMLPrimitiveTypes, but types like Date, List, Map, etc. In my JET for </font>
<font color="#000000">&gt;&gt;&gt; the concrete language, i than want to map between this "default" types </font>
<font color="#000000">&gt;&gt;&gt; into the platform specific types, e.g. java.util.List for Java or even </font>
<font color="#000000">&gt;&gt;&gt; array() for PHP.</font>
<font color="#000000">&gt;&gt;&gt;</font>
<font color="#000000">&gt;&gt;&gt; What is the best solution for providing these types? One way, we had </font>
<font color="#000000">&gt;&gt;&gt; suggested, was to remodel all the "default" types we need as </font>
<font color="#000000">&gt;&gt;&gt; PrimitiveTypes of our model and the simply read them out during the </font>
<font color="#000000">&gt;&gt;&gt; evaluation of the UML Superstructure.</font>
<font color="#000000">&gt;&gt;&gt;</font>
<font color="#000000">&gt;&gt;&gt; Another idea was to use the Ecore datatypes.</font>
<font color="#000000">&gt;&gt;&gt;</font>
<font color="#000000">&gt;&gt;&gt; But i think there is a more elegant solution for this common situation?</font>
<font color="#000000">&gt;&gt;&gt;</font>
<font color="#000000">&gt;&gt;&gt; Thanks for any meanings</font>
<font color="#000000">&gt;&gt;&gt; Timothy</font>
<font color="#000000">&gt;&gt;</font>
<font color="#000000">&gt;&gt;</font>
<font color="#000000">&gt;</font>
<font color="#000000">&gt; </font>


</pre>
</blockquote>
</blockquote>
<br>
</body>
</html>

--------------070806000104000404050102--


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: UML Primitive types and non-primitive types [message #477480 is a reply to message #477475] Wed, 04 June 2008 03:35 Go to previous messageGo to next message
Rafael Chaves is currently offline Rafael ChavesFriend
Messages: 362
Registered: July 2009
Senior Member
Christian,

That is useful at the notation level (concrete syntax), if you want to
allow the user to refer to elements from other packages using
unqualified names. Whether a fully qualified name or an unqualified
named was used when referencing an element is lost in the resulting
model. A graphical tool can keep that information in the diagram.

Rafael

Christian W. Damus wrote:
> Hi, Kenn,
>
> Where in the UML are references made by name, except in expression
> languages such as OCL?
>
> cW
>
> On Mon, 2008-06-02 at 20:38 -0400, Kenn Hussey wrote:
>> Timothy,
>>
>> It's actually not mandatory to import the elements you wish to reference...
>> all imports accomplish is that they allow reference to imported elements to
>> be made without having to use their qualified names (much like in Java).
>>
>> Kenn
>>
>> "Timothy Marc" <timothymarc@freenet.de <mailto:timothymarc@freenet.de>> wrote in message
>> news:g1lt2g$kj0$1@build.eclipse.org <mailto:g1lt2g$kj0$1@build.eclipse.org>...
>> > Hey James,
>> >
>> > i see. Let me consider, whether i have understood the import mechanism
>> > correctly:
>> >
>> > You can load several ressources into the model by using "Load Resource".
>> > Than, one had to import the required elements such as Primitive Type int
>> > (for Java, e.g.) with the "Element Import" node in the editor. Is that the
>> > correct?
>> >
>> > Thanks
>> > Timothy
>> >
>> > "James Bruck" <jbruck@ca.ibm.com <mailto:jbruck@ca.ibm.com>> schrieb im Newsbeitrag
>> > news:g1jn7p$s5t$1@build.eclipse.org <mailto:g1jn7p$s5t$1@build.eclipse.org>...
>> >> Hi Timothy,
>> >>
>> >> You could possibly apply the Ecore profile and specify the java types.
>> >> Look at the 'Ecore Classifier' stereotype 'instance class name' for
>> >> example.
>> >> Also have a look at the org.eclipse.uml2.uml.resources\libraries .
>> >> There are libraries for Java primitive types, XML primitive types etc.
>> >>
>> >> Cheers
>> >> - James.
>> >>
>> >> "Timothy Marc" <timothymarc@freenet.de <mailto:timothymarc@freenet.de>> wrote in message
>> >> news:g1f8gs$f3$1@build.eclipse.org <mailto:g1f8gs$f3$1@build.eclipse.org>...
>> >>> Hi,
>> >>>
>> >>> i have modeled some classes and want to include not the
>> >>> UMLPrimitiveTypes, but types like Date, List, Map, etc. In my JET for
>> >>> the concrete language, i than want to map between this "default" types
>> >>> into the platform specific types, e.g. java.util.List for Java or even
>> >>> array() for PHP.
>> >>>
>> >>> What is the best solution for providing these types? One way, we had
>> >>> suggested, was to remodel all the "default" types we need as
>> >>> PrimitiveTypes of our model and the simply read them out during the
>> >>> evaluation of the UML Superstructure.
>> >>>
>> >>> Another idea was to use the Ecore datatypes.
>> >>>
>> >>> But i think there is a more elegant solution for this common situation?
>> >>>
>> >>> Thanks for any meanings
>> >>> Timothy
>> >>
>> >>
>> >
>> >
>>
>>
Re: UML Primitive types and non-primitive types [message #477481 is a reply to message #477480] Wed, 04 June 2008 03:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cdamus.zeligsoft.com

--=-x3pRKMELGMzB1gQ+bsBx
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hi, Rafael,

That makes sense. Textual notations for specifying models, such as HUTN
or something generated by TMF/Xtext, would presumably make use of these
imported names.

Cheers,

Christian


On Tue, 2008-06-03 at 20:35 -0700, Rafael Chaves wrote:

> Christian,
>
> That is useful at the notation level (concrete syntax), if you want to
> allow the user to refer to elements from other packages using
> unqualified names. Whether a fully qualified name or an unqualified
> named was used when referencing an element is lost in the resulting
> model. A graphical tool can keep that information in the diagram.
>
> Rafael
>
> Christian W. Damus wrote:
> > Hi, Kenn,
> >
> > Where in the UML are references made by name, except in expression
> > languages such as OCL?
> >
> > cW
> >
> > On Mon, 2008-06-02 at 20:38 -0400, Kenn Hussey wrote:
> >> Timothy,
> >>
> >> It's actually not mandatory to import the elements you wish to reference...
> >> all imports accomplish is that they allow reference to imported elements to
> >> be made without having to use their qualified names (much like in Java).
> >>
> >> Kenn
> >>
> >> "Timothy Marc" <timothymarc@freenet.de <mailto:timothymarc@freenet.de>> wrote in message
> >> news:g1lt2g$kj0$1@build.eclipse.org <mailto:g1lt2g$kj0$1@build.eclipse.org>...
> >> > Hey James,
> >> >
> >> > i see. Let me consider, whether i have understood the import mechanism
> >> > correctly:
> >> >
> >> > You can load several ressources into the model by using "Load Resource".
> >> > Than, one had to import the required elements such as Primitive Type int
> >> > (for Java, e.g.) with the "Element Import" node in the editor. Is that the
> >> > correct?
> >> >
> >> > Thanks
> >> > Timothy
> >> >
> >> > "James Bruck" <jbruck@ca.ibm.com <mailto:jbruck@ca.ibm.com>> schrieb im Newsbeitrag
> >> > news:g1jn7p$s5t$1@build.eclipse.org <mailto:g1jn7p$s5t$1@build.eclipse.org>...
> >> >> Hi Timothy,
> >> >>
> >> >> You could possibly apply the Ecore profile and specify the java types.
> >> >> Look at the 'Ecore Classifier' stereotype 'instance class name' for
> >> >> example.
> >> >> Also have a look at the org.eclipse.uml2.uml.resources\libraries .
> >> >> There are libraries for Java primitive types, XML primitive types etc.
> >> >>
> >> >> Cheers
> >> >> - James.
> >> >>
> >> >> "Timothy Marc" <timothymarc@freenet.de <mailto:timothymarc@freenet.de>> wrote in message
> >> >> news:g1f8gs$f3$1@build.eclipse.org <mailto:g1f8gs$f3$1@build.eclipse.org>...
> >> >>> Hi,
> >> >>>
> >> >>> i have modeled some classes and want to include not the
> >> >>> UMLPrimitiveTypes, but types like Date, List, Map, etc. In my JET for
> >> >>> the concrete language, i than want to map between this "default" types
> >> >>> into the platform specific types, e.g. java.util.List for Java or even
> >> >>> array() for PHP.
> >> >>>
> >> >>> What is the best solution for providing these types? One way, we had
> >> >>> suggested, was to remodel all the "default" types we need as
> >> >>> PrimitiveTypes of our model and the simply read them out during the
> >> >>> evaluation of the UML Superstructure.
> >> >>>
> >> >>> Another idea was to use the Ecore datatypes.
> >> >>>
> >> >>> But i think there is a more elegant solution for this common situation?
> >> >>>
> >> >>> Thanks for any meanings
> >> >>> Timothy
> >> >>
> >> >>
> >> >
> >> >
> >>
> >>

--=-x3pRKMELGMzB1gQ+bsBx
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, Rafael,<BR>
<BR>
That makes sense.&nbsp; Textual notations for specifying models, such as HUTN or something generated by TMF/Xtext, would presumably make use of these imported names.<BR>
<BR>
Cheers,<BR>
<BR>
Christian<BR>
<BR>
<BR>
On Tue, 2008-06-03 at 20:35 -0700, Rafael Chaves wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">Christian,</FONT>

<FONT COLOR="#000000">That is useful at the notation level (concrete syntax), if you want to </FONT>
<FONT COLOR="#000000">allow the user to refer to elements from other packages using </FONT>
<FONT COLOR="#000000">unqualified names. Whether a fully qualified name or an unqualified </FONT>
<FONT COLOR="#000000">named was used when referencing an element is lost in the resulting </FONT>
<FONT COLOR="#000000">model. A graphical tool can keep that information in the diagram.</FONT>

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

<FONT COLOR="#000000">Christian W. Damus wrote:</FONT>
<FONT COLOR="#000000">&gt; Hi, Kenn,</FONT>
<FONT COLOR="#000000">&gt; </FONT>
<FONT COLOR="#000000">&gt; Where in the UML are references made by name, except in expression </FONT>
<FONT COLOR="#000000">&gt; languages such as OCL?</FONT>
<FONT COLOR="#000000">&gt; </FONT>
<FONT COLOR="#000000">&gt; cW</FONT>
<FONT COLOR="#000000">&gt; </FONT>
<FONT COLOR="#000000">&gt; On Mon, 2008-06-02 at 20:38 -0400, Kenn Hussey wrote:</FONT>
<FONT COLOR="#000000">&gt;&gt; Timothy,</FONT>
<FONT COLOR="#000000">&gt;&gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; It's actually not mandatory to import the elements you wish to reference... </FONT>
<FONT COLOR="#000000">&gt;&gt; all imports accomplish is that they allow reference to imported elements to </FONT>
<FONT COLOR="#000000">&gt;&gt; be made without having to use their qualified names (much like in Java).</FONT>
<FONT COLOR="#000000">&gt;&gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; Kenn</FONT>
<FONT COLOR="#000000">&gt;&gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; &quot;Timothy Marc&quot; &lt;<A HREF="mailto:timothymarc@freenet.de">timothymarc@freenet.de</A> &lt;<A HREF="mailto:timothymarc@freenet.de">mailto:timothymarc@freenet.de</A>&gt;&gt; wrote in message </FONT>
<FONT COLOR="#000000">&gt;&gt; news:<A HREF="mailto:g1lt2g$kj0$1@build.eclipse.org">g1lt2g$kj0$1@build.eclipse.org</A> &lt;<A HREF="mailto:g1lt2g$kj0$1@build.eclipse.org">mailto:g1lt2g$kj0$1@build.eclipse.org</A>&gt;...</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt; Hey James,</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt; i see. Let me consider, whether i have understood the import mechanism </FONT>
<FONT COLOR="#000000">&gt;&gt; &gt; correctly:</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt; You can load several ressources into the model by using &quot;Load Resource&quot;. </FONT>
<FONT COLOR="#000000">&gt;&gt; &gt; Than, one had to import the required elements such as Primitive Type int </FONT>
<FONT COLOR="#000000">&gt;&gt; &gt; (for Java, e.g.) with the &quot;Element Import&quot; node in the editor. Is that the </FONT>
<FONT COLOR="#000000">&gt;&gt; &gt; correct?</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt; Thanks</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt; Timothy</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt; &quot;James Bruck&quot; &lt;<A HREF="mailto:jbruck@ca.ibm.com">jbruck@ca.ibm.com</A> &lt;<A HREF="mailto:jbruck@ca.ibm.com">mailto:jbruck@ca.ibm.com</A>&gt;&gt; schrieb im Newsbeitrag </FONT>
<FONT COLOR="#000000">&gt;&gt; &gt; news:<A HREF="mailto:g1jn7p$s5t$1@build.eclipse.org">g1jn7p$s5t$1@build.eclipse.org</A> &lt;<A HREF="mailto:g1jn7p$s5t$1@build.eclipse.org">mailto:g1jn7p$s5t$1@build.eclipse.org</A>&gt;...</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;&gt; Hi Timothy,</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;&gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;&gt; You could possibly apply the Ecore profile and specify the java types. </FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;&gt; Look at the 'Ecore Classifier' stereotype 'instance class name' for </FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;&gt; example.</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;&gt; Also have a look at the org.eclipse.uml2.uml.resources\libraries . </FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;&gt; There are libraries for Java primitive types, XML primitive types etc.</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;&gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;&gt; Cheers</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;&gt; - James.</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;&gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;&gt; &quot;Timothy Marc&quot; &lt;<A HREF="mailto:timothymarc@freenet.de">timothymarc@freenet.de</A> &lt;<A HREF="mailto:timothymarc@freenet.de">mailto:timothymarc@freenet.de</A>&gt;&gt; wrote in message </FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;&gt; news:<A HREF="mailto:g1f8gs$f3$1@build.eclipse.org">g1f8gs$f3$1@build.eclipse.org</A> &lt;<A HREF="mailto:g1f8gs$f3$1@build.eclipse.org">mailto:g1f8gs$f3$1@build.eclipse.org</A>&gt;...</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;&gt;&gt; Hi,</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;&gt;&gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;&gt;&gt; i have modeled some classes and want to include not the </FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;&gt;&gt; UMLPrimitiveTypes, but types like Date, List, Map, etc. In my JET for </FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;&gt;&gt; the concrete language, i than want to map between this &quot;default&quot; types </FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;&gt;&gt; into the platform specific types, e.g. java.util.List for Java or even </FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;&gt;&gt; array() for PHP.</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;&gt;&gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;&gt;&gt; What is the best solution for providing these types? One way, we had </FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;&gt;&gt; suggested, was to remodel all the &quot;default&quot; types we need as </FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;&gt;&gt; PrimitiveTypes of our model and the simply read them out during the </FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;&gt;&gt; evaluation of the UML Superstructure.</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;&gt;&gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;&gt;&gt; Another idea was to use the Ecore datatypes.</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;&gt;&gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;&gt;&gt; But i think there is a more elegant solution for this common situation?</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;&gt;&gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;&gt;&gt; Thanks for any meanings</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;&gt;&gt; Timothy</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;&gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;&gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt; </FONT>
<FONT COLOR="#000000">&gt;&gt;</FONT>
<FONT COLOR="#000000">&gt;&gt;</FONT>
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>

--=-x3pRKMELGMzB1gQ+bsBx--
Re: UML Primitive types and non-primitive types [message #477492 is a reply to message #477476] Mon, 09 June 2008 15:52 Go to previous messageGo to next message
Kenn Hussey is currently offline Kenn HusseyFriend
Messages: 1620
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.

------=_NextPart_000_006D_01C8CA27.49AF2710
Content-Type: text/plain;
charset="utf-8"
Content-Transfer-Encoding: quoted-printable

I assume the references would be in expressions used by constraints, for =
example. In the absence of a surface language, these semantics aren't =
all that meaningful to UML itself...

Kenn

"Ed Merks" <merks@ca.ibm.com> wrote in message =
news:g2399u$rbl$2@build.eclipse.org...
Christian,

It's funny you ask the same question that popped to mind when I read =
the aliasing question from Felix. It's a bit odd that there is a =
feature in there to support some sort of lexical scoping that's not =
directly used by UML itself. I suppose that's convenient to someone, =
but it seems to make assumptions about how such lexical scoping ought to =
work without a demonstrated use case. I wonder if there are constraints =
that two imports use the same unqualified name, or if two imports result =
in collisions with each other or a collision with something locally =
visible already. I guess package imports can induce all such problems =
too, except for the aliasing support...


Christian W. Damus wrote:=20
Hi, Kenn,

Where in the UML are references made by name, except in expression =
languages such as OCL?

cW

On Mon, 2008-06-02 at 20:38 -0400, Kenn Hussey wrote:=20
Timothy,

It's actually not mandatory to import the elements you wish to =
reference...=20
all imports accomplish is that they allow reference to imported elements =
to=20
be made without having to use their qualified names (much like in Java).

Kenn

"Timothy Marc" <timothymarc@freenet.de> wrote in message=20
news:g1lt2g$kj0$1@build.eclipse.org...
> Hey James,
>
> i see. Let me consider, whether i have understood the import mechanism =

> correctly:
>
> You can load several ressources into the model by using "Load =
Resource".=20
> Than, one had to import the required elements such as Primitive Type =
int=20
> (for Java, e.g.) with the "Element Import" node in the editor. Is that =
the=20
> correct?
>
> Thanks
> Timothy
>
> "James Bruck" <jbruck@ca.ibm.com> schrieb im Newsbeitrag=20
> news:g1jn7p$s5t$1@build.eclipse.org...
>> Hi Timothy,
>>
>> You could possibly apply the Ecore profile and specify the java =
types.=20
>> Look at the 'Ecore Classifier' stereotype 'instance class name' for=20
>> example.
>> Also have a look at the org.eclipse.uml2.uml.resources\libraries .=20
>> There are libraries for Java primitive types, XML primitive types =
etc.
>>
>> Cheers
>> - James.
>>
>> "Timothy Marc" <timothymarc@freenet.de> wrote in message=20
>> news:g1f8gs$f3$1@build.eclipse.org...
>>> Hi,
>>>
>>> i have modeled some classes and want to include not the=20
>>> UMLPrimitiveTypes, but types like Date, List, Map, etc. In my JET =
for=20
>>> the concrete language, i than want to map between this "default" =
types=20
>>> into the platform specific types, e.g. java.util.List for Java or =
even=20
>>> array() for PHP.
>>>
>>> What is the best solution for providing these types? One way, we had =

>>> suggested, was to remodel all the "default" types we need as=20
>>> PrimitiveTypes of our model and the simply read them out during the=20
>>> evaluation of the UML Superstructure.
>>>
>>> Another idea was to use the Ecore datatypes.
>>>
>>> But i think there is a more elegant solution for this common =
situation?
>>>
>>> Thanks for any meanings
>>> Timothy
>>
>>
>
>=20


=20

------=_NextPart_000_006D_01C8CA27.49AF2710
Content-Type: text/html;
charset="utf-8"
Content-Transfer-Encoding: quoted-printable

=EF=BB=BF<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3Dtext/html;charset=3DUTF-8>
<META content=3D"MSHTML 6.00.6000.16640" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY text=3D#000000 bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>I assume the references would be in =
expressions=20
used by constraints, for example. In the absence of a surface language, =
these=20
semantics aren't all that meaningful to UML itself...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Kenn</FONT></DIV>
<DIV>&nbsp;</DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Ed Merks" &lt;<A =
href=3D"mailto:merks@ca.ibm.com">merks@ca.ibm.com</A>&gt;=20
wrote in message <A=20
=
href=3D"news:g2399u$rbl$2@build.eclipse.org">news:g2399u$rbl$2@build.ecli=
pse.org</A>...</DIV>Christian,<BR><BR>It's=20
funny you ask the same question that popped to mind when I read the =
aliasing=20
question from Felix.&nbsp; It's a bit odd that there is a feature in =
there to=20
support some sort of lexical scoping that's not directly used by UML=20
itself.&nbsp; I suppose that's convenient to someone, but it seems to =
make=20
assumptions about how such lexical scoping ought to work without a=20
demonstrated use case.&nbsp; I wonder if there are constraints that =
two=20
imports use the same unqualified name, or if two imports result in =
collisions=20
with each other or a collision with something locally visible =
already.&nbsp; I=20
guess package imports can induce all such problems too, except for the =

aliasing support...<BR><BR><BR>Christian W. Damus wrote:=20
<BLOCKQUOTE cite=3Dmid:1212490687.6514.10.camel@cwdlappy =
type=3D"cite">
<META content=3DGtkHTML/3.16.0 name=3DGENERATOR>Hi, =
Kenn,<BR><BR>Where in the=20
UML are references made by name, except in expression languages such =
as=20
OCL?<BR><BR>cW<BR><BR>On Mon, 2008-06-02 at 20:38 -0400, Kenn Hussey =
wrote:=20
<BLOCKQUOTE type=3D"CITE"><PRE><FONT color=3D#000000>Timothy,</FONT>

<FONT color=3D#000000>It's actually not mandatory to import the elements =
you wish to reference... </FONT>
<FONT color=3D#000000>all imports accomplish is that they allow =
reference to imported elements to </FONT>
<FONT color=3D#000000>be made without having to use their qualified =
names (much like in Java).</FONT>

<FONT color=3D#000000>Kenn</FONT>

<FONT color=3D#000000>"Timothy Marc" &lt;<A =
href=3D"mailto:timothymarc@freenet.de" =
moz-do-not-send=3D"true">timothymarc@freenet.de</A>&gt; wrote in message =
</FONT>
<FONT color=3D#000000>news:<A =
href=3D"mailto:g1lt2g$kj0$1@build.eclipse.org" =
moz-do-not-send=3D"true">g1lt2g$kj0$1@build.eclipse.org</A>...</FONT>
<FONT color=3D#000000>&gt; Hey James,</FONT>
<FONT color=3D#000000>&gt;</FONT>
<FONT color=3D#000000>&gt; i see. Let me consider, whether i have =
understood the import mechanism </FONT>
<FONT color=3D#000000>&gt; correctly:</FONT>
<FONT color=3D#000000>&gt;</FONT>
<FONT color=3D#000000>&gt; You can load several ressources into the =
model by using "Load Resource". </FONT>
<FONT color=3D#000000>&gt; Than, one had to import the required elements =
such as Primitive Type int </FONT>
<FONT color=3D#000000>&gt; (for Java, e.g.) with the "Element Import" =
node in the editor. Is that the </FONT>
<FONT color=3D#000000>&gt; correct?</FONT>
<FONT color=3D#000000>&gt;</FONT>
<FONT color=3D#000000>&gt; Thanks</FONT>
<FONT color=3D#000000>&gt; Timothy</FONT>
<FONT color=3D#000000>&gt;</FONT>
<FONT color=3D#000000>&gt; "James Bruck" &lt;<A =
href=3D"mailto:jbruck@ca.ibm.com" =
moz-do-not-send=3D"true">jbruck@ca.ibm.com</A>&gt; schrieb im =
Newsbeitrag </FONT>
<FONT color=3D#000000>&gt; news:<A =
href=3D"mailto:g1jn7p$s5t$1@build.eclipse.org" =
moz-do-not-send=3D"true">g1jn7p$s5t$1@build.eclipse.org</A>...</FONT>
<FONT color=3D#000000>&gt;&gt; Hi Timothy,</FONT>
<FONT color=3D#000000>&gt;&gt;</FONT>
<FONT color=3D#000000>&gt;&gt; You could possibly apply the Ecore =
profile and specify the java types. </FONT>
<FONT color=3D#000000>&gt;&gt; Look at the 'Ecore Classifier' stereotype =
'instance class name' for </FONT>
<FONT color=3D#000000>&gt;&gt; example.</FONT>
<FONT color=3D#000000>&gt;&gt; Also have a look at the =
org.eclipse.uml2.uml.resources\libraries . </FONT>
<FONT color=3D#000000>&gt;&gt; There are libraries for Java primitive =
types, XML primitive types etc.</FONT>
<FONT color=3D#000000>&gt;&gt;</FONT>
<FONT color=3D#000000>&gt;&gt; Cheers</FONT>
<FONT color=3D#000000>&gt;&gt; - James.</FONT>
<FONT color=3D#000000>&gt;&gt;</FONT>
<FONT color=3D#000000>&gt;&gt; "Timothy Marc" &lt;<A =
href=3D"mailto:timothymarc@freenet.de" =
moz-do-not-send=3D"true">timothymarc@freenet.de</A>&gt; wrote in message =
</FONT>
<FONT color=3D#000000>&gt;&gt; news:<A =
href=3D"mailto:g1f8gs$f3$1@build.eclipse.org" =
moz-do-not-send=3D"true">g1f8gs$f3$1@build.eclipse.org</A>...</FONT>
<FONT color=3D#000000>&gt;&gt;&gt; Hi,</FONT>
<FONT color=3D#000000>&gt;&gt;&gt;</FONT>
<FONT color=3D#000000>&gt;&gt;&gt; i have modeled some classes and want =
to include not the </FONT>
<FONT color=3D#000000>&gt;&gt;&gt; UMLPrimitiveTypes, but types like =
Date, List, Map, etc. In my JET for </FONT>
<FONT color=3D#000000>&gt;&gt;&gt; the concrete language, i than want to =
map between this "default" types </FONT>
<FONT color=3D#000000>&gt;&gt;&gt; into the platform specific types, =
e.g. java.util.List for Java or even </FONT>
<FONT color=3D#000000>&gt;&gt;&gt; array() for PHP.</FONT>
<FONT color=3D#000000>&gt;&gt;&gt;</FONT>
<FONT color=3D#000000>&gt;&gt;&gt; What is the best solution for =
providing these types? One way, we had </FONT>
<FONT color=3D#000000>&gt;&gt;&gt; suggested, was to remodel all the =
"default" types we need as </FONT>
<FONT color=3D#000000>&gt;&gt;&gt; PrimitiveTypes of our model and the =
simply read them out during the </FONT>
<FONT color=3D#000000>&gt;&gt;&gt; evaluation of the UML =
Superstructure.</FONT>
<FONT color=3D#000000>&gt;&gt;&gt;</FONT>
<FONT color=3D#000000>&gt;&gt;&gt; Another idea was to use the Ecore =
datatypes.</FONT>
<FONT color=3D#000000>&gt;&gt;&gt;</FONT>
<FONT color=3D#000000>&gt;&gt;&gt; But i think there is a more elegant =
solution for this common situation?</FONT>
<FONT color=3D#000000>&gt;&gt;&gt;</FONT>
<FONT color=3D#000000>&gt;&gt;&gt; Thanks for any meanings</FONT>
<FONT color=3D#000000>&gt;&gt;&gt; Timothy</FONT>
<FONT color=3D#000000>&gt;&gt;</FONT>
<FONT color=3D#000000>&gt;&gt;</FONT>
<FONT color=3D#000000>&gt;</FONT>
<FONT color=3D#000000>&gt; </FONT>


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

------=_NextPart_000_006D_01C8CA27.49AF2710--
UML plugin for graphically creating and editing UML models [message #477526 is a reply to message #477450] Mon, 16 June 2008 20:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jmcq.cs.nuim.ie

Hi all,

Can anyone recommend an Eclipse plugin that supports the creation and
editing of UML Class and Sequence diagrams graphically and also allows
you to view these diagrams as .uml files (i.e. instances of the UML2
metamodel provided by the UML project).

Alternatively, can anyone recommend where I could find an example of a
UML sequence diagram in .uml format and its corresponding visual
representation.

Thanks in advance,

Jacqui
Re: UML plugin for graphically creating and editing UML models [message #477527 is a reply to message #477526] Tue, 17 June 2008 07:22 Go to previous messageGo to next message
urs zeidler is currently offline urs zeidlerFriend
Messages: 16
Registered: July 2009
Junior Member
Jacqui wrote:
> Hi all,
>
> Can anyone recommend an Eclipse plugin that supports the creation and
> editing of UML Class and Sequence diagrams graphically and also allows
> you to view these diagrams as .uml files (i.e. instances of the UML2
> metamodel provided by the UML project).
>
> Alternatively, can anyone recommend where I could find an example of a
> UML sequence diagram in .uml format and its corresponding visual
> representation.
>
> Thanks in advance,
>
> Jacqui
Try http://www.topcased.org but I think there is a list in the wiki
gives you all the choice.

greetings
Re: UML plugin for graphically creating and editing UML models [message #477534 is a reply to message #477527] Tue, 17 June 2008 19:41 Go to previous messageGo to next message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
.... I believe this is the link ...
http://wiki.eclipse.org/MDT-UML2-Tool-Compatibility


"urs zeidler" <me@urszeidler.de> wrote in message
news:g37ooe$mop$1@build.eclipse.org...
> Jacqui wrote:
>> Hi all,
>>
>> Can anyone recommend an Eclipse plugin that supports the creation and
>> editing of UML Class and Sequence diagrams graphically and also allows
>> you to view these diagrams as .uml files (i.e. instances of the UML2
>> metamodel provided by the UML project).
>>
>> Alternatively, can anyone recommend where I could find an example of a
>> UML sequence diagram in .uml format and its corresponding visual
>> representation.
>>
>> Thanks in advance,
>>
>> Jacqui
> Try http://www.topcased.org but I think there is a list in the wiki gives
> you all the choice.
>
> greetings
Re: UML plugin for graphically creating and editing UML models [message #477538 is a reply to message #477534] Wed, 18 June 2008 14:37 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jmcq.cs.nuim.ie

Hi,

Thanks for the help that was exactly what I was looking for.

Currently, I'm trying to familiarise myself with the UML metamodel and
how class and sequence diagrams are represented as instances of the UML
metamodel (the one provided by the UML2 project). So to do this I'm
creating some class and sequence diagrams using the modelling tools (e.g
papyrus and topcased) and looking at the corresponding .uml files.

However, one thing that has me confused is that it appears that not all
attributes and references of certain metamodel elements are available.
For example, when you look at the actual metamodel file the element
Class has several attributes and references (e.g. ownedAttribute,
extension, superClass etc.) and also inherited ones (eg. attribute,
package, ownedPort, generalization etc.).

I've noticed that only some of these can be given values either via the
properties view or the add child option from the menu (e.g.
ownedAttribute, ownedPort, generalization) but others can not be given
values at all (e.g. superClass, extension, attribute, package).

Is this a choice made by the particular modelling tool or is it as a
result of the UML metamodel? For example, does it depend on the value of
certain attributes (changeable, derived etc) of the attributes and
references?

I'd really appreciate if someone could clarify this point for me or
direct me to some reading material that would help me understand this
better.

Thanks in advance,

Jacqui

James Bruck wrote:
> ... I believe this is the link ...
> http://wiki.eclipse.org/MDT-UML2-Tool-Compatibility
>
>
> "urs zeidler" <me@urszeidler.de> wrote in message
> news:g37ooe$mop$1@build.eclipse.org...
>> Jacqui wrote:
>>> Hi all,
>>>
>>> Can anyone recommend an Eclipse plugin that supports the creation and
>>> editing of UML Class and Sequence diagrams graphically and also allows
>>> you to view these diagrams as .uml files (i.e. instances of the UML2
>>> metamodel provided by the UML project).
>>>
>>> Alternatively, can anyone recommend where I could find an example of a
>>> UML sequence diagram in .uml format and its corresponding visual
>>> representation.
>>>
>>> Thanks in advance,
>>>
>>> Jacqui
>> Try http://www.topcased.org but I think there is a list in the wiki gives
>> you all the choice.
>>
>> greetings
>
>
Re: UML plugin for graphically creating and editing UML models [message #477539 is a reply to message #477538] Wed, 18 June 2008 20:15 Go to previous messageGo to next message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Jacqui,

From the upper right corner of the properties view select the "Show Advanced
Properties" button (second button in the list). That will reveal more
properties.

I hope that is what you are looking for.

Cheers,
- James.

"Jacqui" <jmcq@cs.nuim.ie> wrote in message
news:g3b6j4$52i$1@build.eclipse.org...
> Hi,
>
> Thanks for the help that was exactly what I was looking for.
>
> Currently, I'm trying to familiarise myself with the UML metamodel and how
> class and sequence diagrams are represented as instances of the UML
> metamodel (the one provided by the UML2 project). So to do this I'm
> creating some class and sequence diagrams using the modelling tools (e.g
> papyrus and topcased) and looking at the corresponding .uml files.
>
> However, one thing that has me confused is that it appears that not all
> attributes and references of certain metamodel elements are available. For
> example, when you look at the actual metamodel file the element Class has
> several attributes and references (e.g. ownedAttribute, extension,
> superClass etc.) and also inherited ones (eg. attribute, package,
> ownedPort, generalization etc.).
>
> I've noticed that only some of these can be given values either via the
> properties view or the add child option from the menu (e.g.
> ownedAttribute, ownedPort, generalization) but others can not be given
> values at all (e.g. superClass, extension, attribute, package).
>
> Is this a choice made by the particular modelling tool or is it as a
> result of the UML metamodel? For example, does it depend on the value of
> certain attributes (changeable, derived etc) of the attributes and
> references?
>
> I'd really appreciate if someone could clarify this point for me or direct
> me to some reading material that would help me understand this better.
>
> Thanks in advance,
>
> Jacqui
>
> James Bruck wrote:
>> ... I believe this is the link ...
>> http://wiki.eclipse.org/MDT-UML2-Tool-Compatibility
>>
>>
>> "urs zeidler" <me@urszeidler.de> wrote in message
>> news:g37ooe$mop$1@build.eclipse.org...
>>> Jacqui wrote:
>>>> Hi all,
>>>>
>>>> Can anyone recommend an Eclipse plugin that supports the creation and
>>>> editing of UML Class and Sequence diagrams graphically and also allows
>>>> you to view these diagrams as .uml files (i.e. instances of the UML2
>>>> metamodel provided by the UML project).
>>>>
>>>> Alternatively, can anyone recommend where I could find an example of a
>>>> UML sequence diagram in .uml format and its corresponding visual
>>>> representation.
>>>>
>>>> Thanks in advance,
>>>>
>>>> Jacqui
>>> Try http://www.topcased.org but I think there is a list in the wiki
>>> gives you all the choice.
>>>
>>> greetings
>>
Re: UML plugin for graphically creating and editing UML models [message #477541 is a reply to message #477539] Wed, 18 June 2008 21:13 Go to previous message
Eclipse UserFriend
Originally posted by: jmcq.cs.nuim.ie

Thanks James - this is exactly what I was looking for.

How silly of me trying to make it more complicated than it is!

Thanks again.

Jacqui


James Bruck wrote:
> Hi Jacqui,
>
> From the upper right corner of the properties view select the "Show Advanced
> Properties" button (second button in the list). That will reveal more
> properties.
>
> I hope that is what you are looking for.
>
> Cheers,
> - James.
>
> "Jacqui" <jmcq@cs.nuim.ie> wrote in message
> news:g3b6j4$52i$1@build.eclipse.org...
>> Hi,
>>
>> Thanks for the help that was exactly what I was looking for.
>>
>> Currently, I'm trying to familiarise myself with the UML metamodel and how
>> class and sequence diagrams are represented as instances of the UML
>> metamodel (the one provided by the UML2 project). So to do this I'm
>> creating some class and sequence diagrams using the modelling tools (e.g
>> papyrus and topcased) and looking at the corresponding .uml files.
>>
>> However, one thing that has me confused is that it appears that not all
>> attributes and references of certain metamodel elements are available. For
>> example, when you look at the actual metamodel file the element Class has
>> several attributes and references (e.g. ownedAttribute, extension,
>> superClass etc.) and also inherited ones (eg. attribute, package,
>> ownedPort, generalization etc.).
>>
>> I've noticed that only some of these can be given values either via the
>> properties view or the add child option from the menu (e.g.
>> ownedAttribute, ownedPort, generalization) but others can not be given
>> values at all (e.g. superClass, extension, attribute, package).
>>
>> Is this a choice made by the particular modelling tool or is it as a
>> result of the UML metamodel? For example, does it depend on the value of
>> certain attributes (changeable, derived etc) of the attributes and
>> references?
>>
>> I'd really appreciate if someone could clarify this point for me or direct
>> me to some reading material that would help me understand this better.
>>
>> Thanks in advance,
>>
>> Jacqui
>>
>> James Bruck wrote:
>>> ... I believe this is the link ...
>>> http://wiki.eclipse.org/MDT-UML2-Tool-Compatibility
>>>
>>>
>>> "urs zeidler" <me@urszeidler.de> wrote in message
>>> news:g37ooe$mop$1@build.eclipse.org...
>>>> Jacqui wrote:
>>>>> Hi all,
>>>>>
>>>>> Can anyone recommend an Eclipse plugin that supports the creation and
>>>>> editing of UML Class and Sequence diagrams graphically and also allows
>>>>> you to view these diagrams as .uml files (i.e. instances of the UML2
>>>>> metamodel provided by the UML project).
>>>>>
>>>>> Alternatively, can anyone recommend where I could find an example of a
>>>>> UML sequence diagram in .uml format and its corresponding visual
>>>>> representation.
>>>>>
>>>>> Thanks in advance,
>>>>>
>>>>> Jacqui
>>>> Try http://www.topcased.org but I think there is a list in the wiki
>>>> gives you all the choice.
>>>>
>>>> greetings
>
Re: UML Primitive types and non-primitive types [message #626637 is a reply to message #477450] Wed, 28 May 2008 13:38 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Timothy,

You could possibly apply the Ecore profile and specify the java types.
Look at the 'Ecore Classifier' stereotype 'instance class name' for example.
Also have a look at the org.eclipse.uml2.uml.resources\libraries . There
are libraries for Java primitive types, XML primitive types etc.

Cheers
- James.

"Timothy Marc" <timothymarc@freenet.de> wrote in message
news:g1f8gs$f3$1@build.eclipse.org...
> Hi,
>
> i have modeled some classes and want to include not the UMLPrimitiveTypes,
> but types like Date, List, Map, etc. In my JET for the concrete language,
> i than want to map between this "default" types into the platform specific
> types, e.g. java.util.List for Java or even array() for PHP.
>
> What is the best solution for providing these types? One way, we had
> suggested, was to remodel all the "default" types we need as
> PrimitiveTypes of our model and the simply read them out during the
> evaluation of the UML Superstructure.
>
> Another idea was to use the Ecore datatypes.
>
> But i think there is a more elegant solution for this common situation?
>
> Thanks for any meanings
> Timothy
Re: UML Primitive types and non-primitive types [message #626641 is a reply to message #477455] Thu, 29 May 2008 09:29 Go to previous message
Timothy Marc is currently offline Timothy MarcFriend
Messages: 547
Registered: July 2009
Senior Member
Hey James,

i see. Let me consider, whether i have understood the import mechanism
correctly:

You can load several ressources into the model by using "Load Resource".
Than, one had to import the required elements such as Primitive Type int
(for Java, e.g.) with the "Element Import" node in the editor. Is that the
correct?

Thanks
Timothy

"James Bruck" <jbruck@ca.ibm.com> schrieb im Newsbeitrag
news:g1jn7p$s5t$1@build.eclipse.org...
> Hi Timothy,
>
> You could possibly apply the Ecore profile and specify the java types.
> Look at the 'Ecore Classifier' stereotype 'instance class name' for
> example.
> Also have a look at the org.eclipse.uml2.uml.resources\libraries . There
> are libraries for Java primitive types, XML primitive types etc.
>
> Cheers
> - James.
>
> "Timothy Marc" <timothymarc@freenet.de> wrote in message
> news:g1f8gs$f3$1@build.eclipse.org...
>> Hi,
>>
>> i have modeled some classes and want to include not the
>> UMLPrimitiveTypes, but types like Date, List, Map, etc. In my JET for the
>> concrete language, i than want to map between this "default" types into
>> the platform specific types, e.g. java.util.List for Java or even array()
>> for PHP.
>>
>> What is the best solution for providing these types? One way, we had
>> suggested, was to remodel all the "default" types we need as
>> PrimitiveTypes of our model and the simply read them out during the
>> evaluation of the UML Superstructure.
>>
>> Another idea was to use the Ecore datatypes.
>>
>> But i think there is a more elegant solution for this common situation?
>>
>> Thanks for any meanings
>> Timothy
>
>
Re: UML Primitive types and non-primitive types [message #626643 is a reply to message #477459] Fri, 30 May 2008 14:06 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Timothy,

Yes... have a look at the getting started article:
http://www.eclipse.org/modeling/mdt/uml2/docs/articles/Intro duction_to_UML2_Profiles/article.html
for tips on how to do this programatically and with the UML editor.

Cheers,
- James.

"Timothy Marc" <timothymarc@freenet.de> wrote in message
news:g1lt2g$kj0$1@build.eclipse.org...
> Hey James,
>
> i see. Let me consider, whether i have understood the import mechanism
> correctly:
>
> You can load several ressources into the model by using "Load Resource".
> Than, one had to import the required elements such as Primitive Type int
> (for Java, e.g.) with the "Element Import" node in the editor. Is that the
> correct?
>
> Thanks
> Timothy
>
> "James Bruck" <jbruck@ca.ibm.com> schrieb im Newsbeitrag
> news:g1jn7p$s5t$1@build.eclipse.org...
>> Hi Timothy,
>>
>> You could possibly apply the Ecore profile and specify the java types.
>> Look at the 'Ecore Classifier' stereotype 'instance class name' for
>> example.
>> Also have a look at the org.eclipse.uml2.uml.resources\libraries .
>> There are libraries for Java primitive types, XML primitive types etc.
>>
>> Cheers
>> - James.
>>
>> "Timothy Marc" <timothymarc@freenet.de> wrote in message
>> news:g1f8gs$f3$1@build.eclipse.org...
>>> Hi,
>>>
>>> i have modeled some classes and want to include not the
>>> UMLPrimitiveTypes, but types like Date, List, Map, etc. In my JET for
>>> the concrete language, i than want to map between this "default" types
>>> into the platform specific types, e.g. java.util.List for Java or even
>>> array() for PHP.
>>>
>>> What is the best solution for providing these types? One way, we had
>>> suggested, was to remodel all the "default" types we need as
>>> PrimitiveTypes of our model and the simply read them out during the
>>> evaluation of the UML Superstructure.
>>>
>>> Another idea was to use the Ecore datatypes.
>>>
>>> But i think there is a more elegant solution for this common situation?
>>>
>>> Thanks for any meanings
>>> Timothy
>>
>>
>
>
Re: UML Primitive types and non-primitive types [message #626651 is a reply to message #477459] Tue, 03 June 2008 00:38 Go to previous message
Kenn Hussey is currently offline Kenn HusseyFriend
Messages: 1620
Registered: July 2009
Senior Member
Timothy,

It's actually not mandatory to import the elements you wish to reference...
all imports accomplish is that they allow reference to imported elements to
be made without having to use their qualified names (much like in Java).

Kenn

"Timothy Marc" <timothymarc@freenet.de> wrote in message
news:g1lt2g$kj0$1@build.eclipse.org...
> Hey James,
>
> i see. Let me consider, whether i have understood the import mechanism
> correctly:
>
> You can load several ressources into the model by using "Load Resource".
> Than, one had to import the required elements such as Primitive Type int
> (for Java, e.g.) with the "Element Import" node in the editor. Is that the
> correct?
>
> Thanks
> Timothy
>
> "James Bruck" <jbruck@ca.ibm.com> schrieb im Newsbeitrag
> news:g1jn7p$s5t$1@build.eclipse.org...
>> Hi Timothy,
>>
>> You could possibly apply the Ecore profile and specify the java types.
>> Look at the 'Ecore Classifier' stereotype 'instance class name' for
>> example.
>> Also have a look at the org.eclipse.uml2.uml.resources\libraries .
>> There are libraries for Java primitive types, XML primitive types etc.
>>
>> Cheers
>> - James.
>>
>> "Timothy Marc" <timothymarc@freenet.de> wrote in message
>> news:g1f8gs$f3$1@build.eclipse.org...
>>> Hi,
>>>
>>> i have modeled some classes and want to include not the
>>> UMLPrimitiveTypes, but types like Date, List, Map, etc. In my JET for
>>> the concrete language, i than want to map between this "default" types
>>> into the platform specific types, e.g. java.util.List for Java or even
>>> array() for PHP.
>>>
>>> What is the best solution for providing these types? One way, we had
>>> suggested, was to remodel all the "default" types we need as
>>> PrimitiveTypes of our model and the simply read them out during the
>>> evaluation of the UML Superstructure.
>>>
>>> Another idea was to use the Ecore datatypes.
>>>
>>> But i think there is a more elegant solution for this common situation?
>>>
>>> Thanks for any meanings
>>> Timothy
>>
>>
>
>
Re: UML Primitive types and non-primitive types [message #626657 is a reply to message #477469] Tue, 03 June 2008 10:58 Go to previous message
Eclipse UserFriend
Originally posted by: cdamus.zeligsoft.com

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

Hi, Kenn,

Where in the UML are references made by name, except in expression
languages such as OCL?

cW

On Mon, 2008-06-02 at 20:38 -0400, Kenn Hussey wrote:

> Timothy,
>
> It's actually not mandatory to import the elements you wish to reference...
> all imports accomplish is that they allow reference to imported elements to
> be made without having to use their qualified names (much like in Java).
>
> Kenn
>
> "Timothy Marc" <timothymarc@freenet.de> wrote in message
> news:g1lt2g$kj0$1@build.eclipse.org...
> > Hey James,
> >
> > i see. Let me consider, whether i have understood the import mechanism
> > correctly:
> >
> > You can load several ressources into the model by using "Load Resource".
> > Than, one had to import the required elements such as Primitive Type int
> > (for Java, e.g.) with the "Element Import" node in the editor. Is that the
> > correct?
> >
> > Thanks
> > Timothy
> >
> > "James Bruck" <jbruck@ca.ibm.com> schrieb im Newsbeitrag
> > news:g1jn7p$s5t$1@build.eclipse.org...
> >> Hi Timothy,
> >>
> >> You could possibly apply the Ecore profile and specify the java types.
> >> Look at the 'Ecore Classifier' stereotype 'instance class name' for
> >> example.
> >> Also have a look at the org.eclipse.uml2.uml.resources\libraries .
> >> There are libraries for Java primitive types, XML primitive types etc.
> >>
> >> Cheers
> >> - James.
> >>
> >> "Timothy Marc" <timothymarc@freenet.de> wrote in message
> >> news:g1f8gs$f3$1@build.eclipse.org...
> >>> Hi,
> >>>
> >>> i have modeled some classes and want to include not the
> >>> UMLPrimitiveTypes, but types like Date, List, Map, etc. In my JET for
> >>> the concrete language, i than want to map between this "default" types
> >>> into the platform specific types, e.g. java.util.List for Java or even
> >>> array() for PHP.
> >>>
> >>> What is the best solution for providing these types? One way, we had
> >>> suggested, was to remodel all the "default" types we need as
> >>> PrimitiveTypes of our model and the simply read them out during the
> >>> evaluation of the UML Superstructure.
> >>>
> >>> Another idea was to use the Ecore datatypes.
> >>>
> >>> But i think there is a more elegant solution for this common situation?
> >>>
> >>> Thanks for any meanings
> >>> Timothy
> >>
> >>
> >
> >
>
>

--=-NYBJQnhZXINggnIW7oMe
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, Kenn,<BR>
<BR>
Where in the UML are references made by name, except in expression languages such as OCL?<BR>
<BR>
cW<BR>
<BR>
On Mon, 2008-06-02 at 20:38 -0400, Kenn Hussey wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">Timothy,</FONT>

<FONT COLOR="#000000">It's actually not mandatory to import the elements you wish to reference... </FONT>
<FONT COLOR="#000000">all imports accomplish is that they allow reference to imported elements to </FONT>
<FONT COLOR="#000000">be made without having to use their qualified names (much like in Java).</FONT>

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

<FONT COLOR="#000000">&quot;Timothy Marc&quot; &lt;<A HREF="mailto:timothymarc@freenet.de">timothymarc@freenet.de</A>&gt; wrote in message </FONT>
<FONT COLOR="#000000">news:<A HREF="mailto:g1lt2g$kj0$1@build.eclipse.org">g1lt2g$kj0$1@build.eclipse.org</A>...</FONT>
<FONT COLOR="#000000">&gt; Hey James,</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt; i see. Let me consider, whether i have understood the import mechanism </FONT>
<FONT COLOR="#000000">&gt; correctly:</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt; You can load several ressources into the model by using &quot;Load Resource&quot;. </FONT>
<FONT COLOR="#000000">&gt; Than, one had to import the required elements such as Primitive Type int </FONT>
<FONT COLOR="#000000">&gt; (for Java, e.g.) with the &quot;Element Import&quot; node in the editor. Is that the </FONT>
<FONT COLOR="#000000">&gt; correct?</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt; Thanks</FONT>
<FONT COLOR="#000000">&gt; Timothy</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt; &quot;James Bruck&quot; &lt;<A HREF="mailto:jbruck@ca.ibm.com">jbruck@ca.ibm.com</A>&gt; schrieb im Newsbeitrag </FONT>
<FONT COLOR="#000000">&gt; news:<A HREF="mailto:g1jn7p$s5t$1@build.eclipse.org">g1jn7p$s5t$1@build.eclipse.org</A>...</FONT>
<FONT COLOR="#000000">&gt;&gt; Hi Timothy,</FONT>
<FONT COLOR="#000000">&gt;&gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; You could possibly apply the Ecore profile and specify the java types. </FONT>
<FONT COLOR="#000000">&gt;&gt; Look at the 'Ecore Classifier' stereotype 'instance class name' for </FONT>
<FONT COLOR="#000000">&gt;&gt; example.</FONT>
<FONT COLOR="#000000">&gt;&gt; Also have a look at the org.eclipse.uml2.uml.resources\libraries . </FONT>
<FONT COLOR="#000000">&gt;&gt; There are libraries for Java primitive types, XML primitive types etc.</FONT>
<FONT COLOR="#000000">&gt;&gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; Cheers</FONT>
<FONT COLOR="#000000">&gt;&gt; - James.</FONT>
<FONT COLOR="#000000">&gt;&gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; &quot;Timothy Marc&quot; &lt;<A HREF="mailto:timothymarc@freenet.de">timothymarc@freenet.de</A>&gt; wrote in message </FONT>
<FONT COLOR="#000000">&gt;&gt; news:<A HREF="mailto:g1f8gs$f3$1@build.eclipse.org">g1f8gs$f3$1@build.eclipse.org</A>...</FONT>
<FONT COLOR="#000000">&gt;&gt;&gt; Hi,</FONT>
<FONT COLOR="#000000">&gt;&gt;&gt;</FONT>
<FONT COLOR="#000000">&gt;&gt;&gt; i have modeled some classes and want to include not the </FONT>
<FONT COLOR="#000000">&gt;&gt;&gt; UMLPrimitiveTypes, but types like Date, List, Map, etc. In my JET for </FONT>
<FONT COLOR="#000000">&gt;&gt;&gt; the concrete language, i than want to map between this &quot;default&quot; types </FONT>
<FONT COLOR="#000000">&gt;&gt;&gt; into the platform specific types, e.g. java.util.List for Java or even </FONT>
<FONT COLOR="#000000">&gt;&gt;&gt; array() for PHP.</FONT>
<FONT COLOR="#000000">&gt;&gt;&gt;</FONT>
<FONT COLOR="#000000">&gt;&gt;&gt; What is the best solution for providing these types? One way, we had </FONT>
<FONT COLOR="#000000">&gt;&gt;&gt; suggested, was to remodel all the &quot;default&quot; types we need as </FONT>
<FONT COLOR="#000000">&gt;&gt;&gt; PrimitiveTypes of our model and the simply read them out during the </FONT>
<FONT COLOR="#000000">&gt;&gt;&gt; evaluation of the UML Superstructure.</FONT>
<FONT COLOR="#000000">&gt;&gt;&gt;</FONT>
<FONT COLOR="#000000">&gt;&gt;&gt; Another idea was to use the Ecore datatypes.</FONT>
<FONT COLOR="#000000">&gt;&gt;&gt;</FONT>
<FONT COLOR="#000000">&gt;&gt;&gt; But i think there is a more elegant solution for this common situation?</FONT>
<FONT COLOR="#000000">&gt;&gt;&gt;</FONT>
<FONT COLOR="#000000">&gt;&gt;&gt; Thanks for any meanings</FONT>
<FONT COLOR="#000000">&gt;&gt;&gt; Timothy</FONT>
<FONT COLOR="#000000">&gt;&gt;</FONT>
<FONT COLOR="#000000">&gt;&gt;</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt; </FONT>


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

--=-NYBJQnhZXINggnIW7oMe--
Re: UML Primitive types and non-primitive types [message #626658 is a reply to message #477475] Tue, 03 June 2008 11:20 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 32438
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------070806000104000404050102
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

Christian,

It's funny you ask the same question that popped to mind when I read the
aliasing question from Felix. It's a bit odd that there is a feature in
there to support some sort of lexical scoping that's not directly used
by UML itself. I suppose that's convenient to someone, but it seems to
make assumptions about how such lexical scoping ought to work without a
demonstrated use case. I wonder if there are constraints that two
imports use the same unqualified name, or if two imports result in
collisions with each other or a collision with something locally visible
already. I guess package imports can induce all such problems too,
except for the aliasing support...


Christian W. Damus wrote:
> Hi, Kenn,
>
> Where in the UML are references made by name, except in expression
> languages such as OCL?
>
> cW
>
> On Mon, 2008-06-02 at 20:38 -0400, Kenn Hussey wrote:
>> Timothy,
>>
>> It's actually not mandatory to import the elements you wish to reference...
>> all imports accomplish is that they allow reference to imported elements to
>> be made without having to use their qualified names (much like in Java).
>>
>> Kenn
>>
>> "Timothy Marc" <timothymarc@freenet.de <mailto:timothymarc@freenet.de>> wrote in message
>> news:g1lt2g$kj0$1@build.eclipse.org <mailto:g1lt2g$kj0$1@build.eclipse.org>...
>> > Hey James,
>> >
>> > i see. Let me consider, whether i have understood the import mechanism
>> > correctly:
>> >
>> > You can load several ressources into the model by using "Load Resource".
>> > Than, one had to import the required elements such as Primitive Type int
>> > (for Java, e.g.) with the "Element Import" node in the editor. Is that the
>> > correct?
>> >
>> > Thanks
>> > Timothy
>> >
>> > "James Bruck" <jbruck@ca.ibm.com <mailto:jbruck@ca.ibm.com>> schrieb im Newsbeitrag
>> > news:g1jn7p$s5t$1@build.eclipse.org <mailto:g1jn7p$s5t$1@build.eclipse.org>...
>> >> Hi Timothy,
>> >>
>> >> You could possibly apply the Ecore profile and specify the java types.
>> >> Look at the 'Ecore Classifier' stereotype 'instance class name' for
>> >> example.
>> >> Also have a look at the org.eclipse.uml2.uml.resources\libraries .
>> >> There are libraries for Java primitive types, XML primitive types etc.
>> >>
>> >> Cheers
>> >> - James.
>> >>
>> >> "Timothy Marc" <timothymarc@freenet.de <mailto:timothymarc@freenet.de>> wrote in message
>> >> news:g1f8gs$f3$1@build.eclipse.org <mailto:g1f8gs$f3$1@build.eclipse.org>...
>> >>> Hi,
>> >>>
>> >>> i have modeled some classes and want to include not the
>> >>> UMLPrimitiveTypes, but types like Date, List, Map, etc. In my JET for
>> >>> the concrete language, i than want to map between this "default" types
>> >>> into the platform specific types, e.g. java.util.List for Java or even
>> >>> array() for PHP.
>> >>>
>> >>> What is the best solution for providing these types? One way, we had
>> >>> suggested, was to remodel all the "default" types we need as
>> >>> PrimitiveTypes of our model and the simply read them out during the
>> >>> evaluation of the UML Superstructure.
>> >>>
>> >>> Another idea was to use the Ecore datatypes.
>> >>>
>> >>> But i think there is a more elegant solution for this common situation?
>> >>>
>> >>> Thanks for any meanings
>> >>> Timothy
>> >>
>> >>
>> >
>> >
>>
>>
>>


--------------070806000104000404050102
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Christian,<br>
<br>
It's funny you ask the same question that popped to mind when I read
the aliasing question from Felix.  It's a bit odd that there is a
feature in there to support some sort of lexical scoping that's not
directly used by UML itself.  I suppose that's convenient to someone,
but it seems to make assumptions about how such lexical scoping ought
to work without a demonstrated use case.  I wonder if there are
constraints that two imports use the same unqualified name, or if two
imports result in collisions with each other or a collision with
something locally visible already.  I guess package imports can induce
all such problems too, except for the aliasing support...<br>
<br>
<br>
Christian W. Damus wrote:
<blockquote cite="mid:1212490687.6514.10.camel@cwdlappy" type="cite">
<meta http-equiv="Content-Type" content="text/html; ">
<meta name="GENERATOR" content="GtkHTML/3.16.0">
Hi, Kenn,<br>
<br>
Where in the UML are references made by name, except in expression
languages such as OCL?<br>
<br>
cW<br>
<br>
On Mon, 2008-06-02 at 20:38 -0400, Kenn Hussey wrote:
<blockquote type="CITE">
<pre><font color="#000000">Timothy,</font>

<font color="#000000">It's actually not mandatory to import the elements you wish to reference... </font>
<font color="#000000">all imports accomplish is that they allow reference to imported elements to </font>
<font color="#000000">be made without having to use their qualified names (much like in Java).</font>

<font color="#000000">Kenn</font>

<font color="#000000">"Timothy Marc" &lt;<a moz-do-not-send="true"
href="mailto:timothymarc@freenet.de">timothymarc@freenet.de</a>&gt; wrote in message </font>
<font color="#000000">news:<a moz-do-not-send="true"
href="mailto:g1lt2g$kj0$1@build.eclipse.org">g1lt2g$kj0$1@build.eclipse.org</a>...</font>
<font color="#000000">&gt; Hey James,</font>
<font color="#000000">&gt;</font>
<font color="#000000">&gt; i see. Let me consider, whether i have understood the import mechanism </font>
<font color="#000000">&gt; correctly:</font>
<font color="#000000">&gt;</font>
<font color="#000000">&gt; You can load several ressources into the model by using "Load Resource". </font>
<font color="#000000">&gt; Than, one had to import the required elements such as Primitive Type int </font>
<font color="#000000">&gt; (for Java, e.g.) with the "Element Import" node in the editor. Is that the </font>
<font color="#000000">&gt; correct?</font>
<font color="#000000">&gt;</font>
<font color="#000000">&gt; Thanks</font>
<font color="#000000">&gt; Timothy</font>
<font color="#000000">&gt;</font>
<font color="#000000">&gt; "James Bruck" &lt;<a moz-do-not-send="true"
href="mailto:jbruck@ca.ibm.com">jbruck@ca.ibm.com</a>&gt; schrieb im Newsbeitrag </font>
<font color="#000000">&gt; news:<a moz-do-not-send="true"
href="mailto:g1jn7p$s5t$1@build.eclipse.org">g1jn7p$s5t$1@build.eclipse.org</a>...</font>
<font color="#000000">&gt;&gt; Hi Timothy,</font>
<font color="#000000">&gt;&gt;</font>
<font color="#000000">&gt;&gt; You could possibly apply the Ecore profile and specify the java types. </font>
<font color="#000000">&gt;&gt; Look at the 'Ecore Classifier' stereotype 'instance class name' for </font>
<font color="#000000">&gt;&gt; example.</font>
<font color="#000000">&gt;&gt; Also have a look at the org.eclipse.uml2.uml.resources\libraries . </font>
<font color="#000000">&gt;&gt; There are libraries for Java primitive types, XML primitive types etc.</font>
<font color="#000000">&gt;&gt;</font>
<font color="#000000">&gt;&gt; Cheers</font>
<font color="#000000">&gt;&gt; - James.</font>
<font color="#000000">&gt;&gt;</font>
<font color="#000000">&gt;&gt; "Timothy Marc" &lt;<a
moz-do-not-send="true" href="mailto:timothymarc@freenet.de">timothymarc@freenet.de</a>&gt; wrote in message </font>
<font color="#000000">&gt;&gt; news:<a moz-do-not-send="true"
href="mailto:g1f8gs$f3$1@build.eclipse.org">g1f8gs$f3$1@build.eclipse.org</a>...</font>
<font color="#000000">&gt;&gt;&gt; Hi,</font>
<font color="#000000">&gt;&gt;&gt;</font>
<font color="#000000">&gt;&gt;&gt; i have modeled some classes and want to include not the </font>
<font color="#000000">&gt;&gt;&gt; UMLPrimitiveTypes, but types like Date, List, Map, etc. In my JET for </font>
<font color="#000000">&gt;&gt;&gt; the concrete language, i than want to map between this "default" types </font>
<font color="#000000">&gt;&gt;&gt; into the platform specific types, e.g. java.util.List for Java or even </font>
<font color="#000000">&gt;&gt;&gt; array() for PHP.</font>
<font color="#000000">&gt;&gt;&gt;</font>
<font color="#000000">&gt;&gt;&gt; What is the best solution for providing these types? One way, we had </font>
<font color="#000000">&gt;&gt;&gt; suggested, was to remodel all the "default" types we need as </font>
<font color="#000000">&gt;&gt;&gt; PrimitiveTypes of our model and the simply read them out during the </font>
<font color="#000000">&gt;&gt;&gt; evaluation of the UML Superstructure.</font>
<font color="#000000">&gt;&gt;&gt;</font>
<font color="#000000">&gt;&gt;&gt; Another idea was to use the Ecore datatypes.</font>
<font color="#000000">&gt;&gt;&gt;</font>
<font color="#000000">&gt;&gt;&gt; But i think there is a more elegant solution for this common situation?</font>
<font color="#000000">&gt;&gt;&gt;</font>
<font color="#000000">&gt;&gt;&gt; Thanks for any meanings</font>
<font color="#000000">&gt;&gt;&gt; Timothy</font>
<font color="#000000">&gt;&gt;</font>
<font color="#000000">&gt;&gt;</font>
<font color="#000000">&gt;</font>
<font color="#000000">&gt; </font>


</pre>
</blockquote>
</blockquote>
<br>
</body>
</html>

--------------070806000104000404050102--


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: UML Primitive types and non-primitive types [message #626662 is a reply to message #477475] Wed, 04 June 2008 03:35 Go to previous message
Rafael Chaves is currently offline Rafael ChavesFriend
Messages: 362
Registered: July 2009
Senior Member
Christian,

That is useful at the notation level (concrete syntax), if you want to
allow the user to refer to elements from other packages using
unqualified names. Whether a fully qualified name or an unqualified
named was used when referencing an element is lost in the resulting
model. A graphical tool can keep that information in the diagram.

Rafael

Christian W. Damus wrote:
> Hi, Kenn,
>
> Where in the UML are references made by name, except in expression
> languages such as OCL?
>
> cW
>
> On Mon, 2008-06-02 at 20:38 -0400, Kenn Hussey wrote:
>> Timothy,
>>
>> It's actually not mandatory to import the elements you wish to reference...
>> all imports accomplish is that they allow reference to imported elements to
>> be made without having to use their qualified names (much like in Java).
>>
>> Kenn
>>
>> "Timothy Marc" <timothymarc@freenet.de <mailto:timothymarc@freenet.de>> wrote in message
>> news:g1lt2g$kj0$1@build.eclipse.org <mailto:g1lt2g$kj0$1@build.eclipse.org>...
>> > Hey James,
>> >
>> > i see. Let me consider, whether i have understood the import mechanism
>> > correctly:
>> >
>> > You can load several ressources into the model by using "Load Resource".
>> > Than, one had to import the required elements such as Primitive Type int
>> > (for Java, e.g.) with the "Element Import" node in the editor. Is that the
>> > correct?
>> >
>> > Thanks
>> > Timothy
>> >
>> > "James Bruck" <jbruck@ca.ibm.com <mailto:jbruck@ca.ibm.com>> schrieb im Newsbeitrag
>> > news:g1jn7p$s5t$1@build.eclipse.org <mailto:g1jn7p$s5t$1@build.eclipse.org>...
>> >> Hi Timothy,
>> >>
>> >> You could possibly apply the Ecore profile and specify the java types.
>> >> Look at the 'Ecore Classifier' stereotype 'instance class name' for
>> >> example.
>> >> Also have a look at the org.eclipse.uml2.uml.resources\libraries .
>> >> There are libraries for Java primitive types, XML primitive types etc.
>> >>
>> >> Cheers
>> >> - James.
>> >>
>> >> "Timothy Marc" <timothymarc@freenet.de <mailto:timothymarc@freenet.de>> wrote in message
>> >> news:g1f8gs$f3$1@build.eclipse.org <mailto:g1f8gs$f3$1@build.eclipse.org>...
>> >>> Hi,
>> >>>
>> >>> i have modeled some classes and want to include not the
>> >>> UMLPrimitiveTypes, but types like Date, List, Map, etc. In my JET for
>> >>> the concrete language, i than want to map between this "default" types
>> >>> into the platform specific types, e.g. java.util.List for Java or even
>> >>> array() for PHP.
>> >>>
>> >>> What is the best solution for providing these types? One way, we had
>> >>> suggested, was to remodel all the "default" types we need as
>> >>> PrimitiveTypes of our model and the simply read them out during the
>> >>> evaluation of the UML Superstructure.
>> >>>
>> >>> Another idea was to use the Ecore datatypes.
>> >>>
>> >>> But i think there is a more elegant solution for this common situation?
>> >>>
>> >>> Thanks for any meanings
>> >>> Timothy
>> >>
>> >>
>> >
>> >
>>
>>
Re: UML Primitive types and non-primitive types [message #626663 is a reply to message #477480] Wed, 04 June 2008 03:40 Go to previous message
Eclipse UserFriend
Originally posted by: cdamus.zeligsoft.com

--=-x3pRKMELGMzB1gQ+bsBx
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hi, Rafael,

That makes sense. Textual notations for specifying models, such as HUTN
or something generated by TMF/Xtext, would presumably make use of these
imported names.

Cheers,

Christian


On Tue, 2008-06-03 at 20:35 -0700, Rafael Chaves wrote:

> Christian,
>
> That is useful at the notation level (concrete syntax), if you want to
> allow the user to refer to elements from other packages using
> unqualified names. Whether a fully qualified name or an unqualified
> named was used when referencing an element is lost in the resulting
> model. A graphical tool can keep that information in the diagram.
>
> Rafael
>
> Christian W. Damus wrote:
> > Hi, Kenn,
> >
> > Where in the UML are references made by name, except in expression
> > languages such as OCL?
> >
> > cW
> >
> > On Mon, 2008-06-02 at 20:38 -0400, Kenn Hussey wrote:
> >> Timothy,
> >>
> >> It's actually not mandatory to import the elements you wish to reference...
> >> all imports accomplish is that they allow reference to imported elements to
> >> be made without having to use their qualified names (much like in Java).
> >>
> >> Kenn
> >>
> >> "Timothy Marc" <timothymarc@freenet.de <mailto:timothymarc@freenet.de>> wrote in message
> >> news:g1lt2g$kj0$1@build.eclipse.org <mailto:g1lt2g$kj0$1@build.eclipse.org>...
> >> > Hey James,
> >> >
> >> > i see. Let me consider, whether i have understood the import mechanism
> >> > correctly:
> >> >
> >> > You can load several ressources into the model by using "Load Resource".
> >> > Than, one had to import the required elements such as Primitive Type int
> >> > (for Java, e.g.) with the "Element Import" node in the editor. Is that the
> >> > correct?
> >> >
> >> > Thanks
> >> > Timothy
> >> >
> >> > "James Bruck" <jbruck@ca.ibm.com <mailto:jbruck@ca.ibm.com>> schrieb im Newsbeitrag
> >> > news:g1jn7p$s5t$1@build.eclipse.org <mailto:g1jn7p$s5t$1@build.eclipse.org>...
> >> >> Hi Timothy,
> >> >>
> >> >> You could possibly apply the Ecore profile and specify the java types.
> >> >> Look at the 'Ecore Classifier' stereotype 'instance class name' for
> >> >> example.
> >> >> Also have a look at the org.eclipse.uml2.uml.resources\libraries .
> >> >> There are libraries for Java primitive types, XML primitive types etc.
> >> >>
> >> >> Cheers
> >> >> - James.
> >> >>
> >> >> "Timothy Marc" <timothymarc@freenet.de <mailto:timothymarc@freenet.de>> wrote in message
> >> >> news:g1f8gs$f3$1@build.eclipse.org <mailto:g1f8gs$f3$1@build.eclipse.org>...
> >> >>> Hi,
> >> >>>
> >> >>> i have modeled some classes and want to include not the
> >> >>> UMLPrimitiveTypes, but types like Date, List, Map, etc. In my JET for
> >> >>> the concrete language, i than want to map between this "default" types
> >> >>> into the platform specific types, e.g. java.util.List for Java or even
> >> >>> array() for PHP.
> >> >>>
> >> >>> What is the best solution for providing these types? One way, we had
> >> >>> suggested, was to remodel all the "default" types we need as
> >> >>> PrimitiveTypes of our model and the simply read them out during the
> >> >>> evaluation of the UML Superstructure.
> >> >>>
> >> >>> Another idea was to use the Ecore datatypes.
> >> >>>
> >> >>> But i think there is a more elegant solution for this common situation?
> >> >>>
> >> >>> Thanks for any meanings
> >> >>> Timothy
> >> >>
> >> >>
> >> >
> >> >
> >>
> >>

--=-x3pRKMELGMzB1gQ+bsBx
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, Rafael,<BR>
<BR>
That makes sense.&nbsp; Textual notations for specifying models, such as HUTN or something generated by TMF/Xtext, would presumably make use of these imported names.<BR>
<BR>
Cheers,<BR>
<BR>
Christian<BR>
<BR>
<BR>
On Tue, 2008-06-03 at 20:35 -0700, Rafael Chaves wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">Christian,</FONT>

<FONT COLOR="#000000">That is useful at the notation level (concrete syntax), if you want to </FONT>
<FONT COLOR="#000000">allow the user to refer to elements from other packages using </FONT>
<FONT COLOR="#000000">unqualified names. Whether a fully qualified name or an unqualified </FONT>
<FONT COLOR="#000000">named was used when referencing an element is lost in the resulting </FONT>
<FONT COLOR="#000000">model. A graphical tool can keep that information in the diagram.</FONT>

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

<FONT COLOR="#000000">Christian W. Damus wrote:</FONT>
<FONT COLOR="#000000">&gt; Hi, Kenn,</FONT>
<FONT COLOR="#000000">&gt; </FONT>
<FONT COLOR="#000000">&gt; Where in the UML are references made by name, except in expression </FONT>
<FONT COLOR="#000000">&gt; languages such as OCL?</FONT>
<FONT COLOR="#000000">&gt; </FONT>
<FONT COLOR="#000000">&gt; cW</FONT>
<FONT COLOR="#000000">&gt; </FONT>
<FONT COLOR="#000000">&gt; On Mon, 2008-06-02 at 20:38 -0400, Kenn Hussey wrote:</FONT>
<FONT COLOR="#000000">&gt;&gt; Timothy,</FONT>
<FONT COLOR="#000000">&gt;&gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; It's actually not mandatory to import the elements you wish to reference... </FONT>
<FONT COLOR="#000000">&gt;&gt; all imports accomplish is that they allow reference to imported elements to </FONT>
<FONT COLOR="#000000">&gt;&gt; be made without having to use their qualified names (much like in Java).</FONT>
<FONT COLOR="#000000">&gt;&gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; Kenn</FONT>
<FONT COLOR="#000000">&gt;&gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; &quot;Timothy Marc&quot; &lt;<A HREF="mailto:timothymarc@freenet.de">timothymarc@freenet.de</A> &lt;<A HREF="mailto:timothymarc@freenet.de">mailto:timothymarc@freenet.de</A>&gt;&gt; wrote in message </FONT>
<FONT COLOR="#000000">&gt;&gt; news:<A HREF="mailto:g1lt2g$kj0$1@build.eclipse.org">g1lt2g$kj0$1@build.eclipse.org</A> &lt;<A HREF="mailto:g1lt2g$kj0$1@build.eclipse.org">mailto:g1lt2g$kj0$1@build.eclipse.org</A>&gt;...</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt; Hey James,</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt; i see. Let me consider, whether i have understood the import mechanism </FONT>
<FONT COLOR="#000000">&gt;&gt; &gt; correctly:</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt; You can load several ressources into the model by using &quot;Load Resource&quot;. </FONT>
<FONT COLOR="#000000">&gt;&gt; &gt; Than, one had to import the required elements such as Primitive Type int </FONT>
<FONT COLOR="#000000">&gt;&gt; &gt; (for Java, e.g.) with the &quot;Element Import&quot; node in the editor. Is that the </FONT>
<FONT COLOR="#000000">&gt;&gt; &gt; correct?</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt; Thanks</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt; Timothy</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt; &quot;James Bruck&quot; &lt;<A HREF="mailto:jbruck@ca.ibm.com">jbruck@ca.ibm.com</A> &lt;<A HREF="mailto:jbruck@ca.ibm.com">mailto:jbruck@ca.ibm.com</A>&gt;&gt; schrieb im Newsbeitrag </FONT>
<FONT COLOR="#000000">&gt;&gt; &gt; news:<A HREF="mailto:g1jn7p$s5t$1@build.eclipse.org">g1jn7p$s5t$1@build.eclipse.org</A> &lt;<A HREF="mailto:g1jn7p$s5t$1@build.eclipse.org">mailto:g1jn7p$s5t$1@build.eclipse.org</A>&gt;...</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;&gt; Hi Timothy,</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;&gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;&gt; You could possibly apply the Ecore profile and specify the java types. </FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;&gt; Look at the 'Ecore Classifier' stereotype 'instance class name' for </FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;&gt; example.</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;&gt; Also have a look at the org.eclipse.uml2.uml.resources\libraries . </FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;&gt; There are libraries for Java primitive types, XML primitive types etc.</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;&gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;&gt; Cheers</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;&gt; - James.</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;&gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;&gt; &quot;Timothy Marc&quot; &lt;<A HREF="mailto:timothymarc@freenet.de">timothymarc@freenet.de</A> &lt;<A HREF="mailto:timothymarc@freenet.de">mailto:timothymarc@freenet.de</A>&gt;&gt; wrote in message </FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;&gt; news:<A HREF="mailto:g1f8gs$f3$1@build.eclipse.org">g1f8gs$f3$1@build.eclipse.org</A> &lt;<A HREF="mailto:g1f8gs$f3$1@build.eclipse.org">mailto:g1f8gs$f3$1@build.eclipse.org</A>&gt;...</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;&gt;&gt; Hi,</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;&gt;&gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;&gt;&gt; i have modeled some classes and want to include not the </FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;&gt;&gt; UMLPrimitiveTypes, but types like Date, List, Map, etc. In my JET for </FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;&gt;&gt; the concrete language, i than want to map between this &quot;default&quot; types </FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;&gt;&gt; into the platform specific types, e.g. java.util.List for Java or even </FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;&gt;&gt; array() for PHP.</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;&gt;&gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;&gt;&gt; What is the best solution for providing these types? One way, we had </FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;&gt;&gt; suggested, was to remodel all the &quot;default&quot; types we need as </FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;&gt;&gt; PrimitiveTypes of our model and the simply read them out during the </FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;&gt;&gt; evaluation of the UML Superstructure.</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;&gt;&gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;&gt;&gt; Another idea was to use the Ecore datatypes.</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;&gt;&gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;&gt;&gt; But i think there is a more elegant solution for this common situation?</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;&gt;&gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;&gt;&gt; Thanks for any meanings</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;&gt;&gt; Timothy</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;&gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;&gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt; </FONT>
<FONT COLOR="#000000">&gt;&gt;</FONT>
<FONT COLOR="#000000">&gt;&gt;</FONT>
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>

--=-x3pRKMELGMzB1gQ+bsBx--
Re: UML Primitive types and non-primitive types [message #626674 is a reply to message #477476] Mon, 09 June 2008 15:52 Go to previous message
Kenn Hussey is currently offline Kenn HusseyFriend
Messages: 1620
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.

------=_NextPart_000_006D_01C8CA27.49AF2710
Content-Type: text/plain;
charset="utf-8"
Content-Transfer-Encoding: quoted-printable

I assume the references would be in expressions used by constraints, for =
example. In the absence of a surface language, these semantics aren't =
all that meaningful to UML itself...

Kenn

"Ed Merks" <merks@ca.ibm.com> wrote in message =
news:g2399u$rbl$2@build.eclipse.org...
Christian,

It's funny you ask the same question that popped to mind when I read =
the aliasing question from Felix. It's a bit odd that there is a =
feature in there to support some sort of lexical scoping that's not =
directly used by UML itself. I suppose that's convenient to someone, =
but it seems to make assumptions about how such lexical scoping ought to =
work without a demonstrated use case. I wonder if there are constraints =
that two imports use the same unqualified name, or if two imports result =
in collisions with each other or a collision with something locally =
visible already. I guess package imports can induce all such problems =
too, except for the aliasing support...


Christian W. Damus wrote:=20
Hi, Kenn,

Where in the UML are references made by name, except in expression =
languages such as OCL?

cW

On Mon, 2008-06-02 at 20:38 -0400, Kenn Hussey wrote:=20
Timothy,

It's actually not mandatory to import the elements you wish to =
reference...=20
all imports accomplish is that they allow reference to imported elements =
to=20
be made without having to use their qualified names (much like in Java).

Kenn

"Timothy Marc" <timothymarc@freenet.de> wrote in message=20
news:g1lt2g$kj0$1@build.eclipse.org...
> Hey James,
>
> i see. Let me consider, whether i have understood the import mechanism =

> correctly:
>
> You can load several ressources into the model by using "Load =
Resource".=20
> Than, one had to import the required elements such as Primitive Type =
int=20
> (for Java, e.g.) with the "Element Import" node in the editor. Is that =
the=20
> correct?
>
> Thanks
> Timothy
>
> "James Bruck" <jbruck@ca.ibm.com> schrieb im Newsbeitrag=20
> news:g1jn7p$s5t$1@build.eclipse.org...
>> Hi Timothy,
>>
>> You could possibly apply the Ecore profile and specify the java =
types.=20
>> Look at the 'Ecore Classifier' stereotype 'instance class name' for=20
>> example.
>> Also have a look at the org.eclipse.uml2.uml.resources\libraries .=20
>> There are libraries for Java primitive types, XML primitive types =
etc.
>>
>> Cheers
>> - James.
>>
>> "Timothy Marc" <timothymarc@freenet.de> wrote in message=20
>> news:g1f8gs$f3$1@build.eclipse.org...
>>> Hi,
>>>
>>> i have modeled some classes and want to include not the=20
>>> UMLPrimitiveTypes, but types like Date, List, Map, etc. In my JET =
for=20
>>> the concrete language, i than want to map between this "default" =
types=20
>>> into the platform specific types, e.g. java.util.List for Java or =
even=20
>>> array() for PHP.
>>>
>>> What is the best solution for providing these types? One way, we had =

>>> suggested, was to remodel all the "default" types we need as=20
>>> PrimitiveTypes of our model and the simply read them out during the=20
>>> evaluation of the UML Superstructure.
>>>
>>> Another idea was to use the Ecore datatypes.
>>>
>>> But i think there is a more elegant solution for this common =
situation?
>>>
>>> Thanks for any meanings
>>> Timothy
>>
>>
>
>=20


=20

------=_NextPart_000_006D_01C8CA27.49AF2710
Content-Type: text/html;
charset="utf-8"
Content-Transfer-Encoding: quoted-printable

=EF=BB=BF<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3Dtext/html;charset=3DUTF-8>
<META content=3D"MSHTML 6.00.6000.16640" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY text=3D#000000 bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>I assume the references would be in =
expressions=20
used by constraints, for example. In the absence of a surface language, =
these=20
semantics aren't all that meaningful to UML itself...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Kenn</FONT></DIV>
<DIV>&nbsp;</DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Ed Merks" &lt;<A =
href=3D"mailto:merks@ca.ibm.com">merks@ca.ibm.com</A>&gt;=20
wrote in message <A=20
=
href=3D"news:g2399u$rbl$2@build.eclipse.org">news:g2399u$rbl$2@build.ecli=
pse.org</A>...</DIV>Christian,<BR><BR>It's=20
funny you ask the same question that popped to mind when I read the =
aliasing=20
question from Felix.&nbsp; It's a bit odd that there is a feature in =
there to=20
support some sort of lexical scoping that's not directly used by UML=20
itself.&nbsp; I suppose that's convenient to someone, but it seems to =
make=20
assumptions about how such lexical scoping ought to work without a=20
demonstrated use case.&nbsp; I wonder if there are constraints that =
two=20
imports use the same unqualified name, or if two imports result in =
collisions=20
with each other or a collision with something locally visible =
already.&nbsp; I=20
guess package imports can induce all such problems too, except for the =

aliasing support...<BR><BR><BR>Christian W. Damus wrote:=20
<BLOCKQUOTE cite=3Dmid:1212490687.6514.10.camel@cwdlappy =
type=3D"cite">
<META content=3DGtkHTML/3.16.0 name=3DGENERATOR>Hi, =
Kenn,<BR><BR>Where in the=20
UML are references made by name, except in expression languages such =
as=20
OCL?<BR><BR>cW<BR><BR>On Mon, 2008-06-02 at 20:38 -0400, Kenn Hussey =
wrote:=20
<BLOCKQUOTE type=3D"CITE"><PRE><FONT color=3D#000000>Timothy,</FONT>

<FONT color=3D#000000>It's actually not mandatory to import the elements =
you wish to reference... </FONT>
<FONT color=3D#000000>all imports accomplish is that they allow =
reference to imported elements to </FONT>
<FONT color=3D#000000>be made without having to use their qualified =
names (much like in Java).</FONT>

<FONT color=3D#000000>Kenn</FONT>

<FONT color=3D#000000>"Timothy Marc" &lt;<A =
href=3D"mailto:timothymarc@freenet.de" =
moz-do-not-send=3D"true">timothymarc@freenet.de</A>&gt; wrote in message =
</FONT>
<FONT color=3D#000000>news:<A =
href=3D"mailto:g1lt2g$kj0$1@build.eclipse.org" =
moz-do-not-send=3D"true">g1lt2g$kj0$1@build.eclipse.org</A>...</FONT>
<FONT color=3D#000000>&gt; Hey James,</FONT>
<FONT color=3D#000000>&gt;</FONT>
<FONT color=3D#000000>&gt; i see. Let me consider, whether i have =
understood the import mechanism </FONT>
<FONT color=3D#000000>&gt; correctly:</FONT>
<FONT color=3D#000000>&gt;</FONT>
<FONT color=3D#000000>&gt; You can load several ressources into the =
model by using "Load Resource". </FONT>
<FONT color=3D#000000>&gt; Than, one had to import the required elements =
such as Primitive Type int </FONT>
<FONT color=3D#000000>&gt; (for Java, e.g.) with the "Element Import" =
node in the editor. Is that the </FONT>
<FONT color=3D#000000>&gt; correct?</FONT>
<FONT color=3D#000000>&gt;</FONT>
<FONT color=3D#000000>&gt; Thanks</FONT>
<FONT color=3D#000000>&gt; Timothy</FONT>
<FONT color=3D#000000>&gt;</FONT>
<FONT color=3D#000000>&gt; "James Bruck" &lt;<A =
href=3D"mailto:jbruck@ca.ibm.com" =
moz-do-not-send=3D"true">jbruck@ca.ibm.com</A>&gt; schrieb im =
Newsbeitrag </FONT>
<FONT color=3D#000000>&gt; news:<A =
href=3D"mailto:g1jn7p$s5t$1@build.eclipse.org" =
moz-do-not-send=3D"true">g1jn7p$s5t$1@build.eclipse.org</A>...</FONT>
<FONT color=3D#000000>&gt;&gt; Hi Timothy,</FONT>
<FONT color=3D#000000>&gt;&gt;</FONT>
<FONT color=3D#000000>&gt;&gt; You could possibly apply the Ecore =
profile and specify the java types. </FONT>
<FONT color=3D#000000>&gt;&gt; Look at the 'Ecore Classifier' stereotype =
'instance class name' for </FONT>
<FONT color=3D#000000>&gt;&gt; example.</FONT>
<FONT color=3D#000000>&gt;&gt; Also have a look at the =
org.eclipse.uml2.uml.resources\libraries . </FONT>
<FONT color=3D#000000>&gt;&gt; There are libraries for Java primitive =
types, XML primitive types etc.</FONT>
<FONT color=3D#000000>&gt;&gt;</FONT>
<FONT color=3D#000000>&gt;&gt; Cheers</FONT>
<FONT color=3D#000000>&gt;&gt; - James.</FONT>
<FONT color=3D#000000>&gt;&gt;</FONT>
<FONT color=3D#000000>&gt;&gt; "Timothy Marc" &lt;<A =
href=3D"mailto:timothymarc@freenet.de" =
moz-do-not-send=3D"true">timothymarc@freenet.de</A>&gt; wrote in message =
</FONT>
<FONT color=3D#000000>&gt;&gt; news:<A =
href=3D"mailto:g1f8gs$f3$1@build.eclipse.org" =
moz-do-not-send=3D"true">g1f8gs$f3$1@build.eclipse.org</A>...</FONT>
<FONT color=3D#000000>&gt;&gt;&gt; Hi,</FONT>
<FONT color=3D#000000>&gt;&gt;&gt;</FONT>
<FONT color=3D#000000>&gt;&gt;&gt; i have modeled some classes and want =
to include not the </FONT>
<FONT color=3D#000000>&gt;&gt;&gt; UMLPrimitiveTypes, but types like =
Date, List, Map, etc. In my JET for </FONT>
<FONT color=3D#000000>&gt;&gt;&gt; the concrete language, i than want to =
map between this "default" types </FONT>
<FONT color=3D#000000>&gt;&gt;&gt; into the platform specific types, =
e.g. java.util.List for Java or even </FONT>
<FONT color=3D#000000>&gt;&gt;&gt; array() for PHP.</FONT>
<FONT color=3D#000000>&gt;&gt;&gt;</FONT>
<FONT color=3D#000000>&gt;&gt;&gt; What is the best solution for =
providing these types? One way, we had </FONT>
<FONT color=3D#000000>&gt;&gt;&gt; suggested, was to remodel all the =
"default" types we need as </FONT>
<FONT color=3D#000000>&gt;&gt;&gt; PrimitiveTypes of our model and the =
simply read them out during the </FONT>
<FONT color=3D#000000>&gt;&gt;&gt; evaluation of the UML =
Superstructure.</FONT>
<FONT color=3D#000000>&gt;&gt;&gt;</FONT>
<FONT color=3D#000000>&gt;&gt;&gt; Another idea was to use the Ecore =
datatypes.</FONT>
<FONT color=3D#000000>&gt;&gt;&gt;</FONT>
<FONT color=3D#000000>&gt;&gt;&gt; But i think there is a more elegant =
solution for this common situation?</FONT>
<FONT color=3D#000000>&gt;&gt;&gt;</FONT>
<FONT color=3D#000000>&gt;&gt;&gt; Thanks for any meanings</FONT>
<FONT color=3D#000000>&gt;&gt;&gt; Timothy</FONT>
<FONT color=3D#000000>&gt;&gt;</FONT>
<FONT color=3D#000000>&gt;&gt;</FONT>
<FONT color=3D#000000>&gt;</FONT>
<FONT color=3D#000000>&gt; </FONT>


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

------=_NextPart_000_006D_01C8CA27.49AF2710--
UML plugin for graphically creating and editing UML models [message #626716 is a reply to message #477450] Mon, 16 June 2008 20:25 Go to previous message
Eclipse UserFriend
Originally posted by: jmcq.cs.nuim.ie

Hi all,

Can anyone recommend an Eclipse plugin that supports the creation and
editing of UML Class and Sequence diagrams graphically and also allows
you to view these diagrams as .uml files (i.e. instances of the UML2
metamodel provided by the UML project).

Alternatively, can anyone recommend where I could find an example of a
UML sequence diagram in .uml format and its corresponding visual
representation.

Thanks in advance,

Jacqui
Re: UML plugin for graphically creating and editing UML models [message #626717 is a reply to message #477526] Tue, 17 June 2008 07:22 Go to previous message
urs zeidler is currently offline urs zeidlerFriend
Messages: 16
Registered: July 2009
Junior Member
Jacqui wrote:
> Hi all,
>
> Can anyone recommend an Eclipse plugin that supports the creation and
> editing of UML Class and Sequence diagrams graphically and also allows
> you to view these diagrams as .uml files (i.e. instances of the UML2
> metamodel provided by the UML project).
>
> Alternatively, can anyone recommend where I could find an example of a
> UML sequence diagram in .uml format and its corresponding visual
> representation.
>
> Thanks in advance,
>
> Jacqui
Try http://www.topcased.org but I think there is a list in the wiki
gives you all the choice.

greetings
Re: UML plugin for graphically creating and editing UML models [message #626724 is a reply to message #477527] Tue, 17 June 2008 19:41 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
.... I believe this is the link ...
http://wiki.eclipse.org/MDT-UML2-Tool-Compatibility


"urs zeidler" <me@urszeidler.de> wrote in message
news:g37ooe$mop$1@build.eclipse.org...
> Jacqui wrote:
>> Hi all,
>>
>> Can anyone recommend an Eclipse plugin that supports the creation and
>> editing of UML Class and Sequence diagrams graphically and also allows
>> you to view these diagrams as .uml files (i.e. instances of the UML2
>> metamodel provided by the UML project).
>>
>> Alternatively, can anyone recommend where I could find an example of a
>> UML sequence diagram in .uml format and its corresponding visual
>> representation.
>>
>> Thanks in advance,
>>
>> Jacqui
> Try http://www.topcased.org but I think there is a list in the wiki gives
> you all the choice.
>
> greetings
Re: UML plugin for graphically creating and editing UML models [message #626728 is a reply to message #477534] Wed, 18 June 2008 14:37 Go to previous message
Eclipse UserFriend
Originally posted by: jmcq.cs.nuim.ie

Hi,

Thanks for the help that was exactly what I was looking for.

Currently, I'm trying to familiarise myself with the UML metamodel and
how class and sequence diagrams are represented as instances of the UML
metamodel (the one provided by the UML2 project). So to do this I'm
creating some class and sequence diagrams using the modelling tools (e.g
papyrus and topcased) and looking at the corresponding .uml files.

However, one thing that has me confused is that it appears that not all
attributes and references of certain metamodel elements are available.
For example, when you look at the actual metamodel file the element
Class has several attributes and references (e.g. ownedAttribute,
extension, superClass etc.) and also inherited ones (eg. attribute,
package, ownedPort, generalization etc.).

I've noticed that only some of these can be given values either via the
properties view or the add child option from the menu (e.g.
ownedAttribute, ownedPort, generalization) but others can not be given
values at all (e.g. superClass, extension, attribute, package).

Is this a choice made by the particular modelling tool or is it as a
result of the UML metamodel? For example, does it depend on the value of
certain attributes (changeable, derived etc) of the attributes and
references?

I'd really appreciate if someone could clarify this point for me or
direct me to some reading material that would help me understand this
better.

Thanks in advance,

Jacqui

James Bruck wrote:
> ... I believe this is the link ...
> http://wiki.eclipse.org/MDT-UML2-Tool-Compatibility
>
>
> "urs zeidler" <me@urszeidler.de> wrote in message
> news:g37ooe$mop$1@build.eclipse.org...
>> Jacqui wrote:
>>> Hi all,
>>>
>>> Can anyone recommend an Eclipse plugin that supports the creation and
>>> editing of UML Class and Sequence diagrams graphically and also allows
>>> you to view these diagrams as .uml files (i.e. instances of the UML2
>>> metamodel provided by the UML project).
>>>
>>> Alternatively, can anyone recommend where I could find an example of a
>>> UML sequence diagram in .uml format and its corresponding visual
>>> representation.
>>>
>>> Thanks in advance,
>>>
>>> Jacqui
>> Try http://www.topcased.org but I think there is a list in the wiki gives
>> you all the choice.
>>
>> greetings
>
>
Re: UML plugin for graphically creating and editing UML models [message #626729 is a reply to message #477538] Wed, 18 June 2008 20:15 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Jacqui,

From the upper right corner of the properties view select the "Show Advanced
Properties" button (second button in the list). That will reveal more
properties.

I hope that is what you are looking for.

Cheers,
- James.

"Jacqui" <jmcq@cs.nuim.ie> wrote in message
news:g3b6j4$52i$1@build.eclipse.org...
> Hi,
>
> Thanks for the help that was exactly what I was looking for.
>
> Currently, I'm trying to familiarise myself with the UML metamodel and how
> class and sequence diagrams are represented as instances of the UML
> metamodel (the one provided by the UML2 project). So to do this I'm
> creating some class and sequence diagrams using the modelling tools (e.g
> papyrus and topcased) and looking at the corresponding .uml files.
>
> However, one thing that has me confused is that it appears that not all
> attributes and references of certain metamodel elements are available. For
> example, when you look at the actual metamodel file the element Class has
> several attributes and references (e.g. ownedAttribute, extension,
> superClass etc.) and also inherited ones (eg. attribute, package,
> ownedPort, generalization etc.).
>
> I've noticed that only some of these can be given values either via the
> properties view or the add child option from the menu (e.g.
> ownedAttribute, ownedPort, generalization) but others can not be given
> values at all (e.g. superClass, extension, attribute, package).
>
> Is this a choice made by the particular modelling tool or is it as a
> result of the UML metamodel? For example, does it depend on the value of
> certain attributes (changeable, derived etc) of the attributes and
> references?
>
> I'd really appreciate if someone could clarify this point for me or direct
> me to some reading material that would help me understand this better.
>
> Thanks in advance,
>
> Jacqui
>
> James Bruck wrote:
>> ... I believe this is the link ...
>> http://wiki.eclipse.org/MDT-UML2-Tool-Compatibility
>>
>>
>> "urs zeidler" <me@urszeidler.de> wrote in message
>> news:g37ooe$mop$1@build.eclipse.org...
>>> Jacqui wrote:
>>>> Hi all,
>>>>
>>>> Can anyone recommend an Eclipse plugin that supports the creation and
>>>> editing of UML Class and Sequence diagrams graphically and also allows
>>>> you to view these diagrams as .uml files (i.e. instances of the UML2
>>>> metamodel provided by the UML project).
>>>>
>>>> Alternatively, can anyone recommend where I could find an example of a
>>>> UML sequence diagram in .uml format and its corresponding visual
>>>> representation.
>>>>
>>>> Thanks in advance,
>>>>
>>>> Jacqui
>>> Try http://www.topcased.org but I think there is a list in the wiki
>>> gives you all the choice.
>>>
>>> greetings
>>
Re: UML plugin for graphically creating and editing UML models [message #626731 is a reply to message #477539] Wed, 18 June 2008 21:13 Go to previous message
Eclipse UserFriend
Originally posted by: jmcq.cs.nuim.ie

Thanks James - this is exactly what I was looking for.

How silly of me trying to make it more complicated than it is!

Thanks again.

Jacqui


James Bruck wrote:
> Hi Jacqui,
>
> From the upper right corner of the properties view select the "Show Advanced
> Properties" button (second button in the list). That will reveal more
> properties.
>
> I hope that is what you are looking for.
>
> Cheers,
> - James.
>
> "Jacqui" <jmcq@cs.nuim.ie> wrote in message
> news:g3b6j4$52i$1@build.eclipse.org...
>> Hi,
>>
>> Thanks for the help that was exactly what I was looking for.
>>
>> Currently, I'm trying to familiarise myself with the UML metamodel and how
>> class and sequence diagrams are represented as instances of the UML
>> metamodel (the one provided by the UML2 project). So to do this I'm
>> creating some class and sequence diagrams using the modelling tools (e.g
>> papyrus and topcased) and looking at the corresponding .uml files.
>>
>> However, one thing that has me confused is that it appears that not all
>> attributes and references of certain metamodel elements are available. For
>> example, when you look at the actual metamodel file the element Class has
>> several attributes and references (e.g. ownedAttribute, extension,
>> superClass etc.) and also inherited ones (eg. attribute, package,
>> ownedPort, generalization etc.).
>>
>> I've noticed that only some of these can be given values either via the
>> properties view or the add child option from the menu (e.g.
>> ownedAttribute, ownedPort, generalization) but others can not be given
>> values at all (e.g. superClass, extension, attribute, package).
>>
>> Is this a choice made by the particular modelling tool or is it as a
>> result of the UML metamodel? For example, does it depend on the value of
>> certain attributes (changeable, derived etc) of the attributes and
>> references?
>>
>> I'd really appreciate if someone could clarify this point for me or direct
>> me to some reading material that would help me understand this better.
>>
>> Thanks in advance,
>>
>> Jacqui
>>
>> James Bruck wrote:
>>> ... I believe this is the link ...
>>> http://wiki.eclipse.org/MDT-UML2-Tool-Compatibility
>>>
>>>
>>> "urs zeidler" <me@urszeidler.de> wrote in message
>>> news:g37ooe$mop$1@build.eclipse.org...
>>>> Jacqui wrote:
>>>>> Hi all,
>>>>>
>>>>> Can anyone recommend an Eclipse plugin that supports the creation and
>>>>> editing of UML Class and Sequence diagrams graphically and also allows
>>>>> you to view these diagrams as .uml files (i.e. instances of the UML2
>>>>> metamodel provided by the UML project).
>>>>>
>>>>> Alternatively, can anyone recommend where I could find an example of a
>>>>> UML sequence diagram in .uml format and its corresponding visual
>>>>> representation.
>>>>>
>>>>> Thanks in advance,
>>>>>
>>>>> Jacqui
>>>> Try http://www.topcased.org but I think there is a list in the wiki
>>>> gives you all the choice.
>>>>
>>>> greetings
>
Previous Topic:UML2Util destroy method is protected?
Next Topic:Substitution issue
Goto Forum:
  


Current Time: Fri Aug 12 16:20:05 GMT 2022

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

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

Back to the top