|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.emf.ecore.util.BasicSettingDelegate
org.eclipse.emf.ecore.util.BasicSettingDelegate.Stateless
public abstract static class BasicSettingDelegate.Stateless
A basic implementation of a stateless setting delegate. At least the first two of these methods should be overridden.
setting(InternalEObject)get(InternalEObject, boolean, boolean)set(InternalEObject, Object)isSet(InternalEObject)unset(InternalEObject)inverseAdd(InternalEObject, InternalEObject, NotificationChain)inverseRemove(InternalEObject, InternalEObject, NotificationChain)
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.eclipse.emf.ecore.util.BasicSettingDelegate |
|---|
BasicSettingDelegate.Stateless |
| Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.EStructuralFeature.Internal.SettingDelegate |
|---|
EStructuralFeature.Internal.SettingDelegate.Factory |
| Field Summary |
|---|
| Fields inherited from class org.eclipse.emf.ecore.util.BasicSettingDelegate |
|---|
eStructuralFeature |
| Constructor Summary | |
|---|---|
BasicSettingDelegate.Stateless(EStructuralFeature eStructuralFeature)
|
|
| Method Summary | |
|---|---|
java.lang.Object |
dynamicGet(InternalEObject owner,
EStructuralFeature.Internal.DynamicValueHolder settings,
int dynamicFeatureID,
boolean resolve,
boolean coreType)
Returns the value of the feature of this owner. |
NotificationChain |
dynamicInverseAdd(InternalEObject owner,
EStructuralFeature.Internal.DynamicValueHolder settings,
int dynamicFeatureID,
InternalEObject otherEnd,
NotificationChain notifications)
Adds the object at the other end of a bidirectional reference to the appropriate feature and returns accumulated notifications. |
NotificationChain |
dynamicInverseRemove(InternalEObject owner,
EStructuralFeature.Internal.DynamicValueHolder settings,
int dynamicFeatureID,
InternalEObject otherEnd,
NotificationChain notifications)
Removes the object at the other end of a bidirectional reference from the appropriate feature and returns accumulated notifications. |
boolean |
dynamicIsSet(InternalEObject owner,
EStructuralFeature.Internal.DynamicValueHolder settings,
int dynamicFeatureID)
Returns whether the feature of the owner is considered to be set. |
void |
dynamicSet(InternalEObject owner,
EStructuralFeature.Internal.DynamicValueHolder settings,
int dynamicFeatureID,
java.lang.Object newValue)
Sets the value of the given feature of the owner to the new value. |
EStructuralFeature.Setting |
dynamicSetting(InternalEObject owner,
EStructuralFeature.Internal.DynamicValueHolder settings,
int dynamicFeatureID)
Returns a setting that can be used to access the owner's feature. |
void |
dynamicUnset(InternalEObject owner,
EStructuralFeature.Internal.DynamicValueHolder settings,
int dynamicFeatureID)
Unsets the value of the given feature of the owner. |
protected abstract java.lang.Object |
get(InternalEObject owner,
boolean resolve,
boolean coreType)
Returns the value of this delegate's feature for the owner. |
protected NotificationChain |
inverseAdd(InternalEObject owner,
InternalEObject otherEnd,
NotificationChain notifications)
Adds the object at the other end of a bidirectional reference to this delegate's feature and returns accumulated notifications. |
protected NotificationChain |
inverseRemove(InternalEObject owner,
InternalEObject otherEnd,
NotificationChain notifications)
Remove the object at the other end of a bidirectional reference from this delegate's feature and returns accumulated notifications. |
protected abstract boolean |
isSet(InternalEObject owner)
Returns whether the value of this delegate's feature is considered set for the owner. |
protected void |
set(InternalEObject owner,
java.lang.Object newValue)
Sets this new value of this delegate's feature for the owner. |
protected EStructuralFeature.Setting |
setting(InternalEObject owner)
Creates a setting for the owner and this delegate's feature. |
protected void |
unset(InternalEObject owner)
Unsets the values of this delegate's feature for the owner. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BasicSettingDelegate.Stateless(EStructuralFeature eStructuralFeature)
| Method Detail |
|---|
public final EStructuralFeature.Setting dynamicSetting(InternalEObject owner,
EStructuralFeature.Internal.DynamicValueHolder settings,
int dynamicFeatureID)
EStructuralFeature.Internal.SettingDelegate
dynamicSetting in interface EStructuralFeature.Internal.SettingDelegatedynamicSetting in class BasicSettingDelegateowner - the owner of the feature.settings - the owner's array of cached values.dynamicFeatureID - the feature's index in the owner's cached dynamic values.
InternalEObject.eSetting(EStructuralFeature)protected EStructuralFeature.Setting setting(InternalEObject owner)
owner - the owner for the setting.
public final java.lang.Object dynamicGet(InternalEObject owner,
EStructuralFeature.Internal.DynamicValueHolder settings,
int dynamicFeatureID,
boolean resolve,
boolean coreType)
EStructuralFeature.Internal.SettingDelegate
dynamicGet in interface EStructuralFeature.Internal.SettingDelegatedynamicGet in class BasicSettingDelegateowner - the owner of the feature.settings - the owner's array of cached values.dynamicFeatureID - the feature's index in the owner's cached dynamic values.resolve - whether to resolve.coreType - return the core EMF object if value is a non-EMF wrapper/view.
EObject.eGet(EStructuralFeature, boolean)
protected abstract java.lang.Object get(InternalEObject owner,
boolean resolve,
boolean coreType)
owner - the object for with to fetch the value.resolve - whether the returned object should be resolved it if is a proxy.coreType - whether to return the core type value or the API type value.
InternalEObject.eGet(EStructuralFeature, boolean, boolean)
public final boolean dynamicIsSet(InternalEObject owner,
EStructuralFeature.Internal.DynamicValueHolder settings,
int dynamicFeatureID)
EStructuralFeature.Internal.SettingDelegate
dynamicIsSet in interface EStructuralFeature.Internal.SettingDelegatedynamicIsSet in class BasicSettingDelegateowner - the owner of the feature.settings - the owner's array of cached values.dynamicFeatureID - the feature's index in the owner's cached dynamic values.
EObject.eIsSet(EStructuralFeature)protected abstract boolean isSet(InternalEObject owner)
owner - the object for with to test is set.
EObject.eIsSet(EStructuralFeature)
public final void dynamicSet(InternalEObject owner,
EStructuralFeature.Internal.DynamicValueHolder settings,
int dynamicFeatureID,
java.lang.Object newValue)
EStructuralFeature.Internal.SettingDelegate
dynamicSet in interface EStructuralFeature.Internal.SettingDelegatedynamicSet in class BasicSettingDelegateowner - the owner of the feature.settings - the owner's array of cached values.dynamicFeatureID - the feature's index in the owner's cached dynamic values.newValue - the new value for the feature.EObject.eSet(EStructuralFeature, Object)
protected void set(InternalEObject owner,
java.lang.Object newValue)
owner - the owner for which to set the valuenewValue - the new value for the feature.EObject.eSet(EStructuralFeature, Object)
public final void dynamicUnset(InternalEObject owner,
EStructuralFeature.Internal.DynamicValueHolder settings,
int dynamicFeatureID)
EStructuralFeature.Internal.SettingDelegate
dynamicUnset in interface EStructuralFeature.Internal.SettingDelegatedynamicUnset in class BasicSettingDelegateowner - the owner of the feature.settings - the owner's array of cached values.dynamicFeatureID - the feature's index in the owner's cached dynamic values.EObject.eUnset(EStructuralFeature)protected void unset(InternalEObject owner)
owner - the owner for which to unset the value.EObject.eUnset(EStructuralFeature)
public final NotificationChain dynamicInverseAdd(InternalEObject owner,
EStructuralFeature.Internal.DynamicValueHolder settings,
int dynamicFeatureID,
InternalEObject otherEnd,
NotificationChain notifications)
EStructuralFeature.Internal.SettingDelegate
dynamicInverseAdd in interface EStructuralFeature.Internal.SettingDelegatedynamicInverseAdd in class BasicSettingDelegateowner - the owner of the feature.settings - the owner's array of cached values.dynamicFeatureID - the feature's index in the owner's cached dynamic values.otherEnd - the object to inverse add.notifications - the incoming accumulated notifications.
InternalEObject.eInverseAdd(org.eclipse.emf.ecore.InternalEObject, int, java.lang.Class>, org.eclipse.emf.common.notify.NotificationChain)
protected NotificationChain inverseAdd(InternalEObject owner,
InternalEObject otherEnd,
NotificationChain notifications)
owner - the owner for which to do the inverse add.otherEnd - the object to inverse add.notifications - the notifications accumulated so far.
public final NotificationChain dynamicInverseRemove(InternalEObject owner,
EStructuralFeature.Internal.DynamicValueHolder settings,
int dynamicFeatureID,
InternalEObject otherEnd,
NotificationChain notifications)
EStructuralFeature.Internal.SettingDelegate
dynamicInverseRemove in interface EStructuralFeature.Internal.SettingDelegatedynamicInverseRemove in class BasicSettingDelegateowner - the owner of the feature.settings - the owner's array of cached values.dynamicFeatureID - the feature's index in the owner's cached dynamic values.otherEnd - the object to inverse remove.notifications - the incoming accumulated notifications.
InternalEObject.eInverseRemove(org.eclipse.emf.ecore.InternalEObject, int, java.lang.Class>, org.eclipse.emf.common.notify.NotificationChain)
protected NotificationChain inverseRemove(InternalEObject owner,
InternalEObject otherEnd,
NotificationChain notifications)
owner - the owner for which to do the inverse remove.otherEnd - the object to inverse remove.notifications - the notifications accumulated so far.
|
Copyright 2001-2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||