diff options
Diffstat (limited to 'examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/sample/workflow/impl/WorkflowPackageImpl.java')
-rw-r--r-- | examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/sample/workflow/impl/WorkflowPackageImpl.java | 786 |
1 files changed, 786 insertions, 0 deletions
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/sample/workflow/impl/WorkflowPackageImpl.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/sample/workflow/impl/WorkflowPackageImpl.java new file mode 100644 index 000000000..8655fb69f --- /dev/null +++ b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/sample/workflow/impl/WorkflowPackageImpl.java @@ -0,0 +1,786 @@ +/** + * <copyright> + * </copyright> + * + * $Id: WorkflowPackageImpl.java,v 1.1 2006/07/11 16:56:59 mtaal Exp $ + */ +package org.eclipse.emf.teneo.samples.emf.sample.workflow.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.emf.teneo.samples.emf.sample.workflow.Comment; +import org.eclipse.emf.teneo.samples.emf.sample.workflow.CompoundTask; +import org.eclipse.emf.teneo.samples.emf.sample.workflow.ConditionalOutputPort; +import org.eclipse.emf.teneo.samples.emf.sample.workflow.ConditionalTask; +import org.eclipse.emf.teneo.samples.emf.sample.workflow.Edge; +import org.eclipse.emf.teneo.samples.emf.sample.workflow.Fault; +import org.eclipse.emf.teneo.samples.emf.sample.workflow.InputPort; +import org.eclipse.emf.teneo.samples.emf.sample.workflow.LoopTask; +import org.eclipse.emf.teneo.samples.emf.sample.workflow.OutputPort; +import org.eclipse.emf.teneo.samples.emf.sample.workflow.Port; +import org.eclipse.emf.teneo.samples.emf.sample.workflow.Task; +import org.eclipse.emf.teneo.samples.emf.sample.workflow.TransformationTask; +import org.eclipse.emf.teneo.samples.emf.sample.workflow.Workflow; +import org.eclipse.emf.teneo.samples.emf.sample.workflow.WorkflowElement; +import org.eclipse.emf.teneo.samples.emf.sample.workflow.WorkflowFactory; +import org.eclipse.emf.teneo.samples.emf.sample.workflow.WorkflowNode; +import org.eclipse.emf.teneo.samples.emf.sample.workflow.WorkflowPackage; + +/** + * <!-- begin-user-doc --> + * An implementation of the model <b>Package</b>. + * <!-- end-user-doc --> + * @generated + */ +public class WorkflowPackageImpl extends EPackageImpl implements WorkflowPackage { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static final String copyright = "Copyright (c) 2003 IBM Corporation"; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass workflowEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass workflowNodeEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass edgeEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass inputPortEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass outputPortEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass faultEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass compoundTaskEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass portEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass transformationTaskEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass conditionalTaskEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass loopTaskEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass workflowElementEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass conditionalOutputPortEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass commentEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass taskEClass = 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.emf.teneo.samples.emf.sample.workflow.WorkflowPackage#eNS_URI + * @see #init() + * @generated + */ + private WorkflowPackageImpl() { + super(eNS_URI, WorkflowFactory.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. Simple + * dependencies are satisfied by calling this method on all + * dependent packages before doing anything else. This method drives + * initialization for interdependent packages directly, in parallel + * with this package, itself. + * <p>Of this package and its interdependencies, all packages which + * have not yet been registered by their URI values are first created + * and registered. The packages are then initialized in two steps: + * meta-model objects for all of the packages are created before any + * are initialized, since one package's meta-model objects may refer to + * those of another. + * <p>Invocation of this method will not affect any packages that have + * already been initialized. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #eNS_URI + * @see #createPackageContents() + * @see #initializePackageContents() + * @generated + */ + public static WorkflowPackage init() { + if (isInited) return (WorkflowPackage)EPackage.Registry.INSTANCE.getEPackage(WorkflowPackage.eNS_URI); + + // Obtain or create and register package + WorkflowPackageImpl theWorkflowPackage = (WorkflowPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof WorkflowPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new WorkflowPackageImpl()); + + isInited = true; + + // Create package meta-data objects + theWorkflowPackage.createPackageContents(); + + // Initialize created meta-data + theWorkflowPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theWorkflowPackage.freeze(); + + return theWorkflowPackage; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getWorkflow() { + return workflowEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getWorkflow_Nodes() { + return (EReference)workflowEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getWorkflow_Edges() { + return (EReference)workflowEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getWorkflow_Comments() { + return (EReference)workflowEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getWorkflowNode() { + return workflowNodeEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getWorkflowNode_Workflow() { + return (EReference)workflowNodeEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getWorkflowNode_Outputs() { + return (EReference)workflowNodeEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getWorkflowNode_Inputs() { + return (EReference)workflowNodeEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getWorkflowNode_IsStart() { + return (EAttribute)workflowNodeEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getWorkflowNode_IsFinish() { + return (EAttribute)workflowNodeEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getEdge() { + return edgeEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getEdge_Workflow() { + return (EReference)edgeEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getEdge_Target() { + return (EReference)edgeEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getEdge_Source() { + return (EReference)edgeEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getInputPort() { + return inputPortEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getInputPort_Node() { + return (EReference)inputPortEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getInputPort_Edges() { + return (EReference)inputPortEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getOutputPort() { + return outputPortEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getOutputPort_Node() { + return (EReference)outputPortEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getOutputPort_Edges() { + return (EReference)outputPortEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getFault() { + return faultEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getCompoundTask() { + return compoundTaskEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getCompoundTask_Subworkflow() { + return (EReference)compoundTaskEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getPort() { + return portEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getTransformationTask() { + return transformationTaskEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getTransformationTask_TransformExpression() { + return (EAttribute)transformationTaskEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getConditionalTask() { + return conditionalTaskEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getLoopTask() { + return loopTaskEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getLoopTask_WhileCondition() { + return (EAttribute)loopTaskEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getWorkflowElement() { + return workflowElementEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getWorkflowElement_Name() { + return (EAttribute)workflowElementEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getWorkflowElement_Comment() { + return (EAttribute)workflowElementEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getWorkflowElement_X() { + return (EAttribute)workflowElementEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getWorkflowElement_Y() { + return (EAttribute)workflowElementEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getWorkflowElement_Width() { + return (EAttribute)workflowElementEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getWorkflowElement_Height() { + return (EAttribute)workflowElementEClass.getEStructuralFeatures().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getWorkflowElement_Id() { + return (EAttribute)workflowElementEClass.getEStructuralFeatures().get(6); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getConditionalOutputPort() { + return conditionalOutputPortEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getConditionalOutputPort_Condition() { + return (EAttribute)conditionalOutputPortEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getComment() { + return commentEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getComment_Workflow() { + return (EReference)commentEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getTask() { + return taskEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public WorkflowFactory getWorkflowFactory() { + return (WorkflowFactory)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 + workflowEClass = createEClass(WORKFLOW); + createEReference(workflowEClass, WORKFLOW__NODES); + createEReference(workflowEClass, WORKFLOW__EDGES); + createEReference(workflowEClass, WORKFLOW__COMMENTS); + + workflowNodeEClass = createEClass(WORKFLOW_NODE); + createEReference(workflowNodeEClass, WORKFLOW_NODE__WORKFLOW); + createEReference(workflowNodeEClass, WORKFLOW_NODE__OUTPUTS); + createEReference(workflowNodeEClass, WORKFLOW_NODE__INPUTS); + createEAttribute(workflowNodeEClass, WORKFLOW_NODE__IS_START); + createEAttribute(workflowNodeEClass, WORKFLOW_NODE__IS_FINISH); + + edgeEClass = createEClass(EDGE); + createEReference(edgeEClass, EDGE__WORKFLOW); + createEReference(edgeEClass, EDGE__TARGET); + createEReference(edgeEClass, EDGE__SOURCE); + + inputPortEClass = createEClass(INPUT_PORT); + createEReference(inputPortEClass, INPUT_PORT__NODE); + createEReference(inputPortEClass, INPUT_PORT__EDGES); + + outputPortEClass = createEClass(OUTPUT_PORT); + createEReference(outputPortEClass, OUTPUT_PORT__NODE); + createEReference(outputPortEClass, OUTPUT_PORT__EDGES); + + faultEClass = createEClass(FAULT); + + compoundTaskEClass = createEClass(COMPOUND_TASK); + createEReference(compoundTaskEClass, COMPOUND_TASK__SUBWORKFLOW); + + portEClass = createEClass(PORT); + + transformationTaskEClass = createEClass(TRANSFORMATION_TASK); + createEAttribute(transformationTaskEClass, TRANSFORMATION_TASK__TRANSFORM_EXPRESSION); + + conditionalTaskEClass = createEClass(CONDITIONAL_TASK); + + loopTaskEClass = createEClass(LOOP_TASK); + createEAttribute(loopTaskEClass, LOOP_TASK__WHILE_CONDITION); + + workflowElementEClass = createEClass(WORKFLOW_ELEMENT); + createEAttribute(workflowElementEClass, WORKFLOW_ELEMENT__NAME); + createEAttribute(workflowElementEClass, WORKFLOW_ELEMENT__COMMENT); + createEAttribute(workflowElementEClass, WORKFLOW_ELEMENT__X); + createEAttribute(workflowElementEClass, WORKFLOW_ELEMENT__Y); + createEAttribute(workflowElementEClass, WORKFLOW_ELEMENT__WIDTH); + createEAttribute(workflowElementEClass, WORKFLOW_ELEMENT__HEIGHT); + createEAttribute(workflowElementEClass, WORKFLOW_ELEMENT__ID); + + conditionalOutputPortEClass = createEClass(CONDITIONAL_OUTPUT_PORT); + createEAttribute(conditionalOutputPortEClass, CONDITIONAL_OUTPUT_PORT__CONDITION); + + commentEClass = createEClass(COMMENT); + createEReference(commentEClass, COMMENT__WORKFLOW); + + taskEClass = createEClass(TASK); + } + + /** + * <!-- 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); + + // Add supertypes to classes + workflowEClass.getESuperTypes().add(this.getWorkflowElement()); + workflowNodeEClass.getESuperTypes().add(this.getWorkflowElement()); + edgeEClass.getESuperTypes().add(this.getWorkflowElement()); + inputPortEClass.getESuperTypes().add(this.getPort()); + outputPortEClass.getESuperTypes().add(this.getPort()); + faultEClass.getESuperTypes().add(this.getOutputPort()); + compoundTaskEClass.getESuperTypes().add(this.getWorkflowNode()); + portEClass.getESuperTypes().add(this.getWorkflowElement()); + transformationTaskEClass.getESuperTypes().add(this.getWorkflowNode()); + conditionalTaskEClass.getESuperTypes().add(this.getWorkflowNode()); + loopTaskEClass.getESuperTypes().add(this.getCompoundTask()); + conditionalOutputPortEClass.getESuperTypes().add(this.getOutputPort()); + commentEClass.getESuperTypes().add(this.getWorkflowElement()); + taskEClass.getESuperTypes().add(this.getWorkflowNode()); + + // Initialize classes and features; add operations and parameters + initEClass(workflowEClass, Workflow.class, "Workflow", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getWorkflow_Nodes(), this.getWorkflowNode(), this.getWorkflowNode_Workflow(), "nodes", null, 0, -1, Workflow.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getWorkflow_Edges(), this.getEdge(), this.getEdge_Workflow(), "edges", null, 0, -1, Workflow.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getWorkflow_Comments(), this.getComment(), this.getComment_Workflow(), "comments", null, 0, -1, Workflow.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(workflowNodeEClass, WorkflowNode.class, "WorkflowNode", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getWorkflowNode_Workflow(), this.getWorkflow(), this.getWorkflow_Nodes(), "workflow", null, 1, 1, WorkflowNode.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getWorkflowNode_Outputs(), this.getOutputPort(), this.getOutputPort_Node(), "outputs", null, 1, -1, WorkflowNode.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getWorkflowNode_Inputs(), this.getInputPort(), this.getInputPort_Node(), "inputs", null, 1, -1, WorkflowNode.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getWorkflowNode_IsStart(), ecorePackage.getEBoolean(), "isStart", "false", 1, 1, WorkflowNode.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getWorkflowNode_IsFinish(), ecorePackage.getEBoolean(), "isFinish", "false", 1, 1, WorkflowNode.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(edgeEClass, Edge.class, "Edge", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getEdge_Workflow(), this.getWorkflow(), this.getWorkflow_Edges(), "workflow", null, 1, 1, Edge.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEdge_Target(), this.getInputPort(), this.getInputPort_Edges(), "target", null, 1, 1, Edge.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEdge_Source(), this.getOutputPort(), this.getOutputPort_Edges(), "source", null, 1, 1, Edge.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(inputPortEClass, InputPort.class, "InputPort", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getInputPort_Node(), this.getWorkflowNode(), this.getWorkflowNode_Inputs(), "node", null, 1, 1, InputPort.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getInputPort_Edges(), this.getEdge(), this.getEdge_Target(), "edges", null, 0, -1, InputPort.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(outputPortEClass, OutputPort.class, "OutputPort", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getOutputPort_Node(), this.getWorkflowNode(), this.getWorkflowNode_Outputs(), "node", null, 1, 1, OutputPort.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getOutputPort_Edges(), this.getEdge(), this.getEdge_Source(), "edges", null, 0, -1, OutputPort.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(faultEClass, Fault.class, "Fault", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(compoundTaskEClass, CompoundTask.class, "CompoundTask", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getCompoundTask_Subworkflow(), this.getWorkflow(), null, "subworkflow", null, 1, 1, CompoundTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(portEClass, Port.class, "Port", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(transformationTaskEClass, TransformationTask.class, "TransformationTask", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getTransformationTask_TransformExpression(), ecorePackage.getEString(), "transformExpression", null, 0, 1, TransformationTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(conditionalTaskEClass, ConditionalTask.class, "ConditionalTask", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(loopTaskEClass, LoopTask.class, "LoopTask", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getLoopTask_WhileCondition(), ecorePackage.getEString(), "whileCondition", null, 1, 1, LoopTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(workflowElementEClass, WorkflowElement.class, "WorkflowElement", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getWorkflowElement_Name(), ecorePackage.getEString(), "name", null, 0, 1, WorkflowElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getWorkflowElement_Comment(), ecorePackage.getEString(), "comment", null, 0, 1, WorkflowElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getWorkflowElement_X(), ecorePackage.getEInt(), "x", "0", 0, 1, WorkflowElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getWorkflowElement_Y(), ecorePackage.getEInt(), "y", "0", 0, 1, WorkflowElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getWorkflowElement_Width(), ecorePackage.getEInt(), "width", "-1", 0, 1, WorkflowElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getWorkflowElement_Height(), ecorePackage.getEInt(), "height", "-1", 0, 1, WorkflowElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getWorkflowElement_Id(), ecorePackage.getEString(), "id", null, 1, 1, WorkflowElement.class, !IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(conditionalOutputPortEClass, ConditionalOutputPort.class, "ConditionalOutputPort", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getConditionalOutputPort_Condition(), ecorePackage.getEString(), "condition", null, 1, 1, ConditionalOutputPort.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(commentEClass, Comment.class, "Comment", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getComment_Workflow(), this.getWorkflow(), this.getWorkflow_Comments(), "workflow", 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(taskEClass, Task.class, "Task", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + // Create resource + createResource(eNS_URI); + } + +} //WorkflowPackageImpl |