/******************************************************************************* * Copyright (c) 2009 Jeff McAffer, Ed Merks and others. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 and Eclipse Distribution License v1.0 * which accompanies this distribution. The Eclipse Public License is available at * http://www.eclipse.org/legal/epl-v10.html and the Eclipse Distribution License * is available at http://www.eclipse.org/org/documents/edl-v10.php. * * Contributors: * Jeff McAffer and Ed Merks - initial API and implementation *******************************************************************************/ package org.eclipse.examples.toast.backend.data.internal; import org.eclipse.emf.ecore.EAttribute; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.EDataType; import org.eclipse.emf.ecore.EPackage; import org.eclipse.emf.ecore.EReference; import org.eclipse.emf.ecore.impl.EPackageImpl; import org.eclipse.examples.toast.backend.data.IAddress; import org.eclipse.examples.toast.backend.data.IDriver; import org.eclipse.examples.toast.backend.data.IHub; import org.eclipse.examples.toast.backend.data.IPackage; import org.eclipse.examples.toast.backend.data.IToastBackEndDataFactory; import org.eclipse.examples.toast.backend.data.IToastBackEndDataPackage; import org.eclipse.examples.toast.backend.data.ITrackedLocation; import org.eclipse.examples.toast.backend.data.IVehicle; import org.eclipse.examples.toast.backend.data.IWaybill; /** * <!-- begin-user-doc --> * An implementation of the model <b>Package</b>. * <!-- end-user-doc --> * @generated */ public class ToastBackEndDataPackage extends EPackageImpl implements IToastBackEndDataPackage { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EClass addressEClass = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EClass driverEClass = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EClass packageEClass = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EClass trackedLocationEClass = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EClass vehicleEClass = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EClass waybillEClass = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EClass hubEClass = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EDataType uriEDataType = 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.examples.toast.backend.data.IToastBackEndDataPackage#eNS_URI * @see #init() * @generated */ private ToastBackEndDataPackage() { super(eNS_URI, IToastBackEndDataFactory.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 IToastBackEndDataPackage#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 IToastBackEndDataPackage init() { if (isInited) return (IToastBackEndDataPackage)EPackage.Registry.INSTANCE.getEPackage(IToastBackEndDataPackage.eNS_URI); // Obtain or create and register package ToastBackEndDataPackage theToastBackEndDataPackage = (ToastBackEndDataPackage)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof ToastBackEndDataPackage ? EPackage.Registry.INSTANCE.get(eNS_URI) : new ToastBackEndDataPackage()); isInited = true; // Create package meta-data objects theToastBackEndDataPackage.createPackageContents(); // Initialize created meta-data theToastBackEndDataPackage.initializePackageContents(); // Mark meta-data to indicate it can't be changed theToastBackEndDataPackage.freeze(); // Update the registry and return the package EPackage.Registry.INSTANCE.put(IToastBackEndDataPackage.eNS_URI, theToastBackEndDataPackage); return theToastBackEndDataPackage; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EClass getAddress() { return addressEClass; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getAddress_Area() { return (EAttribute)addressEClass.getEStructuralFeatures().get(0); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getAddress_City() { return (EAttribute)addressEClass.getEStructuralFeatures().get(1); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getAddress_Country() { return (EAttribute)addressEClass.getEStructuralFeatures().get(2); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getAddress_Postcode() { return (EAttribute)addressEClass.getEStructuralFeatures().get(3); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getAddress_Street() { return (EAttribute)addressEClass.getEStructuralFeatures().get(4); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getAddress_Id() { return (EAttribute)addressEClass.getEStructuralFeatures().get(5); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EClass getDriver() { return driverEClass; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getDriver_Address() { return (EReference)driverEClass.getEStructuralFeatures().get(0); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getDriver_FirstName() { return (EAttribute)driverEClass.getEStructuralFeatures().get(1); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getDriver_Image() { return (EAttribute)driverEClass.getEStructuralFeatures().get(2); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getDriver_LastName() { return (EAttribute)driverEClass.getEStructuralFeatures().get(3); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getDriver_Id() { return (EAttribute)driverEClass.getEStructuralFeatures().get(4); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EClass getPackage() { return packageEClass; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getPackage_Waybill() { return (EReference)packageEClass.getEStructuralFeatures().get(0); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getPackage_Weight() { return (EAttribute)packageEClass.getEStructuralFeatures().get(1); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getPackage_Id() { return (EAttribute)packageEClass.getEStructuralFeatures().get(2); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EClass getTrackedLocation() { return trackedLocationEClass; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getTrackedLocation_Heading() { return (EAttribute)trackedLocationEClass.getEStructuralFeatures().get(0); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getTrackedLocation_Latitude() { return (EAttribute)trackedLocationEClass.getEStructuralFeatures().get(1); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getTrackedLocation_Longitude() { return (EAttribute)trackedLocationEClass.getEStructuralFeatures().get(2); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getTrackedLocation_Speed() { return (EAttribute)trackedLocationEClass.getEStructuralFeatures().get(3); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getTrackedLocation_Time() { return (EAttribute)trackedLocationEClass.getEStructuralFeatures().get(4); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getTrackedLocation_Id() { return (EAttribute)trackedLocationEClass.getEStructuralFeatures().get(5); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EClass getVehicle() { return vehicleEClass; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getVehicle_CurrentLocation() { return (EReference)vehicleEClass.getEStructuralFeatures().get(0); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getVehicle_EmergencyLocation() { return (EReference)vehicleEClass.getEStructuralFeatures().get(1); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getVehicle_Name() { return (EAttribute)vehicleEClass.getEStructuralFeatures().get(2); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getVehicle_Driver() { return (EReference)vehicleEClass.getEStructuralFeatures().get(3); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getVehicle_Packages() { return (EReference)vehicleEClass.getEStructuralFeatures().get(4); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getVehicle_Id() { return (EAttribute)vehicleEClass.getEStructuralFeatures().get(5); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getVehicle_Online() { return (EAttribute)vehicleEClass.getEStructuralFeatures().get(6); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EClass getWaybill() { return waybillEClass; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getWaybill_Id() { return (EAttribute)waybillEClass.getEStructuralFeatures().get(0); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getWaybill_Item() { return (EReference)waybillEClass.getEStructuralFeatures().get(1); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getWaybill_Received() { return (EAttribute)waybillEClass.getEStructuralFeatures().get(2); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getWaybill_Sent() { return (EAttribute)waybillEClass.getEStructuralFeatures().get(3); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getWaybill_Destination() { return (EReference)waybillEClass.getEStructuralFeatures().get(4); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getWaybill_Origin() { return (EReference)waybillEClass.getEStructuralFeatures().get(5); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EClass getHub() { return hubEClass; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getHub_Vehicles() { return (EReference)hubEClass.getEStructuralFeatures().get(0); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getHub_Waybills() { return (EReference)hubEClass.getEStructuralFeatures().get(1); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getHub_Drivers() { return (EReference)hubEClass.getEStructuralFeatures().get(2); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getHub_Id() { return (EAttribute)hubEClass.getEStructuralFeatures().get(3); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EDataType getURI() { return uriEDataType; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public IToastBackEndDataFactory getToastBackEndDataFactory() { return (IToastBackEndDataFactory)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 addressEClass = createEClass(ADDRESS); createEAttribute(addressEClass, ADDRESS__AREA); createEAttribute(addressEClass, ADDRESS__CITY); createEAttribute(addressEClass, ADDRESS__COUNTRY); createEAttribute(addressEClass, ADDRESS__POSTCODE); createEAttribute(addressEClass, ADDRESS__STREET); createEAttribute(addressEClass, ADDRESS__ID); driverEClass = createEClass(DRIVER); createEReference(driverEClass, DRIVER__ADDRESS); createEAttribute(driverEClass, DRIVER__FIRST_NAME); createEAttribute(driverEClass, DRIVER__IMAGE); createEAttribute(driverEClass, DRIVER__LAST_NAME); createEAttribute(driverEClass, DRIVER__ID); packageEClass = createEClass(PACKAGE); createEReference(packageEClass, PACKAGE__WAYBILL); createEAttribute(packageEClass, PACKAGE__WEIGHT); createEAttribute(packageEClass, PACKAGE__ID); trackedLocationEClass = createEClass(TRACKED_LOCATION); createEAttribute(trackedLocationEClass, TRACKED_LOCATION__HEADING); createEAttribute(trackedLocationEClass, TRACKED_LOCATION__LATITUDE); createEAttribute(trackedLocationEClass, TRACKED_LOCATION__LONGITUDE); createEAttribute(trackedLocationEClass, TRACKED_LOCATION__SPEED); createEAttribute(trackedLocationEClass, TRACKED_LOCATION__TIME); createEAttribute(trackedLocationEClass, TRACKED_LOCATION__ID); vehicleEClass = createEClass(VEHICLE); createEReference(vehicleEClass, VEHICLE__CURRENT_LOCATION); createEReference(vehicleEClass, VEHICLE__EMERGENCY_LOCATION); createEAttribute(vehicleEClass, VEHICLE__NAME); createEReference(vehicleEClass, VEHICLE__DRIVER); createEReference(vehicleEClass, VEHICLE__PACKAGES); createEAttribute(vehicleEClass, VEHICLE__ID); createEAttribute(vehicleEClass, VEHICLE__ONLINE); waybillEClass = createEClass(WAYBILL); createEAttribute(waybillEClass, WAYBILL__ID); createEReference(waybillEClass, WAYBILL__ITEM); createEAttribute(waybillEClass, WAYBILL__RECEIVED); createEAttribute(waybillEClass, WAYBILL__SENT); createEReference(waybillEClass, WAYBILL__DESTINATION); createEReference(waybillEClass, WAYBILL__ORIGIN); hubEClass = createEClass(HUB); createEReference(hubEClass, HUB__VEHICLES); createEReference(hubEClass, HUB__WAYBILLS); createEReference(hubEClass, HUB__DRIVERS); createEAttribute(hubEClass, HUB__ID); // Create data types uriEDataType = createEDataType(URI); } /** * <!-- 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); // Create type parameters // Set bounds for type parameters // Add supertypes to classes // Initialize classes and features; add operations and parameters initEClass(addressEClass, IAddress.class, "Address", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getAddress_Area(), ecorePackage.getEString(), "area", null, 0, 1, IAddress.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getAddress_City(), ecorePackage.getEString(), "city", null, 0, 1, IAddress.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getAddress_Country(), ecorePackage.getEString(), "country", null, 0, 1, IAddress.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getAddress_Postcode(), ecorePackage.getEString(), "postcode", null, 0, 1, IAddress.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getAddress_Street(), ecorePackage.getEString(), "street", null, 0, 1, IAddress.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getAddress_Id(), ecorePackage.getEInt(), "id", null, 0, 1, IAddress.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(driverEClass, IDriver.class, "Driver", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getDriver_Address(), this.getAddress(), null, "address", null, 0, 1, IDriver.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getDriver_FirstName(), ecorePackage.getEString(), "firstName", null, 0, 1, IDriver.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getDriver_Image(), this.getURI(), "image", null, 0, 1, IDriver.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getDriver_LastName(), ecorePackage.getEString(), "lastName", null, 0, 1, IDriver.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getDriver_Id(), ecorePackage.getEInt(), "id", null, 0, 1, IDriver.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(packageEClass, IPackage.class, "Package", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getPackage_Waybill(), this.getWaybill(), this.getWaybill_Item(), "waybill", null, 0, 1, IPackage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getPackage_Weight(), ecorePackage.getEInt(), "weight", null, 0, 1, IPackage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getPackage_Id(), ecorePackage.getEInt(), "id", null, 0, 1, IPackage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(trackedLocationEClass, ITrackedLocation.class, "TrackedLocation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getTrackedLocation_Heading(), ecorePackage.getEInt(), "heading", null, 0, 1, ITrackedLocation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getTrackedLocation_Latitude(), ecorePackage.getEInt(), "latitude", null, 0, 1, ITrackedLocation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getTrackedLocation_Longitude(), ecorePackage.getEInt(), "longitude", null, 0, 1, ITrackedLocation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getTrackedLocation_Speed(), ecorePackage.getEInt(), "speed", null, 0, 1, ITrackedLocation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getTrackedLocation_Time(), ecorePackage.getELong(), "time", null, 0, 1, ITrackedLocation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getTrackedLocation_Id(), ecorePackage.getEInt(), "id", null, 0, 1, ITrackedLocation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(vehicleEClass, IVehicle.class, "Vehicle", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getVehicle_CurrentLocation(), this.getTrackedLocation(), null, "currentLocation", null, 0, 1, IVehicle.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getVehicle_EmergencyLocation(), this.getTrackedLocation(), null, "emergencyLocation", null, 0, 1, IVehicle.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getVehicle_Name(), ecorePackage.getEString(), "name", null, 0, 1, IVehicle.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getVehicle_Driver(), this.getDriver(), null, "driver", null, 0, 1, IVehicle.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getVehicle_Packages(), this.getWaybill(), null, "packages", null, 0, -1, IVehicle.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getVehicle_Id(), ecorePackage.getEInt(), "id", null, 0, 1, IVehicle.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getVehicle_Online(), ecorePackage.getEBoolean(), "online", "false", 0, 1, IVehicle.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(waybillEClass, IWaybill.class, "Waybill", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getWaybill_Id(), ecorePackage.getEInt(), "id", null, 0, 1, IWaybill.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getWaybill_Item(), this.getPackage(), this.getPackage_Waybill(), "item", null, 0, 1, IWaybill.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getWaybill_Received(), ecorePackage.getEDate(), "received", null, 0, 1, IWaybill.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getWaybill_Sent(), ecorePackage.getEDate(), "sent", null, 0, 1, IWaybill.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getWaybill_Destination(), this.getAddress(), null, "destination", null, 0, 1, IWaybill.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getWaybill_Origin(), this.getAddress(), null, "origin", null, 0, 1, IWaybill.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(hubEClass, IHub.class, "Hub", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getHub_Vehicles(), this.getVehicle(), null, "vehicles", null, 0, -1, IHub.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getHub_Waybills(), this.getWaybill(), null, "waybills", null, 0, -1, IHub.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getHub_Drivers(), this.getDriver(), null, "drivers", null, 0, -1, IHub.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getHub_Id(), ecorePackage.getEInt(), "id", null, 0, 1, IHub.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); // Initialize data types initEDataType(uriEDataType, java.net.URI.class, "URI", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); // Create resource createResource(eNS_URI); } } //ToastBackEndDataPackage