@Override protected void addAdapter(org.eclipse.emf.common.notify.Notifier notifier) { if (notifier instanceof StructSequence || notifier instanceof Struct || notifier instanceof Simple) { super.addAdapter(notifier); } }
/** * * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case PrfPackage.STRUCT_SEQUENCE__STRUCT: setStruct((Struct) null); return; case PrfPackage.STRUCT_SEQUENCE__STRUCT_VALUE: getStructValue().clear(); return; case PrfPackage.STRUCT_SEQUENCE__CONFIGURATION_KIND: getConfigurationKind().clear(); return; } super.eUnset(featureID); }
/** * * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated */ @SuppressWarnings("unchecked") @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case PrfPackage.STRUCT_SEQUENCE__STRUCT: setStruct((Struct) newValue); return; case PrfPackage.STRUCT_SEQUENCE__STRUCT_VALUE: getStructValue().clear(); getStructValue().addAll((Collection<? extends StructValue>) newValue); return; case PrfPackage.STRUCT_SEQUENCE__CONFIGURATION_KIND: getConfigurationKind().clear(); getConfigurationKind().addAll((Collection<? extends ConfigurationKind>) newValue); return; } super.eSet(featureID, newValue); }
@Override public void notifyChanged(Notification notification) { super.notifyChanged(notification); if (notification.getNotifier() instanceof Simple) { switch (notification.getFeatureID(Simple.class)) { case PrfPackage.SIMPLE__ID: updateSimpleRefID(notification); break; default: break; } } else if (notification.getNotifier() instanceof Struct) { switch (notification.getFeatureID(Struct.class)) { case PrfPackage.STRUCT__SIMPLE: updateSimpleRefs(notification); break; default: break; } } }