setName(eNAME); setNsPrefix(eNS_PREFIX); setNsURI(eNS_URI); entityEClass.getESuperTypes().add(this.getType()); primitivePropertyTypeEClass.getESuperTypes().add(this.getPropertyType()); objectPropertyTypeEClass.getESuperTypes().add(this.getPropertyType()); enumEClass.getESuperTypes().add(this.getType()); typeEClass.getESuperTypes().add(theModelPackage.getModel()); booleanPropertyAttributeEClass.getESuperTypes().add(this.getPropertyAttribute()); enumLiteralPropertyAttributeEClass.getESuperTypes().add(this.getPropertyAttribute()); complexPrimitivePropertyTypeEClass.getESuperTypes().add(this.getPropertyType()); dictionaryPropertyTypeEClass.getESuperTypes().add(this.getComplexPrimitivePropertyType()); initEClass(entityEClass, Entity.class, "Entity", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getEntity_SuperType(), this.getEntity(), null, "superType", null, 0, 1, Entity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getEntity_Properties(), this.getProperty(), null, "properties", null, 0, -1, Entity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(propertyEClass, Property.class, "Property", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getProperty_Presence(), this.getPresence(), null, "presence", null, 0, 1, Property.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getProperty_Multiplicity(), ecorePackage.getEBoolean(), "multiplicity", null, 0, 1, Property.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getProperty_Name(), ecorePackage.getEString(), "name", null, 0, 1, Property.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getProperty_Description(), ecorePackage.getEString(), "description", null, 0, 1, Property.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getProperty_ConstraintRule(), this.getConstraintRule(), null, "constraintRule", null, 0, 1, Property.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getProperty_Type(), this.getPropertyType(), null, "type", null, 0, 1, Property.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getProperty_PropertyAttributes(), this.getPropertyAttribute(), null, "propertyAttributes", null, 0, -1, Property.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getProperty_Extension(), ecorePackage.getEBoolean(), "extension", null, 0, 1, Property.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(primitivePropertyTypeEClass, PrimitivePropertyType.class, "PrimitivePropertyType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
entityEClass = createEClass(ENTITY); createEReference(entityEClass, ENTITY__SUPER_TYPE); createEReference(entityEClass, ENTITY__PROPERTIES); propertyEClass = createEClass(PROPERTY); createEReference(propertyEClass, PROPERTY__PRESENCE); createEAttribute(propertyEClass, PROPERTY__MULTIPLICITY); createEAttribute(propertyEClass, PROPERTY__NAME); createEAttribute(propertyEClass, PROPERTY__DESCRIPTION); createEReference(propertyEClass, PROPERTY__CONSTRAINT_RULE); createEReference(propertyEClass, PROPERTY__TYPE); createEReference(propertyEClass, PROPERTY__PROPERTY_ATTRIBUTES); primitivePropertyTypeEClass = createEClass(PRIMITIVE_PROPERTY_TYPE); createEAttribute(primitivePropertyTypeEClass, PRIMITIVE_PROPERTY_TYPE__TYPE); objectPropertyTypeEClass = createEClass(OBJECT_PROPERTY_TYPE); createEReference(objectPropertyTypeEClass, OBJECT_PROPERTY_TYPE__TYPE); presenceEClass = createEClass(PRESENCE); createEAttribute(presenceEClass, PRESENCE__MANDATORY); constraintEClass = createEClass(CONSTRAINT); createEAttribute(constraintEClass, CONSTRAINT__TYPE); createEAttribute(constraintEClass, CONSTRAINT__CONSTRAINT_VALUES); enumEClass = createEClass(ENUM); createEReference(enumEClass, ENUM__ENUMS);
DatatypePackageImpl theDatatypePackage = (DatatypePackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof DatatypePackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new DatatypePackageImpl()); theDatatypePackage.createPackageContents(); theModelPackage.createPackageContents(); theDatatypePackage.initializePackageContents(); theModelPackage.initializePackageContents(); theDatatypePackage.freeze();
theDatatypePackage.createPackageContents(); theDatatypePackage.initializePackageContents();
DatatypePackageImpl theDatatypePackage = (DatatypePackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof DatatypePackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new DatatypePackageImpl()); theDatatypePackage.createPackageContents(); theModelPackage.createPackageContents(); theDatatypePackage.initializePackageContents(); theModelPackage.initializePackageContents(); theDatatypePackage.freeze();
setName(eNAME); setNsPrefix(eNS_PREFIX); setNsURI(eNS_URI); entityEClass.getESuperTypes().add(this.getType()); primitivePropertyTypeEClass.getESuperTypes().add(this.getPropertyType()); objectPropertyTypeEClass.getESuperTypes().add(this.getPropertyType()); enumEClass.getESuperTypes().add(this.getType()); typeEClass.getESuperTypes().add(theModelPackage.getModel()); booleanPropertyAttributeEClass.getESuperTypes().add(this.getPropertyAttribute()); enumLiteralPropertyAttributeEClass.getESuperTypes().add(this.getPropertyAttribute()); complexPrimitivePropertyTypeEClass.getESuperTypes().add(this.getPropertyType()); dictionaryPropertyTypeEClass.getESuperTypes().add(this.getComplexPrimitivePropertyType()); initEClass(entityEClass, Entity.class, "Entity", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getEntity_SuperType(), this.getEntity(), null, "superType", null, 0, 1, Entity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getEntity_Properties(), this.getProperty(), null, "properties", null, 0, -1, Entity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(propertyEClass, Property.class, "Property", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getProperty_Presence(), this.getPresence(), null, "presence", null, 0, 1, Property.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getProperty_Multiplicity(), ecorePackage.getEBoolean(), "multiplicity", null, 0, 1, Property.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getProperty_Name(), ecorePackage.getEString(), "name", null, 0, 1, Property.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getProperty_Description(), ecorePackage.getEString(), "description", null, 0, 1, Property.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getProperty_ConstraintRule(), this.getConstraintRule(), null, "constraintRule", null, 0, 1, Property.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getProperty_Type(), this.getPropertyType(), null, "type", null, 0, 1, Property.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getProperty_PropertyAttributes(), this.getPropertyAttribute(), null, "propertyAttributes", null, 0, -1, Property.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(primitivePropertyTypeEClass, PrimitivePropertyType.class, "PrimitivePropertyType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getPrimitivePropertyType_Type(), this.getPrimitiveType(), "type", null, 0, 1, PrimitivePropertyType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
entityEClass = createEClass(ENTITY); createEReference(entityEClass, ENTITY__SUPER_TYPE); createEReference(entityEClass, ENTITY__PROPERTIES); propertyEClass = createEClass(PROPERTY); createEReference(propertyEClass, PROPERTY__PRESENCE); createEAttribute(propertyEClass, PROPERTY__MULTIPLICITY); createEAttribute(propertyEClass, PROPERTY__NAME); createEAttribute(propertyEClass, PROPERTY__DESCRIPTION); createEReference(propertyEClass, PROPERTY__CONSTRAINT_RULE); createEReference(propertyEClass, PROPERTY__TYPE); createEReference(propertyEClass, PROPERTY__PROPERTY_ATTRIBUTES); createEAttribute(propertyEClass, PROPERTY__EXTENSION); primitivePropertyTypeEClass = createEClass(PRIMITIVE_PROPERTY_TYPE); createEAttribute(primitivePropertyTypeEClass, PRIMITIVE_PROPERTY_TYPE__TYPE); objectPropertyTypeEClass = createEClass(OBJECT_PROPERTY_TYPE); createEReference(objectPropertyTypeEClass, OBJECT_PROPERTY_TYPE__TYPE); presenceEClass = createEClass(PRESENCE); createEAttribute(presenceEClass, PRESENCE__MANDATORY); constraintEClass = createEClass(CONSTRAINT); createEAttribute(constraintEClass, CONSTRAINT__TYPE); createEAttribute(constraintEClass, CONSTRAINT__CONSTRAINT_VALUES); enumEClass = createEClass(ENUM); createEReference(enumEClass, ENUM__ENUMS);