Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » propertyGetter.invoke
propertyGetter.invoke [message #566088] Wed, 25 March 2009 15:07
Anne is currently offline Anne
Messages: 37
Registered: July 2009
Member
Hi,

I am using EOL and I am trying to get the values of a set of properties of
a specific model element. The properties are in a Sequence.

I use the following EOL code:

for (i in self) {
Model.propertyGetter.invoke(modElement, i.name);
}

This seems to work fine for undefined properties and properties that
return one model element. I noticed that I get a NullPointerException for
the property that returns more than one element. I guess the problems lies
with evoke() which returns an Object instead of a Set!?

Is there a workaround for the problem or am I making a mistake?

Thanks a lot in advance and regards,
Anne
Previous Topic:AbstractEmfModel#store exception due to unmapped path
Next Topic:Using Collection.excluding(item)
Goto Forum:
  


Current Time: Wed Apr 16 06:40:22 EDT 2014

Powered by FUDForum. Page generated in 0.02032 seconds