Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Modeling (top-level project) » User-defined datatypes
User-defined datatypes [message #377159] Wed, 31 May 2006 19:07 Go to next message
Eclipse User
Originally posted by: pedram.corticon.com

It appears that UML user-defined datatypes are only supported when there
is a single property of the datatype with stereoptype <<javaclass>> and
the property refers to a fully qualified Java class that implements the
data type.
This means that the typical UML datatype definition doesn't get imported
into EMF properly. For example:


<<datatype>>
Date
-----------------------------
now : Date
-----------------------------
isBefore( t:Date ) : Boolean
isAfter( t:Date ) : Boolean

The above data type is rejected. Is this correct? Is this by design?
Re: User-defined datatypes [message #377164 is a reply to message #377159] Thu, 01 June 2006 07:19 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 25995
Registered: July 2009
Senior Member
Pedram,

This is a question about UML2 to Ecore conversion so is best asked on
the UML2 newsgroup.


Pedram Abrari wrote:
> It appears that UML user-defined datatypes are only supported when
> there is a single property of the datatype with stereoptype
> <<javaclass>> and the property refers to a fully qualified Java class
> that implements the data type.
> This means that the typical UML datatype definition doesn't get
> imported into EMF properly. For example:
>
>
> <<datatype>>
> Date
> -----------------------------
> now : Date
> -----------------------------
> isBefore( t:Date ) : Boolean
> isAfter( t:Date ) : Boolean
>
> The above data type is rejected. Is this correct? Is this by design?
>
Re: User-defined datatypes [message #377167 is a reply to message #377164] Mon, 05 June 2006 16:11 Go to previous messageGo to next message
Eclipse User
Originally posted by: pedram.corticon.com

Ed
I'm not concerned about the UML2 project. I am interested in the
functionality of the base EMF. Can you answer the question within the
context of EMF design?
Thanks
Pedram

"Ed Merks" <merks@ca.ibm.com> wrote in message
news:e5miep$esh$1@utils.eclipse.org...
> Pedram,
>
> This is a question about UML2 to Ecore conversion so is best asked on the
> UML2 newsgroup.
>
> Pedram Abrari wrote:
>> It appears that UML user-defined datatypes are only supported when there
>> is a single property of the datatype with stereoptype <<javaclass>> and
>> the property refers to a fully qualified Java class that implements the
>> data type.
>> This means that the typical UML datatype definition doesn't get imported
>> into EMF properly. For example:
>>
>>
>> <<datatype>>
>> Date
>> -----------------------------
>> now : Date
>> -----------------------------
>> isBefore( t:Date ) : Boolean
>> isAfter( t:Date ) : Boolean
>>
>> The above data type is rejected. Is this correct? Is this by design?
>>
Re: User-defined datatypes [message #377170 is a reply to message #377167] Mon, 05 June 2006 16:13 Go to previous messageGo to next message
Eclipse User
Originally posted by: pedram.corticon.com

BTW, I tried the same thing in UML2 and for a scenario described it also
chokes when trying to convert a .uml model to a .ecore model.

"Pedram Abrari" <pedram@corticon.com> wrote in message
news:e6235u$cgc$1@utils.eclipse.org...
> Ed
> I'm not concerned about the UML2 project. I am interested in the
> functionality of the base EMF. Can you answer the question within the
> context of EMF design?
> Thanks
> Pedram
>
> "Ed Merks" <merks@ca.ibm.com> wrote in message
> news:e5miep$esh$1@utils.eclipse.org...
>> Pedram,
>>
>> This is a question about UML2 to Ecore conversion so is best asked on the
>> UML2 newsgroup.
>>
>> Pedram Abrari wrote:
>>> It appears that UML user-defined datatypes are only supported when there
>>> is a single property of the datatype with stereoptype <<javaclass>> and
>>> the property refers to a fully qualified Java class that implements the
>>> data type.
>>> This means that the typical UML datatype definition doesn't get imported
>>> into EMF properly. For example:
>>>
>>>
>>> <<datatype>>
>>> Date
>>> -----------------------------
>>> now : Date
>>> -----------------------------
>>> isBefore( t:Date ) : Boolean
>>> isAfter( t:Date ) : Boolean
>>>
>>> The above data type is rejected. Is this correct? Is this by design?
>>>
>
>
Re: User-defined datatypes [message #377173 is a reply to message #377167] Tue, 06 June 2006 07:43 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 25995
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------040700050103060908040707
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Pedram,

In that case you are better to ask on the EMF newsgroup. Yes,
EDataTypes (except for dynamic EEnums) should have an instance class
name set.


Pedram Abrari wrote:

>Ed
>I'm not concerned about the UML2 project. I am interested in the
>functionality of the base EMF. Can you answer the question within the
>context of EMF design?
>Thanks
>Pedram
>
>"Ed Merks" <merks@ca.ibm.com> wrote in message
>news:e5miep$esh$1@utils.eclipse.org...
>
>
>>Pedram,
>>
>>This is a question about UML2 to Ecore conversion so is best asked on the
>>UML2 newsgroup.
>>
>>Pedram Abrari wrote:
>>
>>
>>>It appears that UML user-defined datatypes are only supported when there
>>>is a single property of the datatype with stereoptype <<javaclass>> and
>>>the property refers to a fully qualified Java class that implements the
>>>data type.
>>>This means that the typical UML datatype definition doesn't get imported
>>>into EMF properly. For example:
>>>
>>>
>>> <<datatype>>
>>> Date
>>>-----------------------------
>>>now : Date
>>>-----------------------------
>>>isBefore( t:Date ) : Boolean
>>>isAfter( t:Date ) : Boolean
>>>
>>>The above data type is rejected. Is this correct? Is this by design?
>>>
>>>
>>>
>
>
>
>


--------------040700050103060908040707
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Pedram,<br>
<br>
In that case you are better to ask on the EMF newsgroup.&nbsp; Yes,
EDataTypes (except for dynamic EEnums) should have an instance class
name set.<br>
<br>
<br>
Pedram Abrari wrote:
<blockquote cite="mide6235u$cgc$1@utils.eclipse.org" type="cite">
<pre wrap="">Ed
I'm not concerned about the UML2 project. I am interested in the
functionality of the base EMF. Can you answer the question within the
context of EMF design?
Thanks
Pedram

"Ed Merks" <a class="moz-txt-link-rfc2396E" href="mailto:merks@ca.ibm.com">&lt;merks@ca.ibm.com&gt;</a> wrote in message
<a class="moz-txt-link-freetext" href="news:e5miep$esh$1@utils.eclipse.org">news:e5miep$esh$1@utils.eclipse.org</a>...
</pre>
<blockquote type="cite">
<pre wrap="">Pedram,

This is a question about UML2 to Ecore conversion so is best asked on the
UML2 newsgroup.

Pedram Abrari wrote:
</pre>
<blockquote type="cite">
<pre wrap="">It appears that UML user-defined datatypes are only supported when there
is a single property of the datatype with stereoptype &lt;&lt;javaclass&gt;&gt; and
the property refers to a fully qualified Java class that implements the
data type.
This means that the typical UML datatype definition doesn't get imported
into EMF properly. For example:


&lt;&lt;datatype&gt;&gt;
Date
-----------------------------
now : Date
-----------------------------
isBefore( t:Date ) : Boolean
isAfter( t:Date ) : Boolean

The above data type is rejected. Is this correct? Is this by design?

</pre>
</blockquote>
</blockquote>
<pre wrap=""><!---->

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

--------------040700050103060908040707--
Re: User-defined datatypes [message #573203 is a reply to message #377159] Thu, 01 June 2006 07:19 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 25995
Registered: July 2009
Senior Member
Pedram,

This is a question about UML2 to Ecore conversion so is best asked on
the UML2 newsgroup.


Pedram Abrari wrote:
> It appears that UML user-defined datatypes are only supported when
> there is a single property of the datatype with stereoptype
> <<javaclass>> and the property refers to a fully qualified Java class
> that implements the data type.
> This means that the typical UML datatype definition doesn't get
> imported into EMF properly. For example:
>
>
> <<datatype>>
> Date
> -----------------------------
> now : Date
> -----------------------------
> isBefore( t:Date ) : Boolean
> isAfter( t:Date ) : Boolean
>
> The above data type is rejected. Is this correct? Is this by design?
>
Re: User-defined datatypes [message #573271 is a reply to message #377164] Mon, 05 June 2006 16:11 Go to previous message
Eclipse User
Originally posted by: pedram.corticon.com

Ed
I'm not concerned about the UML2 project. I am interested in the
functionality of the base EMF. Can you answer the question within the
context of EMF design?
Thanks
Pedram

"Ed Merks" <merks@ca.ibm.com> wrote in message
news:e5miep$esh$1@utils.eclipse.org...
> Pedram,
>
> This is a question about UML2 to Ecore conversion so is best asked on the
> UML2 newsgroup.
>
> Pedram Abrari wrote:
>> It appears that UML user-defined datatypes are only supported when there
>> is a single property of the datatype with stereoptype <<javaclass>> and
>> the property refers to a fully qualified Java class that implements the
>> data type.
>> This means that the typical UML datatype definition doesn't get imported
>> into EMF properly. For example:
>>
>>
>> <<datatype>>
>> Date
>> -----------------------------
>> now : Date
>> -----------------------------
>> isBefore( t:Date ) : Boolean
>> isAfter( t:Date ) : Boolean
>>
>> The above data type is rejected. Is this correct? Is this by design?
>>
Re: User-defined datatypes [message #573309 is a reply to message #377167] Mon, 05 June 2006 16:13 Go to previous message
Eclipse User
Originally posted by: pedram.corticon.com

BTW, I tried the same thing in UML2 and for a scenario described it also
chokes when trying to convert a .uml model to a .ecore model.

"Pedram Abrari" <pedram@corticon.com> wrote in message
news:e6235u$cgc$1@utils.eclipse.org...
> Ed
> I'm not concerned about the UML2 project. I am interested in the
> functionality of the base EMF. Can you answer the question within the
> context of EMF design?
> Thanks
> Pedram
>
> "Ed Merks" <merks@ca.ibm.com> wrote in message
> news:e5miep$esh$1@utils.eclipse.org...
>> Pedram,
>>
>> This is a question about UML2 to Ecore conversion so is best asked on the
>> UML2 newsgroup.
>>
>> Pedram Abrari wrote:
>>> It appears that UML user-defined datatypes are only supported when there
>>> is a single property of the datatype with stereoptype <<javaclass>> and
>>> the property refers to a fully qualified Java class that implements the
>>> data type.
>>> This means that the typical UML datatype definition doesn't get imported
>>> into EMF properly. For example:
>>>
>>>
>>> <<datatype>>
>>> Date
>>> -----------------------------
>>> now : Date
>>> -----------------------------
>>> isBefore( t:Date ) : Boolean
>>> isAfter( t:Date ) : Boolean
>>>
>>> The above data type is rejected. Is this correct? Is this by design?
>>>
>
>
Re: User-defined datatypes [message #573338 is a reply to message #377167] Tue, 06 June 2006 07:43 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 25995
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------040700050103060908040707
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Pedram,

In that case you are better to ask on the EMF newsgroup. Yes,
EDataTypes (except for dynamic EEnums) should have an instance class
name set.


Pedram Abrari wrote:

>Ed
>I'm not concerned about the UML2 project. I am interested in the
>functionality of the base EMF. Can you answer the question within the
>context of EMF design?
>Thanks
>Pedram
>
>"Ed Merks" <merks@ca.ibm.com> wrote in message
>news:e5miep$esh$1@utils.eclipse.org...
>
>
>>Pedram,
>>
>>This is a question about UML2 to Ecore conversion so is best asked on the
>>UML2 newsgroup.
>>
>>Pedram Abrari wrote:
>>
>>
>>>It appears that UML user-defined datatypes are only supported when there
>>>is a single property of the datatype with stereoptype <<javaclass>> and
>>>the property refers to a fully qualified Java class that implements the
>>>data type.
>>>This means that the typical UML datatype definition doesn't get imported
>>>into EMF properly. For example:
>>>
>>>
>>> <<datatype>>
>>> Date
>>>-----------------------------
>>>now : Date
>>>-----------------------------
>>>isBefore( t:Date ) : Boolean
>>>isAfter( t:Date ) : Boolean
>>>
>>>The above data type is rejected. Is this correct? Is this by design?
>>>
>>>
>>>
>
>
>
>


--------------040700050103060908040707
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Pedram,<br>
<br>
In that case you are better to ask on the EMF newsgroup.&nbsp; Yes,
EDataTypes (except for dynamic EEnums) should have an instance class
name set.<br>
<br>
<br>
Pedram Abrari wrote:
<blockquote cite="mide6235u$cgc$1@utils.eclipse.org" type="cite">
<pre wrap="">Ed
I'm not concerned about the UML2 project. I am interested in the
functionality of the base EMF. Can you answer the question within the
context of EMF design?
Thanks
Pedram

"Ed Merks" <a class="moz-txt-link-rfc2396E" href="mailto:merks@ca.ibm.com">&lt;merks@ca.ibm.com&gt;</a> wrote in message
<a class="moz-txt-link-freetext" href="news:e5miep$esh$1@utils.eclipse.org">news:e5miep$esh$1@utils.eclipse.org</a>...
</pre>
<blockquote type="cite">
<pre wrap="">Pedram,

This is a question about UML2 to Ecore conversion so is best asked on the
UML2 newsgroup.

Pedram Abrari wrote:
</pre>
<blockquote type="cite">
<pre wrap="">It appears that UML user-defined datatypes are only supported when there
is a single property of the datatype with stereoptype &lt;&lt;javaclass&gt;&gt; and
the property refers to a fully qualified Java class that implements the
data type.
This means that the typical UML datatype definition doesn't get imported
into EMF properly. For example:


&lt;&lt;datatype&gt;&gt;
Date
-----------------------------
now : Date
-----------------------------
isBefore( t:Date ) : Boolean
isAfter( t:Date ) : Boolean

The above data type is rejected. Is this correct? Is this by design?

</pre>
</blockquote>
</blockquote>
<pre wrap=""><!---->

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

--------------040700050103060908040707--
Previous Topic:User-defined datatypes
Next Topic:Is Ecore fit for EMOF meta-modeling?
Goto Forum:
  


Current Time: Wed Aug 20 02:58:53 EDT 2014

Powered by FUDForum. Page generated in 0.02699 seconds