Examples of StructurePackage


Examples of net.cis.common.model.structure.StructurePackage

    setNsURI(eNS_URI);

    // Obtain other dependent packages
    BasePackage theBasePackage = (BasePackage)EPackage.Registry.INSTANCE.getEPackage(BasePackage.eNS_URI);
    UniversePackage theUniversePackage = (UniversePackage)EPackage.Registry.INSTANCE.getEPackage(UniversePackage.eNS_URI);
    StructurePackage theStructurePackage = (StructurePackage)EPackage.Registry.INSTANCE.getEPackage(StructurePackage.eNS_URI);
    SpaceobjectPackage theSpaceobjectPackage = (SpaceobjectPackage)EPackage.Registry.INSTANCE.getEPackage(SpaceobjectPackage.eNS_URI);

    // Create type parameters

    // Set bounds for type parameters

    // Add supertypes to classes
    sectorEClass.getESuperTypes().add(theBasePackage.getAbstractNamedEntity());

    // Initialize classes and features; add operations and parameters
    initEClass(sectorEClass, Sector.class, "Sector", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEReference(getSector_ParentCelestialBody(), theUniversePackage.getCelestialBody(), null, "parentCelestialBody", null, 1, 1, Sector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEReference(getSector_Jumpgates(), theStructurePackage.getJumpgate(), null, "jumpgates", null, 1, -1, Sector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEReference(getSector_Ships(), theStructurePackage.getShip(), null, "ships", null, 0, -1, Sector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEReference(getSector_Asteroids(), theSpaceobjectPackage.getAsteroid(), null, "asteroids", null, 0, -1, Sector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEReference(getSector_Stations(), theStructurePackage.getStation(), null, "stations", null, 0, -1, Sector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

    // Create resource
    createResource(eNS_URI);

    // Create annotations
View Full Code Here

Examples of net.cis.common.model.structure.StructurePackage

    setNsPrefix(eNS_PREFIX);
    setNsURI(eNS_URI);

    // Obtain other dependent packages
    ShipdevicePackage theShipdevicePackage = (ShipdevicePackage)EPackage.Registry.INSTANCE.getEPackage(ShipdevicePackage.eNS_URI);
    StructurePackage theStructurePackage = (StructurePackage)EPackage.Registry.INSTANCE.getEPackage(StructurePackage.eNS_URI);
    DescriptorPackage theDescriptorPackage = (DescriptorPackage)EPackage.Registry.INSTANCE.getEPackage(DescriptorPackage.eNS_URI);

    // Create type parameters

    // Set bounds for type parameters

    // Add supertypes to classes

    // Initialize classes and features; add operations and parameters
    initEClass(modelerEClass, Modeler.class, "Modeler", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEReference(getModeler_WeaponDevices(), theShipdevicePackage.getAbstractWeapon(), null, "weaponDevices", null, 0, -1, Modeler.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEReference(getModeler_ShieldDevices(), theShipdevicePackage.getShieldDevice(), null, "shieldDevices", null, 0, -1, Modeler.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEReference(getModeler_EngineDevices(), theShipdevicePackage.getEngineDevice(), null, "engineDevices", null, 0, -1, Modeler.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEReference(getModeler_Ships(), theStructurePackage.getShip(), null, "ships", null, 0, -1, Modeler.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEReference(getModeler_DeviceDescriptors(), theDescriptorPackage.getAbstractDeviceDescriptor(), null, "deviceDescriptors", null, 0, -1, Modeler.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

    // Create resource
    createResource(eNS_URI);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.