All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.omg.bpmn.di.impl.BpmnDiPackageImpl Maven / Gradle / Ivy

The newest version!
/**
 * Copyright (c) 2012 - 2024 Data In Motion and others.
 * All rights reserved. 
 * 
 * This program and the accompanying materials are made
 * available under the terms of the Eclipse Public License 2.0
 * which is available at https://www.eclipse.org/legal/epl-2.0/
 * 
 * SPDX-License-Identifier: EPL-2.0
 * 
 * Contributors:
 *      Mark Hoffmann - initial API and implementation
 */
package org.omg.bpmn.di.impl;

import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EEnum;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.EReference;

import org.eclipse.emf.ecore.impl.EPackageImpl;

import org.omg.bpmn.bpmn2.Bpmn2Package;

import org.omg.bpmn.bpmn2.impl.Bpmn2PackageImpl;

import org.omg.bpmn.di.BPMNDIRoot;
import org.omg.bpmn.di.BPMNDiagram;
import org.omg.bpmn.di.BPMNEdge;
import org.omg.bpmn.di.BPMNLabel;
import org.omg.bpmn.di.BPMNLabelStyle;
import org.omg.bpmn.di.BPMNPlane;
import org.omg.bpmn.di.BPMNShape;
import org.omg.bpmn.di.BpmnDiFactory;
import org.omg.bpmn.di.BpmnDiPackage;
import org.omg.bpmn.di.MessageVisibleKind;
import org.omg.bpmn.di.ParticipantBandKind;

import org.omg.dd.dc.DcPackage;

import org.omg.dd.dc.impl.DcPackageImpl;

import org.omg.dd.di.DiPackage;

import org.omg.dd.di.impl.DiPackageImpl;

/**
 * 
 * An implementation of the model Package.
 * 
 * @generated
 */
public class BpmnDiPackageImpl extends EPackageImpl implements BpmnDiPackage {
	/**
	 * 
	 * 
	 * @generated
	 */
	private EClass bpmndiRootEClass = null;

	/**
	 * 
	 * 
	 * @generated
	 */
	private EClass bpmnDiagramEClass = null;

	/**
	 * 
	 * 
	 * @generated
	 */
	private EClass bpmnEdgeEClass = null;

	/**
	 * 
	 * 
	 * @generated
	 */
	private EClass bpmnLabelEClass = null;

	/**
	 * 
	 * 
	 * @generated
	 */
	private EClass bpmnLabelStyleEClass = null;

	/**
	 * 
	 * 
	 * @generated
	 */
	private EClass bpmnPlaneEClass = null;

	/**
	 * 
	 * 
	 * @generated
	 */
	private EClass bpmnShapeEClass = null;

	/**
	 * 
	 * 
	 * @generated
	 */
	private EEnum messageVisibleKindEEnum = null;

	/**
	 * 
	 * 
	 * @generated
	 */
	private EEnum participantBandKindEEnum = null;

