/** * <copyright> * </copyright> * * $Id$ */ package FederationOffice.providersite.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 FederationOffice.FederationOfficePackage; import FederationOffice.availabilityContract.AvailabilityContractPackage; import FederationOffice.availabilityContract.impl.AvailabilityContractPackageImpl; import FederationOffice.experimentRuntime.ExperimentRuntimePackage; import FederationOffice.experimentRuntime.impl.ExperimentRuntimePackageImpl; import FederationOffice.extensionInterfaces.ExtensionInterfacesPackage; import FederationOffice.extensionInterfaces.impl.ExtensionInterfacesPackageImpl; import FederationOffice.fcielements.FcielementsPackage; import FederationOffice.fcielements.impl.FcielementsPackageImpl; import FederationOffice.federationscenarios.FederationscenariosPackage; import FederationOffice.federationscenarios.impl.FederationscenariosPackageImpl; import FederationOffice.impl.FederationOfficePackageImpl; import FederationOffice.networkelements.NetworkelementsPackage; import FederationOffice.networkelements.impl.NetworkelementsPackageImpl; import FederationOffice.providersite.ProvidersiteFactory; import FederationOffice.providersite.ProvidersitePackage; import FederationOffice.providersite.Site; import FederationOffice.providersite.SiteLocation; import FederationOffice.resources.ResourcesPackage; import FederationOffice.resources.impl.ResourcesPackageImpl; import FederationOffice.services.ServicesPackage; import FederationOffice.services.impl.ServicesPackageImpl; import FederationOffice.slareservations.SlareservationsPackage; import FederationOffice.slareservations.impl.SlareservationsPackageImpl; import FederationOffice.uiObjects.UiObjectsPackage; import FederationOffice.uiObjects.impl.UiObjectsPackageImpl; import FederationOffice.users.UsersPackage; import FederationOffice.users.impl.UsersPackageImpl; /** * <!-- begin-user-doc --> * An implementation of the model <b>Package</b>. * <!-- end-user-doc --> * @generated */ public class ProvidersitePackageImpl extends EPackageImpl implements ProvidersitePackage { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EClass ptmEClass = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EClass igwEClass = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EClass siteEClass = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EClass siteLocationEClass = 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 FederationOffice.providersite.ProvidersitePackage#eNS_URI * @see #init() * @generated */ private ProvidersitePackageImpl() { super(eNS_URI, ProvidersiteFactory.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 ProvidersitePackage#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 ProvidersitePackage init() { if (isInited) return (ProvidersitePackage)EPackage.Registry.INSTANCE.getEPackage(ProvidersitePackage.eNS_URI); // Obtain or create and register package ProvidersitePackageImpl theProvidersitePackage = (ProvidersitePackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof ProvidersitePackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new ProvidersitePackageImpl()); isInited = true; // Obtain or create and register interdependencies FederationOfficePackageImpl theFederationOfficePackage = (FederationOfficePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(FederationOfficePackage.eNS_URI) instanceof FederationOfficePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(FederationOfficePackage.eNS_URI) : FederationOfficePackage.eINSTANCE); UsersPackageImpl theUsersPackage = (UsersPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(UsersPackage.eNS_URI) instanceof UsersPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(UsersPackage.eNS_URI) : UsersPackage.eINSTANCE); ResourcesPackageImpl theResourcesPackage = (ResourcesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ResourcesPackage.eNS_URI) instanceof ResourcesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ResourcesPackage.eNS_URI) : ResourcesPackage.eINSTANCE); NetworkelementsPackageImpl theNetworkelementsPackage = (NetworkelementsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(NetworkelementsPackage.eNS_URI) instanceof NetworkelementsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(NetworkelementsPackage.eNS_URI) : NetworkelementsPackage.eINSTANCE); SlareservationsPackageImpl theSlareservationsPackage = (SlareservationsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SlareservationsPackage.eNS_URI) instanceof SlareservationsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SlareservationsPackage.eNS_URI) : SlareservationsPackage.eINSTANCE); FederationscenariosPackageImpl theFederationscenariosPackage = (FederationscenariosPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(FederationscenariosPackage.eNS_URI) instanceof FederationscenariosPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(FederationscenariosPackage.eNS_URI) : FederationscenariosPackage.eINSTANCE); ServicesPackageImpl theServicesPackage = (ServicesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ServicesPackage.eNS_URI) instanceof ServicesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ServicesPackage.eNS_URI) : ServicesPackage.eINSTANCE); AvailabilityContractPackageImpl theAvailabilityContractPackage = (AvailabilityContractPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(AvailabilityContractPackage.eNS_URI) instanceof AvailabilityContractPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(AvailabilityContractPackage.eNS_URI) : AvailabilityContractPackage.eINSTANCE); UiObjectsPackageImpl theUiObjectsPackage = (UiObjectsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(UiObjectsPackage.eNS_URI) instanceof UiObjectsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(UiObjectsPackage.eNS_URI) : UiObjectsPackage.eINSTANCE); ExperimentRuntimePackageImpl theExperimentRuntimePackage = (ExperimentRuntimePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ExperimentRuntimePackage.eNS_URI) instanceof ExperimentRuntimePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ExperimentRuntimePackage.eNS_URI) : ExperimentRuntimePackage.eINSTANCE); ExtensionInterfacesPackageImpl theExtensionInterfacesPackage = (ExtensionInterfacesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ExtensionInterfacesPackage.eNS_URI) instanceof ExtensionInterfacesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ExtensionInterfacesPackage.eNS_URI) : ExtensionInterfacesPackage.eINSTANCE); FcielementsPackageImpl theFcielementsPackage = (FcielementsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(FcielementsPackage.eNS_URI) instanceof FcielementsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(FcielementsPackage.eNS_URI) : FcielementsPackage.eINSTANCE); // Create package meta-data objects theProvidersitePackage.createPackageContents(); theFederationOfficePackage.createPackageContents(); theUsersPackage.createPackageContents(); theResourcesPackage.createPackageContents(); theNetworkelementsPackage.createPackageContents(); theSlareservationsPackage.createPackageContents(); theFederationscenariosPackage.createPackageContents(); theServicesPackage.createPackageContents(); theAvailabilityContractPackage.createPackageContents(); theUiObjectsPackage.createPackageContents(); theExperimentRuntimePackage.createPackageContents(); theExtensionInterfacesPackage.createPackageContents(); theFcielementsPackage.createPackageContents(); // Initialize created meta-data theProvidersitePackage.initializePackageContents(); theFederationOfficePackage.initializePackageContents(); theUsersPackage.initializePackageContents(); theResourcesPackage.initializePackageContents(); theNetworkelementsPackage.initializePackageContents(); theSlareservationsPackage.initializePackageContents(); theFederationscenariosPackage.initializePackageContents(); theServicesPackage.initializePackageContents(); theAvailabilityContractPackage.initializePackageContents(); theUiObjectsPackage.initializePackageContents(); theExperimentRuntimePackage.initializePackageContents(); theExtensionInterfacesPackage.initializePackageContents(); theFcielementsPackage.initializePackageContents(); // Mark meta-data to indicate it can't be changed theProvidersitePackage.freeze(); // Update the registry and return the package EPackage.Registry.INSTANCE.put(ProvidersitePackage.eNS_URI, theProvidersitePackage); return theProvidersitePackage; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EClass getPTM() { return ptmEClass; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getPTM_IP() { return (EAttribute)ptmEClass.getEStructuralFeatures().get(0); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getPTM_BelongsToSite() { return (EReference)ptmEClass.getEStructuralFeatures().get(1); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EClass getIGW() { return igwEClass; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getIGW_BelongsToSite() { return (EReference)igwEClass.getEStructuralFeatures().get(0); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getIGW_IP() { return (EAttribute)igwEClass.getEStructuralFeatures().get(1); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EClass getSite() { return siteEClass; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getSite_Ptm() { return (EReference)siteEClass.getEStructuralFeatures().get(0); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getSite_Igwlist() { return (EReference)siteEClass.getEStructuralFeatures().get(1); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getSite_LocatedAt() { return (EReference)siteEClass.getEStructuralFeatures().get(2); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getSite_OfferedResourcesList() { return (EReference)siteEClass.getEStructuralFeatures().get(3); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getSite_BelongsToProvider() { return (EReference)siteEClass.getEStructuralFeatures().get(4); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EClass getSiteLocation() { return siteLocationEClass; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getSiteLocation_Address() { return (EAttribute)siteLocationEClass.getEStructuralFeatures().get(0); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getSiteLocation_Geocoords() { return (EAttribute)siteLocationEClass.getEStructuralFeatures().get(1); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public ProvidersiteFactory getProvidersiteFactory() { return (ProvidersiteFactory)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 ptmEClass = createEClass(PTM); createEAttribute(ptmEClass, PTM__IP); createEReference(ptmEClass, PTM__BELONGS_TO_SITE); igwEClass = createEClass(IGW); createEReference(igwEClass, IGW__BELONGS_TO_SITE); createEAttribute(igwEClass, IGW__IP); siteEClass = createEClass(SITE); createEReference(siteEClass, SITE__PTM); createEReference(siteEClass, SITE__IGWLIST); createEReference(siteEClass, SITE__LOCATED_AT); createEReference(siteEClass, SITE__OFFERED_RESOURCES_LIST); createEReference(siteEClass, SITE__BELONGS_TO_PROVIDER); siteLocationEClass = createEClass(SITE_LOCATION); createEAttribute(siteLocationEClass, SITE_LOCATION__ADDRESS); createEAttribute(siteLocationEClass, SITE_LOCATION__GEOCOORDS); } /** * <!-- 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 FederationOfficePackage theFederationOfficePackage = (FederationOfficePackage)EPackage.Registry.INSTANCE.getEPackage(FederationOfficePackage.eNS_URI); ResourcesPackage theResourcesPackage = (ResourcesPackage)EPackage.Registry.INSTANCE.getEPackage(ResourcesPackage.eNS_URI); UsersPackage theUsersPackage = (UsersPackage)EPackage.Registry.INSTANCE.getEPackage(UsersPackage.eNS_URI); // Create type parameters // Set bounds for type parameters // Add supertypes to classes ptmEClass.getESuperTypes().add(theFederationOfficePackage.getNamedElement()); igwEClass.getESuperTypes().add(theFederationOfficePackage.getNamedElement()); siteEClass.getESuperTypes().add(theFederationOfficePackage.getNamedElement()); siteLocationEClass.getESuperTypes().add(theFederationOfficePackage.getNamedElement()); // Initialize classes and features; add operations and parameters initEClass(ptmEClass, FederationOffice.providersite.PTM.class, "PTM", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getPTM_IP(), ecorePackage.getEString(), "IP", null, 0, 1, FederationOffice.providersite.PTM.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getPTM_BelongsToSite(), this.getSite(), this.getSite_Ptm(), "belongsToSite", null, 0, 1, FederationOffice.providersite.PTM.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(igwEClass, FederationOffice.providersite.IGW.class, "IGW", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getIGW_BelongsToSite(), this.getSite(), this.getSite_Igwlist(), "belongsToSite", null, 0, 1, FederationOffice.providersite.IGW.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getIGW_IP(), ecorePackage.getEString(), "IP", null, 0, 1, FederationOffice.providersite.IGW.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(siteEClass, Site.class, "Site", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getSite_Ptm(), this.getPTM(), this.getPTM_BelongsToSite(), "ptm", null, 1, 1, Site.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getSite_Igwlist(), this.getIGW(), this.getIGW_BelongsToSite(), "igwlist", null, 1, -1, Site.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getSite_LocatedAt(), this.getSiteLocation(), null, "locatedAt", null, 1, 1, Site.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getSite_OfferedResourcesList(), theResourcesPackage.getOfferedResource(), theResourcesPackage.getOfferedResource_BelongsToSite(), "offeredResourcesList", null, 0, -1, Site.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getSite_BelongsToProvider(), theUsersPackage.getResourcesProvider(), theUsersPackage.getResourcesProvider_OfferedSiteList(), "belongsToProvider", null, 0, 1, Site.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(siteLocationEClass, SiteLocation.class, "SiteLocation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getSiteLocation_Address(), ecorePackage.getEString(), "address", null, 0, 1, SiteLocation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getSiteLocation_Geocoords(), ecorePackage.getEString(), "geocoords", null, 0, 1, SiteLocation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); } } //ProvidersitePackageImpl