1 17 package org.eclipse.emf.ecore; 18 19 20 import org.eclipse.emf.common.notify.NotificationChain; 21 22 23 46 public interface EStructuralFeature extends ETypedElement 47 { 48 58 boolean isTransient(); 59 60 68 void setTransient(boolean value); 69 70 80 boolean isVolatile(); 81 82 90 void setVolatile(boolean value); 91 92 103 boolean isChangeable(); 104 105 113 void setChangeable(boolean value); 114 115 128 String getDefaultValueLiteral(); 129 130 138 void setDefaultValueLiteral(String value); 139 140 161 Object getDefaultValue(); 162 163 174 void setDefaultValue(Object value); 175 176 195 boolean isUnsettable(); 196 197 205 void setUnsettable(boolean value); 206 207 223 boolean isDerived(); 224 225 233 void setDerived(boolean value); 234 235 249 EClass getEContainingClass(); 250 251 259 int getFeatureID(); 260 261 269 Class getContainerClass(); 270 271 276 interface Setting 277 { 278 282 EObject getEObject(); 283 284 288 EStructuralFeature getEStructuralFeature(); 289 290 297 Object get(boolean resolve); 298 299 304 void set(Object newValue); 305 306 311 boolean isSet(); 312 313 317 void unset(); 318 } 319 320 323 interface Internal extends EStructuralFeature, InternalEObject 324 { 325 328 interface DynamicValueHolder 329 { 330 334 Object NIL = new Object (); 335 336 341 Object dynamicGet(int dynamicFeatureID); 342 343 348 void dynamicSet(int dynamicFeatureID, Object newValue); 349 350 354 void dynamicUnset(int dynamicFeatureID); 355 } 356 357 360 interface SettingDelegate 361 { 362 370 Setting dynamicSetting(InternalEObject owner, DynamicValueHolder settings, int dynamicFeatureID); 371 372 381 Object dynamicGet(InternalEObject owner, DynamicValueHolder settings, int dynamicFeatureID, boolean resolve); 382 383 391 void dynamicSet(InternalEObject owner, DynamicValueHolder settings, int dynamicFeatureID, Object newValue); 392 393 401 boolean dynamicIsSet(InternalEObject owner, DynamicValueHolder settings, int dynamicFeatureID); 402 403 410 void dynamicUnset(InternalEObject owner, DynamicValueHolder settings, int dynamicFeatureID); 411 412 423 NotificationChain dynamicInverseAdd 424 (InternalEObject owner, DynamicValueHolder settings, int dynamicFeatureID, InternalEObject otherEnd, NotificationChain notifications); 425 426 437 NotificationChain dynamicInverseRemove 438 (InternalEObject owner, DynamicValueHolder settings, int dynamicFeatureID, InternalEObject otherEnd, NotificationChain notifications); 439 } 440 441 447 SettingDelegate getSettingDelegate(); 448 449 453 void setSettingDelegate(SettingDelegate settingDelegate); 454 455 459 boolean isFeatureMap(); 460 } 461 } 462 | Popular Tags |