Exemplo n.º 1
0
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 @Override
 public void eUnset(int featureID) {
   switch (featureID) {
     case B3BuildPackage.REPOSITORY__NAME:
       setName(NAME_EDEFAULT);
       return;
     case B3BuildPackage.REPOSITORY__BRANCHES:
       getBranches().clear();
       return;
     case B3BuildPackage.REPOSITORY__DOCUMENTATION:
       setDocumentation(DOCUMENTATION_EDEFAULT);
       return;
     case B3BuildPackage.REPOSITORY__HANDLER_TYPE:
       setHandlerType(HANDLER_TYPE_EDEFAULT);
       return;
     case B3BuildPackage.REPOSITORY__OPTIONS:
       getOptions().clear();
       return;
     case B3BuildPackage.REPOSITORY__BUILD_UNIT_REPOSITORY:
       setBuildUnitRepository((IBuildUnitRepository) null);
       return;
     case B3BuildPackage.REPOSITORY__ADDRESS:
       setAddress((BExpression) null);
       return;
   }
   super.eUnset(featureID);
 }
Exemplo n.º 2
0
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 @SuppressWarnings("unchecked")
 @Override
 public void eSet(int featureID, Object newValue) {
   switch (featureID) {
     case B3BuildPackage.REPOSITORY__NAME:
       setName((String) newValue);
       return;
     case B3BuildPackage.REPOSITORY__BRANCHES:
       getBranches().clear();
       getBranches().addAll((Collection<? extends Branch>) newValue);
       return;
     case B3BuildPackage.REPOSITORY__DOCUMENTATION:
       setDocumentation((String) newValue);
       return;
     case B3BuildPackage.REPOSITORY__HANDLER_TYPE:
       setHandlerType((String) newValue);
       return;
     case B3BuildPackage.REPOSITORY__OPTIONS:
       getOptions().clear();
       getOptions().addAll((Collection<? extends RepoOption>) newValue);
       return;
     case B3BuildPackage.REPOSITORY__BUILD_UNIT_REPOSITORY:
       setBuildUnitRepository((IBuildUnitRepository) newValue);
       return;
     case B3BuildPackage.REPOSITORY__ADDRESS:
       setAddress((BExpression) newValue);
       return;
   }
   super.eSet(featureID, newValue);
 }