예제 #1
0
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 @Override
 public void eUnset(int featureID) {
   switch (featureID) {
     case EcorePackage.EPACKAGE__NS_URI:
       setNsURI(NS_URI_EDEFAULT);
       return;
     case EcorePackage.EPACKAGE__NS_PREFIX:
       setNsPrefix(NS_PREFIX_EDEFAULT);
       return;
     case EcorePackage.EPACKAGE__EFACTORY_INSTANCE:
       setEFactoryInstance((EFactory) null);
       return;
     case EcorePackage.EPACKAGE__ECLASSIFIERS:
       getEClassifiers().clear();
       return;
     case EcorePackage.EPACKAGE__ESUBPACKAGES:
       getESubpackages().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 EcorePackage.EPACKAGE__NS_URI:
       setNsURI((String) newValue);
       return;
     case EcorePackage.EPACKAGE__NS_PREFIX:
       setNsPrefix((String) newValue);
       return;
     case EcorePackage.EPACKAGE__EFACTORY_INSTANCE:
       setEFactoryInstance((EFactory) newValue);
       return;
     case EcorePackage.EPACKAGE__ECLASSIFIERS:
       getEClassifiers().clear();
       getEClassifiers().addAll((Collection<? extends EClassifier>) newValue);
       return;
     case EcorePackage.EPACKAGE__ESUBPACKAGES:
       getESubpackages().clear();
       getESubpackages().addAll((Collection<? extends EPackage>) newValue);
       return;
   }
   super.eSet(featureID, newValue);
 }