Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » EObject attributes
EObject attributes [message #1777436] Wed, 29 November 2017 11:35 Go to next message
Breno Zupeli is currently offline Breno ZupeliFriend
Messages: 8
Registered: October 2017
Junior Member
Hi,

how can I access the EObject attributes?
For example, if I print an EObject, the result is:
NavigationModelImpl@10178439 (name: Navigation Model, visibility: <unset>) (URI: null) (viewpoint: <unset>)


I'd like to access the
 (name: Navigation Model, visibility: <unset>) (URI: null) (viewpoint: <unset>)
in a List. How can I do this?

Thanks.
Re: EObject attributes [message #1777450 is a reply to message #1777436] Wed, 29 November 2017 13:06 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 6990
Registered: July 2009
Senior Member
Hi

getXXX() accesses the XXX attribute. eAllStructuralFeatures() gives a list of attributes that you can use reflectively.

Regards

Ed Willink
Previous Topic:Sirius Diagramm / EMF manipulation problem
Next Topic:Setting attribute with first literal of an enumeration
Goto Forum:
  


Current Time: Fri Jan 22 04:42:44 GMT 2021

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

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

Back to the top