	/**
	 * Creates an instance of the model Package, registered with
	 * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
	 * package URI value.
	 * 

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. * * * @see org.eclipse.emf.ecore.EPackage.Registry * @see org.omg.bpmn.di.BpmnDiPackage#eNS_URI * @see #init() * @generated */ private BpmnDiPackageImpl() { super(eNS_URI, BpmnDiFactory.eINSTANCE); } /** * * * @generated */ private static boolean isInited = false; /** * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. * *

This method is used to initialize {@link BpmnDiPackage#eINSTANCE} when that field is accessed. * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. * * * @see #eNS_URI * @see #createPackageContents() * @see #initializePackageContents() * @generated */ public static BpmnDiPackage init() { if (isInited) return (BpmnDiPackage)EPackage.Registry.INSTANCE.getEPackage(BpmnDiPackage.eNS_URI); // Obtain or create and register package Object registeredBpmnDiPackage = EPackage.Registry.INSTANCE.get(eNS_URI); BpmnDiPackageImpl theBpmnDiPackage = registeredBpmnDiPackage instanceof BpmnDiPackageImpl ? (BpmnDiPackageImpl)registeredBpmnDiPackage : new BpmnDiPackageImpl(); isInited = true; // Obtain or create and register interdependencies Object registeredPackage = EPackage.Registry.INSTANCE.getEPackage(Bpmn2Package.eNS_URI); Bpmn2PackageImpl theBpmn2Package = (Bpmn2PackageImpl)(registeredPackage instanceof Bpmn2PackageImpl ? registeredPackage : Bpmn2Package.eINSTANCE); registeredPackage = EPackage.Registry.INSTANCE.getEPackage(DcPackage.eNS_URI); DcPackageImpl theDcPackage = (DcPackageImpl)(registeredPackage instanceof DcPackageImpl ? registeredPackage : DcPackage.eINSTANCE); registeredPackage = EPackage.Registry.INSTANCE.getEPackage(DiPackage.eNS_URI); DiPackageImpl theDiPackage = (DiPackageImpl)(registeredPackage instanceof DiPackageImpl ? registeredPackage : DiPackage.eINSTANCE); // Load packages theBpmn2Package.loadPackage(); // Create package meta-data objects theBpmnDiPackage.createPackageContents(); theDcPackage.createPackageContents(); theDiPackage.createPackageContents(); // Initialize created meta-data theBpmnDiPackage.initializePackageContents(); theDcPackage.initializePackageContents(); theDiPackage.initializePackageContents(); // Fix loaded packages theBpmn2Package.fixPackageContents(); // Mark meta-data to indicate it can't be changed theBpmnDiPackage.freeze(); // Update the registry and return the package EPackage.Registry.INSTANCE.put(BpmnDiPackage.eNS_URI, theBpmnDiPackage); return theBpmnDiPackage; } /** * * * @generated */ @Override public EClass getBPMNDIRoot() { return bpmndiRootEClass; } /** * * * @generated */ @Override public EAttribute getBPMNDIRoot_Mixed() { return (EAttribute)bpmndiRootEClass.getEStructuralFeatures().get(0); } /** * * * @generated */ @Override public EReference getBPMNDIRoot_XMLNSPrefixMap() { return (EReference)bpmndiRootEClass.getEStructuralFeatures().get(1); } /** * * * @generated */ @Override public EReference getBPMNDIRoot_XSISchemaLocation() { return (EReference)bpmndiRootEClass.getEStructuralFeatures().get(2); } /** * * * @generated */ @Override public EReference getBPMNDIRoot_BPMNDiagram() { return (EReference)bpmndiRootEClass.getEStructuralFeatures().get(3); } /** * * * @generated */ @Override public EReference getBPMNDIRoot_BPMNEdge() { return (EReference)bpmndiRootEClass.getEStructuralFeatures().get(4); } /** * * * @generated */ @Override public EReference getBPMNDIRoot_BPMNLabel() { return (EReference)bpmndiRootEClass.getEStructuralFeatures().get(5); } /** * * * @generated */ @Override public EReference getBPMNDIRoot_BPMNLabelStyle() { return (EReference)bpmndiRootEClass.getEStructuralFeatures().get(6); } /** * * * @generated */ @Override public EReference getBPMNDIRoot_BPMNPlane() { return (EReference)bpmndiRootEClass.getEStructuralFeatures().get(7); } /** * * * @generated */ @Override public EReference getBPMNDIRoot_BPMNShape() { return (EReference)bpmndiRootEClass.getEStructuralFeatures().get(8); } /** * * * @generated */ @Override public EClass getBPMNDiagram() { return bpmnDiagramEClass; } /** * * * @generated */ @Override public EReference getBPMNDiagram_Plane() { return (EReference)bpmnDiagramEClass.getEStructuralFeatures().get(0); } /** * * * @generated */ @Override public EReference getBPMNDiagram_LabelStyle() { return (EReference)bpmnDiagramEClass.getEStructuralFeatures().get(1); } /** * * * @generated */ @Override public EClass getBPMNEdge() { return bpmnEdgeEClass; } /** * * * @generated */ @Override public EReference getBPMNEdge_Label() { return (EReference)bpmnEdgeEClass.getEStructuralFeatures().get(0); } /** * * * @generated */ @Override public EReference getBPMNEdge_BpmnElement() { return (EReference)bpmnEdgeEClass.getEStructuralFeatures().get(1); } /** * * * @generated */ @Override public EAttribute getBPMNEdge_MessageVisibleKind() { return (EAttribute)bpmnEdgeEClass.getEStructuralFeatures().get(2); } /** * * * @generated */ @Override public EReference getBPMNEdge_SourceElement() { return (EReference)bpmnEdgeEClass.getEStructuralFeatures().get(3); } /** * * * @generated */ @Override public EReference getBPMNEdge_TargetElement() { return (EReference)bpmnEdgeEClass.getEStructuralFeatures().get(4); } /** * * * @generated */ @Override public EClass getBPMNLabel() { return bpmnLabelEClass; } /** * * * @generated */ @Override public EReference getBPMNLabel_LabelStyle() { return (EReference)bpmnLabelEClass.getEStructuralFeatures().get(0); } /** * * * @generated */ @Override public EClass getBPMNLabelStyle() { return bpmnLabelStyleEClass; } /** * * * @generated */ @Override public EReference getBPMNLabelStyle_Font() { return (EReference)bpmnLabelStyleEClass.getEStructuralFeatures().get(0); } /** * * * @generated */ @Override public EClass getBPMNPlane() { return bpmnPlaneEClass; } /** * * * @generated */ @Override public EReference getBPMNPlane_BpmnElement() { return (EReference)bpmnPlaneEClass.getEStructuralFeatures().get(0); } /** * * * @generated */ @Override public EReference getBPMNPlane_BpmnShape() { return (EReference)bpmnPlaneEClass.getEStructuralFeatures().get(1); } /** * * * @generated */ @Override public EReference getBPMNPlane_BpmnEdge() { return (EReference)bpmnPlaneEClass.getEStructuralFeatures().get(2); } /** * * * @generated */ @Override public EClass getBPMNShape() { return bpmnShapeEClass; } /** * * * @generated */ @Override public EReference getBPMNShape_Label() { return (EReference)bpmnShapeEClass.getEStructuralFeatures().get(0); } /** * * * @generated */ @Override public EReference getBPMNShape_BpmnElement() { return (EReference)bpmnShapeEClass.getEStructuralFeatures().get(1); } /** * * * @generated */ @Override public EReference getBPMNShape_ChoreographyActivityShape() { return (EReference)bpmnShapeEClass.getEStructuralFeatures().get(2); } /** * * * @generated */ @Override public EAttribute getBPMNShape_IsExpanded() { return (EAttribute)bpmnShapeEClass.getEStructuralFeatures().get(3); } /** * * * @generated */ @Override public EAttribute getBPMNShape_IsHorizontal() { return (EAttribute)bpmnShapeEClass.getEStructuralFeatures().get(4); } /** * * * @generated */ @Override public EAttribute getBPMNShape_IsMarkerVisible() { return (EAttribute)bpmnShapeEClass.getEStructuralFeatures().get(5); } /** * * * @generated */ @Override public EAttribute getBPMNShape_IsMessageVisible() { return (EAttribute)bpmnShapeEClass.getEStructuralFeatures().get(6); } /** * * * @generated */ @Override public EAttribute getBPMNShape_ParticipantBandKind() { return (EAttribute)bpmnShapeEClass.getEStructuralFeatures().get(7); } /** * * * @generated */ @Override public EEnum getMessageVisibleKind() { return messageVisibleKindEEnum; } /** * * * @generated */ @Override public EEnum getParticipantBandKind() { return participantBandKindEEnum; } /** * * * @generated */ @Override public BpmnDiFactory getBpmnDiFactory() { return (BpmnDiFactory)getEFactoryInstance(); } /** * * * @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. * * * @generated */ public void createPackageContents() { if (isCreated) return; isCreated = true; // Create classes and their features bpmndiRootEClass = createEClass(BPMNDI_ROOT); createEAttribute(bpmndiRootEClass, BPMNDI_ROOT__MIXED); createEReference(bpmndiRootEClass, BPMNDI_ROOT__XMLNS_PREFIX_MAP); createEReference(bpmndiRootEClass, BPMNDI_ROOT__XSI_SCHEMA_LOCATION); createEReference(bpmndiRootEClass, BPMNDI_ROOT__BPMN_DIAGRAM); createEReference(bpmndiRootEClass, BPMNDI_ROOT__BPMN_EDGE); createEReference(bpmndiRootEClass, BPMNDI_ROOT__BPMN_LABEL); createEReference(bpmndiRootEClass, BPMNDI_ROOT__BPMN_LABEL_STYLE); createEReference(bpmndiRootEClass, BPMNDI_ROOT__BPMN_PLANE); createEReference(bpmndiRootEClass, BPMNDI_ROOT__BPMN_SHAPE); bpmnDiagramEClass = createEClass(BPMN_DIAGRAM); createEReference(bpmnDiagramEClass, BPMN_DIAGRAM__PLANE); createEReference(bpmnDiagramEClass, BPMN_DIAGRAM__LABEL_STYLE); bpmnEdgeEClass = createEClass(BPMN_EDGE); createEReference(bpmnEdgeEClass, BPMN_EDGE__LABEL); createEReference(bpmnEdgeEClass, BPMN_EDGE__BPMN_ELEMENT); createEAttribute(bpmnEdgeEClass, BPMN_EDGE__MESSAGE_VISIBLE_KIND); createEReference(bpmnEdgeEClass, BPMN_EDGE__SOURCE_ELEMENT); createEReference(bpmnEdgeEClass, BPMN_EDGE__TARGET_ELEMENT); bpmnLabelEClass = createEClass(BPMN_LABEL); createEReference(bpmnLabelEClass, BPMN_LABEL__LABEL_STYLE); bpmnLabelStyleEClass = createEClass(BPMN_LABEL_STYLE); createEReference(bpmnLabelStyleEClass, BPMN_LABEL_STYLE__FONT); bpmnPlaneEClass = createEClass(BPMN_PLANE); createEReference(bpmnPlaneEClass, BPMN_PLANE__BPMN_ELEMENT); createEReference(bpmnPlaneEClass, BPMN_PLANE__BPMN_SHAPE); createEReference(bpmnPlaneEClass, BPMN_PLANE__BPMN_EDGE); bpmnShapeEClass = createEClass(BPMN_SHAPE); createEReference(bpmnShapeEClass, BPMN_SHAPE__LABEL); createEReference(bpmnShapeEClass, BPMN_SHAPE__BPMN_ELEMENT); createEReference(bpmnShapeEClass, BPMN_SHAPE__CHOREOGRAPHY_ACTIVITY_SHAPE); createEAttribute(bpmnShapeEClass, BPMN_SHAPE__IS_EXPANDED); createEAttribute(bpmnShapeEClass, BPMN_SHAPE__IS_HORIZONTAL); createEAttribute(bpmnShapeEClass, BPMN_SHAPE__IS_MARKER_VISIBLE); createEAttribute(bpmnShapeEClass, BPMN_SHAPE__IS_MESSAGE_VISIBLE); createEAttribute(bpmnShapeEClass, BPMN_SHAPE__PARTICIPANT_BAND_KIND); // Create enums messageVisibleKindEEnum = createEEnum(MESSAGE_VISIBLE_KIND); participantBandKindEEnum = createEEnum(PARTICIPANT_BAND_KIND); } /** * * * @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. * * * @generated */ public void initializePackageContents() { if (isInitialized) return; isInitialized = true; // Initialize package setName(eNAME); setNsPrefix(eNS_PREFIX); setNsURI(eNS_URI); // Obtain other dependent packages DiPackage theDiPackage = (DiPackage)EPackage.Registry.INSTANCE.getEPackage(DiPackage.eNS_URI); Bpmn2Package theBpmn2Package = (Bpmn2Package)EPackage.Registry.INSTANCE.getEPackage(Bpmn2Package.eNS_URI); DcPackage theDcPackage = (DcPackage)EPackage.Registry.INSTANCE.getEPackage(DcPackage.eNS_URI); // Create type parameters // Set bounds for type parameters // Add supertypes to classes bpmnDiagramEClass.getESuperTypes().add(theDiPackage.getDiagram()); bpmnEdgeEClass.getESuperTypes().add(theDiPackage.getLabeledEdge()); bpmnLabelEClass.getESuperTypes().add(theDiPackage.getLabel()); bpmnLabelStyleEClass.getESuperTypes().add(theDiPackage.getStyle()); bpmnPlaneEClass.getESuperTypes().add(theDiPackage.getPlane()); bpmnShapeEClass.getESuperTypes().add(theDiPackage.getLabeledShape()); // Initialize classes, features, and operations; add parameters initEClass(bpmndiRootEClass, BPMNDIRoot.class, "BPMNDIRoot", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getBPMNDIRoot_Mixed(), ecorePackage.getEFeatureMapEntry(), "mixed", null, 0, -1, null, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getBPMNDIRoot_XMLNSPrefixMap(), ecorePackage.getEStringToStringMapEntry(), null, "xMLNSPrefixMap", null, 0, -1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getBPMNDIRoot_XSISchemaLocation(), ecorePackage.getEStringToStringMapEntry(), null, "xSISchemaLocation", null, 0, -1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getBPMNDIRoot_BPMNDiagram(), this.getBPMNDiagram(), null, "bPMNDiagram", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); initEReference(getBPMNDIRoot_BPMNEdge(), this.getBPMNEdge(), null, "bPMNEdge", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); initEReference(getBPMNDIRoot_BPMNLabel(), this.getBPMNLabel(), null, "bPMNLabel", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); initEReference(getBPMNDIRoot_BPMNLabelStyle(), this.getBPMNLabelStyle(), null, "bPMNLabelStyle", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); initEReference(getBPMNDIRoot_BPMNPlane(), this.getBPMNPlane(), null, "bPMNPlane", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); initEReference(getBPMNDIRoot_BPMNShape(), this.getBPMNShape(), null, "bPMNShape", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); initEClass(bpmnDiagramEClass, BPMNDiagram.class, "BPMNDiagram", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getBPMNDiagram_Plane(), this.getBPMNPlane(), null, "plane", null, 1, 1, BPMNDiagram.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); initEReference(getBPMNDiagram_LabelStyle(), this.getBPMNLabelStyle(), null, "labelStyle", null, 0, -1, BPMNDiagram.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); initEClass(bpmnEdgeEClass, BPMNEdge.class, "BPMNEdge", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getBPMNEdge_Label(), this.getBPMNLabel(), null, "label", null, 0, 1, BPMNEdge.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); initEReference(getBPMNEdge_BpmnElement(), theBpmn2Package.getBaseElement(), null, "bpmnElement", null, 0, 1, BPMNEdge.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); initEAttribute(getBPMNEdge_MessageVisibleKind(), this.getMessageVisibleKind(), "messageVisibleKind", null, 0, 1, BPMNEdge.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); initEReference(getBPMNEdge_SourceElement(), theDiPackage.getDiagramElement(), null, "sourceElement", null, 0, 1, BPMNEdge.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); initEReference(getBPMNEdge_TargetElement(), theDiPackage.getDiagramElement(), null, "targetElement", null, 0, 1, BPMNEdge.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); initEClass(bpmnLabelEClass, BPMNLabel.class, "BPMNLabel", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getBPMNLabel_LabelStyle(), this.getBPMNLabelStyle(), null, "labelStyle", null, 0, 1, BPMNLabel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); initEClass(bpmnLabelStyleEClass, BPMNLabelStyle.class, "BPMNLabelStyle", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getBPMNLabelStyle_Font(), theDcPackage.getFont(), null, "font", null, 1, 1, BPMNLabelStyle.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); initEClass(bpmnPlaneEClass, BPMNPlane.class, "BPMNPlane", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getBPMNPlane_BpmnElement(), theBpmn2Package.getBaseElement(), null, "bpmnElement", null, 0, 1, BPMNPlane.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); initEReference(getBPMNPlane_BpmnShape(), this.getBPMNShape(), null, "bpmnShape", null, 0, -1, BPMNPlane.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); initEReference(getBPMNPlane_BpmnEdge(), this.getBPMNEdge(), null, "bpmnEdge", null, 0, -1, BPMNPlane.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); initEClass(bpmnShapeEClass, BPMNShape.class, "BPMNShape", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getBPMNShape_Label(), this.getBPMNLabel(), null, "label", null, 0, 1, BPMNShape.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); initEReference(getBPMNShape_BpmnElement(), theBpmn2Package.getBaseElement(), null, "bpmnElement", null, 0, 1, BPMNShape.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); initEReference(getBPMNShape_ChoreographyActivityShape(), this.getBPMNShape(), null, "choreographyActivityShape", null, 0, 1, BPMNShape.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); initEAttribute(getBPMNShape_IsExpanded(), ecorePackage.getEBoolean(), "isExpanded", null, 0, 1, BPMNShape.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); initEAttribute(getBPMNShape_IsHorizontal(), ecorePackage.getEBoolean(), "isHorizontal", null, 0, 1, BPMNShape.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); initEAttribute(getBPMNShape_IsMarkerVisible(), ecorePackage.getEBoolean(), "isMarkerVisible", null, 0, 1, BPMNShape.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); initEAttribute(getBPMNShape_IsMessageVisible(), ecorePackage.getEBoolean(), "isMessageVisible", null, 0, 1, BPMNShape.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); initEAttribute(getBPMNShape_ParticipantBandKind(), this.getParticipantBandKind(), "participantBandKind", null, 0, 1, BPMNShape.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); // Initialize enums and add enum literals initEEnum(messageVisibleKindEEnum, MessageVisibleKind.class, "MessageVisibleKind"); addEEnumLiteral(messageVisibleKindEEnum, MessageVisibleKind.INITIATING); addEEnumLiteral(messageVisibleKindEEnum, MessageVisibleKind.NON_INITIATING); initEEnum(participantBandKindEEnum, ParticipantBandKind.class, "ParticipantBandKind"); addEEnumLiteral(participantBandKindEEnum, ParticipantBandKind.TOP_INITIATING); addEEnumLiteral(participantBandKindEEnum, ParticipantBandKind.MIDDLE_INITIATING); addEEnumLiteral(participantBandKindEEnum, ParticipantBandKind.BOTTOM_INITIATING); addEEnumLiteral(participantBandKindEEnum, ParticipantBandKind.TOP_NON_INITIATING); addEEnumLiteral(participantBandKindEEnum, ParticipantBandKind.MIDDLE_NON_INITIATING); addEEnumLiteral(participantBandKindEEnum, ParticipantBandKind.BOTTOM_NON_INITIATING); // Create resource createResource(eNS_URI); // Create annotations // http:///org/eclipse/emf/ecore/util/ExtendedMetaData createExtendedMetaDataAnnotations(); } /** * Initializes the annotations for http:///org/eclipse/emf/ecore/util/ExtendedMetaData. * * * @generated */ protected void createExtendedMetaDataAnnotations() { String source = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData"; addAnnotation (bpmndiRootEClass, source, new String[] { "name", "", "kind", "mixed" }); addAnnotation (getBPMNDIRoot_Mixed(), source, new String[] { "kind", "elementWildcard", "name", ":mixed" }); addAnnotation (getBPMNDIRoot_XMLNSPrefixMap(), source, new String[] { "kind", "attribute", "name", "xmlns:prefix" }); addAnnotation (getBPMNDIRoot_XSISchemaLocation(), source, new String[] { "kind", "attribute", "name", "xsi:schemaLocation" }); addAnnotation (getBPMNDIRoot_BPMNDiagram(), source, new String[] { "kind", "element", "name", "BPMNDiagram", "namespace", "http://www.omg.org/spec/BPMN/20100524/DI" }); addAnnotation (getBPMNDIRoot_BPMNEdge(), source, new String[] { "kind", "element", "name", "BPMNEdge", "namespace", "http://www.omg.org/spec/BPMN/20100524/DI", "affiliation", "http://www.omg.org/spec/DD/20100524/DI#DiagramElement" }); addAnnotation (getBPMNDIRoot_BPMNLabel(), source, new String[] { "kind", "element", "name", "BPMNLabel", "namespace", "http://www.omg.org/spec/BPMN/20100524/DI" }); addAnnotation (getBPMNDIRoot_BPMNLabelStyle(), source, new String[] { "kind", "element", "name", "BPMNLabelStyle", "namespace", "http://www.omg.org/spec/BPMN/20100524/DI" }); addAnnotation (getBPMNDIRoot_BPMNPlane(), source, new String[] { "kind", "element", "name", "BPMNPlane", "namespace", "http://www.omg.org/spec/BPMN/20100524/DI" }); addAnnotation (getBPMNDIRoot_BPMNShape(), source, new String[] { "kind", "element", "name", "BPMNShape", "namespace", "http://www.omg.org/spec/BPMN/20100524/DI", "affiliation", "http://www.omg.org/spec/DD/20100524/DI#DiagramElement" }); addAnnotation (bpmnDiagramEClass, source, new String[] { "name", "BPMNDiagram", "kind", "elementOnly" }); addAnnotation (getBPMNDiagram_Plane(), source, new String[] { "kind", "element", "name", "BPMNPlane", "namespace", "http://www.omg.org/spec/BPMN/20100524/DI" }); addAnnotation (getBPMNDiagram_LabelStyle(), source, new String[] { "kind", "element", "name", "BPMNLabelStyle", "namespace", "http://www.omg.org/spec/BPMN/20100524/DI" }); addAnnotation (bpmnEdgeEClass, source, new String[] { "name", "BPMNEdge", "kind", "elementOnly" }); addAnnotation (getBPMNEdge_Label(), source, new String[] { "kind", "element", "name", "BPMNLabel", "namespace", "http://www.omg.org/spec/BPMN/20100524/DI" }); addAnnotation (getBPMNEdge_BpmnElement(), source, new String[] { "kind", "attribute", "name", "bpmnElement" }); addAnnotation (getBPMNEdge_MessageVisibleKind(), source, new String[] { "kind", "attribute", "name", "messageVisibleKind" }); addAnnotation (getBPMNEdge_SourceElement(), source, new String[] { "kind", "attribute", "name", "sourceElement" }); addAnnotation (getBPMNEdge_TargetElement(), source, new String[] { "kind", "attribute", "name", "targetElement" }); addAnnotation (bpmnLabelEClass, source, new String[] { "name", "BPMNLabel", "kind", "elementOnly" }); addAnnotation (getBPMNLabel_LabelStyle(), source, new String[] { "kind", "attribute", "name", "labelStyle" }); addAnnotation (bpmnLabelStyleEClass, source, new String[] { "name", "BPMNLabelStyle", "kind", "elementOnly" }); addAnnotation (getBPMNLabelStyle_Font(), source, new String[] { "kind", "element", "name", "Font", "namespace", "http://www.omg.org/spec/DD/20100524/DC" }); addAnnotation (bpmnPlaneEClass, source, new String[] { "name", "BPMNPlane", "kind", "elementOnly" }); addAnnotation (getBPMNPlane_BpmnElement(), source, new String[] { "kind", "attribute", "name", "bpmnElement" }); addAnnotation (getBPMNPlane_BpmnShape(), source, new String[] { "kind", "element", "name", "BPMNShape", "namespace", "##targetNamespace" }); addAnnotation (getBPMNPlane_BpmnEdge(), source, new String[] { "kind", "element", "name", "BPMNEdge", "namespace", "##targetNamespace" }); addAnnotation (bpmnShapeEClass, source, new String[] { "name", "BPMNShape", "kind", "elementOnly" }); addAnnotation (getBPMNShape_Label(), source, new String[] { "kind", "element", "name", "BPMNLabel", "namespace", "http://www.omg.org/spec/BPMN/20100524/DI" }); addAnnotation (getBPMNShape_BpmnElement(), source, new String[] { "kind", "attribute", "name", "bpmnElement" }); addAnnotation (getBPMNShape_ChoreographyActivityShape(), source, new String[] { "kind", "attribute", "name", "choreographyActivityShape" }); addAnnotation (getBPMNShape_IsExpanded(), source, new String[] { "kind", "attribute", "name", "isExpanded" }); addAnnotation (getBPMNShape_IsHorizontal(), source, new String[] { "kind", "attribute", "name", "isHorizontal" }); addAnnotation (getBPMNShape_IsMarkerVisible(), source, new String[] { "kind", "attribute", "name", "isMarkerVisible" }); addAnnotation (getBPMNShape_IsMessageVisible(), source, new String[] { "kind", "attribute", "name", "isMessageVisible" }); addAnnotation (getBPMNShape_ParticipantBandKind(), source, new String[] { "kind", "attribute", "name", "participantBandKind" }); } } //BpmnDiPackageImpl





© 2015 - 2024 Weber Informatics LLC | Privacy Policy