コード例 #1
0
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 @Override
 public void eUnset(int featureID) {
   switch (featureID) {
     case HwStorageManagerPackage.HW_STORAGE_MANAGER__ELEMENT_SIZE:
       setElementSize(ELEMENT_SIZE_EDEFAULT);
       return;
     case HwStorageManagerPackage.HW_STORAGE_MANAGER__MANAGED_MEMORIES:
       getManagedMemories().clear();
       return;
   }
   super.eUnset(featureID);
 }
コード例 #2
0
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 @SuppressWarnings("unchecked")
 @Override
 public void eSet(int featureID, Object newValue) {
   switch (featureID) {
     case HwStorageManagerPackage.HW_STORAGE_MANAGER__ELEMENT_SIZE:
       setElementSize((String) newValue);
       return;
     case HwStorageManagerPackage.HW_STORAGE_MANAGER__MANAGED_MEMORIES:
       getManagedMemories().clear();
       getManagedMemories().addAll((Collection<? extends HwMemory>) newValue);
       return;
   }
   super.eSet(featureID, newValue);
 }