/** * * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case ContentfwkPackage.ELEMENT__DELEGATES: getDelegates().clear(); return; case ContentfwkPackage.ELEMENT__IS_DELEGATED_BY: getIsDelegatedBy().clear(); return; case ContentfwkPackage.ELEMENT__NAME: setName(NAME_EDEFAULT); return; case ContentfwkPackage.ELEMENT__DESCRIPTION: setDescription(DESCRIPTION_EDEFAULT); return; case ContentfwkPackage.ELEMENT__CATEGORY: setCategory(CATEGORY_EDEFAULT); return; case ContentfwkPackage.ELEMENT__SOURCE_DESCR: setSourceDescr(SOURCE_DESCR_EDEFAULT); return; case ContentfwkPackage.ELEMENT__OWNER_DESCR: setOwnerDescr(OWNER_DESCR_EDEFAULT); return; case ContentfwkPackage.ELEMENT__ID: setID(ID_EDEFAULT); return; } super.eUnset(featureID); }
/** * * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated */ @SuppressWarnings("unchecked") @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case ContentfwkPackage.ELEMENT__DELEGATES: getDelegates().clear(); getDelegates().addAll((Collection<? extends Element>) newValue); return; case ContentfwkPackage.ELEMENT__IS_DELEGATED_BY: getIsDelegatedBy().clear(); getIsDelegatedBy().addAll((Collection<? extends Element>) newValue); return; case ContentfwkPackage.ELEMENT__NAME: setName((String) newValue); return; case ContentfwkPackage.ELEMENT__DESCRIPTION: setDescription((String) newValue); return; case ContentfwkPackage.ELEMENT__CATEGORY: setCategory((String) newValue); return; case ContentfwkPackage.ELEMENT__SOURCE_DESCR: setSourceDescr((String) newValue); return; case ContentfwkPackage.ELEMENT__OWNER_DESCR: setOwnerDescr((String) newValue); return; case ContentfwkPackage.ELEMENT__ID: setID((String) newValue); return; } super.eSet(featureID, newValue); }