1 17 package org.eclipse.emf.ecore; 18 19 20 import org.eclipse.emf.common.notify.NotificationChain; 21 import org.eclipse.emf.common.util.URI; 22 import org.eclipse.emf.ecore.resource.Resource; 23 24 25 28 public interface InternalEObject extends EObject 29 { 30 33 static final int EOPPOSITE_FEATURE_BASE = -1; 34 35 43 boolean eNotificationRequired(); 44 45 62 String eURIFragmentSegment(EStructuralFeature eFeature, EObject eObject); 63 64 71 EObject eObjectForURIFragmentSegment(String uriFragmentSegment); 72 73 81 void eSetClass(EClass eClass); 82 83 88 EStructuralFeature.Setting eSetting(EStructuralFeature feature); 89 90 96 int eBaseStructuralFeatureID(int derivedFeatureID, Class baseClass); 97 98 105 int eContainerFeatureID(); 106 107 113 int eDerivedStructuralFeatureID(int baseFeatureID, Class baseClass); 114 115 121 NotificationChain eSetResource(Resource.Internal resource, NotificationChain notifications); 122 123 128 NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain notifications); 129 130 135 NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain notifications); 136 137 143 NotificationChain eBasicSetContainer(InternalEObject newContainer, int newContainerFeatureID, NotificationChain notifications); 144 145 150 NotificationChain eBasicRemoveFromContainer(NotificationChain notifications); 151 152 159 URI eProxyURI(); 160 161 168 void eSetProxyURI(URI uri); 169 170 175 EObject eResolveProxy(InternalEObject proxy); 176 177 182 Resource.Internal eInternalResource(); 183 184 185 189 EStore eStore(); 190 191 197 void eSetStore(EStore store); 198 199 202 public interface EStore 203 { 204 209 int NO_INDEX = -1; 210 211 218 Object get(InternalEObject object, EStructuralFeature feature, int index); 219 220 228 Object set(InternalEObject object, EStructuralFeature feature, int index, Object value); 229 230 236 boolean isSet(InternalEObject object, EStructuralFeature feature); 237 238 243 void unset(InternalEObject object, EStructuralFeature feature); 244 245 251 boolean isEmpty(InternalEObject object, EStructuralFeature feature); 252 253 259 int size(InternalEObject object, EStructuralFeature feature); 260 261 268 boolean contains(InternalEObject object, EStructuralFeature feature, Object value); 269 270 277 int indexOf(InternalEObject object, EStructuralFeature feature, Object value); 278 279 286 int lastIndexOf(InternalEObject object, EStructuralFeature feature, Object value); 287 288 295 void add(InternalEObject object, EStructuralFeature feature, int index, Object value); 296 297 304 Object remove(InternalEObject object, EStructuralFeature feature, int index); 305 306 315 Object move(InternalEObject object, EStructuralFeature feature, int targetIndex, int sourceIndex); 316 317 322 void clear(InternalEObject object, EStructuralFeature feature); 323 324 330 Object [] toArray(InternalEObject object, EStructuralFeature feature); 331 332 340 Object [] toArray(InternalEObject object, EStructuralFeature feature, Object [] array); 341 342 348 int hashCode(InternalEObject object, EStructuralFeature feature); 349 350 355 InternalEObject getContainer(InternalEObject object); 356 357 362 EStructuralFeature getContainingFeature(InternalEObject object); 363 364 369 EObject create(EClass eClass); 370 } 371 } 372 | Popular Tags |