/** */ package hu.bme.mit.inf.dslreasoner.domains.yakindu.sgraph.yakindumm.impl; import hu.bme.mit.inf.dslreasoner.domains.yakindu.sgraph.yakindumm.CompositeElement; import hu.bme.mit.inf.dslreasoner.domains.yakindu.sgraph.yakindumm.Entry; import hu.bme.mit.inf.dslreasoner.domains.yakindu.sgraph.yakindumm.Pseudostate; import hu.bme.mit.inf.dslreasoner.domains.yakindu.sgraph.yakindumm.Region; import hu.bme.mit.inf.dslreasoner.domains.yakindu.sgraph.yakindumm.RegularState; import hu.bme.mit.inf.dslreasoner.domains.yakindu.sgraph.yakindumm.State; import hu.bme.mit.inf.dslreasoner.domains.yakindu.sgraph.yakindumm.Statechart; import hu.bme.mit.inf.dslreasoner.domains.yakindu.sgraph.yakindumm.Synchronization; import hu.bme.mit.inf.dslreasoner.domains.yakindu.sgraph.yakindumm.Transition; import hu.bme.mit.inf.dslreasoner.domains.yakindu.sgraph.yakindumm.Vertex; import hu.bme.mit.inf.dslreasoner.domains.yakindu.sgraph.yakindumm.YakindummFactory; import hu.bme.mit.inf.dslreasoner.domains.yakindu.sgraph.yakindumm.YakindummPackage; 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; /** * * An implementation of the model Package. * * @generated */ public class YakindummPackageImpl extends EPackageImpl implements YakindummPackage { /** * * * @generated */ private EClass pseudostateEClass = null; /** * * * @generated */ private EClass vertexEClass = null; /** * * * @generated */ private EClass regionEClass = null; /** * * * @generated */ private EClass transitionEClass = null; /** * * * @generated */ private EClass statechartEClass = null; /** * * * @generated */ private EClass entryEClass = null; /** * * * @generated */ private EClass synchronizationEClass = null; /** * * * @generated */ private EClass stateEClass = null; /** * * * @generated */ private EClass regularStateEClass = null; /** * * * @generated */ private EClass compositeElementEClass = 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.domains.yakindu.sgraph.yakindumm.YakindummPackage#eNS_URI * @see #init() * @generated */ private YakindummPackageImpl() { super(eNS_URI, YakindummFactory.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 YakindummPackage#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 YakindummPackage init() { if (isInited) return (YakindummPackage)EPackage.Registry.INSTANCE.getEPackage(YakindummPackage.eNS_URI); // Obtain or create and register package YakindummPackageImpl theYakindummPackage = (YakindummPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof YakindummPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new YakindummPackageImpl()); isInited = true; // Create package meta-data objects theYakindummPackage.createPackageContents(); // Initialize created meta-data theYakindummPackage.initializePackageContents(); // Mark meta-data to indicate it can't be changed theYakindummPackage.freeze(); // Update the registry and return the package EPackage.Registry.INSTANCE.put(YakindummPackage.eNS_URI, theYakindummPackage); return theYakindummPackage; } /** * * * @generated */ public EClass getPseudostate() { return pseudostateEClass; } /** * * * @generated */ public EClass getVertex() { return vertexEClass; } /** * * * @generated */ public EReference getVertex_IncomingTransitions() { return (EReference)vertexEClass.getEStructuralFeatures().get(0); } /** * * * @generated */ public EReference getVertex_OutgoingTransitions() { return (EReference)vertexEClass.getEStructuralFeatures().get(1); } /** * * * @generated */ public EClass getRegion() { return regionEClass; } /** * * * @generated */ public EReference getRegion_Vertices() { return (EReference)regionEClass.getEStructuralFeatures().get(0); } /** * * * @generated */ public EClass getTransition() { return transitionEClass; } /** * * * @generated */ public EReference getTransition_Target() { return (EReference)transitionEClass.getEStructuralFeatures().get(0); } /** * * * @generated */ public EReference getTransition_Source() { return (EReference)transitionEClass.getEStructuralFeatures().get(1); } /** * * * @generated */ public EClass getStatechart() { return statechartEClass; } /** * * * @generated */ public EClass getEntry() { return entryEClass; } /** * * * @generated */ public EClass getSynchronization() { return synchronizationEClass; } /** * * * @generated */ public EClass getState() { return stateEClass; } /** * * * @generated */ public EClass getRegularState() { return regularStateEClass; } /** * * * @generated */ public EClass getCompositeElement() { return compositeElementEClass; } /** * * * @generated */ public EReference getCompositeElement_Regions() { return (EReference)compositeElementEClass.getEStructuralFeatures().get(0); } /** * * * @generated */ public YakindummFactory getYakindummFactory() { return (YakindummFactory)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 pseudostateEClass = createEClass(PSEUDOSTATE); vertexEClass = createEClass(VERTEX); createEReference(vertexEClass, VERTEX__INCOMING_TRANSITIONS); createEReference(vertexEClass, VERTEX__OUTGOING_TRANSITIONS); regionEClass = createEClass(REGION); createEReference(regionEClass, REGION__VERTICES); transitionEClass = createEClass(TRANSITION); createEReference(transitionEClass, TRANSITION__TARGET); createEReference(transitionEClass, TRANSITION__SOURCE); statechartEClass = createEClass(STATECHART); entryEClass = createEClass(ENTRY); synchronizationEClass = createEClass(SYNCHRONIZATION); stateEClass = createEClass(STATE); regularStateEClass = createEClass(REGULAR_STATE); compositeElementEClass = createEClass(COMPOSITE_ELEMENT); createEReference(compositeElementEClass, COMPOSITE_ELEMENT__REGIONS); } /** * * * @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); // Create type parameters // Set bounds for type parameters // Add supertypes to classes pseudostateEClass.getESuperTypes().add(this.getVertex()); statechartEClass.getESuperTypes().add(this.getCompositeElement()); entryEClass.getESuperTypes().add(this.getPseudostate()); synchronizationEClass.getESuperTypes().add(this.getPseudostate()); stateEClass.getESuperTypes().add(this.getRegularState()); stateEClass.getESuperTypes().add(this.getCompositeElement()); regularStateEClass.getESuperTypes().add(this.getVertex()); // Initialize classes, features, and operations; add parameters initEClass(pseudostateEClass, Pseudostate.class, "Pseudostate", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEClass(vertexEClass, Vertex.class, "Vertex", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getVertex_IncomingTransitions(), this.getTransition(), this.getTransition_Target(), "incomingTransitions", null, 0, -1, Vertex.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); initEReference(getVertex_OutgoingTransitions(), this.getTransition(), this.getTransition_Source(), "outgoingTransitions", null, 0, -1, Vertex.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); initEClass(regionEClass, Region.class, "Region", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getRegion_Vertices(), this.getVertex(), null, "vertices", null, 0, -1, Region.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); initEClass(transitionEClass, Transition.class, "Transition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getTransition_Target(), this.getVertex(), this.getVertex_IncomingTransitions(), "target", null, 1, 1, Transition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); initEReference(getTransition_Source(), this.getVertex(), this.getVertex_OutgoingTransitions(), "source", null, 1, 1, Transition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); initEClass(statechartEClass, Statechart.class, "Statechart", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEClass(entryEClass, Entry.class, "Entry", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEClass(synchronizationEClass, Synchronization.class, "Synchronization", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEClass(stateEClass, State.class, "State", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEClass(regularStateEClass, RegularState.class, "RegularState", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEClass(compositeElementEClass, CompositeElement.class, "CompositeElement", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getCompositeElement_Regions(), this.getRegion(), null, "regions", null, 0, -1, CompositeElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); // Create resource createResource(eNS_URI); } } //YakindummPackageImpl