Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Ecore2UMLProfile
Ecore2UMLProfile [message #414810] Thu, 22 November 2007 13:00 Go to next message
Swetha is currently offline SwethaFriend
Messages: 36
Registered: July 2009
Member
Hi,

I am trying to convert a UMLModel,UMLProfile to Ecore model.
I have the following issues:

1)I am of the understanding that UML Stereotype is converted to Ecore
EClass
and UML Profile is converted to Ecore EPackage(as mentioned in this site
on 26/11/07 mail).How do i store this information regarding wheather it is
an Stereotype or Profile, so that while converting back this Ecore Model
to UMLModel or UML Profile,i should be able access all the information.

Scenario 1:
UMLProfile(Input)-->EPackage(Output)
UMLPackage(Input)-->EPackage(Output)

EPackage(Input)-->UMLProfile(Output)
EPackage(Input)-->UMLPackage(Output)

Scenario 2:
Stereotype(Input)-->EClass(Output)
Class(Input)-->EClass(Output)

EClass(Input)-->Stereotype(Output)
EClass(Input)-->Class(Output)

2)I have done the transformation using ATL,is there a way to include
multiple newsgroup.

Hoping a reply at the earliest.
Thanks in advance.

Regards,
Swetha.
Re: Ecore2UMLProfile [message #414811 is a reply to message #414810] Thu, 22 November 2007 13:05 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33133
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------080205000606010605000303
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Swetha,

This is a question about UML so I've redirected it to the UML newsgroup
by adding that group to the "to" list of the reply so there is no need
to repost. Using Thunderbird you can address multiple newsgroup in a
single posting but the web client doesn't support that. 209794
<https://bugs.eclipse.org/bugs/show_bug.cgi?id=209794>


Swetha wrote:
> Hi,
>
> I am trying to convert a UMLModel,UMLProfile to Ecore model.
> I have the following issues:
>
> 1)I am of the understanding that UML Stereotype is converted to Ecore
> EClass
> and UML Profile is converted to Ecore EPackage(as mentioned in this
> site on 26/11/07 mail).How do i store this information regarding
> wheather it is an Stereotype or Profile, so that while converting back
> this Ecore Model to UMLModel or UML Profile,i should be able access
> all the information.
>
> Scenario 1: UMLProfile(Input)-->EPackage(Output)
> UMLPackage(Input)-->EPackage(Output)
>
> EPackage(Input)-->UMLProfile(Output)
> EPackage(Input)-->UMLPackage(Output)
>
> Scenario 2: Stereotype(Input)-->EClass(Output)
> Class(Input)-->EClass(Output)
>
> EClass(Input)-->Stereotype(Output)
> EClass(Input)-->Class(Output)
>
> 2)I have done the transformation using ATL,is there a way to include
> multiple newsgroup.
>
> Hoping a reply at the earliest.
> Thanks in advance.
>
> Regards,
> Swetha.
>
>


--------------080205000606010605000303
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Swetha,<br>
<br>
This is a question about UML so I've redirected it to the UML newsgroup
by adding that group to the "to" list of the reply so there is no need
to repost.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Ecore2UMLProfile [message #414833 is a reply to message #414811] Fri, 23 November 2007 16:29 Go to previous messageGo to next message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.

------=_NextPart_000_0009_01C82DC4.267F5C60
Content-Type: text/plain;
charset="ISO-8859-15"
Content-Transfer-Encoding: quoted-printable

Hi Swetha, Ed,

One way to store information indicating that your EClass corresponds to =
a stereotype would be to create an EAnnotation and save information in =
that annotation. You can modify the UML2Ecore converter to produce =
the proper annotation, or to use the newly enhanced Ecore Profile (that =
supports addition of EAnnotations).

You could then specialize the Ecore2UML converter to take into account =
the annotation when deciding to create a uml::Class or a =
uml::Stereotype.

You can essentially store whatever information you want in an annotation =
and use it in whatever manner you wish during the conversion process.

Regards,

- James. =20



"Ed Merks" <merks@ca.ibm.com> wrote in message =
news:fi3urh$1ds$1@build.eclipse.org...
Swetha,

This is a question about UML so I've redirected it to the UML =
newsgroup by adding that group to the "to" list of the reply so there is =
no need to repost. Using Thunderbird you can address multiple newsgroup =
in a single posting but the web client doesn't support that. 209794


Swetha wrote:=20
Hi,=20

I am trying to convert a UMLModel,UMLProfile to Ecore model.=20
I have the following issues:=20

1)I am of the understanding that UML Stereotype is converted to =
Ecore EClass=20
and UML Profile is converted to Ecore EPackage(as mentioned in this =
site on 26/11/07 mail).How do i store this information regarding =
wheather it is an Stereotype or Profile, so that while converting back =
this Ecore Model to UMLModel or UML Profile,i should be able access all =
the information.=20

Scenario 1: UMLProfile(Input)-->EPackage(Output)=20
UMLPackage(Input)-->EPackage(Output)=20

EPackage(Input)-->UMLProfile(Output)=20
EPackage(Input)-->UMLPackage(Output)=20

Scenario 2: Stereotype(Input)-->EClass(Output)=20
Class(Input)-->EClass(Output)=20

EClass(Input)-->Stereotype(Output)=20
EClass(Input)-->Class(Output)=20

2)I have done the transformation using ATL,is there a way to include =
multiple newsgroup.=20

Hoping a reply at the earliest.=20
Thanks in advance.=20

Regards,=20
Swetha.=20





