/** * generated by Xtext 2.10.0 */ package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl; import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.AllPackageEntry; import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationFactory; import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage; import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Command; import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ConfigurationScript; import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Declaration; import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.EPackageImport; import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Import; import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Metamodel; import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelDeclaration; import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelElement; import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelEntry; import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelReference; import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelSpecification; import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ViatraImport; import org.eclipse.emf.ecore.EAttribute; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.EPackage; import org.eclipse.emf.ecore.EReference; import org.eclipse.emf.ecore.EcorePackage; import org.eclipse.emf.ecore.impl.EPackageImpl; import org.eclipse.viatra.query.patternlanguage.patternLanguage.PatternLanguagePackage; /** * * An implementation of the model Package. * * @generated */ public class ApplicationConfigurationPackageImpl extends EPackageImpl implements ApplicationConfigurationPackage { /** * * * @generated */ private EClass configurationScriptEClass = null; /** * * * @generated */ private EClass commandEClass = null; /** * * * @generated */ private EClass declarationEClass = null; /** * * * @generated */ private EClass importEClass = null; /** * * * @generated */ private EClass ePackageImportEClass = null; /** * * * @generated */ private EClass viatraImportEClass = null; /** * * * @generated */ private EClass metamodelSpecificationEClass = null; /** * * * @generated */ private EClass metamodelEntryEClass = null; /** * * * @generated */ private EClass allPackageEntryEClass = null; /** * * * @generated */ private EClass metamodelElementEClass = null; /** * * * @generated */ private EClass metamodelDeclarationEClass = null; /** * * * @generated */ private EClass metamodelReferenceEClass = null; /** * * * @generated */ private EClass metamodelEClass = null; /** * Creates an instance of the model Package, registered with * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package * package URI value. *

Note: the correct way to create the package is via the static * factory method {@link #init init()}, which also performs * initialization of the package, or returns the registered package, * if one already exists. * * * @see org.eclipse.emf.ecore.EPackage.Registry * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage#eNS_URI * @see #init() * @generated */ private ApplicationConfigurationPackageImpl() { super(eNS_URI, ApplicationConfigurationFactory.eINSTANCE); } /** * * * @generated */ private static boolean isInited = false; /** * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. * *

This method is used to initialize {@link ApplicationConfigurationPackage#eINSTANCE} when that field is accessed. * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. * * * @see #eNS_URI * @see #createPackageContents() * @see #initializePackageContents() * @generated */ public static ApplicationConfigurationPackage init() { if (isInited) return (ApplicationConfigurationPackage)EPackage.Registry.INSTANCE.getEPackage(ApplicationConfigurationPackage.eNS_URI); // Obtain or create and register package ApplicationConfigurationPackageImpl theApplicationConfigurationPackage = (ApplicationConfigurationPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof ApplicationConfigurationPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new ApplicationConfigurationPackageImpl()); isInited = true; // Initialize simple dependencies EcorePackage.eINSTANCE.eClass(); PatternLanguagePackage.eINSTANCE.eClass(); // Create package meta-data objects theApplicationConfigurationPackage.createPackageContents(); // Initialize created meta-data theApplicationConfigurationPackage.initializePackageContents(); // Mark meta-data to indicate it can't be changed theApplicationConfigurationPackage.freeze(); // Update the registry and return the package EPackage.Registry.INSTANCE.put(ApplicationConfigurationPackage.eNS_URI, theApplicationConfigurationPackage); return theApplicationConfigurationPackage; } /** * * * @generated */ public EClass getConfigurationScript() { return configurationScriptEClass; } /** * * * @generated */ public EReference getConfigurationScript_Imports() { return (EReference)configurationScriptEClass.getEStructuralFeatures().get(0); } /** * * * @generated */ public EReference getConfigurationScript_Commands() { return (EReference)configurationScriptEClass.getEStructuralFeatures().get(1); } /** * * * @generated */ public EClass getCommand() { return commandEClass; } /** * * * @generated */ public EClass getDeclaration() { return declarationEClass; } /** * * * @generated */ public EClass getImport() { return importEClass; } /** * * * @generated */ public EClass getEPackageImport() { return ePackageImportEClass; } /** * * * @generated */ public EReference getEPackageImport_ImportedPackage() { return (EReference)ePackageImportEClass.getEStructuralFeatures().get(0); } /** * * * @generated */ public EClass getViatraImport() { return viatraImportEClass; } /** * * * @generated */ public EReference getViatraImport_ImportedViatra() { return (EReference)viatraImportEClass.getEStructuralFeatures().get(0); } /** * * * @generated */ public EClass getMetamodelSpecification() { return metamodelSpecificationEClass; } /** * * * @generated */ public EReference getMetamodelSpecification_Entries() { return (EReference)metamodelSpecificationEClass.getEStructuralFeatures().get(0); } /** * * * @generated */ public EClass getMetamodelEntry() { return metamodelEntryEClass; } /** * * * @generated */ public EReference getMetamodelEntry_Package() { return (EReference)metamodelEntryEClass.getEStructuralFeatures().get(0); } /** * * * @generated */ public EClass getAllPackageEntry() { return allPackageEntryEClass; } /** * * * @generated */ public EReference getAllPackageEntry_Exclusion() { return (EReference)allPackageEntryEClass.getEStructuralFeatures().get(0); } /** * * * @generated */ public EClass getMetamodelElement() { return metamodelElementEClass; } /** * * * @generated */ public EReference getMetamodelElement_Classifier() { return (EReference)metamodelElementEClass.getEStructuralFeatures().get(0); } /** * * * @generated */ public EReference getMetamodelElement_Feature() { return (EReference)metamodelElementEClass.getEStructuralFeatures().get(1); } /** * * * @generated */ public EClass getMetamodelDeclaration() { return metamodelDeclarationEClass; } /** * * * @generated */ public EAttribute getMetamodelDeclaration_Name() { return (EAttribute)metamodelDeclarationEClass.getEStructuralFeatures().get(0); } /** * * * @generated */ public EReference getMetamodelDeclaration_Specification() { return (EReference)metamodelDeclarationEClass.getEStructuralFeatures().get(1); } /** * * * @generated */ public EClass getMetamodelReference() { return metamodelReferenceEClass; } /** * * * @generated */ public EReference getMetamodelReference_Referred() { return (EReference)metamodelReferenceEClass.getEStructuralFeatures().get(0); } /** * * * @generated */ public EClass getMetamodel() { return metamodelEClass; } /** * * * @generated */ public ApplicationConfigurationFactory getApplicationConfigurationFactory() { return (ApplicationConfigurationFactory)getEFactoryInstance(); } /** * * * @generated */ private boolean isCreated = false; /** * Creates the meta-model objects for the package. This method is * guarded to have no affect on any invocation but its first. * * * @generated */ public void createPackageContents() { if (isCreated) return; isCreated = true; // Create classes and their features configurationScriptEClass = createEClass(CONFIGURATION_SCRIPT); createEReference(configurationScriptEClass, CONFIGURATION_SCRIPT__IMPORTS); createEReference(configurationScriptEClass, CONFIGURATION_SCRIPT__COMMANDS); commandEClass = createEClass(COMMAND); declarationEClass = createEClass(DECLARATION); importEClass = createEClass(IMPORT); ePackageImportEClass = createEClass(EPACKAGE_IMPORT); createEReference(ePackageImportEClass, EPACKAGE_IMPORT__IMPORTED_PACKAGE); viatraImportEClass = createEClass(VIATRA_IMPORT); createEReference(viatraImportEClass, VIATRA_IMPORT__IMPORTED_VIATRA); metamodelSpecificationEClass = createEClass(METAMODEL_SPECIFICATION); createEReference(metamodelSpecificationEClass, METAMODEL_SPECIFICATION__ENTRIES); metamodelEntryEClass = createEClass(METAMODEL_ENTRY); createEReference(metamodelEntryEClass, METAMODEL_ENTRY__PACKAGE); allPackageEntryEClass = createEClass(ALL_PACKAGE_ENTRY); createEReference(allPackageEntryEClass, ALL_PACKAGE_ENTRY__EXCLUSION); metamodelElementEClass = createEClass(METAMODEL_ELEMENT); createEReference(metamodelElementEClass, METAMODEL_ELEMENT__CLASSIFIER); createEReference(metamodelElementEClass, METAMODEL_ELEMENT__FEATURE); metamodelDeclarationEClass = createEClass(METAMODEL_DECLARATION); createEAttribute(metamodelDeclarationEClass, METAMODEL_DECLARATION__NAME); createEReference(metamodelDeclarationEClass, METAMODEL_DECLARATION__SPECIFICATION); metamodelReferenceEClass = createEClass(METAMODEL_REFERENCE); createEReference(metamodelReferenceEClass, METAMODEL_REFERENCE__REFERRED); metamodelEClass = createEClass(METAMODEL); } /** * * * @generated */ private boolean isInitialized = false; /** * Complete the initialization of the package and its meta-model. This * method is guarded to have no affect on any invocation but its first. * * * @generated */ public void initializePackageContents() { if (isInitialized) return; isInitialized = true; // Initialize package setName(eNAME); setNsPrefix(eNS_PREFIX); setNsURI(eNS_URI); // Obtain other dependent packages EcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI); PatternLanguagePackage thePatternLanguagePackage = (PatternLanguagePackage)EPackage.Registry.INSTANCE.getEPackage(PatternLanguagePackage.eNS_URI); // Create type parameters // Set bounds for type parameters // Add supertypes to classes declarationEClass.getESuperTypes().add(this.getCommand()); ePackageImportEClass.getESuperTypes().add(this.getImport()); viatraImportEClass.getESuperTypes().add(this.getImport()); metamodelSpecificationEClass.getESuperTypes().add(this.getMetamodel()); allPackageEntryEClass.getESuperTypes().add(this.getMetamodelEntry()); metamodelElementEClass.getESuperTypes().add(this.getMetamodelEntry()); metamodelDeclarationEClass.getESuperTypes().add(this.getDeclaration()); metamodelReferenceEClass.getESuperTypes().add(this.getMetamodel()); // Initialize classes and features; add operations and parameters initEClass(configurationScriptEClass, ConfigurationScript.class, "ConfigurationScript", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getConfigurationScript_Imports(), this.getImport(), null, "imports", null, 0, -1, ConfigurationScript.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getConfigurationScript_Commands(), this.getCommand(), null, "commands", null, 0, -1, ConfigurationScript.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(commandEClass, Command.class, "Command", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEClass(declarationEClass, Declaration.class, "Declaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEClass(importEClass, Import.class, "Import", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEClass(ePackageImportEClass, EPackageImport.class, "EPackageImport", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getEPackageImport_ImportedPackage(), theEcorePackage.getEPackage(), null, "importedPackage", null, 0, 1, EPackageImport.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(viatraImportEClass, ViatraImport.class, "ViatraImport", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getViatraImport_ImportedViatra(), thePatternLanguagePackage.getPatternModel(), null, "importedViatra", null, 0, 1, ViatraImport.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(metamodelSpecificationEClass, MetamodelSpecification.class, "MetamodelSpecification", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getMetamodelSpecification_Entries(), this.getMetamodelEntry(), null, "entries", null, 0, -1, MetamodelSpecification.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(metamodelEntryEClass, MetamodelEntry.class, "MetamodelEntry", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getMetamodelEntry_Package(), theEcorePackage.getEPackage(), null, "package", null, 0, 1, MetamodelEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(allPackageEntryEClass, AllPackageEntry.class, "AllPackageEntry", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getAllPackageEntry_Exclusion(), this.getMetamodelElement(), null, "exclusion", null, 0, -1, AllPackageEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(metamodelElementEClass, MetamodelElement.class, "MetamodelElement", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getMetamodelElement_Classifier(), theEcorePackage.getEClassifier(), null, "classifier", null, 0, 1, MetamodelElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getMetamodelElement_Feature(), theEcorePackage.getENamedElement(), null, "feature", null, 0, 1, MetamodelElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(metamodelDeclarationEClass, MetamodelDeclaration.class, "MetamodelDeclaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getMetamodelDeclaration_Name(), theEcorePackage.getEString(), "name", null, 0, 1, MetamodelDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getMetamodelDeclaration_Specification(), this.getMetamodelSpecification(), null, "specification", null, 0, 1, MetamodelDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(metamodelReferenceEClass, MetamodelReference.class, "MetamodelReference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getMetamodelReference_Referred(), this.getMetamodelDeclaration(), null, "referred", null, 0, 1, MetamodelReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(metamodelEClass, Metamodel.class, "Metamodel", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); // Create resource createResource(eNS_URI); } } //ApplicationConfigurationPackageImpl