Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Serializing multiple attributes under one item.(Support alternate multiplicity-many serialization without modeling useless classes)
Serializing multiple attributes under one item. [message #642048] Mon, 29 November 2010 16:48 Go to next message
eshvar60  is currently offline eshvar60 Friend
Messages: 51
Registered: March 2010
Member
Hey guys,

I am trying to figure out how to resolve the problem mentioned here in the ecore diagram.

Essentially I have a multiplicity-man attribute called item that I want to automatically be serialized under an items element without creating an extra class.

<someObject>
  <items>
    <item>foo</item>
    <item>bar</item>
    <item>baz</item>
  </items>
</someObject>


Is there a way to do this in the ecore diagram editor?
Re: Serializing multiple attributes under one item. [message #642050 is a reply to message #642048] Mon, 29 November 2010 17:03 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Are you asking how to specify annotations using the diagram editor?


eshvar60 wrote:
> Hey guys,
> I am trying to figure out how to resolve the problem mentioned
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=201662 in the ecore
> diagram.
> Essentially I have a multiplicity-man attribute called item that I
> want to automatically be serialized under an items element without
> creating an extra class.
>
> <someObject>
> <items>
> <item>foo</item>
> <item>bar</item>
> <item>baz</item>
> </items>
> </someObject>
>
> Is there a way to do this in the ecore diagram editor?


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Serializing multiple attributes under one item. [message #642123 is a reply to message #642050] Mon, 29 November 2010 23:22 Go to previous messageGo to next message
eshvar60  is currently offline eshvar60 Friend
Messages: 51
Registered: March 2010
Member
Yes? Lol, perhaps this question sounds dumb then. I tried to find information on annotations as well as metadata and how to specify them but could not get a clear answer.

Do you have a source you can point me to? Or perhaps, if it's not too complex, explain how I would annotate my class to achieve this result?

Thanks
Re: Serializing multiple attributes under one item. [message #642297 is a reply to message #642123] Tue, 30 November 2010 17:36 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Well, there is support for annotations via the properties view. You do
realize though that nothing in that bugzilla has been committed so none
of it is available in a build at this point, right?


eshvar60 wrote:
> Yes? Lol, perhaps this question sounds dumb then. I tried to find
> information on annotations as well as metadata and how to specify them
> but could not get a clear answer.
>
> Do you have a source you can point me to? Or perhaps, if it's not too
> complex, explain how I would annotate my class to achieve this result?
>
> Thanks
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Incremental Validation Builder
Next Topic:Update of derived reference
Goto Forum:
  


Current Time: Thu Apr 25 04:45:25 GMT 2024

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

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

Back to the top