diff options
Diffstat (limited to 'extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/elements/impl/ElementsPackageImpl.java')
-rw-r--r-- | extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/elements/impl/ElementsPackageImpl.java | 741 |
1 files changed, 741 insertions, 0 deletions
diff --git a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/elements/impl/ElementsPackageImpl.java b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/elements/impl/ElementsPackageImpl.java new file mode 100644 index 00000000000..c2160e02145 --- /dev/null +++ b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/elements/impl/ElementsPackageImpl.java @@ -0,0 +1,741 @@ +/***************************************************************************** + * Copyright (c) 2010 CEA LIST. + * + * + * 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: + * Sara TUCCI (CEA LIST) sara.tucci@cea.fr - Initial API and implementation + * Chokri MRAIDHA (CEA LIST) chokri.mraidha@cea.fr - Initial API and implementation + * David SERVAT (CEA LIST) david.servat@cea.fr - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.eastadl.infrastructure.elements.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 org.eclipse.papyrus.eastadl.EastadlPackage; +import org.eclipse.papyrus.eastadl.annex.AnnexPackage; +import org.eclipse.papyrus.eastadl.annex.impl.AnnexPackageImpl; +import org.eclipse.papyrus.eastadl.annex.needs.NeedsPackage; +import org.eclipse.papyrus.eastadl.annex.needs.impl.NeedsPackageImpl; +import org.eclipse.papyrus.eastadl.behavior.BehaviorPackage; +import org.eclipse.papyrus.eastadl.behavior.impl.BehaviorPackageImpl; +import org.eclipse.papyrus.eastadl.dependability.DependabilityPackage; +import org.eclipse.papyrus.eastadl.dependability.errormodel.ErrormodelPackage; +import org.eclipse.papyrus.eastadl.dependability.errormodel.impl.ErrormodelPackageImpl; +import org.eclipse.papyrus.eastadl.dependability.impl.DependabilityPackageImpl; +import org.eclipse.papyrus.eastadl.dependability.safetycase.SafetycasePackage; +import org.eclipse.papyrus.eastadl.dependability.safetycase.impl.SafetycasePackageImpl; +import org.eclipse.papyrus.eastadl.dependability.safetyconstraints.SafetyconstraintsPackage; +import org.eclipse.papyrus.eastadl.dependability.safetyconstraints.impl.SafetyconstraintsPackageImpl; +import org.eclipse.papyrus.eastadl.dependability.safetyrequirement.SafetyrequirementPackage; +import org.eclipse.papyrus.eastadl.dependability.safetyrequirement.impl.SafetyrequirementPackageImpl; +import org.eclipse.papyrus.eastadl.environment.EnvironmentPackage; +import org.eclipse.papyrus.eastadl.environment.impl.EnvironmentPackageImpl; +import org.eclipse.papyrus.eastadl.genericconstraints.GenericconstraintsPackage; +import org.eclipse.papyrus.eastadl.genericconstraints.impl.GenericconstraintsPackageImpl; +import org.eclipse.papyrus.eastadl.impl.EastadlPackageImpl; +import org.eclipse.papyrus.eastadl.infrastructure.InfrastructurePackage; +import org.eclipse.papyrus.eastadl.infrastructure.datatypes.DatatypesPackage; +import org.eclipse.papyrus.eastadl.infrastructure.datatypes.impl.DatatypesPackageImpl; +import org.eclipse.papyrus.eastadl.infrastructure.elements.Comment; +import org.eclipse.papyrus.eastadl.infrastructure.elements.Context; +import org.eclipse.papyrus.eastadl.infrastructure.elements.EAElement; +import org.eclipse.papyrus.eastadl.infrastructure.elements.EAPackage; +import org.eclipse.papyrus.eastadl.infrastructure.elements.EAPackageableElement; +import org.eclipse.papyrus.eastadl.infrastructure.elements.ElementsFactory; +import org.eclipse.papyrus.eastadl.infrastructure.elements.ElementsPackage; +import org.eclipse.papyrus.eastadl.infrastructure.elements.MultiLevelReference; +import org.eclipse.papyrus.eastadl.infrastructure.elements.Rationale; +import org.eclipse.papyrus.eastadl.infrastructure.elements.Realization; +import org.eclipse.papyrus.eastadl.infrastructure.elements.Relationship; +import org.eclipse.papyrus.eastadl.infrastructure.elements.TraceableSpecification; +import org.eclipse.papyrus.eastadl.infrastructure.impl.InfrastructurePackageImpl; +import org.eclipse.papyrus.eastadl.infrastructure.userattributes.UserattributesPackage; +import org.eclipse.papyrus.eastadl.infrastructure.userattributes.impl.UserattributesPackageImpl; +import org.eclipse.papyrus.eastadl.interchange.InterchangePackage; +import org.eclipse.papyrus.eastadl.interchange.impl.InterchangePackageImpl; +import org.eclipse.papyrus.eastadl.requirements.RequirementsPackage; +import org.eclipse.papyrus.eastadl.requirements.impl.RequirementsPackageImpl; +import org.eclipse.papyrus.eastadl.requirements.verificationvalidation.VerificationvalidationPackage; +import org.eclipse.papyrus.eastadl.requirements.verificationvalidation.impl.VerificationvalidationPackageImpl; +import org.eclipse.papyrus.eastadl.structure.StructurePackage; +import org.eclipse.papyrus.eastadl.structure.featuremodeling.FeaturemodelingPackage; +import org.eclipse.papyrus.eastadl.structure.featuremodeling.impl.FeaturemodelingPackageImpl; +import org.eclipse.papyrus.eastadl.structure.functionmodeling.FunctionmodelingPackage; +import org.eclipse.papyrus.eastadl.structure.functionmodeling.impl.FunctionmodelingPackageImpl; +import org.eclipse.papyrus.eastadl.structure.hardwaremodeling.HardwaremodelingPackage; +import org.eclipse.papyrus.eastadl.structure.hardwaremodeling.impl.HardwaremodelingPackageImpl; +import org.eclipse.papyrus.eastadl.structure.impl.StructurePackageImpl; +import org.eclipse.papyrus.eastadl.structure.systemmodeling.SystemmodelingPackage; +import org.eclipse.papyrus.eastadl.structure.systemmodeling.impl.SystemmodelingPackageImpl; +import org.eclipse.papyrus.eastadl.structure.vehiclefeaturemodeling.VehiclefeaturemodelingPackage; +import org.eclipse.papyrus.eastadl.structure.vehiclefeaturemodeling.impl.VehiclefeaturemodelingPackageImpl; +import org.eclipse.papyrus.eastadl.timing.TimingPackage; +import org.eclipse.papyrus.eastadl.timing.events.EventsPackage; +import org.eclipse.papyrus.eastadl.timing.events.impl.EventsPackageImpl; +import org.eclipse.papyrus.eastadl.timing.impl.TimingPackageImpl; +import org.eclipse.papyrus.eastadl.timing.timingconstraints.TimingconstraintsPackage; +import org.eclipse.papyrus.eastadl.timing.timingconstraints.impl.TimingconstraintsPackageImpl; +import org.eclipse.papyrus.eastadl.variability.VariabilityPackage; +import org.eclipse.papyrus.eastadl.variability.impl.VariabilityPackageImpl; +import org.eclipse.papyrus.sysml.SysmlPackage; +import org.eclipse.papyrus.sysml.modelelements.ModelelementsPackage; +import org.eclipse.uml2.types.TypesPackage; +import org.eclipse.uml2.uml.UMLPackage; + + +/** + * <!-- begin-user-doc --> + * An implementation of the model <b>Package</b>. + * <!-- end-user-doc --> + * @generated + */ +public class ElementsPackageImpl extends EPackageImpl implements ElementsPackage { + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass relationshipEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass traceableSpecificationEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass eaPackageableElementEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass contextEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass realizationEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass multiLevelReferenceEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass rationaleEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass eaPackageEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass commentEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass eaElementEClass = null; + + /** + * <!-- 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 ElementsPackage#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 ElementsPackage init() { + if (isInited) return (ElementsPackage)EPackage.Registry.INSTANCE.getEPackage(ElementsPackage.eNS_URI); + + // Obtain or create and register package + ElementsPackageImpl theElementsPackage = (ElementsPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof ElementsPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new ElementsPackageImpl()); + + isInited = true; + + // Initialize simple dependencies + SysmlPackage.eINSTANCE.eClass(); + + // Obtain or create and register interdependencies + EastadlPackageImpl theEastadlPackage = (EastadlPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(EastadlPackage.eNS_URI) instanceof EastadlPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(EastadlPackage.eNS_URI) : EastadlPackage.eINSTANCE); + VariabilityPackageImpl theVariabilityPackage = (VariabilityPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(VariabilityPackage.eNS_URI) instanceof VariabilityPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(VariabilityPackage.eNS_URI) : VariabilityPackage.eINSTANCE); + InfrastructurePackageImpl theInfrastructurePackage = (InfrastructurePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(InfrastructurePackage.eNS_URI) instanceof InfrastructurePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(InfrastructurePackage.eNS_URI) : InfrastructurePackage.eINSTANCE); + DatatypesPackageImpl theDatatypesPackage = (DatatypesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(DatatypesPackage.eNS_URI) instanceof DatatypesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(DatatypesPackage.eNS_URI) : DatatypesPackage.eINSTANCE); + UserattributesPackageImpl theUserattributesPackage = (UserattributesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(UserattributesPackage.eNS_URI) instanceof UserattributesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(UserattributesPackage.eNS_URI) : UserattributesPackage.eINSTANCE); + StructurePackageImpl theStructurePackage = (StructurePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(StructurePackage.eNS_URI) instanceof StructurePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(StructurePackage.eNS_URI) : StructurePackage.eINSTANCE); + FunctionmodelingPackageImpl theFunctionmodelingPackage = (FunctionmodelingPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(FunctionmodelingPackage.eNS_URI) instanceof FunctionmodelingPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(FunctionmodelingPackage.eNS_URI) : FunctionmodelingPackage.eINSTANCE); + HardwaremodelingPackageImpl theHardwaremodelingPackage = (HardwaremodelingPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HardwaremodelingPackage.eNS_URI) instanceof HardwaremodelingPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HardwaremodelingPackage.eNS_URI) : HardwaremodelingPackage.eINSTANCE); + SystemmodelingPackageImpl theSystemmodelingPackage = (SystemmodelingPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SystemmodelingPackage.eNS_URI) instanceof SystemmodelingPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SystemmodelingPackage.eNS_URI) : SystemmodelingPackage.eINSTANCE); + VehiclefeaturemodelingPackageImpl theVehiclefeaturemodelingPackage = (VehiclefeaturemodelingPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(VehiclefeaturemodelingPackage.eNS_URI) instanceof VehiclefeaturemodelingPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(VehiclefeaturemodelingPackage.eNS_URI) : VehiclefeaturemodelingPackage.eINSTANCE); + FeaturemodelingPackageImpl theFeaturemodelingPackage = (FeaturemodelingPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(FeaturemodelingPackage.eNS_URI) instanceof FeaturemodelingPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(FeaturemodelingPackage.eNS_URI) : FeaturemodelingPackage.eINSTANCE); + BehaviorPackageImpl theBehaviorPackage = (BehaviorPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(BehaviorPackage.eNS_URI) instanceof BehaviorPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(BehaviorPackage.eNS_URI) : BehaviorPackage.eINSTANCE); + RequirementsPackageImpl theRequirementsPackage = (RequirementsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(RequirementsPackage.eNS_URI) instanceof RequirementsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(RequirementsPackage.eNS_URI) : RequirementsPackage.eINSTANCE); + VerificationvalidationPackageImpl theVerificationvalidationPackage = (VerificationvalidationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(VerificationvalidationPackage.eNS_URI) instanceof VerificationvalidationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(VerificationvalidationPackage.eNS_URI) : VerificationvalidationPackage.eINSTANCE); + TimingPackageImpl theTimingPackage = (TimingPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(TimingPackage.eNS_URI) instanceof TimingPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(TimingPackage.eNS_URI) : TimingPackage.eINSTANCE); + TimingconstraintsPackageImpl theTimingconstraintsPackage = (TimingconstraintsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(TimingconstraintsPackage.eNS_URI) instanceof TimingconstraintsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(TimingconstraintsPackage.eNS_URI) : TimingconstraintsPackage.eINSTANCE); + EventsPackageImpl theEventsPackage = (EventsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(EventsPackage.eNS_URI) instanceof EventsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(EventsPackage.eNS_URI) : EventsPackage.eINSTANCE); + InterchangePackageImpl theInterchangePackage = (InterchangePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(InterchangePackage.eNS_URI) instanceof InterchangePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(InterchangePackage.eNS_URI) : InterchangePackage.eINSTANCE); + EnvironmentPackageImpl theEnvironmentPackage = (EnvironmentPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(EnvironmentPackage.eNS_URI) instanceof EnvironmentPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(EnvironmentPackage.eNS_URI) : EnvironmentPackage.eINSTANCE); + DependabilityPackageImpl theDependabilityPackage = (DependabilityPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(DependabilityPackage.eNS_URI) instanceof DependabilityPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(DependabilityPackage.eNS_URI) : DependabilityPackage.eINSTANCE); + ErrormodelPackageImpl theErrormodelPackage = (ErrormodelPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ErrormodelPackage.eNS_URI) instanceof ErrormodelPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ErrormodelPackage.eNS_URI) : ErrormodelPackage.eINSTANCE); + SafetyrequirementPackageImpl theSafetyrequirementPackage = (SafetyrequirementPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SafetyrequirementPackage.eNS_URI) instanceof SafetyrequirementPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SafetyrequirementPackage.eNS_URI) : SafetyrequirementPackage.eINSTANCE); + SafetyconstraintsPackageImpl theSafetyconstraintsPackage = (SafetyconstraintsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SafetyconstraintsPackage.eNS_URI) instanceof SafetyconstraintsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SafetyconstraintsPackage.eNS_URI) : SafetyconstraintsPackage.eINSTANCE); + SafetycasePackageImpl theSafetycasePackage = (SafetycasePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SafetycasePackage.eNS_URI) instanceof SafetycasePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SafetycasePackage.eNS_URI) : SafetycasePackage.eINSTANCE); + AnnexPackageImpl theAnnexPackage = (AnnexPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(AnnexPackage.eNS_URI) instanceof AnnexPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(AnnexPackage.eNS_URI) : AnnexPackage.eINSTANCE); + NeedsPackageImpl theNeedsPackage = (NeedsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(NeedsPackage.eNS_URI) instanceof NeedsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(NeedsPackage.eNS_URI) : NeedsPackage.eINSTANCE); + GenericconstraintsPackageImpl theGenericconstraintsPackage = (GenericconstraintsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(GenericconstraintsPackage.eNS_URI) instanceof GenericconstraintsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(GenericconstraintsPackage.eNS_URI) : GenericconstraintsPackage.eINSTANCE); + + // Create package meta-data objects + theElementsPackage.createPackageContents(); + theEastadlPackage.createPackageContents(); + theVariabilityPackage.createPackageContents(); + theInfrastructurePackage.createPackageContents(); + theDatatypesPackage.createPackageContents(); + theUserattributesPackage.createPackageContents(); + theStructurePackage.createPackageContents(); + theFunctionmodelingPackage.createPackageContents(); + theHardwaremodelingPackage.createPackageContents(); + theSystemmodelingPackage.createPackageContents(); + theVehiclefeaturemodelingPackage.createPackageContents(); + theFeaturemodelingPackage.createPackageContents(); + theBehaviorPackage.createPackageContents(); + theRequirementsPackage.createPackageContents(); + theVerificationvalidationPackage.createPackageContents(); + theTimingPackage.createPackageContents(); + theTimingconstraintsPackage.createPackageContents(); + theEventsPackage.createPackageContents(); + theInterchangePackage.createPackageContents(); + theEnvironmentPackage.createPackageContents(); + theDependabilityPackage.createPackageContents(); + theErrormodelPackage.createPackageContents(); + theSafetyrequirementPackage.createPackageContents(); + theSafetyconstraintsPackage.createPackageContents(); + theSafetycasePackage.createPackageContents(); + theAnnexPackage.createPackageContents(); + theNeedsPackage.createPackageContents(); + theGenericconstraintsPackage.createPackageContents(); + + // Initialize created meta-data + theElementsPackage.initializePackageContents(); + theEastadlPackage.initializePackageContents(); + theVariabilityPackage.initializePackageContents(); + theInfrastructurePackage.initializePackageContents(); + theDatatypesPackage.initializePackageContents(); + theUserattributesPackage.initializePackageContents(); + theStructurePackage.initializePackageContents(); + theFunctionmodelingPackage.initializePackageContents(); + theHardwaremodelingPackage.initializePackageContents(); + theSystemmodelingPackage.initializePackageContents(); + theVehiclefeaturemodelingPackage.initializePackageContents(); + theFeaturemodelingPackage.initializePackageContents(); + theBehaviorPackage.initializePackageContents(); + theRequirementsPackage.initializePackageContents(); + theVerificationvalidationPackage.initializePackageContents(); + theTimingPackage.initializePackageContents(); + theTimingconstraintsPackage.initializePackageContents(); + theEventsPackage.initializePackageContents(); + theInterchangePackage.initializePackageContents(); + theEnvironmentPackage.initializePackageContents(); + theDependabilityPackage.initializePackageContents(); + theErrormodelPackage.initializePackageContents(); + theSafetyrequirementPackage.initializePackageContents(); + theSafetyconstraintsPackage.initializePackageContents(); + theSafetycasePackage.initializePackageContents(); + theAnnexPackage.initializePackageContents(); + theNeedsPackage.initializePackageContents(); + theGenericconstraintsPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theElementsPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(ElementsPackage.eNS_URI, theElementsPackage); + return theElementsPackage; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private boolean isCreated = false; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private boolean isInitialized = false; + + /** + * 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.papyrus.eastadl.infrastructure.elements.ElementsPackage#eNS_URI + * @see #init() + * @generated + */ + private ElementsPackageImpl() { + super(eNS_URI, ElementsFactory.eINSTANCE); + } + + /** + * 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 + traceableSpecificationEClass = createEClass(TRACEABLE_SPECIFICATION); + createEAttribute(traceableSpecificationEClass, TRACEABLE_SPECIFICATION__NOTE); + + eaPackageableElementEClass = createEClass(EA_PACKAGEABLE_ELEMENT); + createEReference(eaPackageableElementEClass, EA_PACKAGEABLE_ELEMENT__BASE_PACKAGEABLE_ELEMENT); + + realizationEClass = createEClass(REALIZATION); + createEReference(realizationEClass, REALIZATION__REALIZED); + createEReference(realizationEClass, REALIZATION__REALIZED_BY); + createEReference(realizationEClass, REALIZATION__BASE_REALIZATION); + createEReference(realizationEClass, REALIZATION__REALIZED_BY_PATH); + createEReference(realizationEClass, REALIZATION__REALIZED_PATH); + + relationshipEClass = createEClass(RELATIONSHIP); + + contextEClass = createEClass(CONTEXT); + createEReference(contextEClass, CONTEXT__TRACEABLE_SPECIFICATION); + createEReference(contextEClass, CONTEXT__OWNED_RELATIONSHIP); + + multiLevelReferenceEClass = createEClass(MULTI_LEVEL_REFERENCE); + createEReference(multiLevelReferenceEClass, MULTI_LEVEL_REFERENCE__BASE_DEPENDENCY); + createEReference(multiLevelReferenceEClass, MULTI_LEVEL_REFERENCE__REFERRING); + createEReference(multiLevelReferenceEClass, MULTI_LEVEL_REFERENCE__REFERENCE); + + rationaleEClass = createEClass(RATIONALE); + + eaPackageEClass = createEClass(EA_PACKAGE); + createEReference(eaPackageEClass, EA_PACKAGE__SUB_PACKAGES); + createEReference(eaPackageEClass, EA_PACKAGE__ELEMENT); + createEReference(eaPackageEClass, EA_PACKAGE__BASE_PACKAGE); + + commentEClass = createEClass(COMMENT); + createEAttribute(commentEClass, COMMENT__BODY); + createEReference(commentEClass, COMMENT__BASE_COMMENT); + + eaElementEClass = createEClass(EA_ELEMENT); + createEAttribute(eaElementEClass, EA_ELEMENT__NAME); + createEReference(eaElementEClass, EA_ELEMENT__BASE_NAMED_ELEMENT); + createEReference(eaElementEClass, EA_ELEMENT__OWNED_COMMENT); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getContext() { + return contextEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getContext_OwnedRelationship() { + return (EReference)contextEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getContext_TraceableSpecification() { + return (EReference)contextEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ElementsFactory getElementsFactory() { + return (ElementsFactory)getEFactoryInstance(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getMultiLevelReference() { + return multiLevelReferenceEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getMultiLevelReference_Base_Dependency() { + return (EReference)multiLevelReferenceEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getMultiLevelReference_Reference() { + return (EReference)multiLevelReferenceEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getRationale() { + return rationaleEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getEAPackage() { + return eaPackageEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getEAPackage_SubPackages() { + return (EReference)eaPackageEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getEAPackage_Element() { + return (EReference)eaPackageEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getEAPackage_Base_Package() { + return (EReference)eaPackageEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getComment() { + return commentEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getComment_Body() { + return (EAttribute)commentEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getComment_Base_Comment() { + return (EReference)commentEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getEAElement() { + return eaElementEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getEAElement_Name() { + return (EAttribute)eaElementEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getEAElement_Base_NamedElement() { + return (EReference)eaElementEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getEAElement_OwnedComment() { + return (EReference)eaElementEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getMultiLevelReference_Referring() { + return (EReference)multiLevelReferenceEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getRealization() { + return realizationEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getRealization_Realized() { + return (EReference)realizationEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getRealization_RealizedBy() { + return (EReference)realizationEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getRealization_Base_Realization() { + return (EReference)realizationEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getRealization_RealizedBy_path() { + return (EReference)realizationEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getRealization_Realized_path() { + return (EReference)realizationEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getRelationship() { + return relationshipEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getTraceableSpecification() { + return traceableSpecificationEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getTraceableSpecification_Note() { + return (EAttribute)traceableSpecificationEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getEAPackageableElement() { + return eaPackageableElementEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getEAPackageableElement_Base_PackageableElement() { + return (EReference)eaPackageableElementEClass.getEStructuralFeatures().get(0); + } + + /** + * 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 + TypesPackage theTypesPackage = (TypesPackage)EPackage.Registry.INSTANCE.getEPackage(TypesPackage.eNS_URI); + UMLPackage theUMLPackage = (UMLPackage)EPackage.Registry.INSTANCE.getEPackage(UMLPackage.eNS_URI); + ModelelementsPackage theModelelementsPackage = (ModelelementsPackage)EPackage.Registry.INSTANCE.getEPackage(ModelelementsPackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + traceableSpecificationEClass.getESuperTypes().add(this.getEAPackageableElement()); + eaPackageableElementEClass.getESuperTypes().add(this.getEAElement()); + realizationEClass.getESuperTypes().add(this.getRelationship()); + relationshipEClass.getESuperTypes().add(this.getEAElement()); + contextEClass.getESuperTypes().add(this.getEAElement()); + multiLevelReferenceEClass.getESuperTypes().add(this.getRelationship()); + rationaleEClass.getESuperTypes().add(theModelelementsPackage.getRationale()); + eaPackageEClass.getESuperTypes().add(this.getEAElement()); + + // Initialize classes and features; add operations and parameters + initEClass(traceableSpecificationEClass, TraceableSpecification.class, "TraceableSpecification", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getTraceableSpecification_Note(), theTypesPackage.getString(), "note", null, 0, 1, TraceableSpecification.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(eaPackageableElementEClass, EAPackageableElement.class, "EAPackageableElement", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getEAPackageableElement_Base_PackageableElement(), theUMLPackage.getPackageableElement(), null, "base_PackageableElement", null, 1, 1, EAPackageableElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(realizationEClass, Realization.class, "Realization", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getRealization_Realized(), this.getEAElement(), null, "realized", null, 1, -1, Realization.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, !IS_ORDERED); + initEReference(getRealization_RealizedBy(), theUMLPackage.getNamedElement(), null, "realizedBy", null, 0, -1, Realization.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, !IS_ORDERED); + initEReference(getRealization_Base_Realization(), theUMLPackage.getRealization(), null, "base_Realization", null, 1, 1, Realization.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getRealization_RealizedBy_path(), theUMLPackage.getNamedElement(), null, "realizedBy_path", null, 0, -1, Realization.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getRealization_Realized_path(), theUMLPackage.getNamedElement(), null, "realized_path", null, 0, -1, Realization.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(relationshipEClass, Relationship.class, "Relationship", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(contextEClass, Context.class, "Context", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getContext_TraceableSpecification(), this.getTraceableSpecification(), null, "traceableSpecification", null, 0, -1, Context.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getContext_OwnedRelationship(), this.getRelationship(), null, "ownedRelationship", null, 0, -1, Context.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(multiLevelReferenceEClass, MultiLevelReference.class, "MultiLevelReference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getMultiLevelReference_Base_Dependency(), theUMLPackage.getDependency(), null, "base_Dependency", null, 1, 1, MultiLevelReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getMultiLevelReference_Referring(), this.getEAElement(), null, "referring", null, 1, 1, MultiLevelReference.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, !IS_ORDERED); + initEReference(getMultiLevelReference_Reference(), this.getEAElement(), null, "reference", null, 1, 1, MultiLevelReference.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, !IS_ORDERED); + + initEClass(rationaleEClass, Rationale.class, "Rationale", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(eaPackageEClass, EAPackage.class, "EAPackage", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getEAPackage_SubPackages(), this.getEAPackage(), null, "subPackages", null, 0, -1, EAPackage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getEAPackage_Element(), this.getEAPackageableElement(), null, "element", null, 0, -1, EAPackage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getEAPackage_Base_Package(), theUMLPackage.getPackage(), null, "base_Package", null, 1, 1, EAPackage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(commentEClass, Comment.class, "Comment", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getComment_Body(), theTypesPackage.getString(), "body", null, 1, 1, Comment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getComment_Base_Comment(), theUMLPackage.getComment(), null, "base_Comment", null, 1, 1, Comment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(eaElementEClass, EAElement.class, "EAElement", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getEAElement_Name(), theTypesPackage.getString(), "name", null, 0, 1, EAElement.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, IS_DERIVED, !IS_ORDERED); + initEReference(getEAElement_Base_NamedElement(), theUMLPackage.getNamedElement(), null, "base_NamedElement", null, 1, 1, EAElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getEAElement_OwnedComment(), this.getComment(), null, "ownedComment", null, 0, -1, EAElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + } + +} //ElementsPackageImpl |