1 17 package org.eclipse.emf.ecore.util; 18 19 20 import org.eclipse.emf.ecore.EObject; 21 import org.eclipse.emf.ecore.InternalEObject; 22 23 24 public class EObjectWithInverseResolvingEList extends EObjectWithInverseEList 25 { 26 public static class Unsettable extends EObjectWithInverseEList.Unsettable 27 { 28 public static class ManyInverse extends EObjectWithInverseResolvingEList.Unsettable 29 { 30 public ManyInverse(Class dataClass, InternalEObject owner, int featureID, int inverseFeatureID) 31 { 32 super(dataClass, owner, featureID, inverseFeatureID); 33 } 34 35 protected boolean hasManyInverse() 36 { 37 return true; 38 } 39 } 40 41 public Unsettable(Class dataClass, InternalEObject owner, int featureID, int inverseFeatureID) 42 { 43 super(dataClass, owner, featureID, inverseFeatureID); 44 } 45 46 protected boolean hasProxies() 47 { 48 return true; 49 } 50 51 protected Object resolve(int index, Object object) 52 { 53 return ((EcoreEList)this).resolve(index, (EObject)object); 55 } 56 } 57 58 public static class ManyInverse extends EObjectWithInverseResolvingEList 59 { 60 public ManyInverse(Class dataClass, InternalEObject owner, int featureID, int inverseFeatureID) 61 { 62 super(dataClass, owner, featureID, inverseFeatureID); 63 } 64 65 protected boolean hasManyInverse() 66 { 67 return true; 68 } 69 } 70 71 public EObjectWithInverseResolvingEList 72 (Class dataClass, InternalEObject owner, int featureID, int inverseFeatureID) 73 { 74 super(dataClass, owner, featureID, inverseFeatureID); 75 } 76 77 protected boolean hasProxies() 78 { 79 return true; 80 } 81 82 protected Object resolve(int index, Object object) 83 { 84 return ((EcoreEList)this).resolve(index, (EObject)object); 86 } 87 } 88 | Popular Tags |