------=_NextPart_000_0009_01C82DC4.267F5C60
Content-Type: text/html;
charset="ISO-8859-15"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type =
content=3Dtext/html;charset=3DISO-8859-15>
<META content=3D"MSHTML 6.00.2900.3157" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY text=3D#000000 bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi Swetha, Ed,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>One way to store information indicating =
that your=20
EClass corresponds to a stereotype would be to create =
an&nbsp;EAnnotation and=20
save information in that annotation.&nbsp;&nbsp;&nbsp; You can modify =
the=20
UML2Ecore converter to produce the proper annotation, or to use the =
newly=20
enhanced Ecore Profile (that supports addition of =
EAnnotations).</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>You could then specialize the Ecore2UML =
converter=20
to take into account the annotation when deciding to create a uml::Class =
or a=20
uml::Stereotype.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>You can essentially store whatever =
information you=20
want in an annotation and use it in whatever manner you wish during the=20
conversion process.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Regards,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>- James.</FONT><FONT face=3DArial=20
size=3D2>&nbsp;&nbsp;&nbsp; </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT><FONT face=3DArial =
size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Ed Merks" &lt;<A =
href=3D"mailto:merks@ca.ibm.com">merks@ca.ibm.com</A>&gt;=20
wrote in message <A=20
=
href=3D"news:fi3urh$1ds$1@build.eclipse.org">news:fi3urh$1ds$1@build.ecli=
pse.org</A>...</DIV>Swetha,<BR><BR>This=20
is a question about UML so I've redirected it to the UML newsgroup by =
adding=20
that group to the "to" list of the reply so there is no need to =
repost.&nbsp;=20
Using Thunderbird you can address multiple newsgroup in a single =
posting but=20
the web client doesn't support that. <A=20
title=3D"NEW - The web-based newsgroup portal doesn't support posting =
to more than one newsgroup"=20
=
href=3D"https://bugs.eclipse.org/bugs/show_bug.cgi?id=3D209794">209794</A=
><BR><BR><BR>Swetha=20
wrote:=20
<BLOCKQUOTE =
cite=3Dmid:77011c37c46882bb7942f2d452089266$1@www.eclipse.org=20
type=3D"cite">Hi, <BR><BR>I am trying to convert a UMLModel,UMLProfile =
to=20
Ecore model. <BR>I have the following issues: <BR><BR>1)I am of the=20
understanding that UML Stereotype is converted to Ecore EClass =
<BR>and UML=20
Profile is converted to Ecore EPackage(as mentioned in this site on =
26/11/07=20
mail).How do i store this information regarding wheather it is an =
Stereotype=20
or Profile, so that while converting back this Ecore Model to =
UMLModel or=20
UML Profile,i should be able access all the information. =
<BR><BR>Scenario=20
1:&nbsp;&nbsp;&nbsp;&nbsp; UMLProfile(Input)--&gt;EPackage(Output)=20
<BR>UMLPackage(Input)--&gt;EPackage(Output)=20
<BR><BR>EPackage(Input)--&gt;UMLProfile(Output)=20
<BR>EPackage(Input)--&gt;UMLPackage(Output) <BR><BR>Scenario=20
2:&nbsp;&nbsp;&nbsp;&nbsp; Stereotype(Input)--&gt;EClass(Output)=20
<BR>Class(Input)--&gt;EClass(Output)=20
<BR><BR>EClass(Input)--&gt;Stereotype(Output)=20
<BR>EClass(Input)--&gt;Class(Output) <BR><BR>2)I have done the=20
transformation using ATL,is there a way to include multiple =
newsgroup.=20
<BR><BR>Hoping a reply at the earliest. <BR>Thanks in advance.=20
<BR><BR>Regards, <BR>Swetha.=20
<BR><BR><BR></BLOCKQUOTE><BR></BLOCKQUOTE></BODY></HTML >

------=_NextPart_000_0009_01C82DC4.267F5C60--
Re: Ecore2UMLProfile [message #415280 is a reply to message #414833] Mon, 10 December 2007 10:16 Go to previous messageGo to next message
Swetha is currently offline SwethaFriend
Messages: 36
Registered: July 2009
Member
Hi James,

I am unable to understand in which scenario we need to use the Stereotype
in UML.Doesnot Class provied all the features which a Stereotype can do.
Is there any advantages and disadvantages using Stereotype when compared
to EClass in Ecore.

Thanks in advance.
Regards,
Swetha.
Re: Ecore2UMLProfile [message #415290 is a reply to message #415280] Mon, 10 December 2007 16:27 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Swetha,

Stereotypes are a way of extending existing UML metaclasses with
meta-attributes. Stereotypes and Profiles are a UML concept whereas Ecore,
EClass etc are not, so trying to compare the use of Steroetypes vs EClass is
not really a valid comparison. The opensource implementation happens to
be based on Ecore but ideally users of the API should not be aware of
anything other than UML concepts.

Please ask again if this doesn't clarify.

- James.


"Swetha" <swetha.tarachandra@siemens.com> wrote in message
news:befe2bf5521cd1ef4d028934ac21d65e$1@www.eclipse.org...
> Hi James,
>
> I am unable to understand in which scenario we need to use the Stereotype
> in UML.Doesnot Class provied all the features which a Stereotype can do.
> Is there any advantages and disadvantages using Stereotype when compared
> to EClass in Ecore.
>
> Thanks in advance.
> Regards,
> Swetha.
>
>
Previous Topic:Loading Multiple files using EMF resource load?
Next Topic:[Validation] Re: java.lang.ClassCircularityError: myPackage/ValidationDelegateClientSelector
Goto Forum:
  


Current Time: Thu Apr 18 08:21:27 GMT 2024

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

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

Back to the top