Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » How to get annotations of enum literals at runtime?
How to get annotations of enum literals at runtime? [message #1773553] Fri, 29 September 2017 09:41 Go to next message
Erdal Karaca is currently offline Erdal KaracaFriend
Messages: 840
Registered: July 2009
Senior Member
I have a model with enum literals annotated.
How are the annotations of those enum literals to be accessed if all I have is a specific enum literal identified by its Enumerator interface?
Re: How to get annotations of enum literals at runtime? [message #1774299 is a reply to message #1773553] Thu, 12 October 2017 14:06 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 29112
Registered: July 2009
Senior Member
Given an Enumerator instance, you can't generally know the EEnum/EEnumLiteral, just as you can't generally know the EDataType of an arbitrary data value.
Previous Topic:Setting a default implementation for methods
Next Topic:Missing emf.validation on Maven central
Goto Forum:
  


Current Time: Tue Jan 16 07:30:41 GMT 2018

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

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