public EContentsEList(EObject eObject) { this.eObject = eObject; this.eStructuralFeatures = ((EClassImpl.FeatureSubsetSupplier)eObject.eClass().getEAllStructuralFeatures()).containments(); }
public EContentsEList(EObject eObject) { this.eObject = eObject; this.eStructuralFeatures = ((EClassImpl.FeatureSubsetSupplier)eObject.eClass().getEAllStructuralFeatures()).containments(); }
/** * Creates a new {@code ContentsList} with the given {@code owner}. * * @param owner the owner of this list * @param <E> the type of elements in this list * * @return a new list */ @Nonnull public static <E extends EObject> ContentsList<E> newList(PersistentEObject owner) { List<EStructuralFeature> features = owner.eClass().getEAllStructuralFeatures(); EStructuralFeature[] containments = ((EClassImpl.FeatureSubsetSupplier) features).containments(); return nonNull(containments) ? new ContentsList<>(owner, Arrays.asList(containments), true) : ContentsList.empty(); }
((EClassImpl.FeatureSubsetSupplier)eClass().getEAllStructuralFeatures()).containments();
((EClassImpl.FeatureSubsetSupplier)eClass().getEAllStructuralFeatures()).containments();
/** * Creates a new {@code NeoEContentsEList} with the given {@code owner}. * * @param owner the owner of this list * @param <E> the type of elements in this list * * @return a new list */ public static <E> NeoEContentsEList<E> createNeoEContentsEList(EObject owner) { NeoEContentsEList<E> contentEList; EStructuralFeature[] features = ((EClassImpl.FeatureSubsetSupplier) owner.eClass().getEAllStructuralFeatures()).containments(); if (isNull(features)) { contentEList = NeoEContentsEList.emptyNeoContentsEList(); } else { contentEList = new NeoEContentsEList<>(owner, features); } return contentEList; }
public static <T> EContentsEList<T> createEContentsEList(EObject eObject) { EStructuralFeature [] eStructuralFeatures = ((EClassImpl.FeatureSubsetSupplier)eObject.eClass().getEAllStructuralFeatures()).containments(); return eStructuralFeatures == null ? EContentsEList.<T>emptyContentsEList() : new EContentsEList<T>(eObject, eStructuralFeatures); }
public static <T> EContentsEList<T> createEContentsEList(EObject eObject) { EStructuralFeature [] eStructuralFeatures = ((EClassImpl.FeatureSubsetSupplier)eObject.eClass().getEAllStructuralFeatures()).containments(); return eStructuralFeatures == null ? EContentsEList.<T>emptyContentsEList() : new EContentsEList<T>(eObject, eStructuralFeatures); }