Exemplo n.º 1
0
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 @SuppressWarnings("unchecked")
 @Override
 public void eSet(int featureID, Object newValue) {
   switch (featureID) {
     case StatemachinePackage.STATE_MACHINE__TRANSITIONS:
       getTransitions().clear();
       getTransitions().addAll((Collection<? extends Transition>) newValue);
       return;
     case StatemachinePackage.STATE_MACHINE__TOP:
       getTop().clear();
       getTop().addAll((Collection<? extends State>) newValue);
       return;
     case StatemachinePackage.STATE_MACHINE__STATEMACHINE_CONTAINER:
       setStatemachine_container((StateMachineRoot) newValue);
       return;
     case StatemachinePackage.STATE_MACHINE__CALLED_BY_ACTION:
       getCalledByAction().clear();
       getCalledByAction().addAll((Collection<? extends Action>) newValue);
       return;
     case StatemachinePackage.STATE_MACHINE__NAME:
       setName((String) newValue);
       return;
     case StatemachinePackage.STATE_MACHINE__INITIAL_STATE:
       setInitialState((State) newValue);
       return;
   }
   super.eSet(featureID, newValue);
 }
Exemplo n.º 2
0
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 @Override
 public void eUnset(int featureID) {
   switch (featureID) {
     case StatemachinePackage.STATE_MACHINE__TRANSITIONS:
       getTransitions().clear();
       return;
     case StatemachinePackage.STATE_MACHINE__TOP:
       getTop().clear();
       return;
     case StatemachinePackage.STATE_MACHINE__STATEMACHINE_CONTAINER:
       setStatemachine_container((StateMachineRoot) null);
       return;
     case StatemachinePackage.STATE_MACHINE__CALLED_BY_ACTION:
       getCalledByAction().clear();
       return;
     case StatemachinePackage.STATE_MACHINE__NAME:
       setName(NAME_EDEFAULT);
       return;
     case StatemachinePackage.STATE_MACHINE__INITIAL_STATE:
       setInitialState((State) null);
       return;
   }
   super.eUnset(featureID);
 }