@Override public boolean dynamicIsSet(InternalEObject owner, DynamicValueHolder settings, int index) { if (settings == null) { return owner.eGet(feature, false) != null; } return super.dynamicIsSet(owner, settings, index); }
@Override public void dynamicSet(InternalEObject owner, DynamicValueHolder settings, int index, Object newValue) { Object oldValue = settings.dynamicGet(index); if (newValue == oldValue) { return; } super.dynamicSet(owner, settings, index, newValue); }
public Setting dynamicSetting(final InternalEObject owner, final DynamicValueHolder settings, final int dynamicFeatureID) { return new EStructuralFeature.Setting() { public EObject getEObject() { return owner; } public EStructuralFeature getEStructuralFeature() { return eStructuralFeature; } public Object get(boolean resolve) { return BasicSettingDelegate.this.dynamicGet(owner, settings, dynamicFeatureID, resolve, true); } public boolean isSet() { return BasicSettingDelegate.this.dynamicIsSet(owner, settings, dynamicFeatureID); } public void set(Object newValue) { BasicSettingDelegate.this.dynamicSet(owner, settings, dynamicFeatureID, newValue); } public void unset() { BasicSettingDelegate.this.dynamicUnset(owner, settings, dynamicFeatureID); } }; }
public NotificationChain dynamicInverseAdd (InternalEObject owner, DynamicValueHolder settings, int dynamicFeatureID, InternalEObject otherEnd, NotificationChain notifications) { throw new UnsupportedOperationException(); }
public NotificationChain dynamicInverseRemove (InternalEObject owner, DynamicValueHolder settings, int dynamicFeatureID, InternalEObject otherEnd, NotificationChain notifications) { throw new UnsupportedOperationException(); }
@Override public final NotificationChain dynamicInverseAdd (InternalEObject owner, DynamicValueHolder settings, int dynamicFeatureID, InternalEObject otherEnd, NotificationChain notifications) { return inverseAdd(owner, otherEnd, notifications); }
@Override public final NotificationChain dynamicInverseRemove (InternalEObject owner, DynamicValueHolder settings, int dynamicFeatureID, InternalEObject otherEnd, NotificationChain notifications) { return inverseRemove(owner, otherEnd, notifications); }
@Override protected DynamicValueHolder eSettings() { // Override to avoid creating the eSettings array we do not use // (We do not use the array because it has a static size, as it assumes // the eClass features never change) return this; }
private static void fixNIL(CDOSetFeatureDeltaImpl delta) { if (delta.getValue() == DynamicValueHolder.NIL) { delta.setValue(null); } }
public void dynamicSet(InternalEObject owner, DynamicValueHolder settings, int dynamicFeatureID, Object newValue) { throw new UnsupportedOperationException(); }
public void dynamicUnset(InternalEObject owner, DynamicValueHolder settings, int dynamicFeatureID) { throw new UnsupportedOperationException(); }
@Override public final Setting dynamicSetting(InternalEObject owner, DynamicValueHolder settings, int dynamicFeatureID) { return setting(owner); }
@Override public final Object dynamicGet(InternalEObject owner, DynamicValueHolder settings, int dynamicFeatureID, boolean resolve, boolean coreType) { return get(owner, resolve, coreType); }
@Override public final boolean dynamicIsSet(InternalEObject owner, DynamicValueHolder settings, int dynamicFeatureID) { return isSet(owner); }
@Override public final void dynamicSet(InternalEObject owner, DynamicValueHolder settings, int dynamicFeatureID, Object newValue) { set(owner, newValue); }
@Override public final void dynamicUnset(InternalEObject owner, DynamicValueHolder settings, int dynamicFeatureID) { unset(owner); }
public abstract Object dynamicGet(InternalEObject owner, DynamicValueHolder settings, int dynamicFeatureID, boolean resolve, boolean coreType);
public abstract boolean dynamicIsSet(InternalEObject owner, DynamicValueHolder settings, int dynamicFeatureID);