/**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 @SuppressWarnings("unchecked")
 @Override
 public void eSet(int featureID, Object newValue) {
   switch (featureID) {
     case XmlmapPackage.TREE_NODE__CHILDREN:
       getChildren().clear();
       getChildren().addAll((Collection<? extends TreeNode>) newValue);
       return;
     case XmlmapPackage.TREE_NODE__XPATH:
       setXpath((String) newValue);
       return;
     case XmlmapPackage.TREE_NODE__LOOP:
       setLoop((Boolean) newValue);
       return;
     case XmlmapPackage.TREE_NODE__NODE_TYPE:
       setNodeType((NodeType) newValue);
       return;
     case XmlmapPackage.TREE_NODE__PATTERN:
       setPattern((String) newValue);
       return;
     case XmlmapPackage.TREE_NODE__KEY:
       setKey((Boolean) newValue);
       return;
     case XmlmapPackage.TREE_NODE__GROUP:
       setGroup((Boolean) newValue);
       return;
     case XmlmapPackage.TREE_NODE__MAIN:
       setMain((Boolean) newValue);
       return;
     case XmlmapPackage.TREE_NODE__LOOKUP_OUTGOING_CONNECTIONS:
       getLookupOutgoingConnections().clear();
       getLookupOutgoingConnections().addAll((Collection<? extends LookupConnection>) newValue);
       return;
     case XmlmapPackage.TREE_NODE__LOOKUP_INCOMING_CONNECTIONS:
       getLookupIncomingConnections().clear();
       getLookupIncomingConnections().addAll((Collection<? extends LookupConnection>) newValue);
       return;
     case XmlmapPackage.TREE_NODE__DEFAULT_VALUE:
       setDefaultValue((String) newValue);
       return;
     case XmlmapPackage.TREE_NODE__NULLABLE:
       setNullable((Boolean) newValue);
       return;
     case XmlmapPackage.TREE_NODE__CHOICE:
       setChoice((Boolean) newValue);
       return;
     case XmlmapPackage.TREE_NODE__SUBSTITUTION:
       setSubstitution((Boolean) newValue);
       return;
     case XmlmapPackage.TREE_NODE__OPTIONAL:
       setOptional((Boolean) newValue);
       return;
   }
   super.eSet(featureID, newValue);
 }
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 @Override
 public void eUnset(int featureID) {
   switch (featureID) {
     case EditorPackage.COMPOSITE_NODE__CHILDREN:
       getChildren().clear();
       return;
     case EditorPackage.COMPOSITE_NODE__LOOKAHEAD_LEAF_NODES:
       getLookaheadLeafNodes().clear();
       return;
   }
   super.eUnset(featureID);
 }
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 @Override
 public void eUnset(int featureID) {
   switch (featureID) {
     case XmlmapPackage.TREE_NODE__CHILDREN:
       getChildren().clear();
       return;
     case XmlmapPackage.TREE_NODE__XPATH:
       setXpath(XPATH_EDEFAULT);
       return;
     case XmlmapPackage.TREE_NODE__LOOP:
       setLoop(LOOP_EDEFAULT);
       return;
     case XmlmapPackage.TREE_NODE__NODE_TYPE:
       setNodeType(NODE_TYPE_EDEFAULT);
       return;
     case XmlmapPackage.TREE_NODE__PATTERN:
       setPattern(PATTERN_EDEFAULT);
       return;
     case XmlmapPackage.TREE_NODE__KEY:
       setKey(KEY_EDEFAULT);
       return;
     case XmlmapPackage.TREE_NODE__GROUP:
       setGroup(GROUP_EDEFAULT);
       return;
     case XmlmapPackage.TREE_NODE__MAIN:
       setMain(MAIN_EDEFAULT);
       return;
     case XmlmapPackage.TREE_NODE__LOOKUP_OUTGOING_CONNECTIONS:
       getLookupOutgoingConnections().clear();
       return;
     case XmlmapPackage.TREE_NODE__LOOKUP_INCOMING_CONNECTIONS:
       getLookupIncomingConnections().clear();
       return;
     case XmlmapPackage.TREE_NODE__DEFAULT_VALUE:
       setDefaultValue(DEFAULT_VALUE_EDEFAULT);
       return;
     case XmlmapPackage.TREE_NODE__NULLABLE:
       setNullable(NULLABLE_EDEFAULT);
       return;
     case XmlmapPackage.TREE_NODE__CHOICE:
       setChoice(CHOICE_EDEFAULT);
       return;
     case XmlmapPackage.TREE_NODE__SUBSTITUTION:
       setSubstitution(SUBSTITUTION_EDEFAULT);
       return;
     case XmlmapPackage.TREE_NODE__OPTIONAL:
       setOptional(OPTIONAL_EDEFAULT);
       return;
   }
   super.eUnset(featureID);
 }
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 @SuppressWarnings("unchecked")
 @Override
 public void eSet(int featureID, Object newValue) {
   switch (featureID) {
     case EditorPackage.COMPOSITE_NODE__CHILDREN:
       getChildren().clear();
       getChildren().addAll((Collection<? extends AbstractNode>) newValue);
       return;
     case EditorPackage.COMPOSITE_NODE__LOOKAHEAD_LEAF_NODES:
       getLookaheadLeafNodes().clear();
       getLookaheadLeafNodes().addAll((Collection<? extends LeafNode>) newValue);
       return;
   }
   super.eSet(featureID, newValue);
 }