[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.emf] Re: Initialize multivalued attributes/references

Hi Ed,
 >> when adding a multivalued attribute to an EClass, the generated code
doesn't initialize the attribute. Thus,
calling getMyAttributeList() might return null. The solution is to perform a check or modify the generated code.
This doesn't sound quite right to me. All features for which upperBound > 1 will have an initialized list.

Uhm, the only thing i can think of that the behaviour is different for EAttributes and EReferences. I'm talking about an EReference.


Is this list just a single valued feature who's value happens to be a list (like from an XSD list type)?

I directly create the model with the tree editor, just like the author->*book example. So the type is book and its upperbound is -1.



Felix