| /******************************************************************************* |
| * Copyright (c) 2012 Bundesinstitut für Risikobewertung and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * Bundesinstitut für Risikobewertung - initial API and implementation |
| *******************************************************************************/ |
| package org.eclipse.stem.model.metamodel.impl; |
| |
| import org.eclipse.emf.ecore.EAttribute; |
| import org.eclipse.emf.ecore.EClass; |
| import org.eclipse.emf.ecore.EDataType; |
| import org.eclipse.emf.ecore.EEnum; |
| 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.emf.ecore.resource.Resource; |
| import org.eclipse.stem.model.metamodel.AuthorDetails; |
| import org.eclipse.stem.model.metamodel.Compartment; |
| import org.eclipse.stem.model.metamodel.CompartmentGroup; |
| import org.eclipse.stem.model.metamodel.CompartmentType; |
| import org.eclipse.stem.model.metamodel.MetamodelFactory; |
| import org.eclipse.stem.model.metamodel.MetamodelPackage; |
| import org.eclipse.stem.model.metamodel.Model; |
| import org.eclipse.stem.model.metamodel.ModelGenSettings; |
| import org.eclipse.stem.model.metamodel.ModelParam; |
| import org.eclipse.stem.model.metamodel.ModelParamConstraint; |
| import org.eclipse.stem.model.metamodel.ModelType; |
| import org.eclipse.stem.model.metamodel.PackageGenSettings; |
| import org.eclipse.stem.model.metamodel.Transition; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * An implementation of the model <b>Package</b>. |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public class MetamodelPackageImpl extends EPackageImpl implements MetamodelPackage { |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| private EClass packageEClass = null; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| private EClass modelEClass = null; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| private EClass modelParamEClass = null; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| private EClass modelParamConstraintEClass = null; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| private EClass compartmentGroupEClass = null; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| private EClass compartmentEClass = null; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| private EClass authorDetailsEClass = null; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| private EClass modelGenSettingsEClass = null; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| private EClass transitionEClass = null; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| private EClass packageGenSettingsEClass = null; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| private EEnum modelTypeEEnum = null; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| private EEnum compartmentTypeEEnum = null; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| private EDataType resourceEDataType = 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 org.eclipse.stem.model.metamodel.MetamodelPackage#eNS_URI |
| * @see #init() |
| * @generated |
| */ |
| private MetamodelPackageImpl() { |
| super(eNS_URI, MetamodelFactory.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 MetamodelPackage#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 MetamodelPackage init() { |
| if (isInited) return (MetamodelPackage)EPackage.Registry.INSTANCE.getEPackage(MetamodelPackage.eNS_URI); |
| |
| // Obtain or create and register package |
| MetamodelPackageImpl theMetamodelPackage = (MetamodelPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof MetamodelPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new MetamodelPackageImpl()); |
| |
| isInited = true; |
| |
| // Initialize simple dependencies |
| EcorePackage.eINSTANCE.eClass(); |
| |
| // Create package meta-data objects |
| theMetamodelPackage.createPackageContents(); |
| |
| // Initialize created meta-data |
| theMetamodelPackage.initializePackageContents(); |
| |
| // Mark meta-data to indicate it can't be changed |
| theMetamodelPackage.freeze(); |
| |
| |
| // Update the registry and return the package |
| EPackage.Registry.INSTANCE.put(MetamodelPackage.eNS_URI, theMetamodelPackage); |
| return theMetamodelPackage; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EClass getPackage() { |
| return packageEClass; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EAttribute getPackage_PackagePrefix() { |
| return (EAttribute)packageEClass.getEStructuralFeatures().get(0); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EAttribute getPackage_Name() { |
| return (EAttribute)packageEClass.getEStructuralFeatures().get(1); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EReference getPackage_Models() { |
| return (EReference)packageEClass.getEStructuralFeatures().get(2); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EReference getPackage_CompartmentGroups() { |
| return (EReference)packageEClass.getEStructuralFeatures().get(3); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EReference getPackage_GeneratorSettings() { |
| return (EReference)packageEClass.getEStructuralFeatures().get(4); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EClass getModel() { |
| return modelEClass; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EAttribute getModel_Name() { |
| return (EAttribute)modelEClass.getEStructuralFeatures().get(0); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EAttribute getModel_ModelType() { |
| return (EAttribute)modelEClass.getEStructuralFeatures().get(1); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EReference getModel_Class() { |
| return (EReference)modelEClass.getEStructuralFeatures().get(2); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EReference getModel_ParentModel() { |
| return (EReference)modelEClass.getEStructuralFeatures().get(3); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EReference getModel_Parameters() { |
| return (EReference)modelEClass.getEStructuralFeatures().get(4); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EReference getModel_Transitions() { |
| return (EReference)modelEClass.getEStructuralFeatures().get(5); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EReference getModel_Compartments() { |
| return (EReference)modelEClass.getEStructuralFeatures().get(6); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EReference getModel_Author() { |
| return (EReference)modelEClass.getEStructuralFeatures().get(7); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EReference getModel_ContainerPackage() { |
| return (EReference)modelEClass.getEStructuralFeatures().get(8); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EReference getModel_GeneratorSettings() { |
| return (EReference)modelEClass.getEStructuralFeatures().get(9); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EClass getModelParam() { |
| return modelParamEClass; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EAttribute getModelParam_Name() { |
| return (EAttribute)modelParamEClass.getEStructuralFeatures().get(0); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EReference getModelParam_DataType() { |
| return (EReference)modelParamEClass.getEStructuralFeatures().get(1); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EAttribute getModelParam_DefaultValue() { |
| return (EAttribute)modelParamEClass.getEStructuralFeatures().get(2); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EReference getModelParam_Constraints() { |
| return (EReference)modelParamEClass.getEStructuralFeatures().get(3); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EAttribute getModelParam_DisplayName() { |
| return (EAttribute)modelParamEClass.getEStructuralFeatures().get(4); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EAttribute getModelParam_Unit() { |
| return (EAttribute)modelParamEClass.getEStructuralFeatures().get(5); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EAttribute getModelParam_HelpMessage() { |
| return (EAttribute)modelParamEClass.getEStructuralFeatures().get(6); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EAttribute getModelParam_InvalidMessage() { |
| return (EAttribute)modelParamEClass.getEStructuralFeatures().get(7); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EAttribute getModelParam_MissingMessage() { |
| return (EAttribute)modelParamEClass.getEStructuralFeatures().get(8); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EReference getModelParam_ContainerModel() { |
| return (EReference)modelParamEClass.getEStructuralFeatures().get(9); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EClass getModelParamConstraint() { |
| return modelParamConstraintEClass; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EAttribute getModelParamConstraint_Name() { |
| return (EAttribute)modelParamConstraintEClass.getEStructuralFeatures().get(0); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EAttribute getModelParamConstraint_Constraint() { |
| return (EAttribute)modelParamConstraintEClass.getEStructuralFeatures().get(1); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EClass getCompartmentGroup() { |
| return compartmentGroupEClass; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EAttribute getCompartmentGroup_Name() { |
| return (EAttribute)compartmentGroupEClass.getEStructuralFeatures().get(0); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EReference getCompartmentGroup_Class() { |
| return (EReference)compartmentGroupEClass.getEStructuralFeatures().get(1); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EReference getCompartmentGroup_ValueClass() { |
| return (EReference)compartmentGroupEClass.getEStructuralFeatures().get(2); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EReference getCompartmentGroup_ParentGroup() { |
| return (EReference)compartmentGroupEClass.getEStructuralFeatures().get(3); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EReference getCompartmentGroup_Compartments() { |
| return (EReference)compartmentGroupEClass.getEStructuralFeatures().get(4); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EClass getCompartment() { |
| return compartmentEClass; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EAttribute getCompartment_Name() { |
| return (EAttribute)compartmentEClass.getEStructuralFeatures().get(0); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EReference getCompartment_DataType() { |
| return (EReference)compartmentEClass.getEStructuralFeatures().get(1); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EAttribute getCompartment_Type() { |
| return (EAttribute)compartmentEClass.getEStructuralFeatures().get(2); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EReference getCompartment_ContainerGroup() { |
| return (EReference)compartmentEClass.getEStructuralFeatures().get(3); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EClass getAuthorDetails() { |
| return authorDetailsEClass; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EAttribute getAuthorDetails_Title() { |
| return (EAttribute)authorDetailsEClass.getEStructuralFeatures().get(0); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EAttribute getAuthorDetails_Description() { |
| return (EAttribute)authorDetailsEClass.getEStructuralFeatures().get(1); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EAttribute getAuthorDetails_Creator() { |
| return (EAttribute)authorDetailsEClass.getEStructuralFeatures().get(2); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EAttribute getAuthorDetails_Source() { |
| return (EAttribute)authorDetailsEClass.getEStructuralFeatures().get(3); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EAttribute getAuthorDetails_Publisher() { |
| return (EAttribute)authorDetailsEClass.getEStructuralFeatures().get(4); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EAttribute getAuthorDetails_License() { |
| return (EAttribute)authorDetailsEClass.getEStructuralFeatures().get(5); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EClass getModelGenSettings() { |
| return modelGenSettingsEClass; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EAttribute getModelGenSettings_PropertyEditorClass() { |
| return (EAttribute)modelGenSettingsEClass.getEStructuralFeatures().get(0); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EAttribute getModelGenSettings_PropertyEditorParentClass() { |
| return (EAttribute)modelGenSettingsEClass.getEStructuralFeatures().get(1); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EAttribute getModelGenSettings_StringProviderAdapterClass() { |
| return (EAttribute)modelGenSettingsEClass.getEStructuralFeatures().get(2); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EAttribute getModelGenSettings_StringProviderAdapterParentClass() { |
| return (EAttribute)modelGenSettingsEClass.getEStructuralFeatures().get(3); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EAttribute getModelGenSettings_LabelRelativeValueProviderAdapterClass() { |
| return (EAttribute)modelGenSettingsEClass.getEStructuralFeatures().get(4); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EAttribute getModelGenSettings_LabelRelativeValueProviderAdapterParentClass() { |
| return (EAttribute)modelGenSettingsEClass.getEStructuralFeatures().get(5); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EAttribute getModelGenSettings_LabelValueRelativeValueProviderAdapterClass() { |
| return (EAttribute)modelGenSettingsEClass.getEStructuralFeatures().get(6); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EAttribute getModelGenSettings_LabelValueRelativeValueProviderAdapterParentClass() { |
| return (EAttribute)modelGenSettingsEClass.getEStructuralFeatures().get(7); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EClass getTransition() { |
| return transitionEClass; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EReference getTransition_Source() { |
| return (EReference)transitionEClass.getEStructuralFeatures().get(0); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EReference getTransition_Target() { |
| return (EReference)transitionEClass.getEStructuralFeatures().get(1); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EReference getTransition_ForIncidence() { |
| return (EReference)transitionEClass.getEStructuralFeatures().get(2); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EAttribute getTransition_Name() { |
| return (EAttribute)transitionEClass.getEStructuralFeatures().get(3); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EAttribute getTransition_Expression() { |
| return (EAttribute)transitionEClass.getEStructuralFeatures().get(4); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EReference getTransition_CompiledExpression() { |
| return (EReference)transitionEClass.getEStructuralFeatures().get(5); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EReference getTransition_ContainerModel() { |
| return (EReference)transitionEClass.getEStructuralFeatures().get(6); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EAttribute getTransition_ExpressionResource() { |
| return (EAttribute)transitionEClass.getEStructuralFeatures().get(7); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EClass getPackageGenSettings() { |
| return packageGenSettingsEClass; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EAttribute getPackageGenSettings_ModelPluginId() { |
| return (EAttribute)packageGenSettingsEClass.getEStructuralFeatures().get(0); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EAttribute getPackageGenSettings_EditorPluginId() { |
| return (EAttribute)packageGenSettingsEClass.getEStructuralFeatures().get(1); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EEnum getModelType() { |
| return modelTypeEEnum; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EEnum getCompartmentType() { |
| return compartmentTypeEEnum; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EDataType getResource() { |
| return resourceEDataType; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public MetamodelFactory getMetamodelFactory() { |
| return (MetamodelFactory)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 |
| packageEClass = createEClass(PACKAGE); |
| createEAttribute(packageEClass, PACKAGE__PACKAGE_PREFIX); |
| createEAttribute(packageEClass, PACKAGE__NAME); |
| createEReference(packageEClass, PACKAGE__MODELS); |
| createEReference(packageEClass, PACKAGE__COMPARTMENT_GROUPS); |
| createEReference(packageEClass, PACKAGE__GENERATOR_SETTINGS); |
| |
| modelEClass = createEClass(MODEL); |
| createEAttribute(modelEClass, MODEL__NAME); |
| createEAttribute(modelEClass, MODEL__MODEL_TYPE); |
| createEReference(modelEClass, MODEL__CLASS); |
| createEReference(modelEClass, MODEL__PARENT_MODEL); |
| createEReference(modelEClass, MODEL__PARAMETERS); |
| createEReference(modelEClass, MODEL__TRANSITIONS); |
| createEReference(modelEClass, MODEL__COMPARTMENTS); |
| createEReference(modelEClass, MODEL__AUTHOR); |
| createEReference(modelEClass, MODEL__CONTAINER_PACKAGE); |
| createEReference(modelEClass, MODEL__GENERATOR_SETTINGS); |
| |
| modelParamEClass = createEClass(MODEL_PARAM); |
| createEAttribute(modelParamEClass, MODEL_PARAM__NAME); |
| createEReference(modelParamEClass, MODEL_PARAM__DATA_TYPE); |
| createEAttribute(modelParamEClass, MODEL_PARAM__DEFAULT_VALUE); |
| createEReference(modelParamEClass, MODEL_PARAM__CONSTRAINTS); |
| createEAttribute(modelParamEClass, MODEL_PARAM__DISPLAY_NAME); |
| createEAttribute(modelParamEClass, MODEL_PARAM__UNIT); |
| createEAttribute(modelParamEClass, MODEL_PARAM__HELP_MESSAGE); |
| createEAttribute(modelParamEClass, MODEL_PARAM__INVALID_MESSAGE); |
| createEAttribute(modelParamEClass, MODEL_PARAM__MISSING_MESSAGE); |
| createEReference(modelParamEClass, MODEL_PARAM__CONTAINER_MODEL); |
| |
| modelParamConstraintEClass = createEClass(MODEL_PARAM_CONSTRAINT); |
| createEAttribute(modelParamConstraintEClass, MODEL_PARAM_CONSTRAINT__NAME); |
| createEAttribute(modelParamConstraintEClass, MODEL_PARAM_CONSTRAINT__CONSTRAINT); |
| |
| compartmentGroupEClass = createEClass(COMPARTMENT_GROUP); |
| createEAttribute(compartmentGroupEClass, COMPARTMENT_GROUP__NAME); |
| createEReference(compartmentGroupEClass, COMPARTMENT_GROUP__CLASS); |
| createEReference(compartmentGroupEClass, COMPARTMENT_GROUP__VALUE_CLASS); |
| createEReference(compartmentGroupEClass, COMPARTMENT_GROUP__PARENT_GROUP); |
| createEReference(compartmentGroupEClass, COMPARTMENT_GROUP__COMPARTMENTS); |
| |
| compartmentEClass = createEClass(COMPARTMENT); |
| createEAttribute(compartmentEClass, COMPARTMENT__NAME); |
| createEReference(compartmentEClass, COMPARTMENT__DATA_TYPE); |
| createEAttribute(compartmentEClass, COMPARTMENT__TYPE); |
| createEReference(compartmentEClass, COMPARTMENT__CONTAINER_GROUP); |
| |
| authorDetailsEClass = createEClass(AUTHOR_DETAILS); |
| createEAttribute(authorDetailsEClass, AUTHOR_DETAILS__TITLE); |
| createEAttribute(authorDetailsEClass, AUTHOR_DETAILS__DESCRIPTION); |
| createEAttribute(authorDetailsEClass, AUTHOR_DETAILS__CREATOR); |
| createEAttribute(authorDetailsEClass, AUTHOR_DETAILS__SOURCE); |
| createEAttribute(authorDetailsEClass, AUTHOR_DETAILS__PUBLISHER); |
| createEAttribute(authorDetailsEClass, AUTHOR_DETAILS__LICENSE); |
| |
| packageGenSettingsEClass = createEClass(PACKAGE_GEN_SETTINGS); |
| createEAttribute(packageGenSettingsEClass, PACKAGE_GEN_SETTINGS__MODEL_PLUGIN_ID); |
| createEAttribute(packageGenSettingsEClass, PACKAGE_GEN_SETTINGS__EDITOR_PLUGIN_ID); |
| |
| modelGenSettingsEClass = createEClass(MODEL_GEN_SETTINGS); |
| createEAttribute(modelGenSettingsEClass, MODEL_GEN_SETTINGS__PROPERTY_EDITOR_CLASS); |
| createEAttribute(modelGenSettingsEClass, MODEL_GEN_SETTINGS__PROPERTY_EDITOR_PARENT_CLASS); |
| createEAttribute(modelGenSettingsEClass, MODEL_GEN_SETTINGS__STRING_PROVIDER_ADAPTER_CLASS); |
| createEAttribute(modelGenSettingsEClass, MODEL_GEN_SETTINGS__STRING_PROVIDER_ADAPTER_PARENT_CLASS); |
| createEAttribute(modelGenSettingsEClass, MODEL_GEN_SETTINGS__LABEL_RELATIVE_VALUE_PROVIDER_ADAPTER_CLASS); |
| createEAttribute(modelGenSettingsEClass, MODEL_GEN_SETTINGS__LABEL_RELATIVE_VALUE_PROVIDER_ADAPTER_PARENT_CLASS); |
| createEAttribute(modelGenSettingsEClass, MODEL_GEN_SETTINGS__LABEL_VALUE_RELATIVE_VALUE_PROVIDER_ADAPTER_CLASS); |
| createEAttribute(modelGenSettingsEClass, MODEL_GEN_SETTINGS__LABEL_VALUE_RELATIVE_VALUE_PROVIDER_ADAPTER_PARENT_CLASS); |
| |
| transitionEClass = createEClass(TRANSITION); |
| createEReference(transitionEClass, TRANSITION__SOURCE); |
| createEReference(transitionEClass, TRANSITION__TARGET); |
| createEReference(transitionEClass, TRANSITION__FOR_INCIDENCE); |
| createEAttribute(transitionEClass, TRANSITION__NAME); |
| createEAttribute(transitionEClass, TRANSITION__EXPRESSION); |
| createEReference(transitionEClass, TRANSITION__COMPILED_EXPRESSION); |
| createEReference(transitionEClass, TRANSITION__CONTAINER_MODEL); |
| createEAttribute(transitionEClass, TRANSITION__EXPRESSION_RESOURCE); |
| |
| // Create enums |
| modelTypeEEnum = createEEnum(MODEL_TYPE); |
| compartmentTypeEEnum = createEEnum(COMPARTMENT_TYPE); |
| |
| // Create data types |
| resourceEDataType = createEDataType(RESOURCE); |
| } |
| |
| /** |
| * <!-- 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 |
| EcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI); |
| |
| // Create type parameters |
| |
| // Set bounds for type parameters |
| |
| // Add supertypes to classes |
| |
| // Initialize classes and features; add operations and parameters |
| initEClass(packageEClass, org.eclipse.stem.model.metamodel.Package.class, "Package", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| initEAttribute(getPackage_PackagePrefix(), theEcorePackage.getEString(), "packagePrefix", null, 1, 1, org.eclipse.stem.model.metamodel.Package.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEAttribute(getPackage_Name(), theEcorePackage.getEString(), "name", null, 1, 1, org.eclipse.stem.model.metamodel.Package.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEReference(getPackage_Models(), this.getModel(), this.getModel_ContainerPackage(), "models", null, 0, -1, org.eclipse.stem.model.metamodel.Package.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEReference(getPackage_CompartmentGroups(), this.getCompartmentGroup(), null, "compartmentGroups", null, 0, -1, org.eclipse.stem.model.metamodel.Package.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEReference(getPackage_GeneratorSettings(), this.getPackageGenSettings(), null, "generatorSettings", null, 0, 1, org.eclipse.stem.model.metamodel.Package.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| |
| initEClass(modelEClass, Model.class, "Model", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| initEAttribute(getModel_Name(), theEcorePackage.getEString(), "name", null, 1, 1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEAttribute(getModel_ModelType(), this.getModelType(), "modelType", null, 1, 1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEReference(getModel_Class(), theEcorePackage.getEClass(), null, "class", null, 0, 1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEReference(getModel_ParentModel(), this.getModel(), null, "parentModel", null, 0, 1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEReference(getModel_Parameters(), this.getModelParam(), this.getModelParam_ContainerModel(), "parameters", null, 0, -1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEReference(getModel_Transitions(), this.getTransition(), this.getTransition_ContainerModel(), "transitions", null, 0, -1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEReference(getModel_Compartments(), this.getCompartmentGroup(), null, "compartments", null, 0, 1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEReference(getModel_Author(), this.getAuthorDetails(), null, "author", null, 0, 1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEReference(getModel_ContainerPackage(), this.getPackage(), this.getPackage_Models(), "containerPackage", null, 0, 1, Model.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEReference(getModel_GeneratorSettings(), this.getModelGenSettings(), null, "generatorSettings", null, 0, 1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| |
| initEClass(modelParamEClass, ModelParam.class, "ModelParam", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| initEAttribute(getModelParam_Name(), theEcorePackage.getEString(), "name", null, 1, 1, ModelParam.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEReference(getModelParam_DataType(), theEcorePackage.getEClassifier(), null, "dataType", null, 1, 1, ModelParam.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEAttribute(getModelParam_DefaultValue(), theEcorePackage.getEString(), "defaultValue", null, 0, 1, ModelParam.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEReference(getModelParam_Constraints(), this.getModelParamConstraint(), null, "constraints", null, 0, -1, ModelParam.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEAttribute(getModelParam_DisplayName(), theEcorePackage.getEString(), "displayName", null, 0, 1, ModelParam.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEAttribute(getModelParam_Unit(), theEcorePackage.getEString(), "unit", null, 0, 1, ModelParam.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEAttribute(getModelParam_HelpMessage(), theEcorePackage.getEString(), "helpMessage", null, 0, 1, ModelParam.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEAttribute(getModelParam_InvalidMessage(), theEcorePackage.getEString(), "invalidMessage", null, 0, 1, ModelParam.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEAttribute(getModelParam_MissingMessage(), theEcorePackage.getEString(), "missingMessage", null, 0, 1, ModelParam.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEReference(getModelParam_ContainerModel(), this.getModel(), this.getModel_Parameters(), "containerModel", null, 0, 1, ModelParam.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| |
| initEClass(modelParamConstraintEClass, ModelParamConstraint.class, "ModelParamConstraint", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| initEAttribute(getModelParamConstraint_Name(), theEcorePackage.getEString(), "name", null, 1, 1, ModelParamConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEAttribute(getModelParamConstraint_Constraint(), theEcorePackage.getEString(), "constraint", null, 1, 1, ModelParamConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| |
| initEClass(compartmentGroupEClass, CompartmentGroup.class, "CompartmentGroup", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| initEAttribute(getCompartmentGroup_Name(), theEcorePackage.getEString(), "name", null, 0, 1, CompartmentGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEReference(getCompartmentGroup_Class(), theEcorePackage.getEClass(), null, "class", null, 0, 1, CompartmentGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEReference(getCompartmentGroup_ValueClass(), theEcorePackage.getEClass(), null, "valueClass", null, 0, 1, CompartmentGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEReference(getCompartmentGroup_ParentGroup(), this.getCompartmentGroup(), null, "parentGroup", null, 0, 1, CompartmentGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEReference(getCompartmentGroup_Compartments(), this.getCompartment(), this.getCompartment_ContainerGroup(), "compartments", null, 0, -1, CompartmentGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| |
| initEClass(compartmentEClass, Compartment.class, "Compartment", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| initEAttribute(getCompartment_Name(), theEcorePackage.getEString(), "name", null, 0, 1, Compartment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEReference(getCompartment_DataType(), theEcorePackage.getEDataType(), null, "dataType", null, 0, 1, Compartment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEAttribute(getCompartment_Type(), this.getCompartmentType(), "type", "Standard", 0, 1, Compartment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEReference(getCompartment_ContainerGroup(), this.getCompartmentGroup(), this.getCompartmentGroup_Compartments(), "containerGroup", null, 0, 1, Compartment.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| |
| initEClass(authorDetailsEClass, AuthorDetails.class, "AuthorDetails", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| initEAttribute(getAuthorDetails_Title(), theEcorePackage.getEString(), "title", null, 0, 1, AuthorDetails.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEAttribute(getAuthorDetails_Description(), theEcorePackage.getEString(), "description", null, 0, 1, AuthorDetails.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEAttribute(getAuthorDetails_Creator(), theEcorePackage.getEString(), "creator", null, 0, 1, AuthorDetails.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEAttribute(getAuthorDetails_Source(), theEcorePackage.getEString(), "source", null, 0, 1, AuthorDetails.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEAttribute(getAuthorDetails_Publisher(), theEcorePackage.getEString(), "publisher", null, 0, 1, AuthorDetails.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEAttribute(getAuthorDetails_License(), theEcorePackage.getEString(), "license", null, 0, 1, AuthorDetails.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| |
| initEClass(packageGenSettingsEClass, PackageGenSettings.class, "PackageGenSettings", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| initEAttribute(getPackageGenSettings_ModelPluginId(), theEcorePackage.getEString(), "modelPluginId", null, 0, 1, PackageGenSettings.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEAttribute(getPackageGenSettings_EditorPluginId(), theEcorePackage.getEString(), "editorPluginId", null, 0, 1, PackageGenSettings.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| |
| initEClass(modelGenSettingsEClass, ModelGenSettings.class, "ModelGenSettings", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| initEAttribute(getModelGenSettings_PropertyEditorClass(), theEcorePackage.getEString(), "propertyEditorClass", null, 0, 1, ModelGenSettings.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEAttribute(getModelGenSettings_PropertyEditorParentClass(), theEcorePackage.getEString(), "propertyEditorParentClass", null, 0, 1, ModelGenSettings.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEAttribute(getModelGenSettings_StringProviderAdapterClass(), theEcorePackage.getEString(), "stringProviderAdapterClass", null, 0, 1, ModelGenSettings.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEAttribute(getModelGenSettings_StringProviderAdapterParentClass(), theEcorePackage.getEString(), "stringProviderAdapterParentClass", null, 0, 1, ModelGenSettings.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEAttribute(getModelGenSettings_LabelRelativeValueProviderAdapterClass(), theEcorePackage.getEString(), "labelRelativeValueProviderAdapterClass", null, 0, 1, ModelGenSettings.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEAttribute(getModelGenSettings_LabelRelativeValueProviderAdapterParentClass(), theEcorePackage.getEString(), "labelRelativeValueProviderAdapterParentClass", null, 0, 1, ModelGenSettings.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEAttribute(getModelGenSettings_LabelValueRelativeValueProviderAdapterClass(), theEcorePackage.getEString(), "labelValueRelativeValueProviderAdapterClass", null, 0, 1, ModelGenSettings.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEAttribute(getModelGenSettings_LabelValueRelativeValueProviderAdapterParentClass(), theEcorePackage.getEString(), "labelValueRelativeValueProviderAdapterParentClass", null, 0, 1, ModelGenSettings.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| |
| initEClass(transitionEClass, Transition.class, "Transition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| initEReference(getTransition_Source(), this.getCompartment(), null, "source", null, 0, 1, Transition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEReference(getTransition_Target(), this.getCompartment(), null, "target", null, 0, 1, Transition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEReference(getTransition_ForIncidence(), this.getCompartment(), null, "forIncidence", null, 0, -1, Transition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEAttribute(getTransition_Name(), theEcorePackage.getEString(), "name", null, 0, 1, Transition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEAttribute(getTransition_Expression(), theEcorePackage.getEString(), "expression", null, 0, 1, Transition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEReference(getTransition_CompiledExpression(), theEcorePackage.getEObject(), null, "compiledExpression", null, 0, 1, Transition.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEReference(getTransition_ContainerModel(), this.getModel(), this.getModel_Transitions(), "containerModel", null, 0, 1, Transition.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEAttribute(getTransition_ExpressionResource(), this.getResource(), "expressionResource", "null", 0, 1, Transition.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| |
| // Initialize enums and add enum literals |
| initEEnum(modelTypeEEnum, ModelType.class, "ModelType"); |
| addEEnumLiteral(modelTypeEEnum, ModelType.DISEASE_MODEL); |
| addEEnumLiteral(modelTypeEEnum, ModelType.POPULATION_MODEL); |
| addEEnumLiteral(modelTypeEEnum, ModelType.FOOD_PRODUCTION_MODEL); |
| |
| initEEnum(compartmentTypeEEnum, CompartmentType.class, "CompartmentType"); |
| addEEnumLiteral(compartmentTypeEEnum, CompartmentType.STANDARD); |
| addEEnumLiteral(compartmentTypeEEnum, CompartmentType.INCIDENCE); |
| addEEnumLiteral(compartmentTypeEEnum, CompartmentType.DEATHS); |
| addEEnumLiteral(compartmentTypeEEnum, CompartmentType.DERIVED); |
| |
| // Initialize data types |
| initEDataType(resourceEDataType, Resource.class, "Resource", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); |
| |
| // Create resource |
| createResource(eNS_URI); |
| } |
| |
| } //MetamodelPackageImpl |