Skip to main content



      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 15:36 Go to next message
Eclipse UserFriend
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 16:11] by Moderator

Re: [EVL] Get list of properties (Attributes + child elements) [message #1729162 is a reply to message #1729032] Mon, 11 April 2016 11:42 Go to previous message
Eclipse UserFriend
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: Sun Jul 27 05:03:05 EDT 2025

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

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

Back to the top