defaultValue of an EnumerationLiteral is discarded [message #633511] |
Mon, 18 October 2010 09:47  |
Eclipse User |
|
|
|
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] by Moderator Report message to a moderator
|
|
|
|
Re: defaultValue of an EnumerationLiteral is discarded [message #633715 is a reply to message #633700] |
Tue, 19 October 2010 05:03   |
Eclipse User |
|
|
|
Hey Rafael,
yeah ok, you're right, maybe it would have been a good idea to query the spec And yes, it looks like, as if it is a deviation from the spec, although I thought that this tool (BOUML) is very strict regarding complying UML spec 
Well maybe I get on with a LiteralString as a Specification...
Thanks and bye
Tom
|
|
|
Re: defaultValue of an EnumerationLiteral is discarded [message #634004 is a reply to message #633715] |
Wed, 20 October 2010 09:05   |
Eclipse User |
|
|
|
It is not fair to critic this Bouml tool because it is just one developer working on full time basis who has never received any help.
All users donations have been less than $ 2,000 in the last two years.
Life is not easy for java developers trying to make their living from their job. If you want to help you either contribute by code or donate financial support but you should certainly not post xmi code and then crash him in public !!
|
|
|
|
Re: defaultValue of an EnumerationLiteral is discarded [message #634150 is a reply to message #634004] |
Wed, 20 October 2010 15:36   |
Eclipse User |
|
|
|
Vlad,
It's ironic you should be so sensitive while making a habit of dissing
and crashing the hard work that happens at Eclipse.
Vlad Varnica wrote:
> It is not fair to critic this Bouml tool because it is just one
> developer working on full time basis who has never received any help.
> All users donations have been less than $ 2,000 in the last two years.
>
> Life is not easy for java developers trying to make their living from
> their job. If you want to help you either contribute by code or donate
> financial support but you should certainly not post xmi code and then
> crash him in public !!
|
|
|
|
Re: defaultValue of an EnumerationLiteral is discarded [message #634360 is a reply to message #634348] |
Thu, 21 October 2010 12:02   |
Eclipse User |
|
|
|
Hello All,
at first I would like to say thanks to you, Bruno Pagès, for your kind answer.
Of course I know that Bouml is only developed by one guy and I am still swept off my feet of what a great tool has been produced. What I've said wasn't ment as a critic. I just didn't want to check the specs because I somehow trusted BOUML and still do it. I was just brought back down to earth and realised that nobody is perfect. (And I think that BOUML is nearly perfect) So what, even your software has bugs!
So thanks, Bruno Pagès for your great work! I try to follow one of your suggested ways.
Bye Tom
|
|
|
Re: defaultValue of an EnumerationLiteral is discarded [message #634364 is a reply to message #634348] |
Thu, 21 October 2010 12:09   |
Eclipse User |
|
|
|
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--
|
|
|
Re: defaultValue of an EnumerationLiteral is discarded [message #634683 is a reply to message #634364] |
Fri, 22 October 2010 17:56   |
Eclipse User |
|
|
|
Ed,
Thanks for your comment because we didn't notice this mistake in our website. Omondo is not anymore an Eclipse member of the Eclipse foundation.
We will not join this foundation anymore but will certainly sponsor a new Eclipse community outside this foundation if any new organization is created.
Vlad,
|
|
|
Re: defaultValue of an EnumerationLiteral is discarded [message #636411 is a reply to message #634683] |
Mon, 01 November 2010 06:25   |
Eclipse User |
|
|
|
Vlad,
Now that you've noticed your mistake, do you have any plans to fix it?
My guess would be you don't have such plans because you continue to see
value in claiming to be a member.
Vlad Varnica wrote:
> Ed,
>
> Thanks for your comment because we didn't notice this mistake in our
> website. Omondo is not anymore an Eclipse member of the Eclipse
> foundation. We will not join this foundation anymore but will
> certainly sponsor a new Eclipse community outside this foundation if
> any new organization is created.
>
> Vlad,
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05779 seconds