/**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 @SuppressWarnings("unchecked")
 @Override
 public void eSet(int featureID, Object newValue) {
   switch (featureID) {
     case XsdPackage.XSD_DIAGNOSTIC__SEVERITY:
       setSeverity((XSDDiagnosticSeverity) newValue);
       return;
     case XsdPackage.XSD_DIAGNOSTIC__MESSAGE:
       setMessage((String) newValue);
       return;
     case XsdPackage.XSD_DIAGNOSTIC__LOCATION_URI:
       setLocationURI((String) newValue);
       return;
     case XsdPackage.XSD_DIAGNOSTIC__LINE:
       setLine((Integer) newValue);
       return;
     case XsdPackage.XSD_DIAGNOSTIC__COLUMN:
       setColumn((Integer) newValue);
       return;
     case XsdPackage.XSD_DIAGNOSTIC__NODE:
       setNode((Node) newValue);
       return;
     case XsdPackage.XSD_DIAGNOSTIC__ANNOTATION_URI:
       setAnnotationURI((String) newValue);
       return;
     case XsdPackage.XSD_DIAGNOSTIC__KEY:
       setKey((String) newValue);
       return;
     case XsdPackage.XSD_DIAGNOSTIC__SUBSTITUTIONS:
       getSubstitutions().clear();
       getSubstitutions().addAll((Collection<? extends String>) newValue);
       return;
     case XsdPackage.XSD_DIAGNOSTIC__COMPONENTS:
       getComponents().clear();
       getComponents().addAll((Collection<? extends XSDConcreteComponent>) newValue);
       return;
     case XsdPackage.XSD_DIAGNOSTIC__PRIMARY_COMPONENT:
       setPrimaryComponent((XSDConcreteComponent) newValue);
       return;
   }
   super.eSet(featureID, newValue);
 }
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 @Override
 public void eUnset(int featureID) {
   switch (featureID) {
     case XsdPackage.XSD_DIAGNOSTIC__SEVERITY:
       setSeverity(SEVERITY_EDEFAULT);
       return;
     case XsdPackage.XSD_DIAGNOSTIC__MESSAGE:
       setMessage(MESSAGE_EDEFAULT);
       return;
     case XsdPackage.XSD_DIAGNOSTIC__LOCATION_URI:
       setLocationURI(LOCATION_URI_EDEFAULT);
       return;
     case XsdPackage.XSD_DIAGNOSTIC__LINE:
       setLine(LINE_EDEFAULT);
       return;
     case XsdPackage.XSD_DIAGNOSTIC__COLUMN:
       setColumn(COLUMN_EDEFAULT);
       return;
     case XsdPackage.XSD_DIAGNOSTIC__NODE:
       setNode(NODE_EDEFAULT);
       return;
     case XsdPackage.XSD_DIAGNOSTIC__ANNOTATION_URI:
       setAnnotationURI(ANNOTATION_URI_EDEFAULT);
       return;
     case XsdPackage.XSD_DIAGNOSTIC__KEY:
       setKey(KEY_EDEFAULT);
       return;
     case XsdPackage.XSD_DIAGNOSTIC__SUBSTITUTIONS:
       getSubstitutions().clear();
       return;
     case XsdPackage.XSD_DIAGNOSTIC__COMPONENTS:
       getComponents().clear();
       return;
     case XsdPackage.XSD_DIAGNOSTIC__PRIMARY_COMPONENT:
       setPrimaryComponent((XSDConcreteComponent) null);
       return;
   }
   super.eUnset(featureID);
 }