Search in sources :

Example 1 with ViewPackage

use of org.obeonetwork.dsl.cinematic.view.ViewPackage in project InformationSystem by ObeoNetwork.

the class FlowPackageImpl method initializePackageContents.

/**
 * 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
    CinematicPackage theCinematicPackage = (CinematicPackage) EPackage.Registry.INSTANCE.getEPackage(CinematicPackage.eNS_URI);
    ViewPackage theViewPackage = (ViewPackage) EPackage.Registry.INSTANCE.getEPackage(ViewPackage.eNS_URI);
    EnvironmentPackage theEnvironmentPackage = (EnvironmentPackage) EPackage.Registry.INSTANCE.getEPackage(EnvironmentPackage.eNS_URI);
    // Create type parameters
    // Set bounds for type parameters
    // Add supertypes to classes
    flowEClass.getESuperTypes().add(theCinematicPackage.getNamedElement());
    namedFlowStateEClass.getESuperTypes().add(this.getFlowState());
    namedFlowStateEClass.getESuperTypes().add(theCinematicPackage.getNamedElement());
    transitionEClass.getESuperTypes().add(theCinematicPackage.getNamedElement());
    actionStateEClass.getESuperTypes().add(this.getNamedFlowState());
    viewStateEClass.getESuperTypes().add(this.getNamedFlowState());
    decisionStateEClass.getESuperTypes().add(this.getNamedFlowState());
    subflowStateEClass.getESuperTypes().add(this.getFlowState());
    asyncEventStateEClass.getESuperTypes().add(this.getNamedFlowState());
    initialStateEClass.getESuperTypes().add(this.getNamedFlowState());
    abortStateEClass.getESuperTypes().add(this.getNamedFlowState());
    finalStateEClass.getESuperTypes().add(this.getNamedFlowState());
    flowActionEClass.getESuperTypes().add(theCinematicPackage.getNamedElement());
    flowEventEClass.getESuperTypes().add(theCinematicPackage.getEvent());
    flowStateEClass.getESuperTypes().add(theCinematicPackage.getCinematicElement());
    // Initialize classes and features; add operations and parameters
    initEClass(flowEClass, Flow.class, "Flow", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEReference(getFlow_States(), this.getFlowState(), null, "states", null, 0, -1, Flow.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEReference(getFlow_Transitions(), this.getTransition(), null, "transitions", null, 0, -1, Flow.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEReference(getFlow_Events(), this.getFlowEvent(), null, "events", null, 0, -1, Flow.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEClass(namedFlowStateEClass, NamedFlowState.class, "NamedFlowState", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEClass(transitionEClass, Transition.class, "Transition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEAttribute(getTransition_Guard(), ecorePackage.getEString(), "guard", null, 0, 1, Transition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEAttribute(getTransition_Modal(), ecorePackage.getEBoolean(), "modal", null, 0, 1, Transition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEReference(getTransition_From(), this.getFlowState(), null, "from", 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_To(), this.getFlowState(), null, "to", 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_On(), theCinematicPackage.getEvent(), null, "on", null, 0, -1, Transition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEClass(actionStateEClass, ActionState.class, "ActionState", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEClass(viewStateEClass, ViewState.class, "ViewState", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEAttribute(getViewState_NewInstance(), ecorePackage.getEBoolean(), "newInstance", null, 0, 1, ViewState.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEAttribute(getViewState_Refresh(), ecorePackage.getEBoolean(), "refresh", null, 0, 1, ViewState.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEReference(getViewState_ViewContainers(), theViewPackage.getViewContainer(), null, "viewContainers", null, 0, -1, ViewState.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEClass(decisionStateEClass, DecisionState.class, "DecisionState", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEClass(subflowStateEClass, SubflowState.class, "SubflowState", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEReference(getSubflowState_Subflow(), this.getFlow(), null, "subflow", null, 1, 1, SubflowState.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEAttribute(getSubflowState_Name(), ecorePackage.getEString(), "name", null, 0, 1, SubflowState.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
    initEClass(asyncEventStateEClass, AsyncEventState.class, "AsyncEventState", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEClass(initialStateEClass, InitialState.class, "InitialState", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEClass(abortStateEClass, AbortState.class, "AbortState", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEClass(finalStateEClass, FinalState.class, "FinalState", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEClass(flowActionEClass, FlowAction.class, "FlowAction", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEReference(getFlowAction_Calls(), theViewPackage.getViewAction(), null, "calls", null, 0, -1, FlowAction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEReference(getFlowAction_Operations(), theEnvironmentPackage.getAction(), null, "operations", null, 0, -1, FlowAction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEClass(flowEventEClass, FlowEvent.class, "FlowEvent", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEReference(getFlowEvent_Binds(), theViewPackage.getViewEvent(), null, "binds", null, 0, -1, FlowEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEClass(flowStateEClass, FlowState.class, "FlowState", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEReference(getFlowState_Actions(), this.getFlowAction(), null, "actions", null, 0, -1, FlowState.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
}
Also used : CinematicPackage(org.obeonetwork.dsl.cinematic.CinematicPackage) EnvironmentPackage(org.obeonetwork.dsl.environment.EnvironmentPackage) ViewPackage(org.obeonetwork.dsl.cinematic.view.ViewPackage)

Example 2 with ViewPackage

use of org.obeonetwork.dsl.cinematic.view.ViewPackage in project InformationSystem by ObeoNetwork.

the class CinematicPackageImpl method initializePackageContents.

/**
 * 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
    ViewPackage theViewPackage = (ViewPackage) EPackage.Registry.INSTANCE.getEPackage(ViewPackage.eNS_URI);
    FlowPackage theFlowPackage = (FlowPackage) EPackage.Registry.INSTANCE.getEPackage(FlowPackage.eNS_URI);
    ToolkitsPackage theToolkitsPackage = (ToolkitsPackage) EPackage.Registry.INSTANCE.getEPackage(ToolkitsPackage.eNS_URI);
    EnvironmentPackage theEnvironmentPackage = (EnvironmentPackage) EPackage.Registry.INSTANCE.getEPackage(EnvironmentPackage.eNS_URI);
    // Add subpackages
    getESubpackages().add(theViewPackage);
    getESubpackages().add(theFlowPackage);
    getESubpackages().add(theToolkitsPackage);
    // Create type parameters
    // Set bounds for type parameters
    // Add supertypes to classes
    cinematicElementEClass.getESuperTypes().add(theEnvironmentPackage.getObeoDSMObject());
    namedElementEClass.getESuperTypes().add(this.getCinematicElement());
    abstractPackageEClass.getESuperTypes().add(this.getNamedElement());
    packageEClass.getESuperTypes().add(this.getAbstractPackage());
    cinematicRootEClass.getESuperTypes().add(this.getAbstractPackage());
    eventEClass.getESuperTypes().add(this.getNamedElement());
    // Initialize classes and features; add operations and parameters
    initEClass(cinematicElementEClass, CinematicElement.class, "CinematicElement", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEClass(namedElementEClass, NamedElement.class, "NamedElement", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEAttribute(getNamedElement_Name(), ecorePackage.getEString(), "name", null, 0, 1, NamedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEClass(abstractPackageEClass, AbstractPackage.class, "AbstractPackage", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEReference(getAbstractPackage_Flows(), theFlowPackage.getFlow(), null, "flows", null, 0, -1, AbstractPackage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEReference(getAbstractPackage_ViewContainers(), theViewPackage.getViewContainer(), null, "viewContainers", null, 0, -1, AbstractPackage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEReference(getAbstractPackage_SubPackages(), this.getPackage(), null, "subPackages", null, 0, -1, AbstractPackage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEClass(packageEClass, org.obeonetwork.dsl.cinematic.Package.class, "Package", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEClass(cinematicRootEClass, CinematicRoot.class, "CinematicRoot", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEReference(getCinematicRoot_Toolkits(), theToolkitsPackage.getToolkit(), null, "toolkits", null, 0, -1, CinematicRoot.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEClass(eventEClass, Event.class, "Event", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    // Create resource
    createResource(eNS_URI);
}
Also used : FlowPackage(org.obeonetwork.dsl.cinematic.flow.FlowPackage) ToolkitsPackage(org.obeonetwork.dsl.cinematic.toolkits.ToolkitsPackage) EnvironmentPackage(org.obeonetwork.dsl.environment.EnvironmentPackage) ViewPackage(org.obeonetwork.dsl.cinematic.view.ViewPackage)

Aggregations

ViewPackage (org.obeonetwork.dsl.cinematic.view.ViewPackage)2 EnvironmentPackage (org.obeonetwork.dsl.environment.EnvironmentPackage)2 CinematicPackage (org.obeonetwork.dsl.cinematic.CinematicPackage)1 FlowPackage (org.obeonetwork.dsl.cinematic.flow.FlowPackage)1 ToolkitsPackage (org.obeonetwork.dsl.cinematic.toolkits.ToolkitsPackage)1