Chris,
EReference.isContainer is transient, volatile, and not changeable. It's
implemented like this:
public boolean isContainer()
{
EReference theOpposite = getEOpposite();
return theOpposite != null && theOpposite.isContainment();
}
So a reference is a container if its opposite is a containment.
Chris Potter wrote:
Hi All:
Thanks in advance for your help. Is the ecore:EReference container
property
for internal use only or obsolete? The ecore model editor shows this
property, however, unlike other boolean properties it appears to be set
to
false and is immutable. I am also unable to import an ecore model into
an
EMF project if the container property is set (to either true or false)
on
any references in the ecore file. If it is still used can someone
explain
to me the distinction between the containment and container properties?
The
containment property seems to behave appropriately and express the
necessary
amount of information describing whether the reference is an intra-
resource
or inter-resource reference.
Thanks,
Chris Potter