how can we import a specific Ecore model in another Ecore [message #892203] |
Wed, 27 June 2012 07:56  |
Eclipse User |
|
|
|
hi
i'm trying to build my own ecore model using the ecore diagram, and i wanted to know if it is possible to import an ecore in another ecore ?
for example:
i have 4 ecore files A.ecore , B.ecore , C.ecore , D.ecore, and since in my ecore A and B i am using D and in my ecore C i am using B , i don't want to redefine A, B and D everytime i want to use it. so i'm looking for a way define it one-time and just import it any time i need it.
and if it is possible how can we do it (represent it) using an ecore diagram
Best regards ,
Frank
|
|
|
|
|
|
Re: how can we import a specific Ecore model in another Ecore [message #892326 is a reply to message #892276] |
Wed, 27 June 2012 13:50  |
Eclipse User |
|
|
|
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Frank.<br>
<br>
XML Schema supports simple data types with these types of range
constraints and EMF supports extended metadata annotations for
that. You'd have to define a specialized EDataType for that.<br>
<blockquote><a
href="http://www.eclipse.org/modeling/emf/docs/overviews/XMLSchemaToEcoreMapping.pdf">XML
Schema to Ecore Mapping</a><br>
<br>
</blockquote>
<div class="moz-cite-prefix">On 27/06/2012 5:04 PM, frank fotso
wrote:<br>
</div>
<blockquote cite="mid:jsf7d6$74u$1@xxxxxxxxe.org" type="cite">thks
for your help.
<br>
<br>
can you tell me please how to fix an attibute of a class , that
means if i have a class B and that class has an attribute c of
type integer , i just want to fixe the attribute c for examples
saying c is equal to c , or saying that the attributesof type
integer is between 2 and 6( ie the integer c must between 2 and
6)?
<br>
<br>
Best regards ,
<br>
Frank
<br>
</blockquote>
<br>
<br>
</body>
</html>
|
|
|
Powered by
FUDForum. Page generated in 0.03554 seconds