User-defined datatypes [message #377159] |
Wed, 31 May 2006 23:07 |
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 #377167 is a reply to message #377164] |
Mon, 05 June 2006 20:11 |
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 20:13 |
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 11:43 |
Ed Merks Messages: 33218 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. 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"><merks@ca.ibm.com></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 <<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?
</pre>
</blockquote>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
<br>
</body>
</html>
--------------040700050103060908040707--
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Re: User-defined datatypes [message #573203 is a reply to message #377159] |
Thu, 01 June 2006 11:19 |
Ed Merks Messages: 33218 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?
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Re: User-defined datatypes [message #573271 is a reply to message #377164] |
Mon, 05 June 2006 20:11 |
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 20:13 |
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 11:43 |
Ed Merks Messages: 33218 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. 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"><merks@ca.ibm.com></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 <<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?
</pre>
</blockquote>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
<br>
</body>
</html>
--------------040700050103060908040707--
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.05153 seconds