@Override public int eDerivedStructuralFeatureID(EStructuralFeature eStructuralFeature) { return eClass().getFeatureID(eStructuralFeature); }
@Override protected final int eDynamicFeatureID(EStructuralFeature eStructuralFeature) { // CDOObjectImpl has no static features, so don't subract their count here: EClass eClass = eClass(); return eClass.getFeatureID(eStructuralFeature); }
@Override public int eDerivedStructuralFeatureID(EStructuralFeature eStructuralFeature) { return eClass().getFeatureID(eStructuralFeature); }
@Override public int eDerivedStructuralFeatureID(EStructuralFeature eStructuralFeature) { return eClass().getFeatureID(eStructuralFeature); }
@Override public int eDerivedStructuralFeatureID(EStructuralFeature eStructuralFeature) { return eClass().getFeatureID(eStructuralFeature); } }
@Override public int eDerivedStructuralFeatureID(EStructuralFeature eStructuralFeature) { return eClass().getFeatureID(eStructuralFeature); } }
public boolean isConsumedWithLastConsumtion(String featureName) { EStructuralFeature feature = getFeature(featureName); int featureId = described.eClass().getFeatureID(feature); for (int i = 0; i < nextFeatureId.length; i++) if (((i == featureId) ? nextID(feature, nextFeatureId[i]) : nextFeatureId[i]) > -1) return false; return true; }
@Override public int getFeatureID() { return owner.eClass().getFeatureID(getEStructuralFeature()); }
@Override public NotificationChain dynamicInverseRemove (InternalEObject owner, EStructuralFeature.Internal.DynamicValueHolder settings, int index, InternalEObject otherEnd, NotificationChain notifications) { int featureID = owner.eClass().getFeatureID(feature); return owner.eBasicSetContainer(null, featureID, notifications); } }
public int getFeatureID() { if (featureID < -1) featureID = getFeature() != null ? type.getFeatureID(getFeature()) : -1; return featureID; }
@Override public int getFeatureID() { return owner.eClass().getFeatureID(getEStructuralFeature()); }
@Override public NotificationChain dynamicInverseRemove (InternalEObject owner, EStructuralFeature.Internal.DynamicValueHolder settings, int index, InternalEObject otherEnd, NotificationChain notifications) { int featureID = owner.eClass().getFeatureID(feature); return owner.eBasicSetContainer(null, featureID, notifications); } }
public int getFeatureIndex(EStructuralFeature feature) { int featureID = getEClass().getFeatureID(feature); return getFeatureIndex(featureID); }
public Object getConsumable(String featureName, boolean allowDefault) { EStructuralFeature feature = getFeature(featureName); if (feature != null && isConsumable(feature, allowDefault)) { Object get = described.eGet(feature); if (feature.isMany()) { List<?> list = (List<?>) get; get = list.get(nextFeatureId[described.eClass().getFeatureID(feature)]); } return get; } return null; }
public boolean dynamicIsSet(InternalEObject owner, EStructuralFeature.Internal.DynamicValueHolder settings, int index) { int featureID = owner.eClass().getFeatureID(feature); return owner.eInternalContainer() != null && owner.eContainerFeatureID() == featureID; }
public boolean dynamicIsSet(InternalEObject owner, EStructuralFeature.Internal.DynamicValueHolder settings, int index) { int featureID = owner.eClass().getFeatureID(feature); return owner.eInternalContainer() != null && owner.eContainerFeatureID() == featureID; }
@Override public NotificationChain dynamicInverseAdd (InternalEObject owner, EStructuralFeature.Internal.DynamicValueHolder settings, int index, InternalEObject otherEnd, NotificationChain notifications) { if (owner.eInternalContainer() != null) { notifications = owner.eBasicRemoveFromContainer(notifications); } int featureID = owner.eClass().getFeatureID(feature); return owner.eBasicSetContainer(otherEnd, featureID, notifications); }
@Override public NotificationChain dynamicInverseAdd (InternalEObject owner, EStructuralFeature.Internal.DynamicValueHolder settings, int index, InternalEObject otherEnd, NotificationChain notifications) { if (owner.eInternalContainer() != null) { notifications = owner.eBasicRemoveFromContainer(notifications); } int featureID = owner.eClass().getFeatureID(feature); return owner.eBasicSetContainer(otherEnd, featureID, notifications); }
@Override public int getFeatureID(Class<?> expectedClass) { if (featureID == NO_FEATURE_ID && feature != null) { Class<?> containerClass = feature.getContainerClass(); featureID = containerClass == null ? notifier.eClass().getFeatureID(feature) : notifier.eDerivedStructuralFeatureID(feature.getFeatureID(), containerClass); } return notifier.eBaseStructuralFeatureID(featureID, expectedClass); }
@Override public int getFeatureID(Class<?> expectedClass) { if (featureID == NO_FEATURE_ID && feature != null) { Class<?> containerClass = feature.getContainerClass(); featureID = containerClass == null ? notifier.eClass().getFeatureID(feature) : notifier.eDerivedStructuralFeatureID(feature.getFeatureID(), containerClass); } return notifier.eBaseStructuralFeatureID(featureID, expectedClass); }