projectEClass = createEClass(PROJECT); createEReference(projectEClass, PROJECT__PLUGINS); createEAttribute(projectEClass, PROJECT__NAME); createEReference(projectEClass, PROJECT__REPOSITORIES); createEReference(projectEClass, PROJECT__DEPENDENCIES); createEReference(projectEClass, PROJECT__VIEWS); createEReference(projectEClass, PROJECT__PROPERTIES); pluginEClass = createEClass(PLUGIN); createEReference(pluginEClass, PLUGIN__REPOSITORIES); createEReference(pluginEClass, PLUGIN__OUTPUT_PORTS); createEReference(pluginEClass, PLUGIN__DISPLAYS); portEClass = createEClass(PORT); createEAttribute(portEClass, PORT__NAME); createEAttribute(portEClass, PORT__EVENT_TYPES); createEAttribute(portEClass, PORT__ID); inputPortEClass = createEClass(INPUT_PORT); createEReference(inputPortEClass, INPUT_PORT__PARENT); outputPortEClass = createEClass(OUTPUT_PORT); createEReference(outputPortEClass, OUTPUT_PORT__SUBSCRIBERS); createEReference(outputPortEClass, OUTPUT_PORT__PARENT); propertyEClass = createEClass(PROPERTY); createEAttribute(propertyEClass, PROPERTY__NAME); createEAttribute(propertyEClass, PROPERTY__VALUE);
setName(eNAME); setNsPrefix(eNS_PREFIX); setNsURI(eNS_URI); pluginEClass.getESuperTypes().add(this.getAnalysisComponent()); inputPortEClass.getESuperTypes().add(this.getPort()); outputPortEClass.getESuperTypes().add(this.getPort()); filterEClass.getESuperTypes().add(this.getPlugin()); readerEClass.getESuperTypes().add(this.getPlugin()); repositoryEClass.getESuperTypes().add(this.getAnalysisComponent()); initEClass(projectEClass, MIProject.class, "Project", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getProject_Plugins(), this.getPlugin(), null, "plugins", null, 0, -1, MIProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getProject_Name(), ecorePackage.getEString(), "name", null, 1, 1, MIProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getProject_Repositories(), this.getRepository(), null, "repositories", null, 0, -1, MIProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getProject_Dependencies(), this.getDependency(), null, "dependencies", null, 0, -1, MIProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getProject_Views(), this.getView(), null, "views", null, 0, -1, MIProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getProject_Properties(), this.getProperty(), null, "properties", null, 0, -1, MIProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(pluginEClass, MIPlugin.class, "Plugin", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getPlugin_Repositories(), this.getRepositoryConnector(), null, "repositories", null, 0, -1, MIPlugin.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getPlugin_OutputPorts(), this.getOutputPort(), this.getOutputPort_Parent(), "outputPorts", null, 0, -1, MIPlugin.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getPlugin_Displays(), this.getDisplay(), this.getDisplay_Parent(), "displays", null, 0, -1, MIPlugin.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(portEClass, MIPort.class, "Port", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getPort_Name(), ecorePackage.getEString(), "name", null, 1, 1, MIPort.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getPort_EventTypes(), ecorePackage.getEString(), "eventTypes", null, 1, -1, MIPort.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getPort_Id(), ecorePackage.getEString(), "id", null, 1, 1, MIPort.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
/** * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. * * <p>This method is used to initialize {@link MIAnalysisMetaModelPackage#eINSTANCE} when that field is accessed. * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #eNS_URI * @see #createPackageContents() * @see #initializePackageContents() * @generated */ public static MIAnalysisMetaModelPackage init() { if (isInited) return (MIAnalysisMetaModelPackage)EPackage.Registry.INSTANCE.getEPackage(MIAnalysisMetaModelPackage.eNS_URI); // Obtain or create and register package MAnalysisMetaModelPackage theAnalysisMetaModelPackage = (MAnalysisMetaModelPackage)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof MAnalysisMetaModelPackage ? EPackage.Registry.INSTANCE.get(eNS_URI) : new MAnalysisMetaModelPackage()); isInited = true; // Create package meta-data objects theAnalysisMetaModelPackage.createPackageContents(); // Initialize created meta-data theAnalysisMetaModelPackage.initializePackageContents(); // Mark meta-data to indicate it can't be changed theAnalysisMetaModelPackage.freeze(); // Update the registry and return the package EPackage.Registry.INSTANCE.put(MIAnalysisMetaModelPackage.eNS_URI, theAnalysisMetaModelPackage); return theAnalysisMetaModelPackage; }
setName(eNAME); setNsPrefix(eNS_PREFIX); setNsURI(eNS_URI); pluginEClass.getESuperTypes().add(this.getAnalysisComponent()); inputPortEClass.getESuperTypes().add(this.getPort()); outputPortEClass.getESuperTypes().add(this.getPort()); filterEClass.getESuperTypes().add(this.getPlugin()); readerEClass.getESuperTypes().add(this.getPlugin()); repositoryEClass.getESuperTypes().add(this.getAnalysisComponent()); initEClass(projectEClass, MIProject.class, "Project", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getProject_Plugins(), this.getPlugin(), null, "plugins", null, 0, -1, MIProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getProject_Name(), ecorePackage.getEString(), "name", null, 1, 1, MIProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getProject_Repositories(), this.getRepository(), null, "repositories", null, 0, -1, MIProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getProject_Dependencies(), this.getDependency(), null, "dependencies", null, 0, -1, MIProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getProject_Views(), this.getView(), null, "views", null, 0, -1, MIProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getProject_Properties(), this.getProperty(), null, "properties", null, 0, -1, MIProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(pluginEClass, MIPlugin.class, "Plugin", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getPlugin_Repositories(), this.getRepositoryConnector(), null, "repositories", null, 0, -1, MIPlugin.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getPlugin_OutputPorts(), this.getOutputPort(), this.getOutputPort_Parent(), "outputPorts", null, 0, -1, MIPlugin.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getPlugin_Displays(), this.getDisplay(), this.getDisplay_Parent(), "displays", null, 0, -1, MIPlugin.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(portEClass, MIPort.class, "Port", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getPort_Name(), ecorePackage.getEString(), "name", null, 1, 1, MIPort.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getPort_EventTypes(), ecorePackage.getEString(), "eventTypes", null, 1, -1, MIPort.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getPort_Id(), ecorePackage.getEString(), "id", null, 1, 1, MIPort.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
/** * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. * * <p>This method is used to initialize {@link MIAnalysisMetaModelPackage#eINSTANCE} when that field is accessed. * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #eNS_URI * @see #createPackageContents() * @see #initializePackageContents() * @generated */ public static MIAnalysisMetaModelPackage init() { if (isInited) return (MIAnalysisMetaModelPackage)EPackage.Registry.INSTANCE.getEPackage(MIAnalysisMetaModelPackage.eNS_URI); // Obtain or create and register package MAnalysisMetaModelPackage theAnalysisMetaModelPackage = (MAnalysisMetaModelPackage)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof MAnalysisMetaModelPackage ? EPackage.Registry.INSTANCE.get(eNS_URI) : new MAnalysisMetaModelPackage()); isInited = true; // Create package meta-data objects theAnalysisMetaModelPackage.createPackageContents(); // Initialize created meta-data theAnalysisMetaModelPackage.initializePackageContents(); // Mark meta-data to indicate it can't be changed theAnalysisMetaModelPackage.freeze(); // Update the registry and return the package EPackage.Registry.INSTANCE.put(MIAnalysisMetaModelPackage.eNS_URI, theAnalysisMetaModelPackage); return theAnalysisMetaModelPackage; }
projectEClass = createEClass(PROJECT); createEReference(projectEClass, PROJECT__PLUGINS); createEAttribute(projectEClass, PROJECT__NAME); createEReference(projectEClass, PROJECT__REPOSITORIES); createEReference(projectEClass, PROJECT__DEPENDENCIES); createEReference(projectEClass, PROJECT__VIEWS); createEReference(projectEClass, PROJECT__PROPERTIES); pluginEClass = createEClass(PLUGIN); createEReference(pluginEClass, PLUGIN__REPOSITORIES); createEReference(pluginEClass, PLUGIN__OUTPUT_PORTS); createEReference(pluginEClass, PLUGIN__DISPLAYS); portEClass = createEClass(PORT); createEAttribute(portEClass, PORT__NAME); createEAttribute(portEClass, PORT__EVENT_TYPES); createEAttribute(portEClass, PORT__ID); inputPortEClass = createEClass(INPUT_PORT); createEReference(inputPortEClass, INPUT_PORT__PARENT); outputPortEClass = createEClass(OUTPUT_PORT); createEReference(outputPortEClass, OUTPUT_PORT__SUBSCRIBERS); createEReference(outputPortEClass, OUTPUT_PORT__PARENT); propertyEClass = createEClass(PROPERTY); createEAttribute(propertyEClass, PROPERTY__NAME); createEAttribute(propertyEClass, PROPERTY__VALUE);