Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » AnyType xmi id
AnyType xmi id [message #539221] Thu, 10 June 2010 03:39 Go to next message
Alex Boyko is currently offline Alex BoykoFriend
Messages: 200
Registered: July 2009
Senior Member
Hi,

Suppose i have a meta-model with eclass A. I load a model based on this meta-model with objects ot type A.
I load this model using a different meta-model and cannot map eclass A to any eclasses in this meta-model. Therefore I get an AnyType for objects of type A. When serialized, objects of type A have an xmi id, is there any way to get this xmi id from AnyType?
Thanks in advance.

Cheers,
Alex


Re: AnyType xmi id [message #539227 is a reply to message #539221] Thu, 10 June 2010 04:47 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------040009040308040905070406
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

Alex,

Reading this should help you understand how to use AnyType just like
DOM: Binding XML to Java
< http://www.theserverside.com/tt/articles/article.tss?l=Bindi ngXMLJava>

Alex Boyko wrote:
> Hi,
>
> Suppose i have a meta-model with eclass A. I load a model based on
> this meta-model with objects ot type A.
> I load this model using a different meta-model and cannot map eclass A
> to any eclasses in this meta-model. Therefore I get an AnyType for
> objects of type A. When serialized, objects of type A have an xmi id,
> is there any way to get this xmi id from AnyType?
> Thanks in advance.
>
> Cheers,
> Alex
>
>
>

--------------040009040308040905070406
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">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Alex,<br>
<br>
Reading this should help you understand how to use AnyType just like
DOM: <a target="_out"
href=" http://www.theserverside.com/tt/articles/article.tss?l=Bindi ngXMLJava">Binding
XML to Java</a><br>
<br>
Alex Boyko wrote:
<blockquote cite="mid:hupmpg$gmq$1@build.eclipse.org" type="cite">Hi,
<br>
<br>
Suppose i have a meta-model with eclass A. I load a model based on this
meta-model with objects ot type A.
<br>
I load this model using a different meta-model and cannot map eclass A
to any eclasses in this meta-model. Therefore I get an AnyType for 
objects of type A. When serialized, objects of type A have an xmi id,
is there any way to get this xmi id from AnyType?
<br>
Thanks in advance.
<br>
<br>
Cheers,
<br>
Alex
<br>
<br>
<br>
<br>
</blockquote>
</body>
</html>

--------------040009040308040905070406--


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: AnyType xmi id [message #539325 is a reply to message #539221] Thu, 10 June 2010 12:45 Go to previous messageGo to next message
Alexey is currently offline AlexeyFriend
Messages: 61
Registered: January 2010
Member
Hello, Ed! Im very sorry to interfeer, please, could you answer me on that, if you have the time!

Thanx!

Alexey

http://www.eclipse.org/forums/index.php?t=msg&&th=16 9439&goto=538057#msg_538057
Re: AnyType xmi id [message #539366 is a reply to message #539325] Thu, 10 June 2010 14:39 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
Alexey,

Did you read my answer and the article?


Alexey wrote:
> Hello, Ed! Im very sorry to interfeer, please, could you answer me on
> that, if you have the time!
>
> Thanx!
>
> Alexey
>
> http://www.eclipse.org/forums/index.php?t=msg&&th=16 9439&goto=538057#msg_538057
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:EMF Compare : contentType for .xml extension
Next Topic:Ecore renaming best practices?
Goto Forum:
  


Current Time: Thu Apr 25 17:53:47 GMT 2024

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

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

Back to the top