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

org.omg.dd.di.impl.DiPackageImpl 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.dd.di.impl;

import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EGenericType;
import org.eclipse.emf.ecore.EOperation;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.EValidator;

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

import org.eclipse.emf.ecore.xml.type.XMLTypePackage;

import org.omg.bpmn.bpmn2.Bpmn2Package;

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

import org.omg.bpmn.di.BpmnDiPackage;

import org.omg.bpmn.di.impl.BpmnDiPackageImpl;

import org.omg.dd.dc.DcPackage;

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

import org.omg.dd.di.DIRoot;
import org.omg.dd.di.DiFactory;
import org.omg.dd.di.DiPackage;
import org.omg.dd.di.Diagram;
import org.omg.dd.di.DiagramElement;
import org.omg.dd.di.Edge;
import org.omg.dd.di.Label;
import org.omg.dd.di.LabeledEdge;
import org.omg.dd.di.LabeledShape;
import org.omg.dd.di.Node;
import org.omg.dd.di.Plane;
import org.omg.dd.di.Shape;
import org.omg.dd.di.Style;

import org.omg.dd.di.util.DiValidator;

/**
 * 
 * An implementation of the model Package.
 * 
 * @generated
 */
public class DiPackageImpl extends EPackageImpl implements DiPackage {
	/**
	 * 
	 * 
	 * @generated
	 */
	private EClass diRootEClass = null;

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

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

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

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

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

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

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

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

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

