/** * <copyright> * </copyright> * * $Id$ */ package operation.impl; import operation.Checklist; import operation.ChecklistEntry; import operation.MenuItem; import operation.OperationElement; import operation.OperationFactory; import operation.OperationPackage; import operation.RuntimeInformation; 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.impl.EPackageImpl; import process.ProcessPackage; import process.impl.ProcessPackageImpl; import system.SystemPackage; import system.impl.SystemPackageImpl; /** * <!-- begin-user-doc --> * An implementation of the model <b>Package</b>. * <!-- end-user-doc --> * @generated */ public class OperationPackageImpl extends EPackageImpl implements OperationPackage { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EClass menuItemEClass = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EClass runtimeInformationEClass = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EClass checklistEntryEClass = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EClass checklistEClass = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EClass operationElementEClass = null; /** * Creates an instance of the model <b>Package</b>, registered with * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package * package URI value. * <p>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. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see org.eclipse.emf.ecore.EPackage.Registry * @see operation.OperationPackage#eNS_URI * @see #init() * @generated */ private OperationPackageImpl() { super(eNS_URI, OperationFactory.eINSTANCE); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private static boolean isInited = false; /** * 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 OperationPackage#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 OperationPackage init() { if (isInited) return (OperationPackage)EPackage.Registry.INSTANCE.getEPackage(OperationPackage.eNS_URI); // Obtain or create and register package OperationPackageImpl theOperationPackage = (OperationPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof OperationPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new OperationPackageImpl()); isInited = true; // Obtain or create and register interdependencies ProcessPackageImpl theProcessPackage = (ProcessPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ProcessPackage.eNS_URI) instanceof ProcessPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ProcessPackage.eNS_URI) : ProcessPackage.eINSTANCE); SystemPackageImpl theSystemPackage = (SystemPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SystemPackage.eNS_URI) instanceof SystemPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SystemPackage.eNS_URI) : SystemPackage.eINSTANCE); // Create package meta-data objects theOperationPackage.createPackageContents(); theProcessPackage.createPackageContents(); theSystemPackage.createPackageContents(); // Initialize created meta-data theOperationPackage.initializePackageContents(); theProcessPackage.initializePackageContents(); theSystemPackage.initializePackageContents(); // Mark meta-data to indicate it can't be changed theOperationPackage.freeze(); // Update the registry and return the package EPackage.Registry.INSTANCE.put(OperationPackage.eNS_URI, theOperationPackage); return theOperationPackage; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EClass getMenuItem() { return menuItemEClass; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getMenuItem_Description() { return (EAttribute)menuItemEClass.getEStructuralFeatures().get(0); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getMenuItem_Location() { return (EAttribute)menuItemEClass.getEStructuralFeatures().get(1); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EClass getRuntimeInformation() { return runtimeInformationEClass; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getRuntimeInformation_Contents() { return (EAttribute)runtimeInformationEClass.getEStructuralFeatures().get(0); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EClass getChecklistEntry() { return checklistEntryEClass; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getChecklistEntry_Menu() { return (EReference)checklistEntryEClass.getEStructuralFeatures().get(0); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getChecklistEntry_Info() { return (EReference)checklistEntryEClass.getEStructuralFeatures().get(1); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getChecklistEntry_TaskId() { return (EAttribute)checklistEntryEClass.getEStructuralFeatures().get(2); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getChecklistEntry_JobPaths() { return (EAttribute)checklistEntryEClass.getEStructuralFeatures().get(3); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getChecklistEntry_Task() { return (EReference)checklistEntryEClass.getEStructuralFeatures().get(4); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getChecklistEntry_Jobs() { return (EReference)checklistEntryEClass.getEStructuralFeatures().get(5); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EClass getChecklist() { return checklistEClass; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getChecklist_Entries() { return (EReference)checklistEClass.getEStructuralFeatures().get(0); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getChecklist_Menu() { return (EReference)checklistEClass.getEStructuralFeatures().get(1); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getChecklist_Process() { return (EReference)checklistEClass.getEStructuralFeatures().get(2); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getChecklist_ProcessId() { return (EAttribute)checklistEClass.getEStructuralFeatures().get(3); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EClass getOperationElement() { return operationElementEClass; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getOperationElement_Id() { return (EAttribute)operationElementEClass.getEStructuralFeatures().get(0); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getOperationElement_Name() { return (EAttribute)operationElementEClass.getEStructuralFeatures().get(1); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public OperationFactory getOperationFactory() { return (OperationFactory)getEFactoryInstance(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @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. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void createPackageContents() { if (isCreated) return; isCreated = true; // Create classes and their features menuItemEClass = createEClass(MENU_ITEM); createEAttribute(menuItemEClass, MENU_ITEM__DESCRIPTION); createEAttribute(menuItemEClass, MENU_ITEM__LOCATION); runtimeInformationEClass = createEClass(RUNTIME_INFORMATION); createEAttribute(runtimeInformationEClass, RUNTIME_INFORMATION__CONTENTS); checklistEntryEClass = createEClass(CHECKLIST_ENTRY); createEReference(checklistEntryEClass, CHECKLIST_ENTRY__MENU); createEReference(checklistEntryEClass, CHECKLIST_ENTRY__INFO); createEAttribute(checklistEntryEClass, CHECKLIST_ENTRY__TASK_ID); createEAttribute(checklistEntryEClass, CHECKLIST_ENTRY__JOB_PATHS); createEReference(checklistEntryEClass, CHECKLIST_ENTRY__TASK); createEReference(checklistEntryEClass, CHECKLIST_ENTRY__JOBS); checklistEClass = createEClass(CHECKLIST); createEReference(checklistEClass, CHECKLIST__ENTRIES); createEReference(checklistEClass, CHECKLIST__MENU); createEReference(checklistEClass, CHECKLIST__PROCESS); createEAttribute(checklistEClass, CHECKLIST__PROCESS_ID); operationElementEClass = createEClass(OPERATION_ELEMENT); createEAttribute(operationElementEClass, OPERATION_ELEMENT__ID); createEAttribute(operationElementEClass, OPERATION_ELEMENT__NAME); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @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. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void initializePackageContents() { if (isInitialized) return; isInitialized = true; // Initialize package setName(eNAME); setNsPrefix(eNS_PREFIX); setNsURI(eNS_URI); // Obtain other dependent packages ProcessPackage theProcessPackage = (ProcessPackage)EPackage.Registry.INSTANCE.getEPackage(ProcessPackage.eNS_URI); SystemPackage theSystemPackage = (SystemPackage)EPackage.Registry.INSTANCE.getEPackage(SystemPackage.eNS_URI); // Add supertypes to classes menuItemEClass.getESuperTypes().add(this.getOperationElement()); runtimeInformationEClass.getESuperTypes().add(this.getOperationElement()); checklistEntryEClass.getESuperTypes().add(this.getOperationElement()); checklistEClass.getESuperTypes().add(this.getOperationElement()); // Initialize classes and features; add operations and parameters initEClass(menuItemEClass, MenuItem.class, "MenuItem", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getMenuItem_Description(), ecorePackage.getEString(), "description", null, 0, 1, MenuItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getMenuItem_Location(), ecorePackage.getEString(), "location", null, 0, 1, MenuItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(runtimeInformationEClass, RuntimeInformation.class, "RuntimeInformation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getRuntimeInformation_Contents(), ecorePackage.getEMap(), "contents", null, 0, 1, RuntimeInformation.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(checklistEntryEClass, ChecklistEntry.class, "ChecklistEntry", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getChecklistEntry_Menu(), this.getMenuItem(), null, "menu", null, 0, 1, ChecklistEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getChecklistEntry_Info(), this.getRuntimeInformation(), null, "info", null, 0, 1, ChecklistEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getChecklistEntry_TaskId(), ecorePackage.getEString(), "taskId", null, 1, 1, ChecklistEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getChecklistEntry_JobPaths(), ecorePackage.getEString(), "jobPaths", null, 0, -1, ChecklistEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getChecklistEntry_Task(), theProcessPackage.getTask(), null, "task", null, 1, 1, ChecklistEntry.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); initEReference(getChecklistEntry_Jobs(), theSystemPackage.getJob(), null, "jobs", null, 0, -1, ChecklistEntry.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); initEClass(checklistEClass, Checklist.class, "Checklist", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getChecklist_Entries(), this.getChecklistEntry(), null, "entries", null, 0, -1, Checklist.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getChecklist_Menu(), this.getMenuItem(), null, "menu", null, 0, -1, Checklist.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getChecklist_Process(), theProcessPackage.getProcess(), null, "process", null, 1, 1, Checklist.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); initEAttribute(getChecklist_ProcessId(), ecorePackage.getEString(), "processId", null, 1, 1, Checklist.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(operationElementEClass, OperationElement.class, "OperationElement", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getOperationElement_Id(), ecorePackage.getEString(), "id", null, 1, 1, OperationElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getOperationElement_Name(), ecorePackage.getEString(), "name", null, 0, 1, OperationElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); // Create resource createResource(eNS_URI); } } //OperationPackageImpl