Skip to main content


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: 854
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: 33133
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.

Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Setting a default implementation for methods
Next Topic:Missing emf.validation on Maven central
Goto Forum:
  


Current Time: Tue Apr 16 12:58:20 GMT 2024

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

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

Back to the top