Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » defaultValue of an EnumerationLiteral is discarded
icon9.gif  defaultValue of an EnumerationLiteral is discarded [message #633511] Mon, 18 October 2010 09:47 Go to next message
Tom Brandenburg is currently offline Tom BrandenburgFriend
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 #633700 is a reply to message #633511] Tue, 19 October 2010 00:32 Go to previous messageGo to next message
Rafael Chaves is currently offline Rafael ChavesFriend
Messages: 161
Registered: July 2009
Senior Member
I couldn't find a defaultValue property for EnumerationLiteral neither in the UML2 API or the UML spec.

Maybe that is a deviation from the spec in the tool you are using to export? What is the tool btw?

Rafael
http://abstratt.com
Re: defaultValue of an EnumerationLiteral is discarded [message #633715 is a reply to message #633700] Tue, 19 October 2010 05:03 Go to previous messageGo to next message
Tom Brandenburg is currently offline Tom BrandenburgFriend
Messages: 58
Registered: October 2010
Location: Abstatt, Germany
Member
Hey Rafael,

yeah ok, you're right, maybe it would have been a good idea to query the spec Smile 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 Smile
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 Go to previous messageGo to next message
Vlad Varnica is currently offline Vlad VarnicaFriend
Messages: 546
Registered: July 2009
Location: Milton Keynes - UK
Senior Member
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 #634049 is a reply to message #633511] Wed, 20 October 2010 11:38 Go to previous messageGo to next message
Bruno Pagès is currently offline Bruno PagèsFriend
Messages: 3
Registered: October 2010
Junior Member
Hi all,

thank you Vlad Varnica, but is it ok, I don't see a problem in these messages, just the indication of a bug in the XMI generator ... this is not the first bug Wink

Be sure I saw worst in Wikipedia and this is why I decided to stop to develop Bouml !

Tom Brandenburg you have two ways :

  • you can use the sourceforge trackers of Bouml ( http://sourceforge.net/tracker/?group_id=212600&atid=102 2383 ) to signal the bug then wait for a fixing, but you will probably never have it
  • you correct the code generation by yourself, and may be distribute the new plug-out version or indicate what you changed

Best regards

[Updated on: Wed, 20 October 2010 15:28]

Report message to a moderator

Re: defaultValue of an EnumerationLiteral is discarded [message #634150 is a reply to message #634004] Wed, 20 October 2010 15:36 Go to previous messageGo to next message
Ed Merks is currently online Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
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 !!


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: defaultValue of an EnumerationLiteral is discarded [message #634348 is a reply to message #634150] Thu, 21 October 2010 11:27 Go to previous messageGo to next message
Vlad Varnica is currently offline Vlad VarnicaFriend
Messages: 546
Registered: July 2009
Location: Milton Keynes - UK
Senior Member
Ed,

It is now an old story but friends of our enemies are also our enemies and could not expect any help from us !!
Good luck in your project but to be honest not really Rolling Eyes

Vlad,

[Updated on: Thu, 21 October 2010 11:27]

Report message to a moderator

Re: defaultValue of an EnumerationLiteral is discarded [message #634360 is a reply to message #634348] Thu, 21 October 2010 12:02 Go to previous messageGo to next message
Tom Brandenburg is currently offline Tom BrandenburgFriend
Messages: 58
Registered: October 2010
Location: Abstatt, Germany
Member
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 Go to previous messageGo to next message
Ed Merks is currently online Ed MerksFriend
Messages: 33141
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/
Re: defaultValue of an EnumerationLiteral is discarded [message #634683 is a reply to message #634364] Fri, 22 October 2010 17:56 Go to previous messageGo to next message
Vlad Varnica is currently offline Vlad VarnicaFriend
Messages: 546
Registered: July 2009
Location: Milton Keynes - UK
Senior Member
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 Go to previous messageGo to next message
Ed Merks is currently online Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
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,


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: defaultValue of an EnumerationLiteral is discarded [message #636430 is a reply to message #636411] Mon, 01 November 2010 09:43 Go to previous messageGo to next message
Vlad Varnica is currently offline Vlad VarnicaFriend
Messages: 546
Registered: July 2009
Location: Milton Keynes - UK
Senior Member
Please refresh your browser Laughing

btw, what is really important is that we need a new initiative based on quality and profitable market and not just based on open source push of unstable projects which then requires hidden consulting additional costs !!

Only integrators and consulting companies can monetize their Eclipse investments today.
This is a non sense and certainly not a win / win strategy for ISV targeting the eclipse plugin market.
Except the embedded market which only uses Eclipse for packaging purposes the java plugin market is dead today.

[Updated on: Mon, 01 November 2010 10:01]

Report message to a moderator

Re: defaultValue of an EnumerationLiteral is discarded [message #637561 is a reply to message #633511] Sat, 06 November 2010 17:34 Go to previous messageGo to next message
Bruno Pagès is currently offline Bruno PagèsFriend
Messages: 3
Registered: October 2010
Junior Member
Hi,

Tom Brandenburg, I fixed the XMI generation in Bouml release 4.23 ultimate

best regards,

Bruno Pagès
Re: defaultValue of an EnumerationLiteral is discarded [message #637797 is a reply to message #637561] Mon, 08 November 2010 22:11 Go to previous messageGo to next message
Vlad Varnica is currently offline Vlad VarnicaFriend
Messages: 546
Registered: July 2009
Location: Milton Keynes - UK
Senior Member
Bruno,

Does it mean that you are still working ? Very Happy
Re: defaultValue of an EnumerationLiteral is discarded [message #638068 is a reply to message #637797] Tue, 09 November 2010 20:04 Go to previous message
Bruno Pagès is currently offline Bruno PagèsFriend
Messages: 3
Registered: October 2010
Junior Member
Vlad,

no, this is why this release is named ultimate (previous releases didn't have a name, just a number)

Previous Topic:How to turn an Aggregation and Composition into a java classes and SQL tables?
Next Topic:Re: How retrieve DefaultValue of a Property
Goto Forum:
  


Current Time: Thu Apr 25 15:09:32 GMT 2024

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

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

Back to the top