// Skip derived features.
//
EStructuralFeature eStructuralFeature = (EStructuralFeature)data[i];
if (eStructuralFeature instanceof EReference)
{
EReference eReference = (EReference)eStructuralFeature;
if (eReference.isContainment())
{
if (!eReference.isDerived())
{
containmentsList.add(eReference);
}
}
else if (!eReference.isContainer())
{
// Include derived relations only if they won't also come from mixed or a group.
//
if (!eReference.isDerived() ||
!isMixed && EcoreUtil.getAnnotation(eReference, ExtendedMetaData.ANNOTATION_URI, "group") == null)
{
crossReferencesList.add(eReference);
}
}