summaryrefslogtreecommitdiffstats
path: root/rba.tool.editor/src-gen/rba/tool/editor/rbaEditorModel/impl/RbaEditorModelPackageImpl.java
diff options
context:
space:
mode:
Diffstat (limited to 'rba.tool.editor/src-gen/rba/tool/editor/rbaEditorModel/impl/RbaEditorModelPackageImpl.java')
-rw-r--r--rba.tool.editor/src-gen/rba/tool/editor/rbaEditorModel/impl/RbaEditorModelPackageImpl.java311
1 files changed, 311 insertions, 0 deletions
diff --git a/rba.tool.editor/src-gen/rba/tool/editor/rbaEditorModel/impl/RbaEditorModelPackageImpl.java b/rba.tool.editor/src-gen/rba/tool/editor/rbaEditorModel/impl/RbaEditorModelPackageImpl.java
new file mode 100644
index 0000000..d2cb8f2
--- /dev/null
+++ b/rba.tool.editor/src-gen/rba/tool/editor/rbaEditorModel/impl/RbaEditorModelPackageImpl.java
@@ -0,0 +1,311 @@
+/**
+ * generated by Xtext 2.13.0
+ */
+package rba.tool.editor.rbaEditorModel.impl;
+
+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 rba.core.RBACorePackage;
+
+import rba.tool.editor.rbaEditorModel.CTag;
+import rba.tool.editor.rbaEditorModel.Import;
+import rba.tool.editor.rbaEditorModel.MemberFeatureReference;
+import rba.tool.editor.rbaEditorModel.RbaEditorModelFactory;
+import rba.tool.editor.rbaEditorModel.RbaEditorModelPackage;
+import rba.tool.editor.rbaEditorModel.TopLevel;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model <b>Package</b>.
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class RbaEditorModelPackageImpl extends EPackageImpl implements RbaEditorModelPackage
+{
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass topLevelEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass importEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass cTagEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass memberFeatureReferenceEClass = 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 rba.tool.editor.rbaEditorModel.RbaEditorModelPackage#eNS_URI
+ * @see #init()
+ * @generated
+ */
+ private RbaEditorModelPackageImpl()
+ {
+ super(eNS_URI, RbaEditorModelFactory.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 RbaEditorModelPackage#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 RbaEditorModelPackage init()
+ {
+ if (isInited) return (RbaEditorModelPackage)EPackage.Registry.INSTANCE.getEPackage(RbaEditorModelPackage.eNS_URI);
+
+ // Obtain or create and register package
+ RbaEditorModelPackageImpl theRbaEditorModelPackage = (RbaEditorModelPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof RbaEditorModelPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new RbaEditorModelPackageImpl());
+
+ isInited = true;
+
+ // Initialize simple dependencies
+ RBACorePackage.eINSTANCE.eClass();
+
+ // Create package meta-data objects
+ theRbaEditorModelPackage.createPackageContents();
+
+ // Initialize created meta-data
+ theRbaEditorModelPackage.initializePackageContents();
+
+ // Mark meta-data to indicate it can't be changed
+ theRbaEditorModelPackage.freeze();
+
+
+ // Update the registry and return the package
+ EPackage.Registry.INSTANCE.put(RbaEditorModelPackage.eNS_URI, theRbaEditorModelPackage);
+ return theRbaEditorModelPackage;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getTopLevel()
+ {
+ return topLevelEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getTopLevel_Project()
+ {
+ return (EReference)topLevelEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getTopLevel_Imports()
+ {
+ return (EReference)topLevelEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getTopLevel_Packages()
+ {
+ return (EReference)topLevelEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getImport()
+ {
+ return importEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getImport_ImportedNamespace()
+ {
+ return (EAttribute)importEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getCTag()
+ {
+ return cTagEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getMemberFeatureReference()
+ {
+ return memberFeatureReferenceEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getMemberFeatureReference_Operand()
+ {
+ return (EReference)memberFeatureReferenceEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public RbaEditorModelFactory getRbaEditorModelFactory()
+ {
+ return (RbaEditorModelFactory)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
+ topLevelEClass = createEClass(TOP_LEVEL);
+ createEReference(topLevelEClass, TOP_LEVEL__PROJECT);
+ createEReference(topLevelEClass, TOP_LEVEL__IMPORTS);
+ createEReference(topLevelEClass, TOP_LEVEL__PACKAGES);
+
+ importEClass = createEClass(IMPORT);
+ createEAttribute(importEClass, IMPORT__IMPORTED_NAMESPACE);
+
+ cTagEClass = createEClass(CTAG);
+
+ memberFeatureReferenceEClass = createEClass(MEMBER_FEATURE_REFERENCE);
+ createEReference(memberFeatureReferenceEClass, MEMBER_FEATURE_REFERENCE__OPERAND);
+ }
+
+ /**
+ * <!-- 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
+ RBACorePackage theRBACorePackage = (RBACorePackage)EPackage.Registry.INSTANCE.getEPackage(RBACorePackage.eNS_URI);
+
+ // Create type parameters
+
+ // Set bounds for type parameters
+
+ // Add supertypes to classes
+ cTagEClass.getESuperTypes().add(theRBACorePackage.getTag());
+ memberFeatureReferenceEClass.getESuperTypes().add(theRBACorePackage.getObjectReference());
+
+ // Initialize classes and features; add operations and parameters
+ initEClass(topLevelEClass, TopLevel.class, "TopLevel", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getTopLevel_Project(), theRBACorePackage.getProject(), null, "project", null, 0, -1, TopLevel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getTopLevel_Imports(), this.getImport(), null, "imports", null, 0, -1, TopLevel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getTopLevel_Packages(), theRBACorePackage.getPackage(), null, "packages", null, 0, -1, TopLevel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(importEClass, Import.class, "Import", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getImport_ImportedNamespace(), ecorePackage.getEString(), "importedNamespace", null, 0, 1, Import.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(cTagEClass, CTag.class, "CTag", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+
+ initEClass(memberFeatureReferenceEClass, MemberFeatureReference.class, "MemberFeatureReference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getMemberFeatureReference_Operand(), theRBACorePackage.getObjectReference(), null, "operand", null, 0, -1, MemberFeatureReference.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);
+ }
+
+} //RbaEditorModelPackageImpl