コード例 #1
0
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 @Override
 public void eUnset(int featureID) {
   switch (featureID) {
     case SchemaPackage.EXTENSION_TYPE__GROUP:
       setGroup((GroupRef) null);
       return;
     case SchemaPackage.EXTENSION_TYPE__ALL:
       setAll((All) null);
       return;
     case SchemaPackage.EXTENSION_TYPE__CHOICE:
       setChoice((ExplicitGroup) null);
       return;
     case SchemaPackage.EXTENSION_TYPE__SEQUENCE:
       setSequence((ExplicitGroup) null);
       return;
     case SchemaPackage.EXTENSION_TYPE__GROUP1:
       getGroup1().clear();
       return;
     case SchemaPackage.EXTENSION_TYPE__ATTRIBUTE:
       getAttribute().clear();
       return;
     case SchemaPackage.EXTENSION_TYPE__ATTRIBUTE_GROUP:
       getAttributeGroup().clear();
       return;
     case SchemaPackage.EXTENSION_TYPE__ANY_ATTRIBUTE1:
       setAnyAttribute1((Wildcard) null);
       return;
     case SchemaPackage.EXTENSION_TYPE__BASE:
       setBase(BASE_EDEFAULT);
       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 XMLSchema11Package.RESTRICTION_TYPE__OPEN_CONTENT:
       setOpenContent((OpenContentType) newValue);
       return;
     case XMLSchema11Package.RESTRICTION_TYPE__GROUP:
       setGroup((GroupRef) newValue);
       return;
     case XMLSchema11Package.RESTRICTION_TYPE__ALL:
       setAll((All) newValue);
       return;
     case XMLSchema11Package.RESTRICTION_TYPE__CHOICE:
       setChoice((ExplicitGroup) newValue);
       return;
     case XMLSchema11Package.RESTRICTION_TYPE__SEQUENCE:
       setSequence((ExplicitGroup) newValue);
       return;
     case XMLSchema11Package.RESTRICTION_TYPE__SIMPLE_TYPE:
       setSimpleType((LocalSimpleType) newValue);
       return;
     case XMLSchema11Package.RESTRICTION_TYPE__GROUP1:
       ((FeatureMap.Internal) getGroup1()).set(newValue);
       return;
     case XMLSchema11Package.RESTRICTION_TYPE__FACET_GROUP:
       ((FeatureMap.Internal) getFacetGroup()).set(newValue);
       return;
     case XMLSchema11Package.RESTRICTION_TYPE__ANY:
       ((FeatureMap.Internal) getAny()).set(newValue);
       return;
     case XMLSchema11Package.RESTRICTION_TYPE__GROUP2:
       ((FeatureMap.Internal) getGroup2()).set(newValue);
       return;
     case XMLSchema11Package.RESTRICTION_TYPE__ATTRIBUTE:
       getAttribute().clear();
       getAttribute().addAll((Collection<? extends Attribute>) newValue);
       return;
     case XMLSchema11Package.RESTRICTION_TYPE__ATTRIBUTE_GROUP:
       getAttributeGroup().clear();
       getAttributeGroup().addAll((Collection<? extends AttributeGroupRef>) newValue);
       return;
     case XMLSchema11Package.RESTRICTION_TYPE__ANY_ATTRIBUTE1:
       setAnyAttribute1((AnyAttributeType) newValue);
       return;
     case XMLSchema11Package.RESTRICTION_TYPE__ASSERT:
       getAssert().clear();
       getAssert().addAll((Collection<? extends Assertion>) newValue);
       return;
     case XMLSchema11Package.RESTRICTION_TYPE__BASE:
       setBase((QName) newValue);
       return;
   }
   super.eSet(featureID, newValue);
 }
コード例 #3
0
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 @Override
 public void eUnset(int featureID) {
   switch (featureID) {
     case XMLSchema11Package.RESTRICTION_TYPE__OPEN_CONTENT:
       setOpenContent((OpenContentType) null);
       return;
     case XMLSchema11Package.RESTRICTION_TYPE__GROUP:
       setGroup((GroupRef) null);
       return;
     case XMLSchema11Package.RESTRICTION_TYPE__ALL:
       setAll((All) null);
       return;
     case XMLSchema11Package.RESTRICTION_TYPE__CHOICE:
       setChoice((ExplicitGroup) null);
       return;
     case XMLSchema11Package.RESTRICTION_TYPE__SEQUENCE:
       setSequence((ExplicitGroup) null);
       return;
     case XMLSchema11Package.RESTRICTION_TYPE__SIMPLE_TYPE:
       setSimpleType((LocalSimpleType) null);
       return;
     case XMLSchema11Package.RESTRICTION_TYPE__GROUP1:
       getGroup1().clear();
       return;
     case XMLSchema11Package.RESTRICTION_TYPE__FACET_GROUP:
       getFacetGroup().clear();
       return;
     case XMLSchema11Package.RESTRICTION_TYPE__ANY:
       getAny().clear();
       return;
     case XMLSchema11Package.RESTRICTION_TYPE__GROUP2:
       getGroup2().clear();
       return;
     case XMLSchema11Package.RESTRICTION_TYPE__ATTRIBUTE:
       getAttribute().clear();
       return;
     case XMLSchema11Package.RESTRICTION_TYPE__ATTRIBUTE_GROUP:
       getAttributeGroup().clear();
       return;
     case XMLSchema11Package.RESTRICTION_TYPE__ANY_ATTRIBUTE1:
       setAnyAttribute1((AnyAttributeType) null);
       return;
     case XMLSchema11Package.RESTRICTION_TYPE__ASSERT:
       getAssert().clear();
       return;
     case XMLSchema11Package.RESTRICTION_TYPE__BASE:
       setBase(BASE_EDEFAULT);
       return;
   }
   super.eUnset(featureID);
 }
コード例 #4
0
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 @SuppressWarnings("unchecked")
 @Override
 public void eSet(int featureID, Object newValue) {
   switch (featureID) {
     case SchemaPackage.EXTENSION_TYPE__GROUP:
       setGroup((GroupRef) newValue);
       return;
     case SchemaPackage.EXTENSION_TYPE__ALL:
       setAll((All) newValue);
       return;
     case SchemaPackage.EXTENSION_TYPE__CHOICE:
       setChoice((ExplicitGroup) newValue);
       return;
     case SchemaPackage.EXTENSION_TYPE__SEQUENCE:
       setSequence((ExplicitGroup) newValue);
       return;
     case SchemaPackage.EXTENSION_TYPE__GROUP1:
       ((FeatureMap.Internal) getGroup1()).set(newValue);
       return;
     case SchemaPackage.EXTENSION_TYPE__ATTRIBUTE:
       getAttribute().clear();
       getAttribute().addAll((Collection<? extends Attribute>) newValue);
       return;
     case SchemaPackage.EXTENSION_TYPE__ATTRIBUTE_GROUP:
       getAttributeGroup().clear();
       getAttributeGroup().addAll((Collection<? extends AttributeGroupRef>) newValue);
       return;
     case SchemaPackage.EXTENSION_TYPE__ANY_ATTRIBUTE1:
       setAnyAttribute1((Wildcard) newValue);
       return;
     case SchemaPackage.EXTENSION_TYPE__BASE:
       setBase((QName) newValue);
       return;
   }
   super.eSet(featureID, newValue);
 }