defaultValue of an EnumerationLiteral is discarded [message #633511] |
Mon, 18 October 2010 09:47 |
Tom Brandenburg Messages: 58 Registered: October 2010 Location: Abstatt, Germany |
Member |
|
|
Hello all,
I have a problem reading Enumeration information in an XMI file exported by an UML conform tool.
The XMI extract looks like this:
<nestedClassifier xmi:type="uml:Enumeration" name="testNestedEnum" xmi:id="BOUML_0x2ca17_4" visibility="package">
<ownedLiteral xmi:type="uml:EnumerationLiteral" name="enumElm1" xmi:id="BOUML_0x29197_1">
<defaultValue xmi:type="uml:LiteralString" xmi:id="BOUML_VALUE_0x29197_1" value="0x55"/>
<ownedComment xmi:type="uml:Comment" xmi:id="COMMENT_2" body="55"/>
</ownedLiteral>
</nestedClassifier>
Eclipse only considers the ownedComment and not the defaultValue. defaultValue is discarded. I want to model something like this:
typedef enum {
enumElm1 = 0x55,
enumElm2 = 0xAA,
} testNestedEnum;
My original XMI header looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<xmi:XMI xmi:version="2.1" xmlns:uml="http://schema.omg.org/spec/UML/2.1" xmlns:xmi="http://schema.omg.org/spec/XMI/2.1">
...
And I change it to this, to make it readable for UMLResource:
<?xml version="1.0" encoding="UTF-8"?>
<xmi:XMI xmi:version="2.1" xmlns:xmi="http://schema.omg.org/spec/XMI/2.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:Ecore="http://www.eclipse.org/uml2/schemas/Ecore/5" xmlns:uml="http://www.eclipse.org/uml2/3.0.0/UML" xsi:schemaLocation="http://www.eclipse.org/uml2/schemas/Ecore/5 pathmap://UML_PROFILES/Ecore.profile.uml#_z1OFcHjqEdy8S4Cr8Rc_NA">
...
But I don't know if the latter is quite smart. Does anyone have an idea?
Thanks in advance and best regards
Tom
[Updated on: Mon, 18 October 2010 09:48] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
Re: defaultValue of an EnumerationLiteral is discarded [message #634364 is a reply to message #634348] |
Thu, 21 October 2010 12:09 |
Ed Merks Messages: 33218 Registered: July 2009 |
Senior Member |
|
|
This is a multi-part message in MIME format.
--------------030209080400030202030108
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Vlad,
Comments below.
Vlad Varnica wrote:
> It is now an old story but friends of our enemies are also our enemies
I wonder if you're presuming to speak for anyone other than just
yourself and I am curious who your enemies might be...
> and could not expect any help from us !!
Omondo's website claims Omondo is an Eclipse partner. In fact, to quote
from http://www.ejb3.org/partners.html
/Omondo partners with Eclipse, OMG and IBM in order to supply the
full Jee modeling cycle software solutions your business needs. /
/Omondo is currently a permanent member of the following
organizations: /
Oddly enough, Eclipse is in that list, yet we both know that Omondo is
in fact not an Eclipse member and hasn't been for years. I wonder then,
if Eclipse is your enemy or your partner? One normally helps partners.
> Good luck in your project but to be honest not really :roll:
With your usual ironic twist, you say something, and then you
immediately contradict it, leaving behind a meaningless void of
nonsense. It's yet another repeat act in your Modeling Comedy Festival;
it's always good to start your day with a chuckle.
> Vlad,
>
>
--------------030209080400030202030108
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">
Vlad,<br>
<br>
Comments below.<br>
<br>
Vlad Varnica wrote:
<blockquote cite="mid:i9p7rp$ia9$1@news.eclipse.org" type="cite">It is
now an old story but friends of our enemies are also our enemies</blockquote>
I wonder if you're presuming to speak for anyone other than just
yourself and I am curious who your enemies might be...<br>
<blockquote cite="mid:i9p7rp$ia9$1@news.eclipse.org" type="cite"> and
could not expect any help from us !!
<br>
</blockquote>
Omondo's website claims Omondo is an Eclipse partner. In fact, to
quote from <a href="http://www.ejb3.org/partners.html">http://www.ejb3.org/partners.html</a><br>
<blockquote><i>Omondo partners with Eclipse, OMG and IBM in order to
supply the full Jee modeling cycle software solutions your business
needs. </i><br>
<i>Omondo is currently a permanent member of the following
organizations: </i><br>
</blockquote>
Oddly enough, Eclipse is in that list, yet we both know that Omondo is
in fact not an Eclipse member and hasn't been for years. I wonder
then, if Eclipse is your enemy or your partner? One normally helps
partners. <br>
<br>
<blockquote cite="mid:i9p7rp$ia9$1@news.eclipse.org" type="cite">Good
luck in your project but to be honest not really :roll: <br>
</blockquote>
With your usual ironic twist, you say something, and then you
immediately contradict it, leaving behind a meaningless void of
nonsense. It's yet another repeat act in your Modeling Comedy
Festival; it's always good to start your day with a chuckle.<br>
<blockquote cite="mid:i9p7rp$ia9$1@news.eclipse.org" type="cite">Vlad,
<br>
<br>
<br>
</blockquote>
</body>
</html>
--------------030209080400030202030108--
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05418 seconds