Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » [EVL] Get list of properties (Attributes + child elements)
[EVL] Get list of properties (Attributes + child elements) [message #1729032] Sat, 09 April 2016 19:36 Go to next message
Glatz Martin is currently offline Glatz MartinFriend
Messages: 23
Registered: March 2016
Junior Member
Hello,

I'm looking for a generic way to get a list of properties (attributes and child elements) a Model instance has.

And I'm curious - is there any documentation which members for every object exist? It seems that following EObject methods are available:

Content
eResource()
eContainer()
eContainingFeature()
eContainmentFeature()
eContents()
eAllContents()
eCrossReferences()

Reflection
eClass()
eGet(EStructuralFeature)
eGet(EStructuralFeature, boolean)
eSet(EStructuralFeature, Object)
eIsSet(EStructuralFeature)
eUnset(EStructuralFeature)

Serialization
eIsProxy()

Is that all, or where can i find additional documentation?

Thanks in advance,

Martin

[Updated on: Sat, 09 April 2016 20:11]

Report message to a moderator

Re: [EVL] Get list of properties (Attributes + child elements) [message #1729162 is a reply to message #1729032] Mon, 11 April 2016 15:42 Go to previous message
Glatz Martin is currently offline Glatz MartinFriend
Messages: 23
Registered: March 2016
Junior Member
I've solved the problem in the meantime.
For future reference and others having same kind of problems:
https://www.eclipse.org/forums/index.php/t/262927/

proposes a solution for the problem (if you want to get attributes/references) of a meta-model.

In my concrete case I had a "Generic-Anytype" Modelelement - so I basically have to search the instance on my own, as the meta-model can't provide the information, if a certain attribut is available. (generic name/value pairs).

Cheers,
Martin

Previous Topic:How to export differences in ECL
Next Topic:How to execute M2M transformation using ETL
Goto Forum:
  


Current Time: Fri Apr 19 14:42:21 GMT 2024

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

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

Back to the top