Ejemplo n.º 1
0
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 @Override
 public void eUnset(int featureID) {
   switch (featureID) {
     case ServicesPackage.ABSTRACT_SETTING__SETTING_TYPE:
       setSettingType((SettingType) null);
       return;
     case ServicesPackage.ABSTRACT_SETTING__USER_EXPOSED:
       setUserExposed(USER_EXPOSED_EDEFAULT);
       return;
     case ServicesPackage.ABSTRACT_SETTING__USER_EDITABLE:
       setUserEditable(USER_EDITABLE_EDEFAULT);
       return;
     case ServicesPackage.ABSTRACT_SETTING__CAN_BE_PUBLISHED:
       setCanBePublished(CAN_BE_PUBLISHED_EDEFAULT);
       return;
     case ServicesPackage.ABSTRACT_SETTING__READABLE:
       setReadable(READABLE_EDEFAULT);
       return;
     case ServicesPackage.ABSTRACT_SETTING__WRITABLE:
       setWritable(WRITABLE_EDEFAULT);
       return;
     case ServicesPackage.ABSTRACT_SETTING__SETTING_CONSTRAINTS:
       getSettingConstraints().clear();
       return;
     case ServicesPackage.ABSTRACT_SETTING__REQUIRES_PARAMS:
       getRequiresParams().clear();
       return;
     case ServicesPackage.ABSTRACT_SETTING__OPTIONAL:
       setOptional(OPTIONAL_EDEFAULT);
       return;
   }
   super.eUnset(featureID);
 }
Ejemplo n.º 2
0
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 @SuppressWarnings("unchecked")
 @Override
 public void eSet(int featureID, Object newValue) {
   switch (featureID) {
     case ServicesPackage.ABSTRACT_SETTING__SETTING_TYPE:
       setSettingType((SettingType) newValue);
       return;
     case ServicesPackage.ABSTRACT_SETTING__USER_EXPOSED:
       setUserExposed((Boolean) newValue);
       return;
     case ServicesPackage.ABSTRACT_SETTING__USER_EDITABLE:
       setUserEditable((Boolean) newValue);
       return;
     case ServicesPackage.ABSTRACT_SETTING__CAN_BE_PUBLISHED:
       setCanBePublished((Boolean) newValue);
       return;
     case ServicesPackage.ABSTRACT_SETTING__READABLE:
       setReadable((Boolean) newValue);
       return;
     case ServicesPackage.ABSTRACT_SETTING__WRITABLE:
       setWritable((Boolean) newValue);
       return;
     case ServicesPackage.ABSTRACT_SETTING__SETTING_CONSTRAINTS:
       getSettingConstraints().clear();
       getSettingConstraints().addAll((Collection<? extends SettingConstraint>) newValue);
       return;
     case ServicesPackage.ABSTRACT_SETTING__REQUIRES_PARAMS:
       getRequiresParams().clear();
       getRequiresParams().addAll((Collection<? extends AbstractSetting>) newValue);
       return;
     case ServicesPackage.ABSTRACT_SETTING__OPTIONAL:
       setOptional((Boolean) newValue);
       return;
   }
   super.eSet(featureID, newValue);
 }