Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » How to know the name of a class (metadata) in a composition relationhip?
How to know the name of a class (metadata) in a composition relationhip? [message #1767250] Tue, 04 July 2017 07:47 Go to next message
eunjung park is currently offline eunjung parkFriend
Messages: 68
Registered: April 2015
Member
Hello.

I would like to get some help.
Currently, I defined a metamodel with ecore.
In my metamodel, A class has a composition relationship with B class.
I can easily know A class's attribute value, but I don't know how to get the B class's metadata name (i.e., "B").
If someone know, please let me know the method.

Thank you so much.

Grace
Re: How to know the name of a class (metadata) in a composition relationhip? [message #1767251 is a reply to message #1767250] Tue, 04 July 2017 07:59 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 5573
Registered: July 2009
Senior Member
aB.eClass().getName()
Re: How to know the name of a class (metadata) in a composition relationhip? [message #1767352 is a reply to message #1767251] Wed, 05 July 2017 02:41 Go to previous message
eunjung park is currently offline eunjung parkFriend
Messages: 68
Registered: April 2015
Member
Thank you, Ed.
I could solve my problem by your help.

Best regards,
Grace
Previous Topic:EMF resource save with relative Paths and a different format
Next Topic:Name Collision in Package and its elements
Goto Forum:
  


Current Time: Wed Jan 17 05:42:28 GMT 2018

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

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