	/**
	 * 
	 * 
	 * @generated
	 */
	private EClass styleEClass = 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.dd.di.DiPackage#eNS_URI * @see #init() * @generated */ private DiPackageImpl() { super(eNS_URI, DiFactory.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 DiPackage#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 DiPackage init() { if (isInited) return (DiPackage)EPackage.Registry.INSTANCE.getEPackage(DiPackage.eNS_URI); // Obtain or create and register package Object registeredDiPackage = EPackage.Registry.INSTANCE.get(eNS_URI); DiPackageImpl theDiPackage = registeredDiPackage instanceof DiPackageImpl ? (DiPackageImpl)registeredDiPackage : new DiPackageImpl(); isInited = true; // Initialize simple dependencies XMLTypePackage.eINSTANCE.eClass(); // 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(BpmnDiPackage.eNS_URI); BpmnDiPackageImpl theBpmnDiPackage = (BpmnDiPackageImpl)(registeredPackage instanceof BpmnDiPackageImpl ? registeredPackage : BpmnDiPackage.eINSTANCE); registeredPackage = EPackage.Registry.INSTANCE.getEPackage(DcPackage.eNS_URI); DcPackageImpl theDcPackage = (DcPackageImpl)(registeredPackage instanceof DcPackageImpl ? registeredPackage : DcPackage.eINSTANCE); // Load packages theBpmn2Package.loadPackage(); // Create package meta-data objects theDiPackage.createPackageContents(); theBpmnDiPackage.createPackageContents(); theDcPackage.createPackageContents(); // Initialize created meta-data theDiPackage.initializePackageContents(); theBpmnDiPackage.initializePackageContents(); theDcPackage.initializePackageContents(); // Fix loaded packages theBpmn2Package.fixPackageContents(); // Register package validator EValidator.Registry.INSTANCE.put (theDiPackage, new EValidator.Descriptor() { @Override public EValidator getEValidator() { return DiValidator.INSTANCE; } }); // Mark meta-data to indicate it can't be changed theDiPackage.freeze(); // Update the registry and return the package EPackage.Registry.INSTANCE.put(DiPackage.eNS_URI, theDiPackage); return theDiPackage; } /** * * * @generated */ @Override public EClass getDIRoot() { return diRootEClass; } /** * * * @generated */ @Override public EAttribute getDIRoot_Mixed() { return (EAttribute)diRootEClass.getEStructuralFeatures().get(0); } /** * * * @generated */ @Override public EReference getDIRoot_XMLNSPrefixMap() { return (EReference)diRootEClass.getEStructuralFeatures().get(1); } /** * * * @generated */ @Override public EReference getDIRoot_XSISchemaLocation() { return (EReference)diRootEClass.getEStructuralFeatures().get(2); } /** * * * @generated */ @Override public EReference getDIRoot_DiagramElement() { return (EReference)diRootEClass.getEStructuralFeatures().get(3); } /** * * * @generated */ @Override public EReference getDIRoot_Diagram() { return (EReference)diRootEClass.getEStructuralFeatures().get(4); } /** * * * @generated */ @Override public EReference getDIRoot_Edge() { return (EReference)diRootEClass.getEStructuralFeatures().get(5); } /** * * * @generated */ @Override public EReference getDIRoot_Label() { return (EReference)diRootEClass.getEStructuralFeatures().get(6); } /** * * * @generated */ @Override public EReference getDIRoot_LabeledEdge() { return (EReference)diRootEClass.getEStructuralFeatures().get(7); } /** * * * @generated */ @Override public EReference getDIRoot_LabeledShape() { return (EReference)diRootEClass.getEStructuralFeatures().get(8); } /** * * * @generated */ @Override public EReference getDIRoot_Node() { return (EReference)diRootEClass.getEStructuralFeatures().get(9); } /** * * * @generated */ @Override public EReference getDIRoot_Plane() { return (EReference)diRootEClass.getEStructuralFeatures().get(10); } /** * * * @generated */ @Override public EReference getDIRoot_Shape() { return (EReference)diRootEClass.getEStructuralFeatures().get(11); } /** * * * @generated */ @Override public EReference getDIRoot_Style() { return (EReference)diRootEClass.getEStructuralFeatures().get(12); } /** * * * @generated */ @Override public EClass getDiagram() { return diagramEClass; } /** * * * @generated */ @Override public EAttribute getDiagram_Documentation() { return (EAttribute)diagramEClass.getEStructuralFeatures().get(0); } /** * * * @generated */ @Override public EReference getDiagram_OwnedStyle() { return (EReference)diagramEClass.getEStructuralFeatures().get(1); } /** * * * @generated */ @Override public EReference getDiagram_RootElement() { return (EReference)diagramEClass.getEStructuralFeatures().get(2); } /** * * * @generated */ @Override public EAttribute getDiagram_Id() { return (EAttribute)diagramEClass.getEStructuralFeatures().get(3); } /** * * * @generated */ @Override public EAttribute getDiagram_Name() { return (EAttribute)diagramEClass.getEStructuralFeatures().get(4); } /** * * * @generated */ @Override public EAttribute getDiagram_Resolution() { return (EAttribute)diagramEClass.getEStructuralFeatures().get(5); } /** * * * @generated */ @Override public EClass getDiagramElement() { return diagramElementEClass; } /** * * * @generated */ @Override public EReference getDiagramElement_OwningDiagram() { return (EReference)diagramElementEClass.getEStructuralFeatures().get(0); } /** * * * @generated */ @Override public EReference getDiagramElement_OwningElement() { return (EReference)diagramElementEClass.getEStructuralFeatures().get(1); } /** * * * @generated */ @Override public EReference getDiagramElement_OwnedElement() { return (EReference)diagramElementEClass.getEStructuralFeatures().get(2); } /** * * * @generated */ @Override public EReference getDiagramElement_ModelElement() { return (EReference)diagramElementEClass.getEStructuralFeatures().get(3); } /** * * * @generated */ @Override public EReference getDiagramElement_Style() { return (EReference)diagramElementEClass.getEStructuralFeatures().get(4); } /** * * * @generated */ @Override public EAttribute getDiagramElement_Id() { return (EAttribute)diagramElementEClass.getEStructuralFeatures().get(5); } /** * * * @generated */ @Override public EAttribute getDiagramElement_AnyAttribute() { return (EAttribute)diagramElementEClass.getEStructuralFeatures().get(6); } /** * * * @generated */ @Override public EClass getEdge() { return edgeEClass; } /** * * * @generated */ @Override public EReference getEdge_Source() { return (EReference)edgeEClass.getEStructuralFeatures().get(0); } /** * * * @generated */ @Override public EReference getEdge_Target() { return (EReference)edgeEClass.getEStructuralFeatures().get(1); } /** * * * @generated */ @Override public EReference getEdge_Waypoint() { return (EReference)edgeEClass.getEStructuralFeatures().get(2); } /** * * * @generated */ @Override public EClass getLabel() { return labelEClass; } /** * * * @generated */ @Override public EReference getLabel_Bounds() { return (EReference)labelEClass.getEStructuralFeatures().get(0); } /** * * * @generated */ @Override public EClass getLabeledEdge() { return labeledEdgeEClass; } /** * * * @generated */ @Override public EReference getLabeledEdge_OwnedLabel() { return (EReference)labeledEdgeEClass.getEStructuralFeatures().get(0); } /** * * * @generated */ @Override public EClass getLabeledShape() { return labeledShapeEClass; } /** * * * @generated */ @Override public EReference getLabeledShape_OwnedLabel() { return (EReference)labeledShapeEClass.getEStructuralFeatures().get(0); } /** * * * @generated */ @Override public EClass getNode() { return nodeEClass; } /** * * * @generated */ @Override public EClass getPlane() { return planeEClass; } /** * * * @generated */ @Override public EReference getPlane_PlaneElement() { return (EReference)planeEClass.getEStructuralFeatures().get(0); } /** * * * @generated */ @Override public EOperation getPlane__Plane_element_type__DiagnosticChain_Map() { return planeEClass.getEOperations().get(0); } /** * * * @generated */ @Override public EClass getShape() { return shapeEClass; } /** * * * @generated */ @Override public EReference getShape_Bounds() { return (EReference)shapeEClass.getEStructuralFeatures().get(0); } /** * * * @generated */ @Override public EClass getStyle() { return styleEClass; } /** * * * @generated */ @Override public EAttribute getStyle_Id() { return (EAttribute)styleEClass.getEStructuralFeatures().get(0); } /** * * * @generated */ @Override public DiFactory getDiFactory() { return (DiFactory)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 diRootEClass = createEClass(DI_ROOT); createEAttribute(diRootEClass, DI_ROOT__MIXED); createEReference(diRootEClass, DI_ROOT__XMLNS_PREFIX_MAP); createEReference(diRootEClass, DI_ROOT__XSI_SCHEMA_LOCATION); createEReference(diRootEClass, DI_ROOT__DIAGRAM_ELEMENT); createEReference(diRootEClass, DI_ROOT__DIAGRAM); createEReference(diRootEClass, DI_ROOT__EDGE); createEReference(diRootEClass, DI_ROOT__LABEL); createEReference(diRootEClass, DI_ROOT__LABELED_EDGE); createEReference(diRootEClass, DI_ROOT__LABELED_SHAPE); createEReference(diRootEClass, DI_ROOT__NODE); createEReference(diRootEClass, DI_ROOT__PLANE); createEReference(diRootEClass, DI_ROOT__SHAPE); createEReference(diRootEClass, DI_ROOT__STYLE); diagramEClass = createEClass(DIAGRAM); createEAttribute(diagramEClass, DIAGRAM__DOCUMENTATION); createEReference(diagramEClass, DIAGRAM__OWNED_STYLE); createEReference(diagramEClass, DIAGRAM__ROOT_ELEMENT); createEAttribute(diagramEClass, DIAGRAM__ID); createEAttribute(diagramEClass, DIAGRAM__NAME); createEAttribute(diagramEClass, DIAGRAM__RESOLUTION); diagramElementEClass = createEClass(DIAGRAM_ELEMENT); createEReference(diagramElementEClass, DIAGRAM_ELEMENT__OWNING_DIAGRAM); createEReference(diagramElementEClass, DIAGRAM_ELEMENT__OWNING_ELEMENT); createEReference(diagramElementEClass, DIAGRAM_ELEMENT__OWNED_ELEMENT); createEReference(diagramElementEClass, DIAGRAM_ELEMENT__MODEL_ELEMENT); createEReference(diagramElementEClass, DIAGRAM_ELEMENT__STYLE); createEAttribute(diagramElementEClass, DIAGRAM_ELEMENT__ID); createEAttribute(diagramElementEClass, DIAGRAM_ELEMENT__ANY_ATTRIBUTE); edgeEClass = createEClass(EDGE); createEReference(edgeEClass, EDGE__SOURCE); createEReference(edgeEClass, EDGE__TARGET); createEReference(edgeEClass, EDGE__WAYPOINT); labelEClass = createEClass(LABEL); createEReference(labelEClass, LABEL__BOUNDS); labeledEdgeEClass = createEClass(LABELED_EDGE); createEReference(labeledEdgeEClass, LABELED_EDGE__OWNED_LABEL); labeledShapeEClass = createEClass(LABELED_SHAPE); createEReference(labeledShapeEClass, LABELED_SHAPE__OWNED_LABEL); nodeEClass = createEClass(NODE); planeEClass = createEClass(PLANE); createEReference(planeEClass, PLANE__PLANE_ELEMENT); createEOperation(planeEClass, PLANE___PLANE_ELEMENT_TYPE__DIAGNOSTICCHAIN_MAP); shapeEClass = createEClass(SHAPE); createEReference(shapeEClass, SHAPE__BOUNDS); styleEClass = createEClass(STYLE); createEAttribute(styleEClass, STYLE__ID); } /** * * * @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 XMLTypePackage theXMLTypePackage = (XMLTypePackage)EPackage.Registry.INSTANCE.getEPackage(XMLTypePackage.eNS_URI); DcPackage theDcPackage = (DcPackage)EPackage.Registry.INSTANCE.getEPackage(DcPackage.eNS_URI); // Create type parameters // Set bounds for type parameters // Add supertypes to classes edgeEClass.getESuperTypes().add(this.getDiagramElement()); labelEClass.getESuperTypes().add(this.getNode()); labeledEdgeEClass.getESuperTypes().add(this.getEdge()); labeledShapeEClass.getESuperTypes().add(this.getShape()); nodeEClass.getESuperTypes().add(this.getDiagramElement()); planeEClass.getESuperTypes().add(this.getNode()); shapeEClass.getESuperTypes().add(this.getNode()); // Initialize classes, features, and operations; add parameters initEClass(diRootEClass, DIRoot.class, "DIRoot", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getDIRoot_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(getDIRoot_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(getDIRoot_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(getDIRoot_DiagramElement(), this.getDiagramElement(), null, "diagramElement", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); initEReference(getDIRoot_Diagram(), this.getDiagram(), null, "diagram", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); initEReference(getDIRoot_Edge(), this.getEdge(), null, "edge", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); initEReference(getDIRoot_Label(), this.getLabel(), null, "label", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); initEReference(getDIRoot_LabeledEdge(), this.getLabeledEdge(), null, "labeledEdge", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); initEReference(getDIRoot_LabeledShape(), this.getLabeledShape(), null, "labeledShape", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); initEReference(getDIRoot_Node(), this.getNode(), null, "node", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); initEReference(getDIRoot_Plane(), this.getPlane(), null, "plane", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); initEReference(getDIRoot_Shape(), this.getShape(), null, "shape", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); initEReference(getDIRoot_Style(), this.getStyle(), null, "style", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); initEClass(diagramEClass, Diagram.class, "Diagram", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getDiagram_Documentation(), ecorePackage.getEString(), "documentation", null, 0, 1, Diagram.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); initEReference(getDiagram_OwnedStyle(), this.getStyle(), null, "ownedStyle", null, 0, -1, Diagram.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, !IS_ORDERED); initEReference(getDiagram_RootElement(), this.getDiagramElement(), this.getDiagramElement_OwningDiagram(), "rootElement", null, 1, 1, Diagram.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, !IS_ORDERED); initEAttribute(getDiagram_Id(), theXMLTypePackage.getID(), "id", null, 0, 1, Diagram.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getDiagram_Name(), ecorePackage.getEString(), "name", null, 0, 1, Diagram.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); initEAttribute(getDiagram_Resolution(), ecorePackage.getEFloat(), "resolution", null, 0, 1, Diagram.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); initEClass(diagramElementEClass, DiagramElement.class, "DiagramElement", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getDiagramElement_OwningDiagram(), this.getDiagram(), this.getDiagram_RootElement(), "owningDiagram", null, 0, 1, DiagramElement.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, !IS_ORDERED); initEReference(getDiagramElement_OwningElement(), this.getDiagramElement(), this.getDiagramElement_OwnedElement(), "owningElement", null, 0, 1, DiagramElement.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, !IS_ORDERED); initEReference(getDiagramElement_OwnedElement(), this.getDiagramElement(), this.getDiagramElement_OwningElement(), "ownedElement", null, 0, -1, DiagramElement.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, !IS_ORDERED); initEReference(getDiagramElement_ModelElement(), ecorePackage.getEObject(), null, "modelElement", null, 0, 1, DiagramElement.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, !IS_ORDERED); initEReference(getDiagramElement_Style(), this.getStyle(), null, "style", null, 0, 1, DiagramElement.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, !IS_ORDERED); initEAttribute(getDiagramElement_Id(), theXMLTypePackage.getID(), "id", null, 0, 1, DiagramElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getDiagramElement_AnyAttribute(), ecorePackage.getEFeatureMapEntry(), "anyAttribute", null, 0, -1, DiagramElement.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_Source(), this.getDiagramElement(), null, "source", null, 0, 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.getDiagramElement(), null, "target", null, 0, 1, Edge.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, !IS_ORDERED); initEReference(getEdge_Waypoint(), theDcPackage.getPoint(), null, "waypoint", null, 2, -1, Edge.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(labelEClass, Label.class, "Label", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getLabel_Bounds(), theDcPackage.getBounds(), null, "bounds", null, 0, 1, Label.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); initEClass(labeledEdgeEClass, LabeledEdge.class, "LabeledEdge", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getLabeledEdge_OwnedLabel(), this.getLabel(), null, "ownedLabel", null, 0, -1, LabeledEdge.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, !IS_ORDERED); initEClass(labeledShapeEClass, LabeledShape.class, "LabeledShape", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getLabeledShape_OwnedLabel(), this.getLabel(), null, "ownedLabel", null, 0, -1, LabeledShape.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, !IS_ORDERED); initEClass(nodeEClass, Node.class, "Node", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEClass(planeEClass, Plane.class, "Plane", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getPlane_PlaneElement(), this.getDiagramElement(), null, "planeElement", null, 0, -1, Plane.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); EOperation op = initEOperation(getPlane__Plane_element_type__DiagnosticChain_Map(), ecorePackage.getEBoolean(), "plane_element_type", 0, 1, IS_UNIQUE, IS_ORDERED); addEParameter(op, ecorePackage.getEDiagnosticChain(), "diagnostics", 0, 1, IS_UNIQUE, IS_ORDERED); EGenericType g1 = createEGenericType(ecorePackage.getEMap()); EGenericType g2 = createEGenericType(ecorePackage.getEJavaObject()); g1.getETypeArguments().add(g2); g2 = createEGenericType(ecorePackage.getEJavaObject()); g1.getETypeArguments().add(g2); addEParameter(op, g1, "context", 0, 1, IS_UNIQUE, IS_ORDERED); initEClass(shapeEClass, Shape.class, "Shape", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getShape_Bounds(), theDcPackage.getBounds(), null, "bounds", null, 1, 1, Shape.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); initEClass(styleEClass, Style.class, "Style", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getStyle_Id(), theXMLTypePackage.getID(), "id", null, 0, 1, Style.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); // 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 (diRootEClass, source, new String[] { "name", "", "kind", "mixed" }); addAnnotation (getDIRoot_Mixed(), source, new String[] { "kind", "elementWildcard", "name", ":mixed" }); addAnnotation (getDIRoot_XMLNSPrefixMap(), source, new String[] { "kind", "attribute", "name", "xmlns:prefix" }); addAnnotation (getDIRoot_XSISchemaLocation(), source, new String[] { "kind", "attribute", "name", "xsi:schemaLocation" }); addAnnotation (getDIRoot_DiagramElement(), source, new String[] { "kind", "element", "name", "DiagramElement", "namespace", "http://www.omg.org/spec/DD/20100524/DI" }); addAnnotation (getDIRoot_Diagram(), source, new String[] { "kind", "element", "name", "Diagram", "namespace", "http://www.omg.org/spec/DD/20100524/DI" }); addAnnotation (getDIRoot_Edge(), source, new String[] { "kind", "element", "name", "Edge", "namespace", "http://www.omg.org/spec/DD/20100524/DI" }); addAnnotation (getDIRoot_Label(), source, new String[] { "kind", "element", "name", "Label", "namespace", "http://www.omg.org/spec/DD/20100524/DI" }); addAnnotation (getDIRoot_LabeledEdge(), source, new String[] { "kind", "element", "name", "LabeledEdge", "namespace", "http://www.omg.org/spec/DD/20100524/DI" }); addAnnotation (getDIRoot_LabeledShape(), source, new String[] { "kind", "element", "name", "LabeledShape", "namespace", "http://www.omg.org/spec/DD/20100524/DI" }); addAnnotation (getDIRoot_Node(), source, new String[] { "kind", "element", "name", "Node", "namespace", "http://www.omg.org/spec/DD/20100524/DI" }); addAnnotation (getDIRoot_Plane(), source, new String[] { "kind", "element", "name", "Plane", "namespace", "http://www.omg.org/spec/DD/20100524/DI" }); addAnnotation (getDIRoot_Shape(), source, new String[] { "kind", "element", "name", "Shape", "namespace", "http://www.omg.org/spec/DD/20100524/DI" }); addAnnotation (getDIRoot_Style(), source, new String[] { "kind", "element", "name", "Style", "namespace", "http://www.omg.org/spec/DD/20100524/DI" }); addAnnotation (diagramEClass, source, new String[] { "name", "Diagram", "kind", "empty" }); addAnnotation (getDiagram_Documentation(), source, new String[] { "kind", "attribute", "name", "documentation" }); addAnnotation (getDiagram_Id(), source, new String[] { "kind", "attribute", "name", "id" }); addAnnotation (getDiagram_Name(), source, new String[] { "kind", "attribute", "name", "name" }); addAnnotation (getDiagram_Resolution(), source, new String[] { "kind", "attribute", "name", "resolution" }); addAnnotation (diagramElementEClass, source, new String[] { "name", "DiagramElement", "kind", "elementOnly", "abstract", "true" }); addAnnotation (getDiagramElement_Id(), source, new String[] { "kind", "attribute", "name", "id" }); addAnnotation (getDiagramElement_AnyAttribute(), source, new String[] { "kind", "attributeWildcard", "wildcards", "##other", "name", ":3", "processing", "lax" }); addAnnotation (edgeEClass, source, new String[] { "name", "Edge", "kind", "elementOnly" }); addAnnotation (getEdge_Waypoint(), source, new String[] { "kind", "element", "name", "waypoint", "namespace", "http://www.omg.org/spec/DD/20100524/DI" }); addAnnotation (labelEClass, source, new String[] { "name", "Label", "kind", "elementOnly" }); addAnnotation (getLabel_Bounds(), source, new String[] { "kind", "element", "name", "Bounds", "namespace", "http://www.omg.org/spec/DD/20100524/DC" }); addAnnotation (labeledEdgeEClass, source, new String[] { "name", "LabeledEdge", "kind", "elementOnly" }); addAnnotation (labeledShapeEClass, source, new String[] { "name", "LabeledShape", "kind", "elementOnly" }); addAnnotation (nodeEClass, source, new String[] { "name", "Node", "kind", "elementOnly" }); addAnnotation (planeEClass, source, new String[] { "name", "Plane", "kind", "elementOnly" }); addAnnotation (getPlane_PlaneElement(), source, new String[] { "kind", "element", "name", "DiagramElement", "namespace", "http://www.omg.org/spec/DD/20100524/DI", "group", "http://www.omg.org/spec/DD/20100524/DI#DiagramElement" }); addAnnotation (shapeEClass, source, new String[] { "name", "Shape", "kind", "elementOnly" }); addAnnotation (getShape_Bounds(), source, new String[] { "kind", "element", "name", "Bounds", "namespace", "http://www.omg.org/spec/DD/20100524/DC" }); addAnnotation (styleEClass, source, new String[] { "name", "Style", "kind", "empty" }); addAnnotation (getStyle_Id(), source, new String[] { "kind", "attribute", "name", "id" }); } } //DiPackageImpl





© 2015 - 2024 Weber Informatics LLC | Privacy Policy