Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 199624 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/uml2/uml/ecore/importer/UMLImporter.java (-7 / +15 lines)
Lines 41-49 Link Here
41
import org.eclipse.uml2.uml.Element;
41
import org.eclipse.uml2.uml.Element;
42
import org.eclipse.uml2.uml.Stereotype;
42
import org.eclipse.uml2.uml.Stereotype;
43
import org.eclipse.uml2.uml.UMLPackage;
43
import org.eclipse.uml2.uml.UMLPackage;
44
import org.eclipse.uml2.uml.resource.CMOF2UMLExtendedMetaData;
45
import org.eclipse.uml2.uml.resource.CMOF2UMLResource;
44
import org.eclipse.uml2.uml.resource.UML22UMLExtendedMetaData;
46
import org.eclipse.uml2.uml.resource.UML22UMLExtendedMetaData;
45
import org.eclipse.uml2.uml.resource.UML22UMLResource;
47
import org.eclipse.uml2.uml.resource.UML22UMLResource;
46
import org.eclipse.uml2.uml.resource.UMLResource;
48
import org.eclipse.uml2.uml.resource.UMLResource;
49
import org.eclipse.uml2.uml.resource.XMI2UMLExtendedMetaData;
47
import org.eclipse.uml2.uml.resource.XMI2UMLResource;
50
import org.eclipse.uml2.uml.resource.XMI2UMLResource;
48
import org.eclipse.uml2.uml.util.UMLUtil;
51
import org.eclipse.uml2.uml.util.UMLUtil;
49
52
Lines 116-124 Link Here
116
				|| UMLUtil.OPTION__PROCESS
119
				|| UMLUtil.OPTION__PROCESS
117
					.equals(options
120
					.equals(options
118
						.get(UMLUtil.UML2EcoreConverter.OPTION__SUBSETTING_PROPERTIES))
121
						.get(UMLUtil.UML2EcoreConverter.OPTION__SUBSETTING_PROPERTIES))
119
				|| UMLUtil.OPTION__PROCESS
122
				|| UMLUtil.OPTION__PROCESS.equals(options
120
					.equals(options
123
					.get(UMLUtil.UML2EcoreConverter.OPTION__OPERATION_BODIES))
121
						.get(UMLUtil.UML2EcoreConverter.OPTION__OPERATION_BODIES))
122
				|| UMLUtil.OPTION__PROCESS.equals(options
124
				|| UMLUtil.OPTION__PROCESS.equals(options
123
					.get(UMLUtil.UML2EcoreConverter.OPTION__UNION_PROPERTIES))) {
125
					.get(UMLUtil.UML2EcoreConverter.OPTION__UNION_PROPERTIES))) {
124
126
Lines 233-239 Link Here
233
			if (Diagnostic.INFO < diagnostics.getSeverity()) {
235
			if (Diagnostic.INFO < diagnostics.getSeverity()) {
234
				diagnostic = diagnostics;
236
				diagnostic = diagnostics;
235
			}
237
			}
236
			
238
237
			if (Diagnostic.ERROR > diagnostics.getSeverity()) {
239
			if (Diagnostic.ERROR > diagnostics.getSeverity()) {
238
				adjustEPackages(monitor);
240
				adjustEPackages(monitor);
239
			}
241
			}
Lines 309-315 Link Here
309
311
310
			if (value.endsWith('.' + UMLResource.FILE_EXTENSION)
312
			if (value.endsWith('.' + UMLResource.FILE_EXTENSION)
311
				|| value.endsWith('.' + UML22UMLResource.FILE_EXTENSION)
313
				|| value.endsWith('.' + UML22UMLResource.FILE_EXTENSION)
312
				|| value.endsWith('.' + XMI2UMLResource.FILE_EXTENSION)) {
314
				|| value.endsWith('.' + XMI2UMLResource.FILE_EXTENSION)
315
				|| value.endsWith('.' + CMOF2UMLResource.FILE_EXTENSION)) {
313
316
314
				text.append(makeAbsolute(URI.createURI(value), genModelURI)
317
				text.append(makeAbsolute(URI.createURI(value), genModelURI)
315
					.toString());
318
					.toString());
Lines 344-352 Link Here
344
			UML22UMLResource.Factory.INSTANCE);
347
			UML22UMLResource.Factory.INSTANCE);
345
		extensionToFactoryMap.put(XMI2UMLResource.FILE_EXTENSION,
348
		extensionToFactoryMap.put(XMI2UMLResource.FILE_EXTENSION,
346
			XMI2UMLResource.Factory.INSTANCE);
349
			XMI2UMLResource.Factory.INSTANCE);
350
		extensionToFactoryMap.put(CMOF2UMLResource.FILE_EXTENSION,
351
			CMOF2UMLResource.Factory.INSTANCE);
352
353
		Map<URI, URI> uriMap = resourceSet.getURIConverter().getURIMap();
347
354
348
		resourceSet.getURIConverter().getURIMap().putAll(
355
		uriMap.putAll(UML22UMLExtendedMetaData.getURIMap());
349
			UML22UMLExtendedMetaData.getURIMap());
356
		uriMap.putAll(XMI2UMLExtendedMetaData.getURIMap());
357
		uriMap.putAll(CMOF2UMLExtendedMetaData.getURIMap());
350
358
351
		return resourceSet;
359
		return resourceSet;
352
	}
360
	}
(-)plugin.xml (-1 / +1 lines)
Lines 21-27 Link Here
21
       id="org.eclipse.uml2.uml.ecore.importer"
21
       id="org.eclipse.uml2.uml.ecore.importer"
22
       name="%_UI_UMLImporter_label"
22
       name="%_UI_UMLImporter_label"
23
       icon="platform:/plugin/org.eclipse.uml2.uml.editor/icons/full/obj16/UMLModelFile.gif"
23
       icon="platform:/plugin/org.eclipse.uml2.uml.editor/icons/full/obj16/UMLModelFile.gif"
24
       extensions="uml,uml2,xmi"
24
       extensions="uml,uml2,xmi,cmof"
25
       description="%_UI_UMLModelImporter_description"
25
       description="%_UI_UMLModelImporter_description"
26
       wizard="org.eclipse.uml2.uml.ecore.importer.ui.UMLImporterWizard"/>
26
       wizard="org.eclipse.uml2.uml.ecore.importer.ui.UMLImporterWizard"/>
27
  </extension>	
27
  </extension>	
(-)src/org/eclipse/uml2/uml/util/UMLUtil.java (-4 / +8 lines)
Lines 7671-7676 Link Here
7671
	protected static final String UML2_UML_PACKAGE_2_0_NS_URI = "http://www.eclipse.org/uml2/2.0.0/UML"; //$NON-NLS-1$
7671
	protected static final String UML2_UML_PACKAGE_2_0_NS_URI = "http://www.eclipse.org/uml2/2.0.0/UML"; //$NON-NLS-1$
7672
7672
7673
	/**
7673
	/**
7674
	 * The name of the 'Ecore' profile.
7675
	 */
7676
	public static final String PROFILE__ECORE = "Ecore"; //$NON-NLS-1$
7677
7678
	/**
7674
	 * The name of the 'EAttribute' stereotype.
7679
	 * The name of the 'EAttribute' stereotype.
7675
	 */
7680
	 */
7676
	public static final String STEREOTYPE__E_ATTRIBUTE = "EAttribute"; //$NON-NLS-1$
7681
	public static final String STEREOTYPE__E_ATTRIBUTE = "EAttribute"; //$NON-NLS-1$
Lines 8081-8089 Link Here
8081
8086
8082
	protected static EPackage getEPackage(org.eclipse.uml2.uml.Package package_) {
8087
	protected static EPackage getEPackage(org.eclipse.uml2.uml.Package package_) {
8083
		return EPackage.Registry.INSTANCE.getEPackage((String) getTaggedValue(
8088
		return EPackage.Registry.INSTANCE.getEPackage((String) getTaggedValue(
8084
			package_, "Ecore" //$NON-NLS-1$
8089
			package_, PROFILE__ECORE + NamedElement.SEPARATOR
8085
				+ NamedElement.SEPARATOR + STEREOTYPE__E_PACKAGE,
8090
				+ STEREOTYPE__E_PACKAGE, TAG_DEFINITION__NS_URI));
8086
			TAG_DEFINITION__NS_URI));
8087
	}
8091
	}
8088
8092
8089
	protected static EClassifier getEClassifier(Type type) {
8093
	protected static EClassifier getEClassifier(Type type) {
Lines 8411-8417 Link Here
8411
			});
8415
			});
8412
	}
8416
	}
8413
8417
8414
	protected static Object getTaggedValue(Element element,
8418
	public static Object getTaggedValue(Element element,
8415
			String qualifiedStereotypeName, String propertyName) {
8419
			String qualifiedStereotypeName, String propertyName) {
8416
		Stereotype stereotype = element
8420
		Stereotype stereotype = element
8417
			.getAppliedStereotype(qualifiedStereotypeName);
8421
			.getAppliedStereotype(qualifiedStereotypeName);
(-)src/org/eclipse/uml2/uml/internal/resource/XMI2UMLHandler.java (-2 / +2 lines)
Lines 45-53 Link Here
45
45
46
	protected static final String ECORE_EXTENSION_TYPE = "ecoreExtension"; //$NON-NLS-1$
46
	protected static final String ECORE_EXTENSION_TYPE = "ecoreExtension"; //$NON-NLS-1$
47
47
48
	protected final static String XMI_IDREF = "idref"; //$NON-NLS-1$
48
	protected static final String XMI_IDREF = "idref"; //$NON-NLS-1$
49
49
50
	protected final static String IDREF_ATTRIB = XMIResource.XMI_NS + ':' + XMI_IDREF;
50
	protected static final String IDREF_ATTRIB = XMIResource.XMI_NS + ':' + XMI_IDREF;
51
51
52
	public XMI2UMLHandler(XMLResource xmiResource, XMLHelper helper, Map<?, ?> options) {
52
	public XMI2UMLHandler(XMLResource xmiResource, XMLHelper helper, Map<?, ?> options) {
53
		super(xmiResource, helper, options);
53
		super(xmiResource, helper, options);
(-)src/org/eclipse/uml2/uml/internal/resource/CMOF2UMLHelperImpl.java (+30 lines)
Added Link Here
1
/*
2
 * Copyright (c) 2007 IBM Corporation and others.
3
 * All rights reserved.   This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 *
8
 * Contributors:
9
 *   IBM - initial API and implementation
10
 *
11
 * $Id$
12
 */
13
package org.eclipse.uml2.uml.internal.resource;
14
15
import org.eclipse.emf.ecore.xmi.XMLResource;
16
import org.eclipse.emf.ecore.xmi.impl.XMIHelperImpl;
17
import org.eclipse.uml2.uml.UMLPackage;
18
import org.eclipse.uml2.uml.resource.CMOF2UMLResource;
19
20
public class CMOF2UMLHelperImpl
21
		extends XMIHelperImpl {
22
23
	public CMOF2UMLHelperImpl(XMLResource resource) {
24
		super(resource);
25
26
		packages.put(UMLPackage.eINSTANCE,
27
			CMOF2UMLResource.CMOF_METAMODEL_NS_PREFIX);
28
	}
29
30
}
(-)src/org/eclipse/uml2/uml/resource/CMOF2UMLResource.java (+36 lines)
Added Link Here
1
/*
2
 * Copyright (c) 2007 IBM Corporation and others.
3
 * All rights reserved.   This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 *
8
 * Contributors:
9
 *   IBM - initial API and implementation
10
 * 
11
 * $Id$
12
 */
13
package org.eclipse.uml2.uml.resource;
14
15
import org.eclipse.emf.ecore.resource.Resource;
16
import org.eclipse.uml2.uml.internal.resource.CMOF2UMLResourceFactoryImpl;
17
18
public interface CMOF2UMLResource
19
		extends UMLResource {
20
21
	public interface Factory
22
			extends Resource.Factory {
23
24
		public static final Factory INSTANCE = new CMOF2UMLResourceFactoryImpl();
25
26
	}
27
28
	String CMOF_METAMODEL_URI = "http://schema.omg.org/spec/MOF/2.0/cmof.xml"; //$NON-NLS-1$
29
30
	String CMOF_METAMODEL_NS_URI = CMOF_METAMODEL_URI;
31
32
	String CMOF_METAMODEL_NS_PREFIX = "cmof"; //$NON-NLS-1$
33
34
	String FILE_EXTENSION = CMOF_METAMODEL_NS_PREFIX;
35
36
}
(-)src/org/eclipse/uml2/uml/internal/resource/CMOF2UMLResourceFactoryImpl.java (+108 lines)
Added Link Here
1
/*
2
 * Copyright (c) 2007 IBM Corporation and others.
3
 * All rights reserved.   This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 *
8
 * Contributors:
9
 *   IBM - initial API and implementation
10
 * 
11
 * $Id$
12
 */
13
package org.eclipse.uml2.uml.internal.resource;
14
15
import java.util.Map;
16
17
import org.eclipse.emf.common.util.URI;
18
import org.eclipse.emf.ecore.EPackage;
19
import org.eclipse.emf.ecore.impl.EPackageRegistryImpl;
20
import org.eclipse.emf.ecore.resource.Resource;
21
import org.eclipse.emf.ecore.resource.ResourceSet;
22
import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl;
23
import org.eclipse.emf.ecore.util.EcoreUtil;
24
import org.eclipse.emf.ecore.util.ExtendedMetaData;
25
import org.eclipse.emf.ecore.xmi.XMLResource;
26
import org.eclipse.emf.mapping.ecore2xml.Ecore2XMLPackage;
27
import org.eclipse.emf.mapping.ecore2xml.Ecore2XMLRegistry;
28
import org.eclipse.emf.mapping.ecore2xml.impl.Ecore2XMLRegistryImpl;
29
import org.eclipse.uml2.uml.UMLPackage;
30
import org.eclipse.uml2.uml.resource.CMOF2UMLExtendedMetaData;
31
import org.eclipse.uml2.uml.resource.CMOF2UMLResource;
32
import org.eclipse.uml2.uml.resource.CMOF2UMLResourceHandler;
33
34
public class CMOF2UMLResourceFactoryImpl
35
		extends UMLResourceFactoryImpl
36
		implements CMOF2UMLResource.Factory {
37
38
	public CMOF2UMLResourceFactoryImpl() {
39
		super();
40
	}
41
42
	@Override
43
	public Resource createResourceGen(URI uri) {
44
		CMOF2UMLResource result = new CMOF2UMLResourceImpl(uri);
45
		result.setEncoding(CMOF2UMLResource.DEFAULT_ENCODING);
46
		return result;
47
	}
48
49
	@Override
50
	public Resource createResource(URI uri) {
51
		CMOF2UMLResource resource = (CMOF2UMLResource) super
52
			.createResource(uri);
53
54
		Map<Object, Object> defaultLoadOptions = resource
55
			.getDefaultLoadOptions();
56
57
		EPackage.Registry ePackageRegistry = new EPackageRegistryImpl(
58
			EPackage.Registry.INSTANCE);
59
		ePackageRegistry.put(CMOF2UMLResource.CMOF_METAMODEL_NS_URI,
60
			UMLPackage.eINSTANCE);
61
		ePackageRegistry
62
			.put(
63
				"platform:/plugin/org.eclipse.uml2.uml/model/UML.ecore", UMLPackage.eINSTANCE); //$NON-NLS-1$
64
65
		ResourceSet resourceSet = new ResourceSetImpl();
66
		resourceSet.setPackageRegistry(ePackageRegistry);
67
68
		Ecore2XMLRegistry ecore2xmlRegistry = new Ecore2XMLRegistryImpl(
69
			Ecore2XMLRegistry.INSTANCE);
70
		ecore2xmlRegistry
71
			.put(
72
				CMOF2UMLResource.CMOF_METAMODEL_NS_URI,
73
				EcoreUtil
74
					.getObjectByType(
75
						resourceSet
76
							.getResource(
77
								URI
78
									.createURI("platform:/plugin/org.eclipse.uml2.uml/model/CMOF_2_UML.ecore2xml"), //$NON-NLS-1$
79
								true).getContents(),
80
						Ecore2XMLPackage.Literals.XML_MAP));
81
82
		ExtendedMetaData extendedMetaData = new CMOF2UMLExtendedMetaData(
83
			ePackageRegistry, ecore2xmlRegistry);
84
85
		defaultLoadOptions.put(XMLResource.OPTION_EXTENDED_META_DATA,
86
			extendedMetaData);
87
		defaultLoadOptions.put(XMLResource.OPTION_LAX_FEATURE_PROCESSING,
88
			Boolean.FALSE);
89
90
		XMLResource.ResourceHandler resourceHandler = new CMOF2UMLResourceHandler();
91
92
		defaultLoadOptions.put(XMLResource.OPTION_RESOURCE_HANDLER,
93
			resourceHandler);
94
95
		Map<Object, Object> defaultSaveOptions = resource
96
			.getDefaultSaveOptions();
97
98
		defaultSaveOptions.put(XMLResource.OPTION_EXTENDED_META_DATA,
99
			extendedMetaData);
100
		defaultSaveOptions.put(XMLResource.OPTION_SAVE_TYPE_INFORMATION,
101
			Boolean.TRUE);
102
		defaultSaveOptions.put(XMLResource.OPTION_RESOURCE_HANDLER,
103
			resourceHandler);
104
105
		return resource;
106
	}
107
108
}
(-)src/org/eclipse/uml2/uml/internal/resource/CMOF2UMLSaveImpl.java (+287 lines)
Added Link Here
1
/*
2
 * Copyright (c) 2007 IBM Corporation and others.
3
 * All rights reserved.   This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 *
8
 * Contributors:
9
 *   IBM - initial API and implementation
10
 *
11
 * $Id$
12
 */
13
package org.eclipse.uml2.uml.internal.resource;
14
15
import java.util.Iterator;
16
import java.util.List;
17
import java.util.Map;
18
19
import org.eclipse.emf.ecore.EClass;
20
import org.eclipse.emf.ecore.EObject;
21
import org.eclipse.emf.ecore.EPackage;
22
import org.eclipse.emf.ecore.EStructuralFeature;
23
import org.eclipse.emf.ecore.EcorePackage;
24
import org.eclipse.emf.ecore.util.EcoreUtil;
25
import org.eclipse.emf.ecore.util.ExtendedMetaData;
26
import org.eclipse.emf.ecore.xmi.XMLHelper;
27
import org.eclipse.emf.ecore.xmi.XMLResource;
28
import org.eclipse.emf.ecore.xmi.impl.EMOFExtendedMetaData;
29
import org.eclipse.emf.ecore.xmi.impl.XMISaveImpl;
30
import org.eclipse.uml2.uml.NamedElement;
31
import org.eclipse.uml2.uml.PrimitiveType;
32
import org.eclipse.uml2.uml.UMLPackage;
33
import org.eclipse.uml2.uml.resource.CMOF2UMLExtendedMetaData;
34
import org.eclipse.uml2.uml.util.UMLUtil;
35
36
public class CMOF2UMLSaveImpl
37
		extends XMISaveImpl {
38
39
	protected static class Lookup
40
			extends XMISaveImpl.Lookup {
41
42
		public Lookup(XMLResource.XMLMap map, ExtendedMetaData extendedMetaData) {
43
			super(map, extendedMetaData);
44
		}
45
46
		@Override
47
		protected int featureKind(EStructuralFeature f) {
48
49
			if (f == UMLPackage.Literals.CLASSIFIER__GENERAL
50
				|| f == UMLPackage.Literals.CLASS__SUPER_CLASS) {
51
52
				return OBJECT_HREF_MANY;
53
			} else if (f == UMLPackage.Literals.MULTIPLICITY_ELEMENT__LOWER
54
				|| f == UMLPackage.Literals.MULTIPLICITY_ELEMENT__UPPER
55
				|| f == UMLPackage.Literals.PARAMETER__DEFAULT
56
				|| f == UMLPackage.Literals.PROPERTY__DEFAULT
57
				|| f == UMLPackage.Literals.PROPERTY__IS_COMPOSITE) {
58
59
				return DATATYPE_SINGLE;
60
			}
61
62
			return !f.isTransient()
63
				&& ((EStructuralFeature.Internal) f).isContainer()
64
				? (f.isUnsettable()
65
					? OBJECT_HREF_SINGLE_UNSETTABLE
66
					: OBJECT_HREF_SINGLE)
67
				: ((f == UMLPackage.Literals.CONNECTABLE_ELEMENT__END
68
					|| f == UMLPackage.Literals.VERTEX__INCOMING || f == UMLPackage.Literals.VERTEX__OUTGOING)
69
					? OBJECT_HREF_MANY
70
					: super.featureKind(f));
71
		}
72
73
	}
74
75
	public CMOF2UMLSaveImpl(XMLHelper helper) {
76
		super(helper);
77
	}
78
79
	@Override
80
	protected void init(XMLResource resource, Map<?, ?> options) {
81
		super.init(resource, options);
82
83
		featureTable = new Lookup(map, extendedMetaData);
84
	}
85
86
	@Override
87
	protected void saveContainedMany(EObject eObject,
88
			EStructuralFeature eStructuralFeature) {
89
90
		if (eStructuralFeature == EcorePackage.Literals.EMODEL_ELEMENT__EANNOTATIONS) {
91
			doc.startElement(EMOFExtendedMetaData.XMI_EXTENSION_ELEMENT);
92
			doc.addAttribute(EMOFExtendedMetaData.XMI_EXTENDER_ATTRIBUTE,
93
				UMLPackage.eNS_URI);
94
			super.saveContainedMany(eObject, eStructuralFeature);
95
			doc.endElement();
96
		} else if (((CMOF2UMLExtendedMetaData) extendedMetaData).getName(
97
			eStructuralFeature, true) == null) {
98
99
			if (eStructuralFeature != UMLPackage.Literals.CLASSIFIER__GENERALIZATION) {
100
				doc.startElement(EMOFExtendedMetaData.XMI_EXTENSION_ELEMENT);
101
				doc.addAttribute(EMOFExtendedMetaData.XMI_EXTENDER_ATTRIBUTE,
102
					UMLPackage.eNS_URI);
103
				super.saveContainedMany(eObject, eStructuralFeature);
104
				doc.endElement();
105
			}
106
		} else {
107
			super.saveContainedMany(eObject, eStructuralFeature);
108
		}
109
	}
110
111
	@Override
112
	protected void saveContainedSingle(EObject eObject,
113
			EStructuralFeature eStructuralFeature) {
114
115
		if (((CMOF2UMLExtendedMetaData) extendedMetaData).getName(
116
			eStructuralFeature, true) == null) {
117
118
			if (eStructuralFeature != UMLPackage.Literals.MULTIPLICITY_ELEMENT__LOWER_VALUE
119
				&& eStructuralFeature != UMLPackage.Literals.MULTIPLICITY_ELEMENT__UPPER_VALUE
120
				&& eStructuralFeature != UMLPackage.Literals.PARAMETER__DEFAULT_VALUE
121
				&& eStructuralFeature != UMLPackage.Literals.PROPERTY__DEFAULT_VALUE) {
122
123
				doc.startElement(EMOFExtendedMetaData.XMI_EXTENSION_ELEMENT);
124
				doc.addAttribute(EMOFExtendedMetaData.XMI_EXTENDER_ATTRIBUTE,
125
					UMLPackage.eNS_URI);
126
				super.saveContainedSingle(eObject, eStructuralFeature);
127
				doc.endElement();
128
			}
129
		} else {
130
			super.saveContainedSingle(eObject, eStructuralFeature);
131
		}
132
	}
133
134
	@Override
135
	protected void saveDataTypeMany(EObject eObject,
136
			EStructuralFeature eStructuralFeature) {
137
138
		if (((CMOF2UMLExtendedMetaData) extendedMetaData).getName(
139
			eStructuralFeature, true) != null) {
140
141
			super.saveDataTypeMany(eObject, eStructuralFeature);
142
		}
143
	}
144
145
	@Override
146
	protected void saveDataTypeSingle(EObject eObject,
147
			EStructuralFeature eStructuralFeature) {
148
149
		if (((CMOF2UMLExtendedMetaData) extendedMetaData).getName(
150
			eStructuralFeature, true) != null) {
151
152
			super.saveDataTypeSingle(eObject, eStructuralFeature);
153
		}
154
	}
155
156
	@Override
157
	public Object writeTopObjects(List<? extends EObject> contents) {
158
159
		if (!toDOM) {
160
			doc.startElement(XMI_TAG_NS);
161
			Object mark = doc.mark();
162
163
			for (int i = 0, size = contents.size(); i < size; i++) {
164
				EObject top = contents.get(i);
165
				EClass eClass = top.eClass();
166
				EPackage ePackage = eClass.getEPackage();
167
168
				String name = ((CMOF2UMLExtendedMetaData) extendedMetaData)
169
					.getName(eClass, true);
170
171
				if (UMLUtil.getStereotype(top) != null) {
172
					doc
173
						.startElement(EMOFExtendedMetaData.XMI_EXTENSION_ELEMENT);
174
					doc.addAttribute(
175
						EMOFExtendedMetaData.XMI_EXTENDER_ATTRIBUTE,
176
						UMLPackage.eNS_URI);
177
				}
178
179
				if (extendedMetaData == null
180
					|| featureTable.getDocumentRoot(eClass.getEPackage()) != eClass) {
181
182
					doc.startElement(helper.getQName(eClass));
183
					root = top;
184
					saveElementID(top);
185
				} else {
186
					doc.startElement(null);
187
					root = top;
188
					saveFeatures(top);
189
					doc.addLine();
190
				}
191
192
				if (ePackage != UMLPackage.eINSTANCE || name == null) {
193
					doc.endElement();
194
				}
195
			}
196
197
			int index = contents.size();
198
199
			for (Iterator<EObject> properContents = EcoreUtil
200
				.getAllProperContents(contents, false); properContents
201
				.hasNext();) {
202
203
				EObject eObject = properContents.next();
204
205
				if (eObject instanceof org.eclipse.uml2.uml.Package) {
206
					org.eclipse.uml2.uml.Package package_ = (org.eclipse.uml2.uml.Package) eObject;
207
208
					Object nsPrefix = UMLUtil.getTaggedValue(package_,
209
						UMLUtil.PROFILE__ECORE + NamedElement.SEPARATOR
210
							+ UMLUtil.STEREOTYPE__E_PACKAGE,
211
						UMLUtil.TAG_DEFINITION__NS_PREFIX);
212
213
					if (nsPrefix instanceof String) {
214
						doc.startElement(CMOF2UMLExtendedMetaData.CMOF_TAG);
215
						doc.addAttribute(idAttributeName, "_" + index++); //$NON-NLS-1$
216
						doc.addAttribute(
217
							CMOF2UMLExtendedMetaData.CMOF_TAG_NAME,
218
							"org.omg.xmi.nsPrefix"); //$NON-NLS-1$
219
						doc.addAttribute(
220
							CMOF2UMLExtendedMetaData.CMOF_TAG_VALUE,
221
							(String) nsPrefix);
222
						doc.addAttribute(
223
							CMOF2UMLExtendedMetaData.CMOF_TAG_ELEMENT, helper
224
								.getIDREF(package_));
225
						doc.endEmptyElement();
226
					}
227
228
					Object nsURI = UMLUtil.getTaggedValue(package_,
229
						UMLUtil.PROFILE__ECORE + NamedElement.SEPARATOR
230
							+ UMLUtil.STEREOTYPE__E_PACKAGE,
231
						UMLUtil.TAG_DEFINITION__NS_URI);
232
233
					if (nsURI instanceof String) {
234
						doc.startElement(CMOF2UMLExtendedMetaData.CMOF_TAG);
235
						doc.addAttribute(idAttributeName, "_" + index++); //$NON-NLS-1$
236
						doc.addAttribute(
237
							CMOF2UMLExtendedMetaData.CMOF_TAG_NAME,
238
							"org.omg.xmi.nsURI"); //$NON-NLS-1$
239
						doc.addAttribute(
240
							CMOF2UMLExtendedMetaData.CMOF_TAG_VALUE,
241
							(String) nsURI);
242
						doc.addAttribute(
243
							CMOF2UMLExtendedMetaData.CMOF_TAG_ELEMENT, helper
244
								.getIDREF(package_));
245
						doc.endEmptyElement();
246
					}
247
				} else if (eObject instanceof PrimitiveType) {
248
					String name = ((PrimitiveType) eObject).getName();
249
250
					if (name.equalsIgnoreCase("Boolean")) {
251
						doc.startElement(CMOF2UMLExtendedMetaData.CMOF_TAG);
252
						doc.addAttribute(idAttributeName, "_" + index++); //$NON-NLS-1$
253
						doc.addAttribute(
254
							CMOF2UMLExtendedMetaData.CMOF_TAG_NAME,
255
							"org.omg.xmi.schemaType"); //$NON-NLS-1$
256
						doc.addAttribute(
257
							CMOF2UMLExtendedMetaData.CMOF_TAG_VALUE,
258
							"http://www.w3.org/2001/XMLSchema#boolean"); //$NON-NLS-1$
259
						doc.addAttribute(
260
							CMOF2UMLExtendedMetaData.CMOF_TAG_ELEMENT, helper
261
								.getIDREF(eObject));
262
						doc.endEmptyElement();
263
					} else if (name.equalsIgnoreCase("Integer")) {
264
						doc.startElement(CMOF2UMLExtendedMetaData.CMOF_TAG);
265
						doc.addAttribute(idAttributeName, "_" + index++); //$NON-NLS-1$
266
						doc.addAttribute(
267
							CMOF2UMLExtendedMetaData.CMOF_TAG_NAME,
268
							"org.omg.xmi.schemaType"); //$NON-NLS-1$
269
						doc.addAttribute(
270
							CMOF2UMLExtendedMetaData.CMOF_TAG_VALUE,
271
							"http://www.w3.org/2001/XMLSchema#integer"); //$NON-NLS-1$
272
						doc.addAttribute(
273
							CMOF2UMLExtendedMetaData.CMOF_TAG_ELEMENT, helper
274
								.getIDREF(eObject));
275
						doc.endEmptyElement();
276
					}
277
				}
278
			}
279
280
			doc.endElement();
281
			return mark;
282
		} else {
283
			return super.writeTopObjects(contents);
284
		}
285
	}
286
287
}
(-)src/org/eclipse/uml2/uml/resource/CMOF2UMLResourceHandler.java (+243 lines)
Added Link Here
1
/*
2
 * Copyright (c) 2007 IBM Corporation and others.
3
 * All rights reserved.   This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 *
8
 * Contributors:
9
 *   IBM - initial API and implementation
10
 * 
11
 * $Id$
12
 */
13
package org.eclipse.uml2.uml.resource;
14
15
import java.io.InputStream;
16
import java.util.ArrayList;
17
import java.util.Collection;
18
import java.util.Iterator;
19
import java.util.List;
20
import java.util.Map;
21
22
import org.eclipse.emf.common.util.EList;
23
import org.eclipse.emf.common.util.URI;
24
import org.eclipse.emf.common.util.UniqueEList;
25
import org.eclipse.emf.ecore.EObject;
26
import org.eclipse.emf.ecore.resource.Resource;
27
import org.eclipse.emf.ecore.resource.ResourceSet;
28
import org.eclipse.emf.ecore.util.FeatureMap;
29
import org.eclipse.emf.ecore.xmi.XMLResource;
30
import org.eclipse.emf.ecore.xmi.impl.BasicResourceHandler;
31
import org.eclipse.emf.ecore.xml.type.AnyType;
32
import org.eclipse.uml2.common.util.UML2Util;
33
import org.eclipse.uml2.uml.Element;
34
import org.eclipse.uml2.uml.Profile;
35
import org.eclipse.uml2.uml.Stereotype;
36
import org.eclipse.uml2.uml.UMLPackage;
37
import org.eclipse.uml2.uml.util.UMLUtil;
38
39
public class CMOF2UMLResourceHandler
40
		extends BasicResourceHandler {
41
42
	protected static final boolean DEBUG = false;
43
44
	protected AnyType getExtension(XMLResource resource, EObject eObject) {
45
		return resource.getEObjectToExtensionMap().get(eObject);
46
	}
47
48
	protected AnyType putExtension(XMLResource resource, EObject eObject,
49
			AnyType extension) {
50
		return resource.getEObjectToExtensionMap().put(eObject, extension);
51
	}
52
53
	protected AnyType removeExtension(XMLResource resource, EObject eObject) {
54
		return resource.getEObjectToExtensionMap().remove(eObject);
55
	}
56
57
	protected Object getValue(FeatureMap featureMap, String name) {
58
		return getValue(featureMap, name, false);
59
	}
60
61
	protected Object getValue(FeatureMap featureMap, String name, boolean remove) {
62
63
		for (Iterator<FeatureMap.Entry> entries = featureMap.iterator(); entries
64
			.hasNext();) {
65
66
			FeatureMap.Entry entry = entries.next();
67
68
			if (name.equals(entry.getEStructuralFeature().getName())) {
69
70
				if (remove) {
71
					entries.remove();
72
				}
73
74
				return entry.getValue();
75
			}
76
		}
77
78
		return null;
79
	}
80
81
	protected EObject getEObject(AnyType extension, Resource resource,
82
			String name, boolean remove) {
83
84
		if (extension != null) {
85
			Object value = getValue(extension.getAnyAttribute(), name, remove);
86
87
			if (value == null) {
88
				value = getValue(extension.getMixed(), name, remove);
89
90
				if (value instanceof EObject) {
91
					return (EObject) value;
92
				}
93
			} else if (value instanceof String && resource != null) {
94
				return resource.getEObject((String) value);
95
			}
96
		}
97
98
		return null;
99
	}
100
101
	protected Collection<Object> getValues(FeatureMap featureMap, String name) {
102
		return getValues(featureMap, name, false);
103
	}
104
105
	protected Collection<Object> getValues(FeatureMap featureMap, String name,
106
			boolean remove) {
107
		Collection<Object> values = new UniqueEList.FastCompare<Object>();
108
109
		for (Iterator<FeatureMap.Entry> entries = featureMap.iterator(); entries
110
			.hasNext();) {
111
112
			FeatureMap.Entry entry = entries.next();
113
114
			if (name.equals(entry.getEStructuralFeature().getName())) {
115
116
				if (remove) {
117
					entries.remove();
118
				}
119
120
				values.add(entry.getValue());
121
			}
122
		}
123
124
		return values;
125
	}
126
127
	protected Collection<EObject> getEObjects(AnyType extension,
128
			Resource resource, String name, boolean remove) {
129
		Collection<EObject> eObjects = new UniqueEList.FastCompare<EObject>();
130
131
		if (extension != null) {
132
			Collection<Object> values = getValues(extension.getAnyAttribute(),
133
				name, remove);
134
135
			if (values.isEmpty()) {
136
				values = getValues(extension.getMixed(), name, remove);
137
138
				for (Object value : values) {
139
140
					if (value instanceof EObject) {
141
						eObjects.add((EObject) value);
142
					}
143
				}
144
			} else if (resource != null) {
145
146
				for (Object value : values) {
147
148
					if (value instanceof String) {
149
						EObject eObject = resource.getEObject((String) value);
150
151
						if (eObject != null) {
152
							eObjects.add(eObject);
153
						}
154
					}
155
				}
156
			}
157
		}
158
159
		return eObjects;
160
	}
161
162
	protected Profile getEcoreProfile(EObject eObject) {
163
		Resource eResource = eObject.eResource();
164
165
		if (eResource != null) {
166
			ResourceSet resourceSet = eResource.getResourceSet();
167
168
			if (resourceSet != null) {
169
				return UML2Util.load(resourceSet, URI
170
					.createURI(UMLResource.ECORE_PROFILE_URI),
171
					UMLPackage.Literals.PROFILE);
172
			}
173
		}
174
175
		return null;
176
	}
177
178
	protected Stereotype getEcoreStereotype(EObject eObject, String name) {
179
		Profile ecoreProfile = getEcoreProfile(eObject);
180
181
		return ecoreProfile != null
182
			? ecoreProfile.getOwnedStereotype(name)
183
			: null;
184
	}
185
186
	@Override
187
	public void postLoad(XMLResource resource, InputStream inputStream,
188
			Map<?, ?> options) {
189
		EList<EObject> resourceContents = resource.getContents();
190
191
		List<AnyType> tagsToRemove = new ArrayList<AnyType>();
192
193
		for (int i = 0; i < resourceContents.size(); i++) {
194
			EObject content = resourceContents.get(i);
195
196
			if (content instanceof AnyType
197
				&& CMOF2UMLExtendedMetaData.TAG.equals(content.eClass()
198
					.getName())) {
199
200
				AnyType tag = (AnyType) content;
201
				Object name = getValue(tag.getAnyAttribute(),
202
					CMOF2UMLExtendedMetaData.CMOF_TAG_NAME);
203
204
				if ("org.omg.xmi.nsURI".equals(name)) { //$NON-NLS-1$
205
					EObject element = getEObject(tag, resource,
206
						CMOF2UMLExtendedMetaData.CMOF_TAG_ELEMENT, false);
207
208
					if (element instanceof org.eclipse.uml2.uml.Package) {
209
						UMLUtil.setTaggedValue((Element) element,
210
							getEcoreStereotype(element,
211
								UMLUtil.STEREOTYPE__E_PACKAGE),
212
							UMLUtil.TAG_DEFINITION__NS_URI, getValue(tag
213
								.getAnyAttribute(),
214
								CMOF2UMLExtendedMetaData.CMOF_TAG_VALUE));
215
					}
216
217
					tagsToRemove.add(tag);
218
				} else if ("org.omg.xmi.nsPrefix".equals(name)) { //$NON-NLS-1$
219
					EObject element = getEObject(tag, resource,
220
						CMOF2UMLExtendedMetaData.CMOF_TAG_ELEMENT, false);
221
222
					if (element instanceof org.eclipse.uml2.uml.Package) {
223
						UMLUtil.setTaggedValue((Element) element,
224
							getEcoreStereotype(element,
225
								UMLUtil.STEREOTYPE__E_PACKAGE),
226
							UMLUtil.TAG_DEFINITION__NS_PREFIX, getValue(tag
227
								.getAnyAttribute(),
228
								CMOF2UMLExtendedMetaData.CMOF_TAG_VALUE));
229
					}
230
231
					tagsToRemove.add(tag);
232
				} else if ("org.omg.xmi.schemaType".equals(name)) { //$NON-NLS-1$
233
					tagsToRemove.add(tag);
234
				}
235
			}
236
		}
237
238
		for (AnyType tag : tagsToRemove) {
239
			resourceContents.remove(tag);
240
		}
241
	}
242
243
}
(-)model/CMOF_2_UML.ecore2xml (+979 lines)
Added Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
2
<ecore2xml:XMLMap xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:ecore2xml="http://www.eclipse.org/emf/2005/Ecore2XML">
3
  <ecoreToXMLInfo>
4
    <key xsi:type="ecore:EPackage" href="UML.ecore#/"/>
5
    <value name="cmof" targetNamespace="http://schema.omg.org/spec/MOF/2.0/cmof.xml"/>
6
  </ecoreToXMLInfo>
7
  <ecoreToXMLInfo>
8
    <key xsi:type="ecore:EReference" href="UML.ecore#//Package/packagedElement"/>
9
    <value name="ownedMember"/>
10
  </ecoreToXMLInfo>
11
  <ecoreToXMLInfo>
12
    <key xsi:type="ecore:EReference" href="UML.ecore#//Namespace/ownedMember"/>
13
    <value xMLRepresentation="1"/>
14
  </ecoreToXMLInfo>
15
  <ecoreToXMLInfo>
16
    <key xsi:type="ecore:EReference" href="UML.ecore#//Constraint/context"/>
17
    <value name="namespace"/>
18
  </ecoreToXMLInfo>
19
  <ecoreToXMLInfo>
20
    <key xsi:type="ecore:EAttribute" href="UML.ecore#//Classifier/isAbstract"/>
21
    <value name="isAbstract"/>
22
  </ecoreToXMLInfo>
23
  <ecoreToXMLInfo>
24
    <key xsi:type="ecore:EReference" href="UML.ecore#//StructuredClassifier/ownedAttribute"/>
25
    <value name="ownedAttribute"/>
26
  </ecoreToXMLInfo>
27
  <ecoreToXMLInfo>
28
    <key xsi:type="ecore:EReference" href="UML.ecore#//Classifier/generalization"/>
29
    <value xMLRepresentation="0"/>
30
  </ecoreToXMLInfo>
31
  <ecoreToXMLInfo>
32
    <key xsi:type="ecore:EReference" href="UML.ecore#//Package/profileApplication"/>
33
    <value xMLRepresentation="0"/>
34
  </ecoreToXMLInfo>
35
  <ecoreToXMLInfo>
36
    <key xsi:type="ecore:EReference" href="UML.ecore#//NamedElement/clientDependency"/>
37
    <value xMLRepresentation="1"/>
38
  </ecoreToXMLInfo>
39
  <ecoreToXMLInfo>
40
    <key xsi:type="ecore:EReference" href="UML.ecore#//NamedElement/nameExpression"/>
41
    <value xMLRepresentation="0"/>
42
  </ecoreToXMLInfo>
43
  <ecoreToXMLInfo>
44
    <key xsi:type="ecore:EClass" href="UML.ecore#//Dependency"/>
45
    <value/>
46
  </ecoreToXMLInfo>
47
  <ecoreToXMLInfo>
48
    <key xsi:type="ecore:EReference" href="UML.ecore#//Classifier/powertypeExtent"/>
49
    <value xMLRepresentation="1"/>
50
  </ecoreToXMLInfo>
51
  <ecoreToXMLInfo>
52
    <key xsi:type="ecore:EReference" href="UML.ecore#//Classifier/redefinedClassifier"/>
53
    <value xMLRepresentation="1"/>
54
  </ecoreToXMLInfo>
55
  <ecoreToXMLInfo>
56
    <key xsi:type="ecore:EReference" href="UML.ecore#//Classifier/substitution"/>
57
    <value xMLRepresentation="0"/>
58
  </ecoreToXMLInfo>
59
  <ecoreToXMLInfo>
60
    <key xsi:type="ecore:EReference" href="UML.ecore#//Classifier/representation"/>
61
    <value xMLRepresentation="1"/>
62
  </ecoreToXMLInfo>
63
  <ecoreToXMLInfo>
64
    <key xsi:type="ecore:EReference" href="UML.ecore#//Classifier/collaborationUse"/>
65
    <value xMLRepresentation="0"/>
66
  </ecoreToXMLInfo>
67
  <ecoreToXMLInfo>
68
    <key xsi:type="ecore:EReference" href="UML.ecore#//Classifier/ownedUseCase"/>
69
    <value xMLRepresentation="0"/>
70
  </ecoreToXMLInfo>
71
  <ecoreToXMLInfo>
72
    <key xsi:type="ecore:EReference" href="UML.ecore#//Classifier/useCase"/>
73
    <value xMLRepresentation="1"/>
74
  </ecoreToXMLInfo>
75
  <ecoreToXMLInfo>
76
    <key xsi:type="ecore:EAttribute" href="UML.ecore#//RedefinableElement/isLeaf"/>
77
    <value xMLRepresentation="1"/>
78
  </ecoreToXMLInfo>
79
  <ecoreToXMLInfo>
80
    <key xsi:type="ecore:EClass" href="UML.ecore#//TemplateBinding"/>
81
    <value/>
82
  </ecoreToXMLInfo>
83
  <ecoreToXMLInfo>
84
    <key xsi:type="ecore:EClass" href="UML.ecore#//TemplateSignature"/>
85
    <value/>
86
  </ecoreToXMLInfo>
87
  <ecoreToXMLInfo>
88
    <key xsi:type="ecore:EClass" href="UML.ecore#//TemplateParameter"/>
89
    <value/>
90
  </ecoreToXMLInfo>
91
  <ecoreToXMLInfo>
92
    <key xsi:type="ecore:EClass" href="UML.ecore#//TemplateParameterSubstitution"/>
93
    <value/>
94
  </ecoreToXMLInfo>
95
  <ecoreToXMLInfo>
96
    <key xsi:type="ecore:EClass" href="UML.ecore#//Generalization"/>
97
    <value/>
98
  </ecoreToXMLInfo>
99
  <ecoreToXMLInfo>
100
    <key xsi:type="ecore:EClass" href="UML.ecore#//GeneralizationSet"/>
101
    <value/>
102
  </ecoreToXMLInfo>
103
  <ecoreToXMLInfo>
104
    <key xsi:type="ecore:EAttribute" href="UML.ecore#//Feature/isStatic"/>
105
    <value xMLRepresentation="1"/>
106
  </ecoreToXMLInfo>
107
  <ecoreToXMLInfo>
108
    <key xsi:type="ecore:EClass" href="UML.ecore#//Substitution"/>
109
    <value/>
110
  </ecoreToXMLInfo>
111
  <ecoreToXMLInfo>
112
    <key xsi:type="ecore:EClass" href="UML.ecore#//Realization"/>
113
    <value/>
114
  </ecoreToXMLInfo>
115
  <ecoreToXMLInfo>
116
    <key xsi:type="ecore:EClass" href="UML.ecore#//Abstraction"/>
117
    <value/>
118
  </ecoreToXMLInfo>
119
  <ecoreToXMLInfo>
120
    <key xsi:type="ecore:EReference" href="UML.ecore#//OpaqueExpression/result"/>
121
    <value xMLRepresentation="1"/>
122
  </ecoreToXMLInfo>
123
  <ecoreToXMLInfo>
124
    <key xsi:type="ecore:EReference" href="UML.ecore#//OpaqueExpression/behavior"/>
125
    <value xMLRepresentation="1"/>
126
  </ecoreToXMLInfo>
127
  <ecoreToXMLInfo>
128
    <key xsi:type="ecore:EReference" href="UML.ecore#//Parameter/defaultValue"/>
129
    <value xMLRepresentation="0"/>
130
  </ecoreToXMLInfo>
131
  <ecoreToXMLInfo>
132
    <key xsi:type="ecore:EAttribute" href="UML.ecore#//Parameter/isException"/>
133
    <value xMLRepresentation="1"/>
134
  </ecoreToXMLInfo>
135
  <ecoreToXMLInfo>
136
    <key xsi:type="ecore:EAttribute" href="UML.ecore#//Parameter/isStream"/>
137
    <value xMLRepresentation="1"/>
138
  </ecoreToXMLInfo>
139
  <ecoreToXMLInfo>
140
    <key xsi:type="ecore:EAttribute" href="UML.ecore#//Parameter/effect"/>
141
    <value xMLRepresentation="1"/>
142
  </ecoreToXMLInfo>
143
  <ecoreToXMLInfo>
144
    <key xsi:type="ecore:EReference" href="UML.ecore#//MultiplicityElement/upperValue"/>
145
    <value xMLRepresentation="0"/>
146
  </ecoreToXMLInfo>
147
  <ecoreToXMLInfo>
148
    <key xsi:type="ecore:EReference" href="UML.ecore#//MultiplicityElement/lowerValue"/>
149
    <value xMLRepresentation="0"/>
150
  </ecoreToXMLInfo>
151
  <ecoreToXMLInfo>
152
    <key xsi:type="ecore:EClass" href="UML.ecore#//ConnectableElementTemplateParameter"/>
153
    <value/>
154
  </ecoreToXMLInfo>
155
  <ecoreToXMLInfo>
156
    <key xsi:type="ecore:EClass" href="UML.ecore#//ConnectorEnd"/>
157
    <value/>
158
  </ecoreToXMLInfo>
159
  <ecoreToXMLInfo>
160
    <key xsi:type="ecore:EAttribute" href="UML.ecore#//Property/aggregation"/>
161
    <value xMLRepresentation="1"/>
162
  </ecoreToXMLInfo>
163
  <ecoreToXMLInfo>
164
    <key xsi:type="ecore:EReference" href="UML.ecore#//Property/defaultValue"/>
165
    <value xMLRepresentation="0"/>
166
  </ecoreToXMLInfo>
167
  <ecoreToXMLInfo>
168
    <key xsi:type="ecore:EReference" href="UML.ecore#//Property/qualifier"/>
169
    <value xMLRepresentation="0"/>
170
  </ecoreToXMLInfo>
171
  <ecoreToXMLInfo>
172
    <key xsi:type="ecore:EReference" href="UML.ecore#//Property/associationEnd"/>
173
    <value xMLRepresentation="1"/>
174
  </ecoreToXMLInfo>
175
  <ecoreToXMLInfo>
176
    <key xsi:type="ecore:EClass" href="UML.ecore#//Deployment"/>
177
    <value/>
178
  </ecoreToXMLInfo>
179
  <ecoreToXMLInfo>
180
    <key xsi:type="ecore:EClass" href="UML.ecore#//DeploymentSpecification"/>
181
    <value/>
182
  </ecoreToXMLInfo>
183
  <ecoreToXMLInfo>
184
    <key xsi:type="ecore:EClass" href="UML.ecore#//Artifact"/>
185
    <value/>
186
  </ecoreToXMLInfo>
187
  <ecoreToXMLInfo>
188
    <key xsi:type="ecore:EClass" href="UML.ecore#//Manifestation"/>
189
    <value/>
190
  </ecoreToXMLInfo>
191
  <ecoreToXMLInfo>
192
    <key xsi:type="ecore:EReference" href="UML.ecore#//Operation/interface"/>
193
    <value xMLRepresentation="1"/>
194
  </ecoreToXMLInfo>
195
  <ecoreToXMLInfo>
196
    <key xsi:type="ecore:EAttribute" href="UML.ecore#//BehavioralFeature/isAbstract"/>
197
    <value xMLRepresentation="1"/>
198
  </ecoreToXMLInfo>
199
  <ecoreToXMLInfo>
200
    <key xsi:type="ecore:EReference" href="UML.ecore#//BehavioralFeature/method"/>
201
    <value xMLRepresentation="1"/>
202
  </ecoreToXMLInfo>
203
  <ecoreToXMLInfo>
204
    <key xsi:type="ecore:EAttribute" href="UML.ecore#//BehavioralFeature/concurrency"/>
205
    <value xMLRepresentation="1"/>
206
  </ecoreToXMLInfo>
207
  <ecoreToXMLInfo>
208
    <key xsi:type="ecore:EReference" href="UML.ecore#//BehavioralFeature/ownedParameterSet"/>
209
    <value xMLRepresentation="0"/>
210
  </ecoreToXMLInfo>
211
  <ecoreToXMLInfo>
212
    <key xsi:type="ecore:EReference" href="UML.ecore#//Class/nestedClassifier"/>
213
    <value xMLRepresentation="0"/>
214
  </ecoreToXMLInfo>
215
  <ecoreToXMLInfo>
216
    <key xsi:type="ecore:EAttribute" href="UML.ecore#//Class/isActive"/>
217
    <value xMLRepresentation="1"/>
218
  </ecoreToXMLInfo>
219
  <ecoreToXMLInfo>
220
    <key xsi:type="ecore:EReference" href="UML.ecore#//Class/ownedReception"/>
221
    <value xMLRepresentation="0"/>
222
  </ecoreToXMLInfo>
223
  <ecoreToXMLInfo>
224
    <key xsi:type="ecore:EReference" href="UML.ecore#//TemplateableElement/templateBinding"/>
225
    <value xMLRepresentation="0"/>
226
  </ecoreToXMLInfo>
227
  <ecoreToXMLInfo>
228
    <key xsi:type="ecore:EReference" href="UML.ecore#//TemplateableElement/ownedTemplateSignature"/>
229
    <value xMLRepresentation="0"/>
230
  </ecoreToXMLInfo>
231
  <ecoreToXMLInfo>
232
    <key xsi:type="ecore:EReference" href="UML.ecore#//ParameterableElement/owningTemplateParameter"/>
233
    <value xMLRepresentation="1"/>
234
  </ecoreToXMLInfo>
235
  <ecoreToXMLInfo>
236
    <key xsi:type="ecore:EReference" href="UML.ecore#//ParameterableElement/templateParameter"/>
237
    <value xMLRepresentation="1"/>
238
  </ecoreToXMLInfo>
239
  <ecoreToXMLInfo>
240
    <key xsi:type="ecore:EReference" href="UML.ecore#//ConnectableElement/end"/>
241
    <value xMLRepresentation="1"/>
242
  </ecoreToXMLInfo>
243
  <ecoreToXMLInfo>
244
    <key xsi:type="ecore:EReference" href="UML.ecore#//BehavioredClassifier/ownedBehavior"/>
245
    <value xMLRepresentation="0"/>
246
  </ecoreToXMLInfo>
247
  <ecoreToXMLInfo>
248
    <key xsi:type="ecore:EReference" href="UML.ecore#//BehavioredClassifier/classifierBehavior"/>
249
    <value xMLRepresentation="1"/>
250
  </ecoreToXMLInfo>
251
  <ecoreToXMLInfo>
252
    <key xsi:type="ecore:EReference" href="UML.ecore#//BehavioredClassifier/interfaceRealization"/>
253
    <value xMLRepresentation="0"/>
254
  </ecoreToXMLInfo>
255
  <ecoreToXMLInfo>
256
    <key xsi:type="ecore:EReference" href="UML.ecore#//BehavioredClassifier/ownedTrigger"/>
257
    <value xMLRepresentation="0"/>
258
  </ecoreToXMLInfo>
259
  <ecoreToXMLInfo>
260
    <key xsi:type="ecore:EClass" href="UML.ecore#//InterfaceRealization"/>
261
    <value/>
262
  </ecoreToXMLInfo>
263
  <ecoreToXMLInfo>
264
    <key xsi:type="ecore:EClass" href="UML.ecore#//Interface"/>
265
    <value/>
266
  </ecoreToXMLInfo>
267
  <ecoreToXMLInfo>
268
    <key xsi:type="ecore:EClass" href="UML.ecore#//Reception"/>
269
    <value/>
270
  </ecoreToXMLInfo>
271
  <ecoreToXMLInfo>
272
    <key xsi:type="ecore:EClass" href="UML.ecore#//Signal"/>
273
    <value/>
274
  </ecoreToXMLInfo>
275
  <ecoreToXMLInfo>
276
    <key xsi:type="ecore:EClass" href="UML.ecore#//ProtocolStateMachine"/>
277
    <value/>
278
  </ecoreToXMLInfo>
279
  <ecoreToXMLInfo>
280
    <key xsi:type="ecore:EClass" href="UML.ecore#//StateMachine"/>
281
    <value/>
282
  </ecoreToXMLInfo>
283
  <ecoreToXMLInfo>
284
    <key xsi:type="ecore:EClass" href="UML.ecore#//Region"/>
285
    <value/>
286
  </ecoreToXMLInfo>
287
  <ecoreToXMLInfo>
288
    <key xsi:type="ecore:EClass" href="UML.ecore#//Transition"/>
289
    <value/>
290
  </ecoreToXMLInfo>
291
  <ecoreToXMLInfo>
292
    <key xsi:type="ecore:EEnum" href="UML.ecore#//TransitionKind"/>
293
    <value/>
294
  </ecoreToXMLInfo>
295
  <ecoreToXMLInfo>
296
    <key xsi:type="ecore:EClass" href="UML.ecore#//Trigger"/>
297
    <value/>
298
  </ecoreToXMLInfo>
299
  <ecoreToXMLInfo>
300
    <key xsi:type="ecore:EClass" href="UML.ecore#//Port"/>
301
    <value/>
302
  </ecoreToXMLInfo>
303
  <ecoreToXMLInfo>
304
    <key xsi:type="ecore:EClass" href="UML.ecore#//State"/>
305
    <value/>
306
  </ecoreToXMLInfo>
307
  <ecoreToXMLInfo>
308
    <key xsi:type="ecore:EClass" href="UML.ecore#//ConnectionPointReference"/>
309
    <value/>
310
  </ecoreToXMLInfo>
311
  <ecoreToXMLInfo>
312
    <key xsi:type="ecore:EClass" href="UML.ecore#//Pseudostate"/>
313
    <value/>
314
  </ecoreToXMLInfo>
315
  <ecoreToXMLInfo>
316
    <key xsi:type="ecore:EEnum" href="UML.ecore#//PseudostateKind"/>
317
    <value/>
318
  </ecoreToXMLInfo>
319
  <ecoreToXMLInfo>
320
    <key xsi:type="ecore:EClass" href="UML.ecore#//ProtocolConformance"/>
321
    <value/>
322
  </ecoreToXMLInfo>
323
  <ecoreToXMLInfo>
324
    <key xsi:type="ecore:EReference" href="UML.ecore#//EncapsulatedClassifier/ownedPort"/>
325
    <value xMLRepresentation="1"/>
326
  </ecoreToXMLInfo>
327
  <ecoreToXMLInfo>
328
    <key xsi:type="ecore:EReference" href="UML.ecore#//StructuredClassifier/ownedConnector"/>
329
    <value xMLRepresentation="0"/>
330
  </ecoreToXMLInfo>
331
  <ecoreToXMLInfo>
332
    <key xsi:type="ecore:EClass" href="UML.ecore#//Connector"/>
333
    <value/>
334
  </ecoreToXMLInfo>
335
  <ecoreToXMLInfo>
336
    <key xsi:type="ecore:EEnum" href="UML.ecore#//ConnectorKind"/>
337
    <value/>
338
  </ecoreToXMLInfo>
339
  <ecoreToXMLInfo>
340
    <key xsi:type="ecore:EClass" href="UML.ecore#//Extension"/>
341
    <value/>
342
  </ecoreToXMLInfo>
343
  <ecoreToXMLInfo>
344
    <key xsi:type="ecore:EClass" href="UML.ecore#//ExtensionEnd"/>
345
    <value/>
346
  </ecoreToXMLInfo>
347
  <ecoreToXMLInfo>
348
    <key xsi:type="ecore:EClass" href="UML.ecore#//Stereotype"/>
349
    <value/>
350
  </ecoreToXMLInfo>
351
  <ecoreToXMLInfo>
352
    <key xsi:type="ecore:EClass" href="UML.ecore#//Image"/>
353
    <value/>
354
  </ecoreToXMLInfo>
355
  <ecoreToXMLInfo>
356
    <key xsi:type="ecore:EClass" href="UML.ecore#//Profile"/>
357
    <value/>
358
  </ecoreToXMLInfo>
359
  <ecoreToXMLInfo>
360
    <key xsi:type="ecore:EAttribute" href="UML.ecore#//Model/viewpoint"/>
361
    <value xMLRepresentation="1"/>
362
  </ecoreToXMLInfo>
363
  <ecoreToXMLInfo>
364
    <key xsi:type="ecore:EClass" href="UML.ecore#//ParameterSet"/>
365
    <value/>
366
  </ecoreToXMLInfo>
367
  <ecoreToXMLInfo>
368
    <key xsi:type="ecore:EEnum" href="UML.ecore#//CallConcurrencyKind"/>
369
    <value/>
370
  </ecoreToXMLInfo>
371
  <ecoreToXMLInfo>
372
    <key xsi:type="ecore:EClass" href="UML.ecore#//OperationTemplateParameter"/>
373
    <value/>
374
  </ecoreToXMLInfo>
375
  <ecoreToXMLInfo>
376
    <key xsi:type="ecore:EEnum" href="UML.ecore#//AggregationKind"/>
377
    <value/>
378
  </ecoreToXMLInfo>
379
  <ecoreToXMLInfo>
380
    <key xsi:type="ecore:EEnum" href="UML.ecore#//ParameterEffectKind"/>
381
    <value/>
382
  </ecoreToXMLInfo>
383
  <ecoreToXMLInfo>
384
    <key xsi:type="ecore:EClass" href="UML.ecore#//CollaborationUse"/>
385
    <value/>
386
  </ecoreToXMLInfo>
387
  <ecoreToXMLInfo>
388
    <key xsi:type="ecore:EClass" href="UML.ecore#//Collaboration"/>
389
    <value/>
390
  </ecoreToXMLInfo>
391
  <ecoreToXMLInfo>
392
    <key xsi:type="ecore:EClass" href="UML.ecore#//UseCase"/>
393
    <value/>
394
  </ecoreToXMLInfo>
395
  <ecoreToXMLInfo>
396
    <key xsi:type="ecore:EClass" href="UML.ecore#//Include"/>
397
    <value/>
398
  </ecoreToXMLInfo>
399
  <ecoreToXMLInfo>
400
    <key xsi:type="ecore:EClass" href="UML.ecore#//Extend"/>
401
    <value/>
402
  </ecoreToXMLInfo>
403
  <ecoreToXMLInfo>
404
    <key xsi:type="ecore:EClass" href="UML.ecore#//ExtensionPoint"/>
405
    <value/>
406
  </ecoreToXMLInfo>
407
  <ecoreToXMLInfo>
408
    <key xsi:type="ecore:EClass" href="UML.ecore#//RedefinableTemplateSignature"/>
409
    <value/>
410
  </ecoreToXMLInfo>
411
  <ecoreToXMLInfo>
412
    <key xsi:type="ecore:EClass" href="UML.ecore#//ClassifierTemplateParameter"/>
413
    <value/>
414
  </ecoreToXMLInfo>
415
  <ecoreToXMLInfo>
416
    <key xsi:type="ecore:EClass" href="UML.ecore#//StringExpression"/>
417
    <value/>
418
  </ecoreToXMLInfo>
419
  <ecoreToXMLInfo>
420
    <key xsi:type="ecore:EAttribute" href="UML.ecore#//Expression/symbol"/>
421
    <value xMLRepresentation="1"/>
422
  </ecoreToXMLInfo>
423
  <ecoreToXMLInfo>
424
    <key xsi:type="ecore:EClass" href="UML.ecore#//Usage"/>
425
    <value/>
426
  </ecoreToXMLInfo>
427
  <ecoreToXMLInfo>
428
    <key xsi:type="ecore:EClass" href="UML.ecore#//ProfileApplication"/>
429
    <value/>
430
  </ecoreToXMLInfo>
431
  <ecoreToXMLInfo>
432
    <key xsi:type="ecore:EClass" href="UML.ecore#//InstanceSpecification"/>
433
    <value/>
434
  </ecoreToXMLInfo>
435
  <ecoreToXMLInfo>
436
    <key xsi:type="ecore:EClass" href="UML.ecore#//Slot"/>
437
    <value/>
438
  </ecoreToXMLInfo>
439
  <ecoreToXMLInfo>
440
    <key xsi:type="ecore:EClass" href="UML.ecore#//LiteralInteger"/>
441
    <value/>
442
  </ecoreToXMLInfo>
443
  <ecoreToXMLInfo>
444
    <key xsi:type="ecore:EClass" href="UML.ecore#//LiteralString"/>
445
    <value/>
446
  </ecoreToXMLInfo>
447
  <ecoreToXMLInfo>
448
    <key xsi:type="ecore:EClass" href="UML.ecore#//LiteralBoolean"/>
449
    <value/>
450
  </ecoreToXMLInfo>
451
  <ecoreToXMLInfo>
452
    <key xsi:type="ecore:EClass" href="UML.ecore#//LiteralNull"/>
453
    <value/>
454
  </ecoreToXMLInfo>
455
  <ecoreToXMLInfo>
456
    <key xsi:type="ecore:EClass" href="UML.ecore#//InstanceValue"/>
457
    <value/>
458
  </ecoreToXMLInfo>
459
  <ecoreToXMLInfo>
460
    <key xsi:type="ecore:EClass" href="UML.ecore#//LiteralUnlimitedNatural"/>
461
    <value/>
462
  </ecoreToXMLInfo>
463
  <ecoreToXMLInfo>
464
    <key xsi:type="ecore:EClass" href="UML.ecore#//OpaqueBehavior"/>
465
    <value/>
466
  </ecoreToXMLInfo>
467
  <ecoreToXMLInfo>
468
    <key xsi:type="ecore:EClass" href="UML.ecore#//FunctionBehavior"/>
469
    <value/>
470
  </ecoreToXMLInfo>
471
  <ecoreToXMLInfo>
472
    <key xsi:type="ecore:EClass" href="UML.ecore#//OpaqueAction"/>
473
    <value/>
474
  </ecoreToXMLInfo>
475
  <ecoreToXMLInfo>
476
    <key xsi:type="ecore:EClass" href="UML.ecore#//StructuredActivityNode"/>
477
    <value/>
478
  </ecoreToXMLInfo>
479
  <ecoreToXMLInfo>
480
    <key xsi:type="ecore:EClass" href="UML.ecore#//Activity"/>
481
    <value/>
482
  </ecoreToXMLInfo>
483
  <ecoreToXMLInfo>
484
    <key xsi:type="ecore:EClass" href="UML.ecore#//Variable"/>
485
    <value/>
486
  </ecoreToXMLInfo>
487
  <ecoreToXMLInfo>
488
    <key xsi:type="ecore:EClass" href="UML.ecore#//ActivityPartition"/>
489
    <value/>
490
  </ecoreToXMLInfo>
491
  <ecoreToXMLInfo>
492
    <key xsi:type="ecore:EClass" href="UML.ecore#//InterruptibleActivityRegion"/>
493
    <value/>
494
  </ecoreToXMLInfo>
495
  <ecoreToXMLInfo>
496
    <key xsi:type="ecore:EClass" href="UML.ecore#//ExceptionHandler"/>
497
    <value/>
498
  </ecoreToXMLInfo>
499
  <ecoreToXMLInfo>
500
    <key xsi:type="ecore:EEnum" href="UML.ecore#//ObjectNodeOrderingKind"/>
501
    <value/>
502
  </ecoreToXMLInfo>
503
  <ecoreToXMLInfo>
504
    <key xsi:type="ecore:EClass" href="UML.ecore#//OutputPin"/>
505
    <value/>
506
  </ecoreToXMLInfo>
507
  <ecoreToXMLInfo>
508
    <key xsi:type="ecore:EClass" href="UML.ecore#//Pin"/>
509
    <value/>
510
  </ecoreToXMLInfo>
511
  <ecoreToXMLInfo>
512
    <key xsi:type="ecore:EClass" href="UML.ecore#//InputPin"/>
513
    <value/>
514
  </ecoreToXMLInfo>
515
  <ecoreToXMLInfo>
516
    <key xsi:type="ecore:EClass" href="UML.ecore#//SendSignalAction"/>
517
    <value/>
518
  </ecoreToXMLInfo>
519
  <ecoreToXMLInfo>
520
    <key xsi:type="ecore:EClass" href="UML.ecore#//CallOperationAction"/>
521
    <value/>
522
  </ecoreToXMLInfo>
523
  <ecoreToXMLInfo>
524
    <key xsi:type="ecore:EClass" href="UML.ecore#//CallBehaviorAction"/>
525
    <value/>
526
  </ecoreToXMLInfo>
527
  <ecoreToXMLInfo>
528
    <key xsi:type="ecore:EClass" href="UML.ecore#//SequenceNode"/>
529
    <value/>
530
  </ecoreToXMLInfo>
531
  <ecoreToXMLInfo>
532
    <key xsi:type="ecore:EClass" href="UML.ecore#//ControlFlow"/>
533
    <value/>
534
  </ecoreToXMLInfo>
535
  <ecoreToXMLInfo>
536
    <key xsi:type="ecore:EClass" href="UML.ecore#//InitialNode"/>
537
    <value/>
538
  </ecoreToXMLInfo>
539
  <ecoreToXMLInfo>
540
    <key xsi:type="ecore:EClass" href="UML.ecore#//ActivityParameterNode"/>
541
    <value/>
542
  </ecoreToXMLInfo>
543
  <ecoreToXMLInfo>
544
    <key xsi:type="ecore:EClass" href="UML.ecore#//ValuePin"/>
545
    <value/>
546
  </ecoreToXMLInfo>
547
  <ecoreToXMLInfo>
548
    <key xsi:type="ecore:EClass" href="UML.ecore#//Message"/>
549
    <value/>
550
  </ecoreToXMLInfo>
551
  <ecoreToXMLInfo>
552
    <key xsi:type="ecore:EEnum" href="UML.ecore#//MessageKind"/>
553
    <value/>
554
  </ecoreToXMLInfo>
555
  <ecoreToXMLInfo>
556
    <key xsi:type="ecore:EEnum" href="UML.ecore#//MessageSort"/>
557
    <value/>
558
  </ecoreToXMLInfo>
559
  <ecoreToXMLInfo>
560
    <key xsi:type="ecore:EClass" href="UML.ecore#//Interaction"/>
561
    <value/>
562
  </ecoreToXMLInfo>
563
  <ecoreToXMLInfo>
564
    <key xsi:type="ecore:EClass" href="UML.ecore#//Lifeline"/>
565
    <value/>
566
  </ecoreToXMLInfo>
567
  <ecoreToXMLInfo>
568
    <key xsi:type="ecore:EClass" href="UML.ecore#//PartDecomposition"/>
569
    <value/>
570
  </ecoreToXMLInfo>
571
  <ecoreToXMLInfo>
572
    <key xsi:type="ecore:EClass" href="UML.ecore#//InteractionUse"/>
573
    <value/>
574
  </ecoreToXMLInfo>
575
  <ecoreToXMLInfo>
576
    <key xsi:type="ecore:EClass" href="UML.ecore#//Gate"/>
577
    <value/>
578
  </ecoreToXMLInfo>
579
  <ecoreToXMLInfo>
580
    <key xsi:type="ecore:EClass" href="UML.ecore#//GeneralOrdering"/>
581
    <value/>
582
  </ecoreToXMLInfo>
583
  <ecoreToXMLInfo>
584
    <key xsi:type="ecore:EClass" href="UML.ecore#//OccurrenceSpecification"/>
585
    <value/>
586
  </ecoreToXMLInfo>
587
  <ecoreToXMLInfo>
588
    <key xsi:type="ecore:EClass" href="UML.ecore#//InteractionOperand"/>
589
    <value/>
590
  </ecoreToXMLInfo>
591
  <ecoreToXMLInfo>
592
    <key xsi:type="ecore:EClass" href="UML.ecore#//InteractionConstraint"/>
593
    <value/>
594
  </ecoreToXMLInfo>
595
  <ecoreToXMLInfo>
596
    <key xsi:type="ecore:EClass" href="UML.ecore#//StateInvariant"/>
597
    <value/>
598
  </ecoreToXMLInfo>
599
  <ecoreToXMLInfo>
600
    <key xsi:type="ecore:EClass" href="UML.ecore#//ActionExecutionSpecification"/>
601
    <value/>
602
  </ecoreToXMLInfo>
603
  <ecoreToXMLInfo>
604
    <key xsi:type="ecore:EClass" href="UML.ecore#//BehaviorExecutionSpecification"/>
605
    <value/>
606
  </ecoreToXMLInfo>
607
  <ecoreToXMLInfo>
608
    <key xsi:type="ecore:EClass" href="UML.ecore#//ExecutionEvent"/>
609
    <value/>
610
  </ecoreToXMLInfo>
611
  <ecoreToXMLInfo>
612
    <key xsi:type="ecore:EClass" href="UML.ecore#//CreationEvent"/>
613
    <value/>
614
  </ecoreToXMLInfo>
615
  <ecoreToXMLInfo>
616
    <key xsi:type="ecore:EClass" href="UML.ecore#//DestructionEvent"/>
617
    <value/>
618
  </ecoreToXMLInfo>
619
  <ecoreToXMLInfo>
620
    <key xsi:type="ecore:EClass" href="UML.ecore#//SendOperationEvent"/>
621
    <value/>
622
  </ecoreToXMLInfo>
623
  <ecoreToXMLInfo>
624
    <key xsi:type="ecore:EClass" href="UML.ecore#//SendSignalEvent"/>
625
    <value/>
626
  </ecoreToXMLInfo>
627
  <ecoreToXMLInfo>
628
    <key xsi:type="ecore:EClass" href="UML.ecore#//MessageOccurrenceSpecification"/>
629
    <value/>
630
  </ecoreToXMLInfo>
631
  <ecoreToXMLInfo>
632
    <key xsi:type="ecore:EClass" href="UML.ecore#//ExecutionOccurrenceSpecification"/>
633
    <value/>
634
  </ecoreToXMLInfo>
635
  <ecoreToXMLInfo>
636
    <key xsi:type="ecore:EClass" href="UML.ecore#//ReceiveOperationEvent"/>
637
    <value/>
638
  </ecoreToXMLInfo>
639
  <ecoreToXMLInfo>
640
    <key xsi:type="ecore:EClass" href="UML.ecore#//ReceiveSignalEvent"/>
641
    <value/>
642
  </ecoreToXMLInfo>
643
  <ecoreToXMLInfo>
644
    <key xsi:type="ecore:EClass" href="UML.ecore#//Actor"/>
645
    <value/>
646
  </ecoreToXMLInfo>
647
  <ecoreToXMLInfo>
648
    <key xsi:type="ecore:EClass" href="UML.ecore#//CallEvent"/>
649
    <value/>
650
  </ecoreToXMLInfo>
651
  <ecoreToXMLInfo>
652
    <key xsi:type="ecore:EClass" href="UML.ecore#//ChangeEvent"/>
653
    <value/>
654
  </ecoreToXMLInfo>
655
  <ecoreToXMLInfo>
656
    <key xsi:type="ecore:EClass" href="UML.ecore#//SignalEvent"/>
657
    <value/>
658
  </ecoreToXMLInfo>
659
  <ecoreToXMLInfo>
660
    <key xsi:type="ecore:EClass" href="UML.ecore#//AnyReceiveEvent"/>
661
    <value/>
662
  </ecoreToXMLInfo>
663
  <ecoreToXMLInfo>
664
    <key xsi:type="ecore:EClass" href="UML.ecore#//ForkNode"/>
665
    <value/>
666
  </ecoreToXMLInfo>
667
  <ecoreToXMLInfo>
668
    <key xsi:type="ecore:EClass" href="UML.ecore#//FlowFinalNode"/>
669
    <value/>
670
  </ecoreToXMLInfo>
671
  <ecoreToXMLInfo>
672
    <key xsi:type="ecore:EClass" href="UML.ecore#//CentralBufferNode"/>
673
    <value/>
674
  </ecoreToXMLInfo>
675
  <ecoreToXMLInfo>
676
    <key xsi:type="ecore:EClass" href="UML.ecore#//MergeNode"/>
677
    <value/>
678
  </ecoreToXMLInfo>
679
  <ecoreToXMLInfo>
680
    <key xsi:type="ecore:EClass" href="UML.ecore#//DecisionNode"/>
681
    <value/>
682
  </ecoreToXMLInfo>
683
  <ecoreToXMLInfo>
684
    <key xsi:type="ecore:EClass" href="UML.ecore#//ActivityFinalNode"/>
685
    <value/>
686
  </ecoreToXMLInfo>
687
  <ecoreToXMLInfo>
688
    <key xsi:type="ecore:EClass" href="UML.ecore#//ComponentRealization"/>
689
    <value/>
690
  </ecoreToXMLInfo>
691
  <ecoreToXMLInfo>
692
    <key xsi:type="ecore:EClass" href="UML.ecore#//Component"/>
693
    <value/>
694
  </ecoreToXMLInfo>
695
  <ecoreToXMLInfo>
696
    <key xsi:type="ecore:EClass" href="UML.ecore#//Node"/>
697
    <value/>
698
  </ecoreToXMLInfo>
699
  <ecoreToXMLInfo>
700
    <key xsi:type="ecore:EClass" href="UML.ecore#//Device"/>
701
    <value/>
702
  </ecoreToXMLInfo>
703
  <ecoreToXMLInfo>
704
    <key xsi:type="ecore:EClass" href="UML.ecore#//ExecutionEnvironment"/>
705
    <value/>
706
  </ecoreToXMLInfo>
707
  <ecoreToXMLInfo>
708
    <key xsi:type="ecore:EClass" href="UML.ecore#//CommunicationPath"/>
709
    <value/>
710
  </ecoreToXMLInfo>
711
  <ecoreToXMLInfo>
712
    <key xsi:type="ecore:EClass" href="UML.ecore#//CombinedFragment"/>
713
    <value/>
714
  </ecoreToXMLInfo>
715
  <ecoreToXMLInfo>
716
    <key xsi:type="ecore:EEnum" href="UML.ecore#//InteractionOperatorKind"/>
717
    <value/>
718
  </ecoreToXMLInfo>
719
  <ecoreToXMLInfo>
720
    <key xsi:type="ecore:EClass" href="UML.ecore#//Continuation"/>
721
    <value/>
722
  </ecoreToXMLInfo>
723
  <ecoreToXMLInfo>
724
    <key xsi:type="ecore:EClass" href="UML.ecore#//ConsiderIgnoreFragment"/>
725
    <value/>
726
  </ecoreToXMLInfo>
727
  <ecoreToXMLInfo>
728
    <key xsi:type="ecore:EClass" href="UML.ecore#//CreateObjectAction"/>
729
    <value/>
730
  </ecoreToXMLInfo>
731
  <ecoreToXMLInfo>
732
    <key xsi:type="ecore:EClass" href="UML.ecore#//DestroyObjectAction"/>
733
    <value/>
734
  </ecoreToXMLInfo>
735
  <ecoreToXMLInfo>
736
    <key xsi:type="ecore:EClass" href="UML.ecore#//TestIdentityAction"/>
737
    <value/>
738
  </ecoreToXMLInfo>
739
  <ecoreToXMLInfo>
740
    <key xsi:type="ecore:EClass" href="UML.ecore#//ReadSelfAction"/>
741
    <value/>
742
  </ecoreToXMLInfo>
743
  <ecoreToXMLInfo>
744
    <key xsi:type="ecore:EClass" href="UML.ecore#//ReadStructuralFeatureAction"/>
745
    <value/>
746
  </ecoreToXMLInfo>
747
  <ecoreToXMLInfo>
748
    <key xsi:type="ecore:EClass" href="UML.ecore#//ClearStructuralFeatureAction"/>
749
    <value/>
750
  </ecoreToXMLInfo>
751
  <ecoreToXMLInfo>
752
    <key xsi:type="ecore:EClass" href="UML.ecore#//RemoveStructuralFeatureValueAction"/>
753
    <value/>
754
  </ecoreToXMLInfo>
755
  <ecoreToXMLInfo>
756
    <key xsi:type="ecore:EClass" href="UML.ecore#//AddStructuralFeatureValueAction"/>
757
    <value/>
758
  </ecoreToXMLInfo>
759
  <ecoreToXMLInfo>
760
    <key xsi:type="ecore:EClass" href="UML.ecore#//LinkEndData"/>
761
    <value/>
762
  </ecoreToXMLInfo>
763
  <ecoreToXMLInfo>
764
    <key xsi:type="ecore:EClass" href="UML.ecore#//QualifierValue"/>
765
    <value/>
766
  </ecoreToXMLInfo>
767
  <ecoreToXMLInfo>
768
    <key xsi:type="ecore:EClass" href="UML.ecore#//ReadLinkAction"/>
769
    <value/>
770
  </ecoreToXMLInfo>
771
  <ecoreToXMLInfo>
772
    <key xsi:type="ecore:EClass" href="UML.ecore#//LinkEndCreationData"/>
773
    <value/>
774
  </ecoreToXMLInfo>
775
  <ecoreToXMLInfo>
776
    <key xsi:type="ecore:EClass" href="UML.ecore#//CreateLinkAction"/>
777
    <value/>
778
  </ecoreToXMLInfo>
779
  <ecoreToXMLInfo>
780
    <key xsi:type="ecore:EClass" href="UML.ecore#//DestroyLinkAction"/>
781
    <value/>
782
  </ecoreToXMLInfo>
783
  <ecoreToXMLInfo>
784
    <key xsi:type="ecore:EClass" href="UML.ecore#//LinkEndDestructionData"/>
785
    <value/>
786
  </ecoreToXMLInfo>
787
  <ecoreToXMLInfo>
788
    <key xsi:type="ecore:EClass" href="UML.ecore#//ClearAssociationAction"/>
789
    <value/>
790
  </ecoreToXMLInfo>
791
  <ecoreToXMLInfo>
792
    <key xsi:type="ecore:EClass" href="UML.ecore#//BroadcastSignalAction"/>
793
    <value/>
794
  </ecoreToXMLInfo>
795
  <ecoreToXMLInfo>
796
    <key xsi:type="ecore:EClass" href="UML.ecore#//SendObjectAction"/>
797
    <value/>
798
  </ecoreToXMLInfo>
799
  <ecoreToXMLInfo>
800
    <key xsi:type="ecore:EClass" href="UML.ecore#//ValueSpecificationAction"/>
801
    <value/>
802
  </ecoreToXMLInfo>
803
  <ecoreToXMLInfo>
804
    <key xsi:type="ecore:EClass" href="UML.ecore#//TimeExpression"/>
805
    <value/>
806
  </ecoreToXMLInfo>
807
  <ecoreToXMLInfo>
808
    <key xsi:type="ecore:EClass" href="UML.ecore#//Duration"/>
809
    <value/>
810
  </ecoreToXMLInfo>
811
  <ecoreToXMLInfo>
812
    <key xsi:type="ecore:EClass" href="UML.ecore#//DurationInterval"/>
813
    <value/>
814
  </ecoreToXMLInfo>
815
  <ecoreToXMLInfo>
816
    <key xsi:type="ecore:EClass" href="UML.ecore#//Interval"/>
817
    <value/>
818
  </ecoreToXMLInfo>
819
  <ecoreToXMLInfo>
820
    <key xsi:type="ecore:EClass" href="UML.ecore#//TimeConstraint"/>
821
    <value/>
822
  </ecoreToXMLInfo>
823
  <ecoreToXMLInfo>
824
    <key xsi:type="ecore:EClass" href="UML.ecore#//IntervalConstraint"/>
825
    <value/>
826
  </ecoreToXMLInfo>
827
  <ecoreToXMLInfo>
828
    <key xsi:type="ecore:EClass" href="UML.ecore#//TimeInterval"/>
829
    <value/>
830
  </ecoreToXMLInfo>
831
  <ecoreToXMLInfo>
832
    <key xsi:type="ecore:EClass" href="UML.ecore#//DurationConstraint"/>
833
    <value/>
834
  </ecoreToXMLInfo>
835
  <ecoreToXMLInfo>
836
    <key xsi:type="ecore:EClass" href="UML.ecore#//TimeObservation"/>
837
    <value/>
838
  </ecoreToXMLInfo>
839
  <ecoreToXMLInfo>
840
    <key xsi:type="ecore:EClass" href="UML.ecore#//DurationObservation"/>
841
    <value/>
842
  </ecoreToXMLInfo>
843
  <ecoreToXMLInfo>
844
    <key xsi:type="ecore:EClass" href="UML.ecore#//FinalState"/>
845
    <value/>
846
  </ecoreToXMLInfo>
847
  <ecoreToXMLInfo>
848
    <key xsi:type="ecore:EClass" href="UML.ecore#//TimeEvent"/>
849
    <value/>
850
  </ecoreToXMLInfo>
851
  <ecoreToXMLInfo>
852
    <key xsi:type="ecore:EClass" href="UML.ecore#//ReadVariableAction"/>
853
    <value/>
854
  </ecoreToXMLInfo>
855
  <ecoreToXMLInfo>
856
    <key xsi:type="ecore:EClass" href="UML.ecore#//ClearVariableAction"/>
857
    <value/>
858
  </ecoreToXMLInfo>
859
  <ecoreToXMLInfo>
860
    <key xsi:type="ecore:EClass" href="UML.ecore#//AddVariableValueAction"/>
861
    <value/>
862
  </ecoreToXMLInfo>
863
  <ecoreToXMLInfo>
864
    <key xsi:type="ecore:EClass" href="UML.ecore#//RemoveVariableValueAction"/>
865
    <value/>
866
  </ecoreToXMLInfo>
867
  <ecoreToXMLInfo>
868
    <key xsi:type="ecore:EClass" href="UML.ecore#//RaiseExceptionAction"/>
869
    <value/>
870
  </ecoreToXMLInfo>
871
  <ecoreToXMLInfo>
872
    <key xsi:type="ecore:EClass" href="UML.ecore#//ActionInputPin"/>
873
    <value/>
874
  </ecoreToXMLInfo>
875
  <ecoreToXMLInfo>
876
    <key xsi:type="ecore:EClass" href="UML.ecore#//InformationItem"/>
877
    <value/>
878
  </ecoreToXMLInfo>
879
  <ecoreToXMLInfo>
880
    <key xsi:type="ecore:EClass" href="UML.ecore#//InformationFlow"/>
881
    <value/>
882
  </ecoreToXMLInfo>
883
  <ecoreToXMLInfo>
884
    <key xsi:type="ecore:EClass" href="UML.ecore#//ReadExtentAction"/>
885
    <value/>
886
  </ecoreToXMLInfo>
887
  <ecoreToXMLInfo>
888
    <key xsi:type="ecore:EClass" href="UML.ecore#//ReclassifyObjectAction"/>
889
    <value/>
890
  </ecoreToXMLInfo>
891
  <ecoreToXMLInfo>
892
    <key xsi:type="ecore:EClass" href="UML.ecore#//ReadIsClassifiedObjectAction"/>
893
    <value/>
894
  </ecoreToXMLInfo>
895
  <ecoreToXMLInfo>
896
    <key xsi:type="ecore:EClass" href="UML.ecore#//StartClassifierBehaviorAction"/>
897
    <value/>
898
  </ecoreToXMLInfo>
899
  <ecoreToXMLInfo>
900
    <key xsi:type="ecore:EClass" href="UML.ecore#//ReadLinkObjectEndAction"/>
901
    <value/>
902
  </ecoreToXMLInfo>
903
  <ecoreToXMLInfo>
904
    <key xsi:type="ecore:EClass" href="UML.ecore#//ReadLinkObjectEndQualifierAction"/>
905
    <value/>
906
  </ecoreToXMLInfo>
907
  <ecoreToXMLInfo>
908
    <key xsi:type="ecore:EClass" href="UML.ecore#//CreateLinkObjectAction"/>
909
    <value/>
910
  </ecoreToXMLInfo>
911
  <ecoreToXMLInfo>
912
    <key xsi:type="ecore:EClass" href="UML.ecore#//AcceptEventAction"/>
913
    <value/>
914
  </ecoreToXMLInfo>
915
  <ecoreToXMLInfo>
916
    <key xsi:type="ecore:EClass" href="UML.ecore#//AcceptCallAction"/>
917
    <value/>
918
  </ecoreToXMLInfo>
919
  <ecoreToXMLInfo>
920
    <key xsi:type="ecore:EClass" href="UML.ecore#//ReplyAction"/>
921
    <value/>
922
  </ecoreToXMLInfo>
923
  <ecoreToXMLInfo>
924
    <key xsi:type="ecore:EClass" href="UML.ecore#//UnmarshallAction"/>
925
    <value/>
926
  </ecoreToXMLInfo>
927
  <ecoreToXMLInfo>
928
    <key xsi:type="ecore:EClass" href="UML.ecore#//ReduceAction"/>
929
    <value/>
930
  </ecoreToXMLInfo>
931
  <ecoreToXMLInfo>
932
    <key xsi:type="ecore:EClass" href="UML.ecore#//JoinNode"/>
933
    <value/>
934
  </ecoreToXMLInfo>
935
  <ecoreToXMLInfo>
936
    <key xsi:type="ecore:EClass" href="UML.ecore#//DataStoreNode"/>
937
    <value/>
938
  </ecoreToXMLInfo>
939
  <ecoreToXMLInfo>
940
    <key xsi:type="ecore:EClass" href="UML.ecore#//ObjectFlow"/>
941
    <value/>
942
  </ecoreToXMLInfo>
943
  <ecoreToXMLInfo>
944
    <key xsi:type="ecore:EClass" href="UML.ecore#//ConditionalNode"/>
945
    <value/>
946
  </ecoreToXMLInfo>
947
  <ecoreToXMLInfo>
948
    <key xsi:type="ecore:EClass" href="UML.ecore#//Clause"/>
949
    <value/>
950
  </ecoreToXMLInfo>
951
  <ecoreToXMLInfo>
952
    <key xsi:type="ecore:EClass" href="UML.ecore#//LoopNode"/>
953
    <value/>
954
  </ecoreToXMLInfo>
955
  <ecoreToXMLInfo>
956
    <key xsi:type="ecore:EClass" href="UML.ecore#//ExpansionNode"/>
957
    <value/>
958
  </ecoreToXMLInfo>
959
  <ecoreToXMLInfo>
960
    <key xsi:type="ecore:EClass" href="UML.ecore#//ExpansionRegion"/>
961
    <value/>
962
  </ecoreToXMLInfo>
963
  <ecoreToXMLInfo>
964
    <key xsi:type="ecore:EEnum" href="UML.ecore#//ExpansionKind"/>
965
    <value/>
966
  </ecoreToXMLInfo>
967
  <ecoreToXMLInfo>
968
    <key xsi:type="ecore:EClass" href="UML.ecore#//ProtocolTransition"/>
969
    <value/>
970
  </ecoreToXMLInfo>
971
  <ecoreToXMLInfo>
972
    <key xsi:type="ecore:EClass" href="UML.ecore#//AssociationClass"/>
973
    <value/>
974
  </ecoreToXMLInfo>
975
  <ecoreToXMLInfo>
976
    <key xsi:type="ecore:EReference" href="UML.ecore#//NamedElement/namespace"/>
977
    <value xMLRepresentation="1"/>
978
  </ecoreToXMLInfo>
979
</ecore2xml:XMLMap>
(-)src/org/eclipse/uml2/uml/internal/resource/CMOF2UMLResourceImpl.java (+44 lines)
Added Link Here
1
/*
2
 * Copyright (c) 2007 IBM Corporation and others.
3
 * All rights reserved.   This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 *
8
 * Contributors:
9
 *   IBM - initial API and implementation
10
 *
11
 * $Id$
12
 */
13
package org.eclipse.uml2.uml.internal.resource;
14
15
import org.eclipse.emf.common.util.URI;
16
import org.eclipse.emf.ecore.xmi.XMLHelper;
17
import org.eclipse.emf.ecore.xmi.XMLLoad;
18
import org.eclipse.emf.ecore.xmi.XMLSave;
19
import org.eclipse.uml2.uml.resource.CMOF2UMLResource;
20
21
public class CMOF2UMLResourceImpl
22
		extends UMLResourceImpl
23
		implements CMOF2UMLResource {
24
25
	public CMOF2UMLResourceImpl(URI uri) {
26
		super(uri);
27
	}
28
29
	@Override
30
	protected XMLHelper createXMLHelper() {
31
		return new CMOF2UMLHelperImpl(this);
32
	}
33
34
	@Override
35
	protected XMLLoad createXMLLoad() {
36
		return new CMOF2UMLLoadImpl(createXMLHelper());
37
	}
38
39
	@Override
40
	protected XMLSave createXMLSave() {
41
		return new CMOF2UMLSaveImpl(createXMLHelper());
42
	}
43
44
}
(-)src/org/eclipse/uml2/uml/resource/CMOF2UMLExtendedMetaData.java (+123 lines)
Added Link Here
1
/*
2
 * Copyright (c) 2007 IBM Corporation and others.
3
 * All rights reserved.   This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 *
8
 * Contributors:
9
 *   IBM - initial API and implementation
10
 * 
11
 * $Id$
12
 */
13
package org.eclipse.uml2.uml.resource;
14
15
import java.util.HashMap;
16
import java.util.Map;
17
18
import org.eclipse.emf.common.util.URI;
19
import org.eclipse.emf.ecore.EClassifier;
20
import org.eclipse.emf.ecore.ENamedElement;
21
import org.eclipse.emf.ecore.EPackage;
22
import org.eclipse.emf.ecore.EStructuralFeature;
23
import org.eclipse.emf.ecore.xmi.XMLResource;
24
import org.eclipse.emf.ecore.xmi.XMLResource.XMLInfo;
25
import org.eclipse.emf.ecore.xmi.impl.EMOFExtendedMetaData;
26
import org.eclipse.emf.mapping.ecore2xml.Ecore2XMLRegistry;
27
import org.eclipse.emf.mapping.ecore2xml.util.Ecore2XMLExtendedMetaData;
28
import org.eclipse.uml2.uml.UMLPackage;
29
30
public class CMOF2UMLExtendedMetaData
31
		extends Ecore2XMLExtendedMetaData {
32
33
	protected static final String TAG = EMOFExtendedMetaData.TAG;
34
35
	public static final String CMOF_TAG = CMOF2UMLResource.CMOF_METAMODEL_NS_PREFIX
36
		+ ':' + TAG;
37
38
	public static final String CMOF_TAG_NAME = EMOFExtendedMetaData.EMOF_TAG_NAME;
39
40
	public static final String CMOF_TAG_VALUE = EMOFExtendedMetaData.EMOF_TAG_VALUE;
41
42
	public static final String CMOF_TAG_ELEMENT = EMOFExtendedMetaData.EMOF_TAG_ELEMENT;
43
44
	protected static Map<URI, URI> uriMap = null;
45
46
	public static Map<URI, URI> getURIMap() {
47
48
		if (uriMap == null) {
49
			uriMap = new HashMap<URI, URI>();
50
		}
51
52
		return uriMap;
53
	}
54
55
	public CMOF2UMLExtendedMetaData(EPackage.Registry ePackageRegistry,
56
			Ecore2XMLRegistry ecore2xmlRegistry) {
57
		super(ePackageRegistry, ecore2xmlRegistry);
58
	}
59
60
	@Override
61
	protected XMLInfo getInfo(ENamedElement element) {
62
63
		if (xmlMaps.isEmpty()) {
64
65
			for (Map.Entry<String, Object> entry : ecore2xmlRegistry.entrySet()) {
66
				xmlMaps.put(entry.getKey(), (XMLResource.XMLMap) entry
67
					.getValue());
68
			}
69
		}
70
71
		return super.getInfo(element);
72
	}
73
74
	@Override
75
	public String getName(EClassifier eClassifier) {
76
		return getName(eClassifier, false);
77
	}
78
79
	public String getName(EClassifier eClassifier, boolean allowNull) {
80
81
		if (eClassifier == UMLPackage.Literals.MODEL) {
82
			eClassifier = UMLPackage.Literals.PACKAGE;
83
		}
84
85
		XMLResource.XMLInfo xmlInfo = getInfo(eClassifier);
86
87
		if (xmlInfo != null) {
88
			String name = xmlInfo.getName();
89
90
			if (allowNull || name != null) {
91
				return name;
92
			}
93
		}
94
95
		return getExtendedMetaData(eClassifier).getName();
96
	}
97
98
	@Override
99
	public String getName(EStructuralFeature eStructuralFeature) {
100
		return getName(eStructuralFeature, false);
101
	}
102
103
	public String getName(EStructuralFeature eStructuralFeature,
104
			boolean allowNull) {
105
106
		if (eStructuralFeature == UMLPackage.Literals.NAMED_ELEMENT__NAMESPACE) {
107
			return null;
108
		}
109
110
		XMLResource.XMLInfo xmlInfo = getInfo(eStructuralFeature);
111
112
		if (xmlInfo != null) {
113
			String name = xmlInfo.getName();
114
115
			if (allowNull || name != null) {
116
				return name;
117
			}
118
		}
119
120
		return getExtendedMetaData(eStructuralFeature).getName();
121
	}
122
123
}
(-)model/CMOF_2_UML.ecore2ecore (+738 lines)
Added Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
2
<ecore2ecore:Ecore2EcoreMappingRoot xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore2ecore="http://www.eclipse.org/emf/2004/Ecore2Ecore" topToBottom="true">
3
  <nested>
4
    <inputs href="CMOF.ecore#//Package/ownedMember"/>
5
    <outputs href="UML.ecore#//Package/packagedElement"/>
6
  </nested>
7
  <nested>
8
    <outputs href="UML.ecore#//Namespace/ownedMember"/>
9
  </nested>
10
  <nested>
11
    <inputs href="CMOF.ecore#//Constraint/namespace"/>
12
    <outputs href="UML.ecore#//Constraint/context"/>
13
  </nested>
14
  <nested>
15
    <inputs href="CMOF.ecore#//Class/isAbstract"/>
16
    <outputs href="UML.ecore#//Classifier/isAbstract"/>
17
  </nested>
18
  <nested>
19
    <inputs href="CMOF.ecore#//Class/ownedAttribute"/>
20
    <outputs href="UML.ecore#//StructuredClassifier/ownedAttribute"/>
21
  </nested>
22
  <nested>
23
    <outputs href="UML.ecore#//Classifier/generalization"/>
24
  </nested>
25
  <nested>
26
    <outputs href="UML.ecore#//Package/profileApplication"/>
27
  </nested>
28
  <nested>
29
    <outputs href="UML.ecore#//NamedElement/clientDependency"/>
30
  </nested>
31
  <nested>
32
    <outputs href="UML.ecore#//NamedElement/nameExpression"/>
33
  </nested>
34
  <nested>
35
    <outputs href="UML.ecore#//Dependency"/>
36
  </nested>
37
  <nested>
38
    <outputs href="UML.ecore#//Classifier/powertypeExtent"/>
39
  </nested>
40
  <nested>
41
    <outputs href="UML.ecore#//Classifier/redefinedClassifier"/>
42
  </nested>
43
  <nested>
44
    <outputs href="UML.ecore#//Classifier/substitution"/>
45
  </nested>
46
  <nested>
47
    <outputs href="UML.ecore#//Classifier/representation"/>
48
  </nested>
49
  <nested>
50
    <outputs href="UML.ecore#//Classifier/collaborationUse"/>
51
  </nested>
52
  <nested>
53
    <outputs href="UML.ecore#//Classifier/ownedUseCase"/>
54
  </nested>
55
  <nested>
56
    <outputs href="UML.ecore#//Classifier/useCase"/>
57
  </nested>
58
  <nested>
59
    <outputs href="UML.ecore#//RedefinableElement/isLeaf"/>
60
  </nested>
61
  <nested>
62
    <outputs href="UML.ecore#//TemplateBinding"/>
63
  </nested>
64
  <nested>
65
    <outputs href="UML.ecore#//TemplateSignature"/>
66
  </nested>
67
  <nested>
68
    <outputs href="UML.ecore#//TemplateParameter"/>
69
  </nested>
70
  <nested>
71
    <outputs href="UML.ecore#//TemplateParameterSubstitution"/>
72
  </nested>
73
  <nested>
74
    <outputs href="UML.ecore#//Generalization"/>
75
  </nested>
76
  <nested>
77
    <outputs href="UML.ecore#//GeneralizationSet"/>
78
  </nested>
79
  <nested>
80
    <outputs href="UML.ecore#//Feature/isStatic"/>
81
  </nested>
82
  <nested>
83
    <outputs href="UML.ecore#//Substitution"/>
84
  </nested>
85
  <nested>
86
    <outputs href="UML.ecore#//Realization"/>
87
  </nested>
88
  <nested>
89
    <outputs href="UML.ecore#//Abstraction"/>
90
  </nested>
91
  <nested>
92
    <outputs href="UML.ecore#//OpaqueExpression/result"/>
93
  </nested>
94
  <nested>
95
    <outputs href="UML.ecore#//OpaqueExpression/behavior"/>
96
  </nested>
97
  <nested>
98
    <outputs href="UML.ecore#//Parameter/defaultValue"/>
99
  </nested>
100
  <nested>
101
    <outputs href="UML.ecore#//Parameter/isException"/>
102
  </nested>
103
  <nested>
104
    <outputs href="UML.ecore#//Parameter/isStream"/>
105
  </nested>
106
  <nested>
107
    <outputs href="UML.ecore#//Parameter/effect"/>
108
  </nested>
109
  <nested>
110
    <outputs href="UML.ecore#//MultiplicityElement/upperValue"/>
111
  </nested>
112
  <nested>
113
    <outputs href="UML.ecore#//MultiplicityElement/lowerValue"/>
114
  </nested>
115
  <nested>
116
    <outputs href="UML.ecore#//ConnectableElementTemplateParameter"/>
117
  </nested>
118
  <nested>
119
    <outputs href="UML.ecore#//ConnectorEnd"/>
120
  </nested>
121
  <nested>
122
    <outputs href="UML.ecore#//Property/aggregation"/>
123
  </nested>
124
  <nested>
125
    <outputs href="UML.ecore#//Property/defaultValue"/>
126
  </nested>
127
  <nested>
128
    <outputs href="UML.ecore#//Property/qualifier"/>
129
  </nested>
130
  <nested>
131
    <outputs href="UML.ecore#//Property/associationEnd"/>
132
  </nested>
133
  <nested>
134
    <outputs href="UML.ecore#//Deployment"/>
135
  </nested>
136
  <nested>
137
    <outputs href="UML.ecore#//DeploymentSpecification"/>
138
  </nested>
139
  <nested>
140
    <outputs href="UML.ecore#//Artifact"/>
141
  </nested>
142
  <nested>
143
    <outputs href="UML.ecore#//Manifestation"/>
144
  </nested>
145
  <nested>
146
    <outputs href="UML.ecore#//Operation/interface"/>
147
  </nested>
148
  <nested>
149
    <outputs href="UML.ecore#//BehavioralFeature/isAbstract"/>
150
  </nested>
151
  <nested>
152
    <outputs href="UML.ecore#//BehavioralFeature/method"/>
153
  </nested>
154
  <nested>
155
    <outputs href="UML.ecore#//BehavioralFeature/concurrency"/>
156
  </nested>
157
  <nested>
158
    <outputs href="UML.ecore#//BehavioralFeature/ownedParameterSet"/>
159
  </nested>
160
  <nested>
161
    <outputs href="UML.ecore#//Class/nestedClassifier"/>
162
  </nested>
163
  <nested>
164
    <outputs href="UML.ecore#//Class/isActive"/>
165
  </nested>
166
  <nested>
167
    <outputs href="UML.ecore#//Class/ownedReception"/>
168
  </nested>
169
  <nested>
170
    <outputs href="UML.ecore#//TemplateableElement/templateBinding"/>
171
  </nested>
172
  <nested>
173
    <outputs href="UML.ecore#//TemplateableElement/ownedTemplateSignature"/>
174
  </nested>
175
  <nested>
176
    <outputs href="UML.ecore#//ParameterableElement/owningTemplateParameter"/>
177
  </nested>
178
  <nested>
179
    <outputs href="UML.ecore#//ParameterableElement/templateParameter"/>
180
  </nested>
181
  <nested>
182
    <outputs href="UML.ecore#//ConnectableElement/end"/>
183
  </nested>
184
  <nested>
185
    <outputs href="UML.ecore#//BehavioredClassifier/ownedBehavior"/>
186
  </nested>
187
  <nested>
188
    <outputs href="UML.ecore#//BehavioredClassifier/classifierBehavior"/>
189
  </nested>
190
  <nested>
191
    <outputs href="UML.ecore#//BehavioredClassifier/interfaceRealization"/>
192
  </nested>
193
  <nested>
194
    <outputs href="UML.ecore#//BehavioredClassifier/ownedTrigger"/>
195
  </nested>
196
  <nested>
197
    <outputs href="UML.ecore#//InterfaceRealization"/>
198
  </nested>
199
  <nested>
200
    <outputs href="UML.ecore#//Interface"/>
201
  </nested>
202
  <nested>
203
    <outputs href="UML.ecore#//Reception"/>
204
  </nested>
205
  <nested>
206
    <outputs href="UML.ecore#//Signal"/>
207
  </nested>
208
  <nested>
209
    <outputs href="UML.ecore#//ProtocolStateMachine"/>
210
  </nested>
211
  <nested>
212
    <outputs href="UML.ecore#//StateMachine"/>
213
  </nested>
214
  <nested>
215
    <outputs href="UML.ecore#//Region"/>
216
  </nested>
217
  <nested>
218
    <outputs href="UML.ecore#//Transition"/>
219
  </nested>
220
  <nested>
221
    <outputs href="UML.ecore#//TransitionKind"/>
222
  </nested>
223
  <nested>
224
    <outputs href="UML.ecore#//Trigger"/>
225
  </nested>
226
  <nested>
227
    <outputs href="UML.ecore#//Port"/>
228
  </nested>
229
  <nested>
230
    <outputs href="UML.ecore#//State"/>
231
  </nested>
232
  <nested>
233
    <outputs href="UML.ecore#//ConnectionPointReference"/>
234
  </nested>
235
  <nested>
236
    <outputs href="UML.ecore#//Pseudostate"/>
237
  </nested>
238
  <nested>
239
    <outputs href="UML.ecore#//PseudostateKind"/>
240
  </nested>
241
  <nested>
242
    <outputs href="UML.ecore#//ProtocolConformance"/>
243
  </nested>
244
  <nested>
245
    <outputs href="UML.ecore#//EncapsulatedClassifier/ownedPort"/>
246
  </nested>
247
  <nested>
248
    <outputs href="UML.ecore#//StructuredClassifier/ownedConnector"/>
249
  </nested>
250
  <nested>
251
    <outputs href="UML.ecore#//Connector"/>
252
  </nested>
253
  <nested>
254
    <outputs href="UML.ecore#//ConnectorKind"/>
255
  </nested>
256
  <nested>
257
    <outputs href="UML.ecore#//Extension"/>
258
  </nested>
259
  <nested>
260
    <outputs href="UML.ecore#//ExtensionEnd"/>
261
  </nested>
262
  <nested>
263
    <outputs href="UML.ecore#//Stereotype"/>
264
  </nested>
265
  <nested>
266
    <outputs href="UML.ecore#//Image"/>
267
  </nested>
268
  <nested>
269
    <outputs href="UML.ecore#//Profile"/>
270
  </nested>
271
  <nested>
272
    <outputs href="UML.ecore#//Model/viewpoint"/>
273
  </nested>
274
  <nested>
275
    <outputs href="UML.ecore#//ParameterSet"/>
276
  </nested>
277
  <nested>
278
    <outputs href="UML.ecore#//CallConcurrencyKind"/>
279
  </nested>
280
  <nested>
281
    <outputs href="UML.ecore#//OperationTemplateParameter"/>
282
  </nested>
283
  <nested>
284
    <outputs href="UML.ecore#//AggregationKind"/>
285
  </nested>
286
  <nested>
287
    <outputs href="UML.ecore#//ParameterEffectKind"/>
288
  </nested>
289
  <nested>
290
    <outputs href="UML.ecore#//CollaborationUse"/>
291
  </nested>
292
  <nested>
293
    <outputs href="UML.ecore#//Collaboration"/>
294
  </nested>
295
  <nested>
296
    <outputs href="UML.ecore#//UseCase"/>
297
  </nested>
298
  <nested>
299
    <outputs href="UML.ecore#//Include"/>
300
  </nested>
301
  <nested>
302
    <outputs href="UML.ecore#//Extend"/>
303
  </nested>
304
  <nested>
305
    <outputs href="UML.ecore#//ExtensionPoint"/>
306
  </nested>
307
  <nested>
308
    <outputs href="UML.ecore#//RedefinableTemplateSignature"/>
309
  </nested>
310
  <nested>
311
    <outputs href="UML.ecore#//ClassifierTemplateParameter"/>
312
  </nested>
313
  <nested>
314
    <outputs href="UML.ecore#//StringExpression"/>
315
  </nested>
316
  <nested>
317
    <outputs href="UML.ecore#//Expression/symbol"/>
318
  </nested>
319
  <nested>
320
    <outputs href="UML.ecore#//Usage"/>
321
  </nested>
322
  <nested>
323
    <outputs href="UML.ecore#//ProfileApplication"/>
324
  </nested>
325
  <nested>
326
    <outputs href="UML.ecore#//InstanceSpecification"/>
327
  </nested>
328
  <nested>
329
    <outputs href="UML.ecore#//Slot"/>
330
  </nested>
331
  <nested>
332
    <outputs href="UML.ecore#//LiteralInteger"/>
333
  </nested>
334
  <nested>
335
    <outputs href="UML.ecore#//LiteralString"/>
336
  </nested>
337
  <nested>
338
    <outputs href="UML.ecore#//LiteralBoolean"/>
339
  </nested>
340
  <nested>
341
    <outputs href="UML.ecore#//LiteralNull"/>
342
  </nested>
343
  <nested>
344
    <outputs href="UML.ecore#//InstanceValue"/>
345
  </nested>
346
  <nested>
347
    <outputs href="UML.ecore#//LiteralUnlimitedNatural"/>
348
  </nested>
349
  <nested>
350
    <outputs href="UML.ecore#//OpaqueBehavior"/>
351
  </nested>
352
  <nested>
353
    <outputs href="UML.ecore#//FunctionBehavior"/>
354
  </nested>
355
  <nested>
356
    <outputs href="UML.ecore#//OpaqueAction"/>
357
  </nested>
358
  <nested>
359
    <outputs href="UML.ecore#//StructuredActivityNode"/>
360
  </nested>
361
  <nested>
362
    <outputs href="UML.ecore#//Activity"/>
363
  </nested>
364
  <nested>
365
    <outputs href="UML.ecore#//Variable"/>
366
  </nested>
367
  <nested>
368
    <outputs href="UML.ecore#//ActivityPartition"/>
369
  </nested>
370
  <nested>
371
    <outputs href="UML.ecore#//InterruptibleActivityRegion"/>
372
  </nested>
373
  <nested>
374
    <outputs href="UML.ecore#//ExceptionHandler"/>
375
  </nested>
376
  <nested>
377
    <outputs href="UML.ecore#//ObjectNodeOrderingKind"/>
378
  </nested>
379
  <nested>
380
    <outputs href="UML.ecore#//OutputPin"/>
381
  </nested>
382
  <nested>
383
    <outputs href="UML.ecore#//Pin"/>
384
  </nested>
385
  <nested>
386
    <outputs href="UML.ecore#//InputPin"/>
387
  </nested>
388
  <nested>
389
    <outputs href="UML.ecore#//SendSignalAction"/>
390
  </nested>
391
  <nested>
392
    <outputs href="UML.ecore#//CallOperationAction"/>
393
  </nested>
394
  <nested>
395
    <outputs href="UML.ecore#//CallBehaviorAction"/>
396
  </nested>
397
  <nested>
398
    <outputs href="UML.ecore#//SequenceNode"/>
399
  </nested>
400
  <nested>
401
    <outputs href="UML.ecore#//ControlFlow"/>
402
  </nested>
403
  <nested>
404
    <outputs href="UML.ecore#//InitialNode"/>
405
  </nested>
406
  <nested>
407
    <outputs href="UML.ecore#//ActivityParameterNode"/>
408
  </nested>
409
  <nested>
410
    <outputs href="UML.ecore#//ValuePin"/>
411
  </nested>
412
  <nested>
413
    <outputs href="UML.ecore#//Message"/>
414
  </nested>
415
  <nested>
416
    <outputs href="UML.ecore#//MessageKind"/>
417
  </nested>
418
  <nested>
419
    <outputs href="UML.ecore#//MessageSort"/>
420
  </nested>
421
  <nested>
422
    <outputs href="UML.ecore#//Interaction"/>
423
  </nested>
424
  <nested>
425
    <outputs href="UML.ecore#//Lifeline"/>
426
  </nested>
427
  <nested>
428
    <outputs href="UML.ecore#//PartDecomposition"/>
429
  </nested>
430
  <nested>
431
    <outputs href="UML.ecore#//InteractionUse"/>
432
  </nested>
433
  <nested>
434
    <outputs href="UML.ecore#//Gate"/>
435
  </nested>
436
  <nested>
437
    <outputs href="UML.ecore#//GeneralOrdering"/>
438
  </nested>
439
  <nested>
440
    <outputs href="UML.ecore#//OccurrenceSpecification"/>
441
  </nested>
442
  <nested>
443
    <outputs href="UML.ecore#//InteractionOperand"/>
444
  </nested>
445
  <nested>
446
    <outputs href="UML.ecore#//InteractionConstraint"/>
447
  </nested>
448
  <nested>
449
    <outputs href="UML.ecore#//StateInvariant"/>
450
  </nested>
451
  <nested>
452
    <outputs href="UML.ecore#//ActionExecutionSpecification"/>
453
  </nested>
454
  <nested>
455
    <outputs href="UML.ecore#//BehaviorExecutionSpecification"/>
456
  </nested>
457
  <nested>
458
    <outputs href="UML.ecore#//ExecutionEvent"/>
459
  </nested>
460
  <nested>
461
    <outputs href="UML.ecore#//CreationEvent"/>
462
  </nested>
463
  <nested>
464
    <outputs href="UML.ecore#//DestructionEvent"/>
465
  </nested>
466
  <nested>
467
    <outputs href="UML.ecore#//SendOperationEvent"/>
468
  </nested>
469
  <nested>
470
    <outputs href="UML.ecore#//SendSignalEvent"/>
471
  </nested>
472
  <nested>
473
    <outputs href="UML.ecore#//MessageOccurrenceSpecification"/>
474
  </nested>
475
  <nested>
476
    <outputs href="UML.ecore#//ExecutionOccurrenceSpecification"/>
477
  </nested>
478
  <nested>
479
    <outputs href="UML.ecore#//ReceiveOperationEvent"/>
480
  </nested>
481
  <nested>
482
    <outputs href="UML.ecore#//ReceiveSignalEvent"/>
483
  </nested>
484
  <nested>
485
    <outputs href="UML.ecore#//Actor"/>
486
  </nested>
487
  <nested>
488
    <outputs href="UML.ecore#//CallEvent"/>
489
  </nested>
490
  <nested>
491
    <outputs href="UML.ecore#//ChangeEvent"/>
492
  </nested>
493
  <nested>
494
    <outputs href="UML.ecore#//SignalEvent"/>
495
  </nested>
496
  <nested>
497
    <outputs href="UML.ecore#//AnyReceiveEvent"/>
498
  </nested>
499
  <nested>
500
    <outputs href="UML.ecore#//ForkNode"/>
501
  </nested>
502
  <nested>
503
    <outputs href="UML.ecore#//FlowFinalNode"/>
504
  </nested>
505
  <nested>
506
    <outputs href="UML.ecore#//CentralBufferNode"/>
507
  </nested>
508
  <nested>
509
    <outputs href="UML.ecore#//MergeNode"/>
510
  </nested>
511
  <nested>
512
    <outputs href="UML.ecore#//DecisionNode"/>
513
  </nested>
514
  <nested>
515
    <outputs href="UML.ecore#//ActivityFinalNode"/>
516
  </nested>
517
  <nested>
518
    <outputs href="UML.ecore#//ComponentRealization"/>
519
  </nested>
520
  <nested>
521
    <outputs href="UML.ecore#//Component"/>
522
  </nested>
523
  <nested>
524
    <outputs href="UML.ecore#//Node"/>
525
  </nested>
526
  <nested>
527
    <outputs href="UML.ecore#//Device"/>
528
  </nested>
529
  <nested>
530
    <outputs href="UML.ecore#//ExecutionEnvironment"/>
531
  </nested>
532
  <nested>
533
    <outputs href="UML.ecore#//CommunicationPath"/>
534
  </nested>
535
  <nested>
536
    <outputs href="UML.ecore#//CombinedFragment"/>
537
  </nested>
538
  <nested>
539
    <outputs href="UML.ecore#//InteractionOperatorKind"/>
540
  </nested>
541
  <nested>
542
    <outputs href="UML.ecore#//Continuation"/>
543
  </nested>
544
  <nested>
545
    <outputs href="UML.ecore#//ConsiderIgnoreFragment"/>
546
  </nested>
547
  <nested>
548
    <outputs href="UML.ecore#//CreateObjectAction"/>
549
  </nested>
550
  <nested>
551
    <outputs href="UML.ecore#//DestroyObjectAction"/>
552
  </nested>
553
  <nested>
554
    <outputs href="UML.ecore#//TestIdentityAction"/>
555
  </nested>
556
  <nested>
557
    <outputs href="UML.ecore#//ReadSelfAction"/>
558
  </nested>
559
  <nested>
560
    <outputs href="UML.ecore#//ReadStructuralFeatureAction"/>
561
  </nested>
562
  <nested>
563
    <outputs href="UML.ecore#//ClearStructuralFeatureAction"/>
564
  </nested>
565
  <nested>
566
    <outputs href="UML.ecore#//RemoveStructuralFeatureValueAction"/>
567
  </nested>
568
  <nested>
569
    <outputs href="UML.ecore#//AddStructuralFeatureValueAction"/>
570
  </nested>
571
  <nested>
572
    <outputs href="UML.ecore#//LinkEndData"/>
573
  </nested>
574
  <nested>
575
    <outputs href="UML.ecore#//QualifierValue"/>
576
  </nested>
577
  <nested>
578
    <outputs href="UML.ecore#//ReadLinkAction"/>
579
  </nested>
580
  <nested>
581
    <outputs href="UML.ecore#//LinkEndCreationData"/>
582
  </nested>
583
  <nested>
584
    <outputs href="UML.ecore#//CreateLinkAction"/>
585
  </nested>
586
  <nested>
587
    <outputs href="UML.ecore#//DestroyLinkAction"/>
588
  </nested>
589
  <nested>
590
    <outputs href="UML.ecore#//LinkEndDestructionData"/>
591
  </nested>
592
  <nested>
593
    <outputs href="UML.ecore#//ClearAssociationAction"/>
594
  </nested>
595
  <nested>
596
    <outputs href="UML.ecore#//BroadcastSignalAction"/>
597
  </nested>
598
  <nested>
599
    <outputs href="UML.ecore#//SendObjectAction"/>
600
  </nested>
601
  <nested>
602
    <outputs href="UML.ecore#//ValueSpecificationAction"/>
603
  </nested>
604
  <nested>
605
    <outputs href="UML.ecore#//TimeExpression"/>
606
  </nested>
607
  <nested>
608
    <outputs href="UML.ecore#//Duration"/>
609
  </nested>
610
  <nested>
611
    <outputs href="UML.ecore#//DurationInterval"/>
612
  </nested>
613
  <nested>
614
    <outputs href="UML.ecore#//Interval"/>
615
  </nested>
616
  <nested>
617
    <outputs href="UML.ecore#//TimeConstraint"/>
618
  </nested>
619
  <nested>
620
    <outputs href="UML.ecore#//IntervalConstraint"/>
621
  </nested>
622
  <nested>
623
    <outputs href="UML.ecore#//TimeInterval"/>
624
  </nested>
625
  <nested>
626
    <outputs href="UML.ecore#//DurationConstraint"/>
627
  </nested>
628
  <nested>
629
    <outputs href="UML.ecore#//TimeObservation"/>
630
  </nested>
631
  <nested>
632
    <outputs href="UML.ecore#//DurationObservation"/>
633
  </nested>
634
  <nested>
635
    <outputs href="UML.ecore#//FinalState"/>
636
  </nested>
637
  <nested>
638
    <outputs href="UML.ecore#//TimeEvent"/>
639
  </nested>
640
  <nested>
641
    <outputs href="UML.ecore#//ReadVariableAction"/>
642
  </nested>
643
  <nested>
644
    <outputs href="UML.ecore#//ClearVariableAction"/>
645
  </nested>
646
  <nested>
647
    <outputs href="UML.ecore#//AddVariableValueAction"/>
648
  </nested>
649
  <nested>
650
    <outputs href="UML.ecore#//RemoveVariableValueAction"/>
651
  </nested>
652
  <nested>
653
    <outputs href="UML.ecore#//RaiseExceptionAction"/>
654
  </nested>
655
  <nested>
656
    <outputs href="UML.ecore#//ActionInputPin"/>
657
  </nested>
658
  <nested>
659
    <outputs href="UML.ecore#//InformationItem"/>
660
  </nested>
661
  <nested>
662
    <outputs href="UML.ecore#//InformationFlow"/>
663
  </nested>
664
  <nested>
665
    <outputs href="UML.ecore#//ReadExtentAction"/>
666
  </nested>
667
  <nested>
668
    <outputs href="UML.ecore#//ReclassifyObjectAction"/>
669
  </nested>
670
  <nested>
671
    <outputs href="UML.ecore#//ReadIsClassifiedObjectAction"/>
672
  </nested>
673
  <nested>
674
    <outputs href="UML.ecore#//StartClassifierBehaviorAction"/>
675
  </nested>
676
  <nested>
677
    <outputs href="UML.ecore#//ReadLinkObjectEndAction"/>
678
  </nested>
679
  <nested>
680
    <outputs href="UML.ecore#//ReadLinkObjectEndQualifierAction"/>
681
  </nested>
682
  <nested>
683
    <outputs href="UML.ecore#//CreateLinkObjectAction"/>
684
  </nested>
685
  <nested>
686
    <outputs href="UML.ecore#//AcceptEventAction"/>
687
  </nested>
688
  <nested>
689
    <outputs href="UML.ecore#//AcceptCallAction"/>
690
  </nested>
691
  <nested>
692
    <outputs href="UML.ecore#//ReplyAction"/>
693
  </nested>
694
  <nested>
695
    <outputs href="UML.ecore#//UnmarshallAction"/>
696
  </nested>
697
  <nested>
698
    <outputs href="UML.ecore#//ReduceAction"/>
699
  </nested>
700
  <nested>
701
    <outputs href="UML.ecore#//JoinNode"/>
702
  </nested>
703
  <nested>
704
    <outputs href="UML.ecore#//DataStoreNode"/>
705
  </nested>
706
  <nested>
707
    <outputs href="UML.ecore#//ObjectFlow"/>
708
  </nested>
709
  <nested>
710
    <outputs href="UML.ecore#//ConditionalNode"/>
711
  </nested>
712
  <nested>
713
    <outputs href="UML.ecore#//Clause"/>
714
  </nested>
715
  <nested>
716
    <outputs href="UML.ecore#//LoopNode"/>
717
  </nested>
718
  <nested>
719
    <outputs href="UML.ecore#//ExpansionNode"/>
720
  </nested>
721
  <nested>
722
    <outputs href="UML.ecore#//ExpansionRegion"/>
723
  </nested>
724
  <nested>
725
    <outputs href="UML.ecore#//ExpansionKind"/>
726
  </nested>
727
  <nested>
728
    <outputs href="UML.ecore#//ProtocolTransition"/>
729
  </nested>
730
  <nested>
731
    <outputs href="UML.ecore#//AssociationClass"/>
732
  </nested>
733
  <nested>
734
    <outputs href="UML.ecore#//NamedElement/namespace"/>
735
  </nested>
736
  <inputs href="CMOF.ecore#/"/>
737
  <outputs href="UML.ecore#/"/>
738
</ecore2ecore:Ecore2EcoreMappingRoot>
(-)src/org/eclipse/uml2/uml/internal/resource/CMOF2UMLHandler.java (+81 lines)
Added Link Here
1
/*
2
 * Copyright (c) 2007 IBM Corporation and others.
3
 * All rights reserved.   This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 *
8
 * Contributors:
9
 *   IBM - initial API and implementation
10
 *
11
 * $Id$
12
 */
13
package org.eclipse.uml2.uml.internal.resource;
14
15
import java.util.Map;
16
17
import org.eclipse.emf.ecore.EObject;
18
import org.eclipse.emf.ecore.InternalEObject;
19
import org.eclipse.emf.ecore.xmi.XMIResource;
20
import org.eclipse.emf.ecore.xmi.XMLHelper;
21
import org.eclipse.emf.ecore.xmi.XMLResource;
22
import org.eclipse.emf.ecore.xmi.impl.EMOFExtendedMetaData;
23
import org.eclipse.uml2.uml.UMLPackage;
24
import org.eclipse.uml2.uml.resource.XMI2UMLResource;
25
26
public class CMOF2UMLHandler
27
		extends UMLHandler {
28
29
	protected static final String UML_EXTENSION_TYPE = "umlExtension"; //$NON-NLS-1$
30
31
	protected static final String XMI_IDREF = "idref"; //$NON-NLS-1$
32
33
	protected static final String IDREF_ATTRIB = XMIResource.XMI_NS + ':'
34
		+ XMI_IDREF;
35
36
	public CMOF2UMLHandler(XMLResource xmiResource, XMLHelper helper,
37
			Map<?, ?> options) {
38
		super(xmiResource, helper, options);
39
	}
40
41
	@Override
42
	protected void processElement(String name, String prefix, String localName) {
43
44
		if (EMOFExtendedMetaData.EXTENSION.equals(localName)
45
			&& XMI2UMLResource.XMI_NS_URI.equals(helper.getURI(prefix))
46
			&& attribs != null
47
			&& UMLPackage.eNS_URI.equals(attribs
48
				.getValue(EMOFExtendedMetaData.XMI_EXTENDER_ATTRIBUTE))) {
49
50
			types.push(UML_EXTENSION_TYPE);
51
		} else {
52
			super.processElement(name, prefix, localName);
53
		}
54
	}
55
56
	@Override
57
	public void endElement(String uri, String localName, String name) {
58
59
		if (types.peek() == UML_EXTENSION_TYPE) {
60
			elements.pop();
61
			types.pop();
62
			helper.popContext();
63
			mixedTargets.pop();
64
		} else {
65
			super.endElement(uri, localName, name);
66
		}
67
	}
68
69
	@Override
70
	protected void setAttribValue(EObject object, String name, String value) {
71
72
		if (IDREF_ATTRIB.equals(name)
73
			&& (!recordUnknownFeature || types.peek() != UNKNOWN_FEATURE_TYPE)) {
74
75
			handleProxy((InternalEObject) object, '#' + value);
76
		} else {
77
			super.setAttribValue(object, name, value);
78
		}
79
	}
80
81
}
(-)src/org/eclipse/uml2/uml/internal/resource/CMOF2UMLLoadImpl.java (+30 lines)
Added Link Here
1
/*
2
 * Copyright (c) 2007 IBM Corporation and others.
3
 * All rights reserved.   This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 *
8
 * Contributors:
9
 *   IBM - initial API and implementation
10
 *
11
 * $Id$
12
 */
13
package org.eclipse.uml2.uml.internal.resource;
14
15
import org.eclipse.emf.ecore.xmi.XMLHelper;
16
import org.xml.sax.helpers.DefaultHandler;
17
18
public class CMOF2UMLLoadImpl
19
		extends UMLLoadImpl {
20
21
	public CMOF2UMLLoadImpl(XMLHelper helper) {
22
		super(helper);
23
	}
24
25
	@Override
26
	protected DefaultHandler makeDefaultHandler() {
27
		return new CMOF2UMLHandler(resource, helper, options);
28
	}
29
30
}
(-)model/CMOF.ecore (+1669 lines)
Added Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
2
<ecore:EPackage xmi:version="2.0"
3
    xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
    xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="cmof"
5
    nsURI="http://schema.omg.org/spec/MOF/2.0/cmof.xml" nsPrefix="cmof">
6
  <eClassifiers xsi:type="ecore:EClass" name="Classifier" abstract="true" eSuperTypes="#//Namespace #//Type">
7
    <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
8
      <details key="documentation" value="A classifier is a type. It can specify a generalization hierarchy by referencing its general classifiers.  A classifier is also a namespace whose members can include features. Classifier is an abstract metaclass."/>
9
    </eAnnotations>
10
    <eOperations name="no_cycles_in_generalization" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
11
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
12
        <details key="documentation" value="Generalization hierarchies must be directed and acyclical. A classifier can not be both a transitively general and transitively specific classifier of the same classifier.&#xD;&#xA;not self.allParents()->includes(self)"/>
13
      </eAnnotations>
14
      <eParameters name="diagnostics" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDiagnosticChain"/>
15
      <eParameters name="context" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EMap"/>
16
    </eOperations>
17
    <eOperations name="specialize_type" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
18
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
19
        <details key="documentation" value="A classifier may only specialize classifiers of a valid type.&#xD;&#xA;self.parents()->forAll(c | self.maySpecializeType(c))"/>
20
      </eAnnotations>
21
      <eParameters name="diagnostics" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDiagnosticChain"/>
22
      <eParameters name="context" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EMap"/>
23
    </eOperations>
24
    <eOperations name="conformsTo" ordered="false" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
25
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
26
        <details key="documentation" value="The query conformsTo() gives true for a classifier that defines a type that conforms to another. This is used, for example, in the specification of signature conformance for operations.&#xD;&#xA;result = (self=other) or (self.allParents()->includes(other))"/>
27
      </eAnnotations>
28
      <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
29
        <details key="constraints" value="spec"/>
30
      </eAnnotations>
31
      <eAnnotations source="redefines" references="#//Type/conformsTo"/>
32
      <eParameters name="other" ordered="false" lowerBound="1" eType="#//Classifier"/>
33
    </eOperations>
34
    <eOperations name="allFeatures" ordered="false" upperBound="-1" eType="#//Feature">
35
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
36
        <details key="documentation" value="The query allFeatures() gives all of the features in the namespace of the classifier. In general, through mechanisms such as inheritance, this will be a larger set than feature.&#xD;&#xA;result = member->select(oclIsKindOf(Feature))"/>
37
      </eAnnotations>
38
      <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
39
        <details key="constraints" value="spec"/>
40
      </eAnnotations>
41
    </eOperations>
42
    <eOperations name="getGenerals" ordered="false" upperBound="-1" eType="#//Classifier">
43
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
44
        <details key="documentation" value="The general classifiers are the classifiers referenced by the generalization relationships.&#xD;&#xA;result = self.parents()"/>
45
      </eAnnotations>
46
      <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
47
        <details key="constraints" value="spec"/>
48
      </eAnnotations>
49
    </eOperations>
50
    <eOperations name="parents" ordered="false" upperBound="-1" eType="#//Classifier">
51
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
52
        <details key="documentation" value="The query parents() gives all of the immediate ancestors of a generalized Classifier.&#xD;&#xA;result = generalization.general"/>
53
      </eAnnotations>
54
      <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
55
        <details key="constraints" value="spec"/>
56
      </eAnnotations>
57
    </eOperations>
58
    <eOperations name="getInheritedMembers" ordered="false" upperBound="-1" eType="#//NamedElement">
59
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
60
        <details key="documentation" value="The inheritedMember association is derived by inheriting the inheritable members of the parents.&#xD;&#xA;result = self.inherit(self.parents()->collect(p | p.inheritableMembers(self))"/>
61
      </eAnnotations>
62
      <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
63
        <details key="constraints" value="spec"/>
64
      </eAnnotations>
65
    </eOperations>
66
    <eOperations name="allParents" ordered="false" upperBound="-1" eType="#//Classifier">
67
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
68
        <details key="documentation" value="The query allParents() gives all of the direct and indirect ancestors of a generalized Classifier.&#xD;&#xA;result = self.parents()->union(self.parents()->collect(p | p.allParents())"/>
69
      </eAnnotations>
70
      <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
71
        <details key="constraints" value="spec"/>
72
      </eAnnotations>
73
    </eOperations>
74
    <eOperations name="inheritableMembers" ordered="false" upperBound="-1" eType="#//NamedElement">
75
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
76
        <details key="documentation" value="The query inheritableMembers() gives all of the members of a classifier that may be inherited in one of its descendants, subject to whatever visibility restrictions apply.&#xD;&#xA;c.allParents()->includes(self)&#xD;&#xA;result = member->select(m | c.hasVisibilityOf(m))"/>
77
      </eAnnotations>
78
      <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
79
        <details key="constraints" value="spec"/>
80
      </eAnnotations>
81
      <eParameters name="c" ordered="false" lowerBound="1" eType="#//Classifier"/>
82
    </eOperations>
83
    <eOperations name="hasVisibilityOf" ordered="false" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
84
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
85
        <details key="documentation" value="The query hasVisibilityOf() determines whether a named element is visible in the classifier. By default all are visible. It is only called when the argument is something owned by a parent.&#xD;&#xA;self.allParents()->collect(c | c.member)->includes(n)&#xD;&#xA;result = if (self.inheritedMember->includes(n)) then (n.visibility &lt;> #private) else true"/>
86
      </eAnnotations>
87
      <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
88
        <details key="constraints" value="spec"/>
89
      </eAnnotations>
90
      <eParameters name="n" ordered="false" lowerBound="1" eType="#//NamedElement"/>
91
    </eOperations>
92
    <eOperations name="inherit" ordered="false" upperBound="-1" eType="#//NamedElement">
93
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
94
        <details key="documentation" value="The inherit operation is overridden to exclude redefined properties.&#xD;&#xA;result = inhs"/>
95
      </eAnnotations>
96
      <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
97
        <details key="constraints" value="spec"/>
98
      </eAnnotations>
99
      <eParameters name="inhs" ordered="false" upperBound="-1" eType="#//NamedElement"/>
100
    </eOperations>
101
    <eOperations name="maySpecializeType" ordered="false" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
102
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
103
        <details key="documentation" value="The query maySpecializeType() determines whether this classifier may have a generalization relationship to classifiers of the specified type. By default a classifier may specialize classifiers of the same or a more general type. It is intended to be redefined by classifiers that have different specialization constraints.&#xD;&#xA;result = self.oclIsKindOf(c.oclType)"/>
104
      </eAnnotations>
105
      <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
106
        <details key="constraints" value="spec"/>
107
      </eAnnotations>
108
      <eParameters name="c" ordered="false" lowerBound="1" eType="#//Classifier"/>
109
    </eOperations>
110
    <eStructuralFeatures xsi:type="ecore:EReference" name="feature" ordered="false"
111
        upperBound="-1" eType="#//Feature" changeable="false" volatile="true" transient="true"
112
        derived="true" eOpposite="#//Feature/featuringClassifier">
113
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
114
        <details key="documentation" value="Redefines the corresponding association in Abstractions. Subsets Namespace::member and is a derived union. Note that there may be members of the Classifier that are of the type Feature but are not included in this association, e.g. inherited features."/>
115
      </eAnnotations>
116
      <eAnnotations source="subsets" references="#//Namespace/member"/>
117
      <eAnnotations source="union"/>
118
    </eStructuralFeatures>
119
    <eStructuralFeatures xsi:type="ecore:EReference" name="attribute" ordered="false"
120
        upperBound="-1" eType="#//Property" changeable="false" volatile="true" transient="true"
121
        derived="true">
122
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
123
        <details key="documentation" value="Refers to all of the Properties that are direct (i.e. not inherited or imported) attributes of the classifier. Subsets Classifier::feature and is a derived union."/>
124
      </eAnnotations>
125
      <eAnnotations source="subsets" references="#//Classifier/feature"/>
126
      <eAnnotations source="union"/>
127
    </eStructuralFeatures>
128
    <eStructuralFeatures xsi:type="ecore:EReference" name="general" ordered="false"
129
        upperBound="-1" eType="#//Classifier">
130
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
131
        <details key="documentation" value="References the general classifier in the Generalization relationship. Subsets DirectedRelationship::target."/>
132
      </eAnnotations>
133
    </eStructuralFeatures>
134
    <eStructuralFeatures xsi:type="ecore:EReference" name="inheritedMember" ordered="false"
135
        upperBound="-1" eType="#//NamedElement" volatile="true" transient="true" derived="true">
136
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
137
        <details key="documentation" value="Specifies all elements inherited by this classifier from the general classifiers. Subsets Namespace::member. This is derived."/>
138
      </eAnnotations>
139
      <eAnnotations source="subsets" references="#//Namespace/member"/>
140
    </eStructuralFeatures>
141
  </eClassifiers>
142
  <eClassifiers xsi:type="ecore:EClass" name="Namespace" abstract="true" eSuperTypes="#//NamedElement">
143
    <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
144
      <details key="documentation" value="A namespace has the ability to import either individial members or all members of a package, thereby making it possible to refer to those named elements without qualification in the importing namespace. In the case of conflicts, it is necessary to use qualified names or aliases to disambiguate the referenced elements."/>
145
    </eAnnotations>
146
    <eAnnotations source="duplicates">
147
      <contents xsi:type="ecore:EReference" name="ownedMember" ordered="false" upperBound="-1"
148
          eType="#//NamedElement" changeable="false" volatile="true" transient="true"
149
          derived="true" eOpposite="#//NamedElement/%duplicates%/namespace">
150
        <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
151
          <details key="documentation" value="Redefines the corresponding property of Abstractions::Namespaces::Namespace."/>
152
        </eAnnotations>
153
        <eAnnotations source="subsets" references="#//Namespace/member #//Element/ownedElement"/>
154
        <eAnnotations source="union"/>
155
      </contents>
156
    </eAnnotations>
157
    <eOperations name="members_are_distinguishable" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
158
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
159
        <details key="documentation" value="All the members of a Namespace are distinguishable within it.&#xD;&#xA;membersAreDistinguishable()"/>
160
      </eAnnotations>
161
      <eParameters name="diagnostics" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDiagnosticChain"/>
162
      <eParameters name="context" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EMap"/>
163
    </eOperations>
164
    <eOperations name="getImportedMembers" ordered="false" upperBound="-1" eType="#//PackageableElement">
165
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
166
        <details key="documentation" value="The importedMember property is derived from the ElementImports and the PackageImports. References the PackageableElements that are members of this Namespace as a result of either PackageImports or ElementImports.&#xD;&#xA;result = self.importMembers(self.elementImport.importedElement.asSet()->union(self.packageImport.importedPackage->collect(p | p.visibleMembers())))"/>
167
      </eAnnotations>
168
      <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
169
        <details key="constraints" value="spec"/>
170
      </eAnnotations>
171
    </eOperations>
172
    <eOperations name="getNamesOfMember" ordered="false" upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
173
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
174
        <details key="documentation" value="The query getNamesOfMember() is overridden to take account of importing. It gives back the set of names that an element would have in an importing namespace, either because it is owned, or if not owned then imported individually, or if not individually then from a package.&#xD;&#xA;result = if self.ownedMember->includes(element)&#xA;then Set{}->include(element.name)&#xA;else let elementImports: ElementImport = self.elementImport->select(ei | ei.importedElement = element) in&#xA;  if elementImports->notEmpty()&#xA;  then elementImports->collect(el | el.getName())&#xA;  else self.packageImport->select(pi | pi.importedPackage.visibleMembers()->includes(element))->collect(pi | pi.importedPackage.getNamesOfMember(element))&#xA;  endif&#xA;endif"/>
175
      </eAnnotations>
176
      <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
177
        <details key="constraints" value="spec"/>
178
      </eAnnotations>
179
      <eParameters name="element" ordered="false" lowerBound="1" eType="#//NamedElement"/>
180
    </eOperations>
181
    <eOperations name="importMembers" ordered="false" upperBound="-1" eType="#//PackageableElement">
182
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
183
        <details key="documentation" value="The query importMembers() defines which of a set of PackageableElements are actually imported into the namespace. This excludes hidden ones, i.e., those which have names that conflict with names of owned members, and also excludes elements which would have the same name when imported.&#xD;&#xA;result = self.excludeCollisions(imps)->select(imp | self.ownedMember->forAll(mem | mem.imp.isDistinguishableFrom(mem, self)))"/>
184
      </eAnnotations>
185
      <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
186
        <details key="constraints" value="spec"/>
187
      </eAnnotations>
188
      <eParameters name="imps" ordered="false" upperBound="-1" eType="#//PackageableElement"/>
189
    </eOperations>
190
    <eOperations name="excludeCollisions" ordered="false" upperBound="-1" eType="#//PackageableElement">
191
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
192
        <details key="documentation" value="The query excludeCollisions() excludes from a set of PackageableElements any that would not be distinguishable from each other in this namespace.&#xD;&#xA;result = imps->reject(imp1 | imps.exists(imp2 | not imp1.isDistinguishableFrom(imp2, self)))"/>
193
      </eAnnotations>
194
      <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
195
        <details key="constraints" value="spec"/>
196
      </eAnnotations>
197
      <eParameters name="imps" ordered="false" upperBound="-1" eType="#//PackageableElement"/>
198
    </eOperations>
199
    <eOperations name="membersAreDistinguishable" ordered="false" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
200
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
201
        <details key="documentation" value="The Boolean query membersAreDistinguishable() determines whether all of the namespace's members are distinguishable within it.&#xD;&#xA;result = self.member->forAll( memb |&#xA;&#x9;self.member->excluding(memb)->forAll(other |&#xA;&#x9;&#x9;memb.isDistinguishableFrom(other, self)))"/>
202
      </eAnnotations>
203
      <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
204
        <details key="constraints" value="spec"/>
205
      </eAnnotations>
206
    </eOperations>
207
    <eStructuralFeatures xsi:type="ecore:EReference" name="ownedRule" ordered="false"
208
        upperBound="-1" eType="#//Constraint" containment="true" eOpposite="#//Constraint/namespace">
209
      <eAnnotations source="subsets" references="#//Namespace/%duplicates%/ownedMember"/>
210
    </eStructuralFeatures>
211
    <eStructuralFeatures xsi:type="ecore:EReference" name="importedMember" ordered="false"
212
        upperBound="-1" eType="#//PackageableElement" changeable="false" volatile="true"
213
        transient="true" derived="true">
214
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
215
        <details key="documentation" value="References the PackageableElements that are members of this Namespace as a result of either PackageImports or ElementImports. Subsets Namespace::member."/>
216
      </eAnnotations>
217
      <eAnnotations source="subsets" references="#//Namespace/member"/>
218
    </eStructuralFeatures>
219
    <eStructuralFeatures xsi:type="ecore:EReference" name="elementImport" ordered="false"
220
        upperBound="-1" eType="#//ElementImport" containment="true" eOpposite="#//ElementImport/importingNamespace">
221
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
222
        <details key="documentation" value="References the ElementImports owned by the Namespace. Subsets Element::ownedElement."/>
223
      </eAnnotations>
224
      <eAnnotations source="subsets" references="#//Element/ownedElement"/>
225
    </eStructuralFeatures>
226
    <eStructuralFeatures xsi:type="ecore:EReference" name="packageImport" ordered="false"
227
        upperBound="-1" eType="#//PackageImport" containment="true" eOpposite="#//PackageImport/importingNamespace">
228
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
229
        <details key="documentation" value="References the PackageImports owned by the Namespace. Subsets Element::ownedElement."/>
230
      </eAnnotations>
231
      <eAnnotations source="subsets" references="#//Element/ownedElement"/>
232
    </eStructuralFeatures>
233
    <eStructuralFeatures xsi:type="ecore:EReference" name="member" ordered="false"
234
        upperBound="-1" eType="#//NamedElement" changeable="false" volatile="true"
235
        transient="true" derived="true">
236
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
237
        <details key="documentation" value="Redefines the corresponding property of Abstractions::Namespaces::Namespace."/>
238
      </eAnnotations>
239
      <eAnnotations source="union"/>
240
    </eStructuralFeatures>
241
  </eClassifiers>
242
  <eClassifiers xsi:type="ecore:EClass" name="NamedElement" abstract="true" eSuperTypes="#//Element">
243
    <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
244
      <details key="documentation" value="NamedElement has a visibility attribute.&#xD;&#xA;A named element represents elements with names."/>
245
    </eAnnotations>
246
    <eAnnotations source="duplicates">
247
      <contents xsi:type="ecore:EReference" name="namespace" ordered="false" eType="#//Namespace"
248
          changeable="false" volatile="true" transient="true" derived="true" eOpposite="#//Namespace/%duplicates%/ownedMember">
249
        <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
250
          <details key="documentation" value="Specifies the namespace that owns the NamedElement. Subsets Element::owner. This is a derived union."/>
251
        </eAnnotations>
252
        <eAnnotations source="subsets" references="#//Element/owner"/>
253
        <eAnnotations source="union"/>
254
      </contents>
255
    </eAnnotations>
256
    <eOperations name="no_name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
257
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
258
        <details key="documentation" value="If there is no name, or one of the containing namespaces has no name, there is no qualified name.&#xD;&#xA;(self.name->isEmpty() or self.allNamespaces()->select(ns | ns.name->isEmpty())->notEmpty())&#xA;&#xA;  implies self.qualifiedName->isEmpty()"/>
259
      </eAnnotations>
260
      <eParameters name="diagnostics" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDiagnosticChain"/>
261
      <eParameters name="context" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EMap"/>
262
    </eOperations>
263
    <eOperations name="qualified_name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
264
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
265
        <details key="documentation" value="When there is a name, and all of the containing namespaces have a name, the qualified name is constructed from the names of the containing namespaces.&#xD;&#xA;(self.name->notEmpty() and self.allNamespaces()->select(ns | ns.name->isEmpty())->isEmpty()) implies&#xA;  self.qualifiedName = self.allNamespaces()->iterate( ns : Namespace; result: String = self.name | ns.name->union(self.separator())->union(result))"/>
266
      </eAnnotations>
267
      <eParameters name="diagnostics" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDiagnosticChain"/>
268
      <eParameters name="context" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EMap"/>
269
    </eOperations>
270
    <eOperations name="visibility_needs_ownership" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
271
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
272
        <details key="documentation" value="If a NamedElement is not owned by a Namespace, it does not have a visibility.&#xD;&#xA;namespace->isEmpty() implies visibility->isEmpty()"/>
273
      </eAnnotations>
274
      <eParameters name="diagnostics" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDiagnosticChain"/>
275
      <eParameters name="context" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EMap"/>
276
    </eOperations>
277
    <eOperations name="allNamespaces" upperBound="-1" eType="#//Namespace">
278
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
279
        <details key="documentation" value="The query allNamespaces() gives the sequence of namespaces in which the NamedElement is nested, working outwards.&#xD;&#xA;result = if self.namespace->isEmpty()&#xA;then Sequence{}&#xA;else self.namespace.allNamespaces()->prepend(self.namespace)&#xA;endif"/>
280
      </eAnnotations>
281
      <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
282
        <details key="constraints" value="spec"/>
283
      </eAnnotations>
284
    </eOperations>
285
    <eOperations name="isDistinguishableFrom" ordered="false" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
286
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
287
        <details key="documentation" value="The query isDistinguishableFrom() determines whether two NamedElements may logically co-exist within a Namespace. By default, two named elements are distinguishable if (a) they have unrelated types or (b) they have related types but different names.&#xD;&#xA;result = if self.oclIsKindOf(n.oclType) or n.oclIsKindOf(self.oclType)&#xA;then ns.getNamesOfMember(self)->intersection(ns.getNamesOfMember(n))->isEmpty()&#xA;else true&#xA;endif"/>
288
      </eAnnotations>
289
      <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
290
        <details key="constraints" value="spec"/>
291
      </eAnnotations>
292
      <eParameters name="n" ordered="false" lowerBound="1" eType="#//NamedElement"/>
293
      <eParameters name="ns" ordered="false" lowerBound="1" eType="#//Namespace"/>
294
    </eOperations>
295
    <eOperations name="separator" ordered="false" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
296
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
297
        <details key="documentation" value="The query separator() gives the string that is used to separate names when constructing a qualified name.&#xD;&#xA;result = '::'"/>
298
      </eAnnotations>
299
      <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
300
        <details key="constraints" value="spec"/>
301
      </eAnnotations>
302
    </eOperations>
303
    <eOperations name="qualifiedName" ordered="false" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
304
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
305
        <details key="documentation" value="When there is a name, and all of the containing namespaces have a name, the qualified name is constructed from the names of the containing namespaces.&#xD;&#xA;result = if self.name->notEmpty() and self.allNamespaces()->select(ns | ns.name->isEmpty())->isEmpty()&#xA;then &#xA;    self.allNamespaces()->iterate( ns : Namespace; result: String = self.name | ns.name->union(self.separator())->union(result))&#xA;else&#xA;    Set{}&#xA;endif"/>
306
      </eAnnotations>
307
      <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
308
        <details key="constraints" value="spec"/>
309
      </eAnnotations>
310
    </eOperations>
311
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="visibility" ordered="false"
312
        eType="#//VisibilityKind">
313
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
314
        <details key="documentation" value="Determines the visibility of the NamedElement within different Namespaces within the overall model."/>
315
      </eAnnotations>
316
    </eStructuralFeatures>
317
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" ordered="false" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"
318
        iD="true">
319
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
320
        <details key="documentation" value="The name of the NamedElement."/>
321
      </eAnnotations>
322
    </eStructuralFeatures>
323
  </eClassifiers>
324
  <eClassifiers xsi:type="ecore:EClass" name="Element" abstract="true">
325
    <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
326
      <details key="documentation" value="An element can own comments.&#xD;&#xA;Element is an abstract metaclass with no superclass. It is used as the common superclass for all metaclasses in the infrastructure library."/>
327
    </eAnnotations>
328
    <eOperations name="not_own_self" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
329
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
330
        <details key="documentation" value="An element may not directly or indirectly own itself.&#xD;&#xA;not self.allOwnedElements()->includes(self)"/>
331
      </eAnnotations>
332
      <eParameters name="diagnostics" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDiagnosticChain"/>
333
      <eParameters name="context" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EMap"/>
334
    </eOperations>
335
    <eOperations name="has_owner" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
336
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
337
        <details key="documentation" value="Elements that must be owned must have an owner.&#xD;&#xA;self.mustBeOwned() implies owner->notEmpty()"/>
338
      </eAnnotations>
339
      <eParameters name="diagnostics" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDiagnosticChain"/>
340
      <eParameters name="context" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EMap"/>
341
    </eOperations>
342
    <eOperations name="allOwnedElements" ordered="false" upperBound="-1" eType="#//Element">
343
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
344
        <details key="documentation" value="The query allOwnedElements() gives all of the direct and indirect owned elements of an element.&#xD;&#xA;result = ownedElement->union(ownedElement->collect(e | e.allOwnedElements()))"/>
345
      </eAnnotations>
346
      <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
347
        <details key="constraints" value="spec"/>
348
      </eAnnotations>
349
    </eOperations>
350
    <eOperations name="mustBeOwned" ordered="false" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
351
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
352
        <details key="documentation" value="The query mustBeOwned() indicates whether elements of this type must have an owner. Subclasses of Element that do not require an owner must override this operation.&#xD;&#xA;result = true"/>
353
      </eAnnotations>
354
      <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
355
        <details key="constraints" value="spec"/>
356
      </eAnnotations>
357
    </eOperations>
358
    <eOperations name="getMetaClass" ordered="false" lowerBound="1" eType="#//Class"/>
359
    <eOperations name="container" ordered="false" lowerBound="1" eType="#//Element"/>
360
    <eOperations name="equals" ordered="false" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
361
      <eParameters name="otherElement" ordered="false" lowerBound="1" eType="#//Object"/>
362
    </eOperations>
363
    <eOperations name="get" ordered="false" lowerBound="1" eType="#//Object">
364
      <eParameters name="property" ordered="false" lowerBound="1" eType="#//Property"/>
365
    </eOperations>
366
    <eOperations name="set" ordered="false" lowerBound="1" eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EObject">
367
      <eParameters name="property" ordered="false" lowerBound="1" eType="#//Property"/>
368
      <eParameters name="value" ordered="false" lowerBound="1" eType="#//Object"/>
369
    </eOperations>
370
    <eOperations name="isSet" ordered="false" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
371
      <eParameters name="property" ordered="false" lowerBound="1" eType="#//Property"/>
372
    </eOperations>
373
    <eOperations name="unset" ordered="false" lowerBound="1" eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EObject">
374
      <eParameters name="property" ordered="false" lowerBound="1" eType="#//Property"/>
375
    </eOperations>
376
    <eOperations name="delete" ordered="false" lowerBound="1" eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
377
    <eOperations name="invoke" ordered="false" lowerBound="1" eType="#//Object">
378
      <eParameters name="op" ordered="false" lowerBound="1" eType="#//Operation"/>
379
      <eParameters name="arguments" ordered="false" lowerBound="1" eType="#//Argument"/>
380
    </eOperations>
381
    <eOperations name="isInstanceOfType" ordered="false" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
382
      <eParameters name="type" ordered="false" lowerBound="1" eType="#//Class"/>
383
      <eParameters name="includeSubtypes" ordered="false" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
384
    </eOperations>
385
    <eOperations name="verify" ordered="false" lowerBound="1" eType="#//ReflectiveCollection">
386
      <eParameters name="deepVerify" ordered="false" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
387
    </eOperations>
388
    <eStructuralFeatures xsi:type="ecore:EReference" name="ownedElement" ordered="false"
389
        upperBound="-1" eType="#//Element" changeable="false" volatile="true" transient="true"
390
        derived="true" eOpposite="#//Element/owner">
391
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
392
        <details key="documentation" value="The Elements owned by this element."/>
393
      </eAnnotations>
394
      <eAnnotations source="union"/>
395
    </eStructuralFeatures>
396
    <eStructuralFeatures xsi:type="ecore:EReference" name="owner" ordered="false"
397
        eType="#//Element" changeable="false" volatile="true" transient="true" derived="true"
398
        eOpposite="#//Element/ownedElement">
399
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
400
        <details key="documentation" value="The Element that owns this element."/>
401
      </eAnnotations>
402
      <eAnnotations source="union"/>
403
    </eStructuralFeatures>
404
    <eStructuralFeatures xsi:type="ecore:EReference" name="ownedComment" ordered="false"
405
        upperBound="-1" eType="#//Comment" containment="true">
406
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
407
        <details key="documentation" value="The Comments owned by this element. Subsets Element::ownedElement.&#xD;&#xA;The Comments owned by this element."/>
408
      </eAnnotations>
409
      <eAnnotations source="subsets" references="#//Element/ownedElement"/>
410
    </eStructuralFeatures>
411
  </eClassifiers>
412
  <eClassifiers xsi:type="ecore:EClass" name="Comment" eSuperTypes="#//Element">
413
    <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
414
      <details key="documentation" value="A comment is a textual annotation that can be attached to a set of elements.&#xD;&#xA;A comment gives the ability to attach various remarks to elements. A comment carries no semantic force, but may contain information that is useful to a modeler. A comment may be owned by any element."/>
415
    </eAnnotations>
416
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="body" ordered="false" lowerBound="1"
417
        eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
418
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
419
        <details key="documentation" value="Specifies a string that is the comment."/>
420
      </eAnnotations>
421
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
422
        <details key="kind" value="element"/>
423
      </eAnnotations>
424
    </eStructuralFeatures>
425
    <eStructuralFeatures xsi:type="ecore:EReference" name="annotatedElement" ordered="false"
426
        upperBound="-1" eType="#//Element">
427
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
428
        <details key="documentation" value="References the Element(s) being commented."/>
429
      </eAnnotations>
430
    </eStructuralFeatures>
431
  </eClassifiers>
432
  <eClassifiers xsi:type="ecore:EClass" name="Class" eSuperTypes="#//Classifier">
433
    <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
434
      <details key="documentation" value="Class is a kind of classifier whose features are attributes and operations. Attributes of a class are represented by instances of Property that are owned by the class. Some of these attributes may represent the navigable ends of binary associations.&#xD;&#xA;A class is a type that has objects as its instances."/>
435
    </eAnnotations>
436
    <eAnnotations source="duplicates">
437
      <contents xsi:type="ecore:EOperation" name="inherit" ordered="false" upperBound="-1"
438
          eType="#//NamedElement">
439
        <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
440
          <details key="documentation" value="The inherit operation is overridden to exclude redefined properties.&#xD;&#xA;result = inhs->excluding(inh | ownedMember->select(oclIsKindOf(RedefinableElement))->select(redefinedElement->includes(inh)))"/>
441
        </eAnnotations>
442
        <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
443
          <details key="constraints" value="spec"/>
444
        </eAnnotations>
445
        <eAnnotations source="redefines" references="#//Classifier/inherit"/>
446
        <eParameters name="inhs" ordered="false" upperBound="-1" eType="#//NamedElement"/>
447
      </contents>
448
    </eAnnotations>
449
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="isAbstract" ordered="false"
450
        lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"
451
        defaultValueLiteral="false">
452
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
453
        <details key="documentation" value="True when a class is abstract. The default value is false."/>
454
      </eAnnotations>
455
    </eStructuralFeatures>
456
    <eStructuralFeatures xsi:type="ecore:EReference" name="ownedAttribute" upperBound="-1"
457
        eType="#//Property" containment="true" eOpposite="#//Property/class">
458
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
459
        <details key="documentation" value="The attributes (i.e. the properties) owned by the class. This is an ordered association. Subsets Classifier::attribute and Namespace::ownedMember.&#xD;&#xA;The attributes owned by a class. These do not include the inherited attributes. Attributes are represented by instances of Property."/>
460
      </eAnnotations>
461
      <eAnnotations source="subsets" references="#//Classifier/attribute #//Namespace/%duplicates%/ownedMember"/>
462
    </eStructuralFeatures>
463
    <eStructuralFeatures xsi:type="ecore:EReference" name="ownedOperation" upperBound="-1"
464
        eType="#//Operation" containment="true" eOpposite="#//Operation/class">
465
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
466
        <details key="documentation" value="The operations owned by the class. This is an ordered association. Subsets Classifier::feature and Namespace::ownedMember.&#xD;&#xA;The operations owned by a class. These do not include the inherited operations."/>
467
      </eAnnotations>
468
      <eAnnotations source="subsets" references="#//Classifier/feature #//Namespace/%duplicates%/ownedMember"/>
469
    </eStructuralFeatures>
470
    <eStructuralFeatures xsi:type="ecore:EReference" name="superClass" ordered="false"
471
        upperBound="-1" eType="#//Class">
472
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
473
        <details key="documentation" value="This gives the superclasses of a class. It redefines Classifier::general.&#xD;&#xA;The immediate superclasses of a class, from which the class inherits."/>
474
      </eAnnotations>
475
      <eAnnotations source="redefines" references="#//Classifier/general"/>
476
    </eStructuralFeatures>
477
  </eClassifiers>
478
  <eClassifiers xsi:type="ecore:EClass" name="Property" eSuperTypes="#//StructuralFeature #//MultiplicityElement">
479
    <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
480
      <details key="documentation" value="Property represents a declared state of one or more instances in terms of a named relationship to a value or values. When a property is an attribute of a classifier, the value or values are related to the instance of the classifier by being held in slots of the instance. When a property is an association end, the value or values are related to the instance or instances at the other end(s) of the association.&#xA;&#xA;&#xA;&#xA;Property is indirectly a subclass of Constructs::TypedElement. The range of valid values represented by the property can be controlled by setting the property's type.&#xD;&#xA;A property is a typed element that represents an attribute of a class."/>
481
    </eAnnotations>
482
    <eAnnotations source="duplicates">
483
      <contents xsi:type="ecore:EOperation" name="isConsistentWith" ordered="false"
484
          lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
485
        <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
486
          <details key="documentation" value="The query isConsistentWith() specifies, for any two Properties in a context in which redefinition is possible, whether redefinition would be logically consistent. A redefining property is consistent with a redefined property if the type of the redefining property conforms to the type of the redefined property, the multiplicity of the redefining property (if.specified) is contained in the multiplicity of the redefined property, and the redefining property is derived if the redefined property is derived.&#xD;&#xA;redefinee.isRedefinitionContextValid(self)&#xD;&#xA;result = (redefinee.oclIsKindOf(Property) and &#xA;    let prop: Property = redefinee.oclAsType(Property) in&#xA;        type.conformsTo(prop.type) and&#xA;        (lowerBound()->notEmpty and prop.lowerBound()->notEmpty() implies lowerBound() >= prop.lowerBound())&#xA;    and&#xA;        (upperBound()->notEmpty and prop.upperBound()->notEmpty() implies upperBound() &lt;= prop.upperBound())&#xA;    and&#xA;        (prop.isDerived implies isDerived))"/>
487
        </eAnnotations>
488
        <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
489
          <details key="constraints" value="spec"/>
490
        </eAnnotations>
491
        <eAnnotations source="redefines" references="#//RedefinableElement/isConsistentWith"/>
492
        <eParameters name="redefinee" ordered="false" lowerBound="1" eType="#//RedefinableElement"/>
493
      </contents>
494
    </eAnnotations>
495
    <eOperations name="multiplicity_of_composite" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
496
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
497
        <details key="documentation" value="A multiplicity of a composite aggregation must not have an upper bound greater than 1.&#xD;&#xA;isComposite implies (upperBound()->isEmpty() or upperBound() &lt;= 1)"/>
498
      </eAnnotations>
499
      <eParameters name="diagnostics" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDiagnosticChain"/>
500
      <eParameters name="context" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EMap"/>
501
    </eOperations>
502
    <eOperations name="subsetting_context" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
503
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
504
        <details key="documentation" value="Subsetting may only occur when the context of the subsetting property conforms to the context of the subsetted property.&#xD;&#xA;self.subsettedProperty->notEmpty() implies&#xA;  (self.subsettingContext()->notEmpty() and self.subsettingContext()->forAll (sc |&#xA;    self.subsettedProperty->forAll(sp |&#xA;      sp.subsettingContext()->exists(c | sc.conformsTo(c)))))"/>
505
      </eAnnotations>
506
      <eParameters name="diagnostics" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDiagnosticChain"/>
507
      <eParameters name="context" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EMap"/>
508
    </eOperations>
509
    <eOperations name="navigable_property_redefinition" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
510
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
511
        <details key="documentation" value="A navigable property can only be redefined or subsetted by a navigable property.&#xD;&#xA;(self.subsettedProperty->exists(sp | sp.isNavigable()) implies self.isNavigable())&#xA;  and (self.redefinedProperty->exists(rp | rp.isNavigable()) implies self.isNavigable())"/>
512
      </eAnnotations>
513
      <eParameters name="diagnostics" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDiagnosticChain"/>
514
      <eParameters name="context" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EMap"/>
515
    </eOperations>
516
    <eOperations name="subsetting_rules" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
517
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
518
        <details key="documentation" value="A subsetting property may strengthen the type of the subsetted property, and its upper bound may be less.&#xD;&#xA;self.subsettedProperty->forAll(sp |&#xA;  self.type.conformsTo(sp.type) and&#xA;    ((self.upperBound()->notEmpty() and sp.upperBound()->notEmpty()) implies&#xA;      self.upperBound()&lt;=sp.upperBound() ))"/>
519
      </eAnnotations>
520
      <eParameters name="diagnostics" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDiagnosticChain"/>
521
      <eParameters name="context" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EMap"/>
522
    </eOperations>
523
    <eOperations name="navigable_readonly" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
524
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
525
        <details key="documentation" value="Only a navigable property can be marked as readOnly.&#xD;&#xA;isReadOnly implies isNavigable()"/>
526
      </eAnnotations>
527
      <eParameters name="diagnostics" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDiagnosticChain"/>
528
      <eParameters name="context" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EMap"/>
529
    </eOperations>
530
    <eOperations name="derived_union_is_derived" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
531
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
532
        <details key="documentation" value="A derived union is derived.&#xD;&#xA;isDerivedUnion implies isDerived"/>
533
      </eAnnotations>
534
      <eParameters name="diagnostics" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDiagnosticChain"/>
535
      <eParameters name="context" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EMap"/>
536
    </eOperations>
537
    <eOperations name="getOpposite" ordered="false" lowerBound="1" eType="#//Property">
538
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
539
        <details key="documentation" value="If this property is owned by a class, associated with a binary association, and the other end of the association is also owned by a class, then opposite gives the other end.&#xD;&#xA;result = if owningAssociation->notEmpty() and association.memberEnd->size() = 2 then &#xA;&#x9;&#x9;let otherEnd = (association.memberEnd - self)->any() in &#xA;&#x9;&#x9;&#x9;if otherEnd.owningAssociation->notEmpty then otherEnd else Set{} endif&#xA;&#x9;else Set {}&#xA;&#x9;endif"/>
540
      </eAnnotations>
541
      <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
542
        <details key="constraints" value="spec"/>
543
      </eAnnotations>
544
    </eOperations>
545
    <eOperations name="subsettingContext" ordered="false" upperBound="-1" eType="#//Classifier">
546
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
547
        <details key="documentation" value="The query subsettingContext() gives the context for subsetting a property. It consists, in the case of an attribute, of the corresponding classifier, and in the case of an association end, all of the classifiers at the other ends.&#xD;&#xA;result = if association->notEmpty()&#xA;then association.endType-type &#xA;else if classifier->notEmpty then Set{classifier} else Set{} endif&#xA;endif"/>
548
      </eAnnotations>
549
      <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
550
        <details key="constraints" value="spec"/>
551
      </eAnnotations>
552
    </eOperations>
553
    <eOperations name="isNavigable" ordered="false" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
554
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
555
        <details key="documentation" value="The query isNavigable indicates whether it is possible to navigate across the property.&#xD;&#xA;result = not classifier->isEmpty() or&#xA;association.owningAssociation.navigableOwnedEnd->includes(self)"/>
556
      </eAnnotations>
557
      <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
558
        <details key="constraints" value="spec"/>
559
      </eAnnotations>
560
    </eOperations>
561
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="isDerivedUnion" ordered="false"
562
        lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"
563
        defaultValueLiteral="false">
564
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
565
        <details key="documentation" value="Specifies whether the property is derived as the union of all of the properties that are constrained to subset it. The default value is false."/>
566
      </eAnnotations>
567
    </eStructuralFeatures>
568
    <eStructuralFeatures xsi:type="ecore:EReference" name="owningAssociation" ordered="false"
569
        eType="#//Association" transient="true" eOpposite="#//Association/ownedEnd">
570
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
571
        <details key="documentation" value="References the owning association of this property, if any. Subsets Property::association, NamedElement::namespace, and Feature::featuringClassifier."/>
572
      </eAnnotations>
573
      <eAnnotations source="subsets" references="#//Property/association #//NamedElement/%duplicates%/namespace #//Feature/featuringClassifier"/>
574
    </eStructuralFeatures>
575
    <eStructuralFeatures xsi:type="ecore:EReference" name="association" ordered="false"
576
        eType="#//Association" eOpposite="#//Association/memberEnd">
577
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
578
        <details key="documentation" value="References the association of which this property is a member, if any."/>
579
      </eAnnotations>
580
    </eStructuralFeatures>
581
    <eStructuralFeatures xsi:type="ecore:EReference" name="redefinedProperty" ordered="false"
582
        upperBound="-1" eType="#//Property">
583
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
584
        <details key="documentation" value="References the properties that are redefined by this property. Subsets RedefinableElement::redefinedElement."/>
585
      </eAnnotations>
586
      <eAnnotations source="subsets" references="#//RedefinableElement/redefinedElement"/>
587
    </eStructuralFeatures>
588
    <eStructuralFeatures xsi:type="ecore:EReference" name="subsettedProperty" ordered="false"
589
        upperBound="-1" eType="#//Property">
590
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
591
        <details key="documentation" value="References the properties of which this property is constrained to be a subset."/>
592
      </eAnnotations>
593
    </eStructuralFeatures>
594
    <eStructuralFeatures xsi:type="ecore:EReference" name="datatype" ordered="false"
595
        eType="#//DataType" transient="true" eOpposite="#//DataType/ownedAttribute">
596
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
597
        <details key="documentation" value="The DataType that owns this Operation. Subsets NamedElement::namespace, Feature::featuringClassifier, and RedefinableElement::redefinitionContext."/>
598
      </eAnnotations>
599
      <eAnnotations source="subsets" references="#//NamedElement/%duplicates%/namespace #//Feature/featuringClassifier"/>
600
    </eStructuralFeatures>
601
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="isReadOnly" ordered="false"
602
        lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"
603
        defaultValueLiteral="false">
604
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
605
        <details key="documentation" value="This redefines the corresponding attribute in Basic::Property and Abstractions::StructuralFeature. The default value is false.&#xD;&#xA;If isReadOnly is true, the attribute may not be written to after initialization. The default value is false."/>
606
      </eAnnotations>
607
    </eStructuralFeatures>
608
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="default" ordered="false"
609
        eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
610
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
611
        <details key="documentation" value="Specifies a String that represents a value to be used when no argument is supplied for the Property.&#xD;&#xA;A string that is evaluated to give a default value for the attribute when an object of the owning class is instantiated."/>
612
      </eAnnotations>
613
    </eStructuralFeatures>
614
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="isComposite" ordered="false"
615
        lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"
616
        defaultValueLiteral="false">
617
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
618
        <details key="documentation" value="If isComposite is true, the object containing the attribute is a container for the object or value contained in the attribute. The default value is false."/>
619
      </eAnnotations>
620
    </eStructuralFeatures>
621
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="isDerived" ordered="false"
622
        lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"
623
        defaultValueLiteral="false">
624
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
625
        <details key="documentation" value="If isDerived is true, the value of the attribute is derived from information elsewhere. The default value is false."/>
626
      </eAnnotations>
627
    </eStructuralFeatures>
628
    <eStructuralFeatures xsi:type="ecore:EReference" name="opposite" ordered="false"
629
        eType="#//Property" volatile="true" transient="true" derived="true">
630
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
631
        <details key="documentation" value="In the case where the property is one navigable end of a binary association with both ends navigable, this gives the other end.&#xD;&#xA;Two attributes attr1 and attr2 of two objects o1 and o2 (which may be the same object) may be paired with each other so that o1.attr1 refers to o2 if and only if o2.attr2 refers to o1. In such a case attr1 is the opposite of attr2 and attr2 is the opposite of attr1."/>
632
      </eAnnotations>
633
    </eStructuralFeatures>
634
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="isID" ordered="false" lowerBound="1"
635
        eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
636
    <eStructuralFeatures xsi:type="ecore:EReference" name="class" ordered="false"
637
        eType="#//Class" transient="true" eOpposite="#//Class/ownedAttribute">
638
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
639
        <details key="documentation" value="The class that owns the property, and of which the property is an attribute."/>
640
      </eAnnotations>
641
      <eAnnotations source="subsets" references="#//NamedElement/%duplicates%/namespace #//Feature/featuringClassifier"/>
642
    </eStructuralFeatures>
643
  </eClassifiers>
644
  <eClassifiers xsi:type="ecore:EClass" name="StructuralFeature" abstract="true" eSuperTypes="#//Feature #//MultiplicityElement #//TypedElement">
645
    <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
646
      <details key="documentation" value="A structural feature is a typed feature of a classifier that specifies the structure of instances of the classifier. Structural feature is an abstract metaclass."/>
647
    </eAnnotations>
648
  </eClassifiers>
649
  <eClassifiers xsi:type="ecore:EClass" name="Feature" abstract="true" eSuperTypes="#//RedefinableElement">
650
    <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
651
      <details key="documentation" value="A feature declares a behavioral or structural characteristic of instances of classifiers. Feature is an abstract metaclass."/>
652
    </eAnnotations>
653
    <eStructuralFeatures xsi:type="ecore:EReference" name="featuringClassifier" ordered="false"
654
        upperBound="-1" eType="#//Classifier" changeable="false" volatile="true" transient="true"
655
        derived="true" eOpposite="#//Classifier/feature">
656
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
657
        <details key="documentation" value="Redefines the corresponding association in Abstractions. This is a derived union."/>
658
      </eAnnotations>
659
      <eAnnotations source="union"/>
660
    </eStructuralFeatures>
661
  </eClassifiers>
662
  <eClassifiers xsi:type="ecore:EClass" name="RedefinableElement" abstract="true"
663
      eSuperTypes="#//NamedElement">
664
    <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
665
      <details key="documentation" value="A redefinable element is an element that, when defined in the context of a classifier, can be redefined more specifically or differently in the context of another classifier that specializes (directly or indirectly) the context classifier. "/>
666
    </eAnnotations>
667
    <eOperations name="redefinition_context_valid" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
668
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
669
        <details key="documentation" value="At least one of the redefinition contexts of the redefining element must be a specialization of at least one of the redefinition contexts for each redefined element.&#xD;&#xA;self.redefinedElement->forAll(e | self.isRedefinitionContextValid(e))"/>
670
      </eAnnotations>
671
      <eParameters name="diagnostics" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDiagnosticChain"/>
672
      <eParameters name="context" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EMap"/>
673
    </eOperations>
674
    <eOperations name="redefinition_consistent" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
675
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
676
        <details key="documentation" value="A redefining element must be consistent with each redefined element.&#xD;&#xA;self.redefinedElement->forAll(re | re.isConsistentWith(self))"/>
677
      </eAnnotations>
678
      <eParameters name="diagnostics" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDiagnosticChain"/>
679
      <eParameters name="context" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EMap"/>
680
    </eOperations>
681
    <eOperations name="isConsistentWith" ordered="false" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
682
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
683
        <details key="documentation" value="The query isConsistentWith() specifies, for any two RedefinableElements in a context in which redefinition is possible, whether redefinition would be logically consistent. By default, this is false; this operation must be overridden for subclasses of RedefinableElement to define the consistency conditions.&#xD;&#xA;result = false"/>
684
      </eAnnotations>
685
      <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
686
        <details key="constraints" value="spec"/>
687
      </eAnnotations>
688
      <eParameters name="redefinee" ordered="false" lowerBound="1" eType="#//RedefinableElement"/>
689
    </eOperations>
690
    <eOperations name="isRedefinitionContextValid" ordered="false" lowerBound="1"
691
        eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
692
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
693
        <details key="documentation" value="The query isRedefinitionContextValid() specifies whether the redefinition contexts of this RedefinableElement are properly related to the redefinition contexts of the specified RedefinableElement to allow this element to redefine the other. By default at least one of the redefinition contexts of this element must be a specialization of at least one of the redefinition contexts of the specified element.&#xD;&#xA;result = self.redefinitionContext->exists(c | redefinable.redefinitionContext->exists(r | c.allParents()->includes(r)))"/>
694
      </eAnnotations>
695
      <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
696
        <details key="constraints" value="spec"/>
697
      </eAnnotations>
698
      <eParameters name="redefinable" ordered="false" lowerBound="1" eType="#//RedefinableElement"/>
699
    </eOperations>
700
    <eStructuralFeatures xsi:type="ecore:EReference" name="redefinitionContext" ordered="false"
701
        upperBound="-1" eType="#//Classifier" changeable="false" volatile="true" transient="true"
702
        derived="true">
703
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
704
        <details key="documentation" value="References the contexts that this element may be redefined from. This is a derived union."/>
705
      </eAnnotations>
706
      <eAnnotations source="union"/>
707
    </eStructuralFeatures>
708
    <eStructuralFeatures xsi:type="ecore:EReference" name="redefinedElement" ordered="false"
709
        upperBound="-1" eType="#//RedefinableElement" changeable="false" volatile="true"
710
        transient="true" derived="true">
711
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
712
        <details key="documentation" value="The redefinable element that is being redefined by this element. This is a derived union."/>
713
      </eAnnotations>
714
      <eAnnotations source="union"/>
715
    </eStructuralFeatures>
716
  </eClassifiers>
717
  <eClassifiers xsi:type="ecore:EClass" name="TypedElement" abstract="true" eSuperTypes="#//NamedElement">
718
    <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
719
      <details key="documentation" value="A typed element is an element that has a type that serves as a constraint on the range of values the element can represent. Typed element is an abstract metaclass.&#xD;&#xA;A typed element is a kind of named element that represents elements with types."/>
720
    </eAnnotations>
721
    <eStructuralFeatures xsi:type="ecore:EReference" name="type" ordered="false" eType="#//Type">
722
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
723
        <details key="documentation" value="Redefines the corresponding property from Basic to derive this information from the return result for this Operation.&#xD;&#xA;The type of the TypedElement."/>
724
      </eAnnotations>
725
    </eStructuralFeatures>
726
  </eClassifiers>
727
  <eClassifiers xsi:type="ecore:EClass" name="Type" abstract="true" eSuperTypes="#//PackageableElement">
728
    <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
729
      <details key="documentation" value="A type serves as a constraint on the range of values represented by a typed element. Type is an abstract metaclass.&#xD;&#xA;A type is a named element that is used as the type for a typed element. A type can be contained in a package."/>
730
    </eAnnotations>
731
    <eOperations name="conformsTo" ordered="false" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
732
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
733
        <details key="documentation" value="The query conformsTo() gives true for a type that conforms to another. By default, two types do not conform to each other. This query is intended to be redefined for specific conformance situations.&#xD;&#xA;result = false"/>
734
      </eAnnotations>
735
      <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
736
        <details key="constraints" value="spec"/>
737
      </eAnnotations>
738
      <eParameters name="other" ordered="false" lowerBound="1" eType="#//Type"/>
739
    </eOperations>
740
    <eOperations name="isInstance" ordered="false" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
741
      <eParameters name="object" ordered="false" lowerBound="1" eType="#//Object"/>
742
    </eOperations>
743
    <eStructuralFeatures xsi:type="ecore:EReference" name="package" ordered="false"
744
        eType="#//Package" volatile="true" transient="true" derived="true" eOpposite="#//Package/ownedType">
745
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
746
        <details key="documentation" value="References the owning package of a package. Subsets NamedElement::namespace and redefines Basic::Package::nestingPackage.&#xD;&#xA;Specifies the owning package of this classifier, if any."/>
747
      </eAnnotations>
748
      <eAnnotations source="subsets" references="#//NamedElement/%duplicates%/namespace"/>
749
    </eStructuralFeatures>
750
  </eClassifiers>
751
  <eClassifiers xsi:type="ecore:EClass" name="PackageableElement" abstract="true"
752
      eSuperTypes="#//NamedElement">
753
    <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
754
      <details key="documentation" value="A packageable element indicates a named element that may be owned directly by a package."/>
755
    </eAnnotations>
756
  </eClassifiers>
757
  <eClassifiers xsi:type="ecore:EClass" name="Package" eSuperTypes="#//Namespace #//PackageableElement">
758
    <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
759
      <details key="documentation" value="A package is a namespace for its members, and may contain other packages. Only packageable elements can be owned members of a package. By virtue of being a namespace, a package can import either individual members of other packages, or all the members of other packages. In addition a package can be merged with other packages.&#xD;&#xA;A package is a container for types and other packages."/>
760
    </eAnnotations>
761
    <eAnnotations source="duplicates">
762
      <contents xsi:type="ecore:EOperation" name="mustBeOwned" ordered="false" lowerBound="1"
763
          eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
764
        <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
765
          <details key="documentation" value="The query mustBeOwned() indicates whether elements of this type must have an owner.&#xD;&#xA;result = false"/>
766
        </eAnnotations>
767
        <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
768
          <details key="constraints" value="spec"/>
769
        </eAnnotations>
770
        <eAnnotations source="redefines" references="#//Element/mustBeOwned"/>
771
      </contents>
772
    </eAnnotations>
773
    <eOperations name="elements_public_or_private" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
774
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
775
        <details key="documentation" value="If an element that is owned by a package has visibility, it is public or private.&#xD;&#xA;self.ownedElements->forAll(e | e.visibility->notEmpty() implies e.visbility = #public or e.visibility = #private)"/>
776
      </eAnnotations>
777
      <eParameters name="diagnostics" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDiagnosticChain"/>
778
      <eParameters name="context" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EMap"/>
779
    </eOperations>
780
    <eOperations name="visibleMembers" ordered="false" upperBound="-1" eType="#//PackageableElement">
781
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
782
        <details key="documentation" value="The query visibleMembers() defines which members of a Package can be accessed outside it.&#xD;&#xA;result = member->select( m | self.makesVisible(m))"/>
783
      </eAnnotations>
784
      <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
785
        <details key="constraints" value="spec"/>
786
      </eAnnotations>
787
    </eOperations>
788
    <eOperations name="makesVisible" ordered="false" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
789
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
790
        <details key="documentation" value="The query makesVisible() defines whether a Package makes an element visible outside itself. Elements with no visibility and elements with public visibility are made visible.&#xD;&#xA;self.member->includes(el)&#xD;&#xA;result = (ownedMember->includes(el)) or&#xA;   (elementImport->&#xA;      select(ei|ei.visibility = #public)->&#xA;         collect(ei|ei.importedElement)->includes(el)) or&#xA;   (packageImport->&#xA;      select(pi|pi.visibility = #public)->&#xA;        collect(pi|&#xA;           pi.importedPackage.member->includes(el))->notEmpty())"/>
791
      </eAnnotations>
792
      <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
793
        <details key="constraints" value="spec"/>
794
      </eAnnotations>
795
      <eParameters name="el" ordered="false" lowerBound="1" eType="#//NamedElement"/>
796
    </eOperations>
797
    <eStructuralFeatures xsi:type="ecore:EReference" name="ownedMember" ordered="false"
798
        upperBound="-1" eType="#//PackageableElement" containment="true">
799
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
800
        <details key="documentation" value="Specifies the members that are owned by this Package. Redefines Namespace::ownedMember."/>
801
      </eAnnotations>
802
      <eAnnotations source="redefines" references="#//Namespace/%duplicates%/ownedMember"/>
803
    </eStructuralFeatures>
804
    <eStructuralFeatures xsi:type="ecore:EReference" name="packageMerge" ordered="false"
805
        upperBound="-1" eType="#//PackageMerge" containment="true" eOpposite="#//PackageMerge/receivingPackage">
806
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
807
        <details key="documentation" value="References the PackageMerges that are owned by this Package. Subsets Element::ownedElement."/>
808
      </eAnnotations>
809
      <eAnnotations source="subsets" references="#//Element/ownedElement"/>
810
    </eStructuralFeatures>
811
    <eStructuralFeatures xsi:type="ecore:EReference" name="nestedPackage" ordered="false"
812
        upperBound="-1" eType="#//Package" volatile="true" transient="true" derived="true"
813
        resolveProxies="false" eOpposite="#//Package/nestingPackage">
814
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
815
        <details key="documentation" value="References the owned members that are Packages. Subsets Package::ownedMember and redefines Basic::Package::nestedPackage.&#xD;&#xA;The set of contained packages."/>
816
      </eAnnotations>
817
      <eAnnotations source="subsets" references="#//Package/ownedMember"/>
818
    </eStructuralFeatures>
819
    <eStructuralFeatures xsi:type="ecore:EReference" name="nestingPackage" ordered="false"
820
        eType="#//Package" volatile="true" transient="true" derived="true" eOpposite="#//Package/nestedPackage">
821
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
822
        <details key="documentation" value="References the owning package of a package. Subsets NamedElement::namespace and redefines Basic::Package::nestingPackage.&#xD;&#xA;The containing package."/>
823
      </eAnnotations>
824
      <eAnnotations source="subsets" references="#//NamedElement/%duplicates%/namespace"/>
825
    </eStructuralFeatures>
826
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="uRI" ordered="false" lowerBound="1"
827
        eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
828
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
829
        <details key="name" value="uri"/>
830
        <details key="kind" value="attribute"/>
831
      </eAnnotations>
832
    </eStructuralFeatures>
833
    <eStructuralFeatures xsi:type="ecore:EReference" name="ownedType" ordered="false"
834
        upperBound="-1" eType="#//Type" volatile="true" transient="true" derived="true"
835
        resolveProxies="false" eOpposite="#//Type/package">
836
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
837
        <details key="documentation" value="References the owned members that are Types. Subsets Package::ownedMember and redefines Basic::Package::ownedType.&#xD;&#xA;The set of contained types."/>
838
      </eAnnotations>
839
      <eAnnotations source="subsets" references="#//Package/ownedMember"/>
840
    </eStructuralFeatures>
841
  </eClassifiers>
842
  <eClassifiers xsi:type="ecore:EClass" name="PackageMerge" eSuperTypes="#//DirectedRelationship">
843
    <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
844
      <details key="documentation" value="A package merge is a directed relationship between two packages, that indicates that the contents of the two packages are to be combined. It is very similar to Generalization in the sense that the source element conceptually adds the characteristics of the target element to its own characteristics resulting in an element that combines the characteristics of both.&#xA;&#xA;&#xA;&#xA;This mechanism should be used when elements defined in different packages have the same name and are intended to represent the same concept. Most often it is used to provide different definitions of a given concept for different purposes, starting from a common base definition. A given base concept is extended in increments, with each increment defined in a separate merged package. By selecting which increments to merge, it is possible to obtain a custom definition of a concept for a specific end. Package merge is particularly useful in meta-modeling and is extensively used in the definition of the UML metamodel.&#xA;&#xA;&#xA;&#xA;Conceptually, a package merge can be viewed as an operation that takes the contents of two packages and produces a new package that combines the contents of the packages involved in the merge. In terms of model semantics, there is no difference between a model with explicit package merges, and a model in which all the merges have been performed."/>
845
    </eAnnotations>
846
    <eStructuralFeatures xsi:type="ecore:EReference" name="mergedPackage" ordered="false"
847
        lowerBound="1" eType="#//Package">
848
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
849
        <details key="documentation" value="References the Package that is to be merged with the receiving package of the Package-Merge. Subsets DirectedRelationship::target."/>
850
      </eAnnotations>
851
      <eAnnotations source="subsets" references="#//DirectedRelationship/target"/>
852
    </eStructuralFeatures>
853
    <eStructuralFeatures xsi:type="ecore:EReference" name="receivingPackage" ordered="false"
854
        lowerBound="1" eType="#//Package" transient="true" eOpposite="#//Package/packageMerge">
855
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
856
        <details key="documentation" value="References the Package that is being extended with the contents of the merged package of the PackageMerge. Subsets Element::owner and DirectedRelationship::source."/>
857
      </eAnnotations>
858
      <eAnnotations source="subsets" references="#//DirectedRelationship/source #//Element/owner"/>
859
    </eStructuralFeatures>
860
  </eClassifiers>
861
  <eClassifiers xsi:type="ecore:EClass" name="DirectedRelationship" abstract="true"
862
      eSuperTypes="#//Relationship">
863
    <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
864
      <details key="documentation" value="A directed relationship references one or more source elements and one or more target elements. DirectedRelationship is an abstract metaclass."/>
865
    </eAnnotations>
866
    <eStructuralFeatures xsi:type="ecore:EReference" name="source" ordered="false"
867
        lowerBound="1" upperBound="-1" eType="#//Element" changeable="false" volatile="true"
868
        transient="true" derived="true">
869
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
870
        <details key="documentation" value="Specifies the sources of the DirectedRelationship. Subsets Relationship::relatedElement. This is a derived union."/>
871
      </eAnnotations>
872
      <eAnnotations source="subsets" references="#//Relationship/relatedElement"/>
873
      <eAnnotations source="union"/>
874
    </eStructuralFeatures>
875
    <eStructuralFeatures xsi:type="ecore:EReference" name="target" ordered="false"
876
        lowerBound="1" upperBound="-1" eType="#//Element" changeable="false" volatile="true"
877
        transient="true" derived="true">
878
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
879
        <details key="documentation" value="Specifies the targets of the DirectedRelationship. Subsets Relationship::relatedElement. This is a derived union."/>
880
      </eAnnotations>
881
      <eAnnotations source="subsets" references="#//Relationship/relatedElement"/>
882
      <eAnnotations source="union"/>
883
    </eStructuralFeatures>
884
  </eClassifiers>
885
  <eClassifiers xsi:type="ecore:EClass" name="Relationship" abstract="true" eSuperTypes="#//Element">
886
    <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
887
      <details key="documentation" value="A relationship references one or more related elements. Relationship is an abstract metaclass."/>
888
    </eAnnotations>
889
    <eStructuralFeatures xsi:type="ecore:EReference" name="relatedElement" ordered="false"
890
        lowerBound="1" upperBound="-1" eType="#//Element" changeable="false" volatile="true"
891
        transient="true" derived="true">
892
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
893
        <details key="documentation" value="Specifies the elements related by the Relationship. This is a derived union."/>
894
      </eAnnotations>
895
      <eAnnotations source="union"/>
896
    </eStructuralFeatures>
897
  </eClassifiers>
898
  <eClassifiers xsi:type="ecore:EDataType" name="Object" instanceClassName="java.lang.Object"/>
899
  <eClassifiers xsi:type="ecore:EClass" name="MultiplicityElement" abstract="true"
900
      eSuperTypes="#//Element">
901
    <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
902
      <details key="documentation" value="A MultiplicityElement is an abstract metaclass which includes optional attributes for defining the bounds of a multiplicity. A MultiplicityElement also includes specifications of whether the values in an instantiation of this element must be unique or ordered."/>
903
    </eAnnotations>
904
    <eOperations name="upper_gt_0" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
905
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
906
        <details key="documentation" value="A multiplicity must define at least one valid cardinality that is greater than zero.&#xD;&#xA;upperBound()->notEmpty() implies upperBound() > 0"/>
907
      </eAnnotations>
908
      <eParameters name="diagnostics" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDiagnosticChain"/>
909
      <eParameters name="context" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EMap"/>
910
    </eOperations>
911
    <eOperations name="lower_ge_0" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
912
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
913
        <details key="documentation" value="The lower bound must be a non-negative integer literal.&#xD;&#xA;lowerBound()->notEmpty() implies lowerBound() >= 0"/>
914
      </eAnnotations>
915
      <eParameters name="diagnostics" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDiagnosticChain"/>
916
      <eParameters name="context" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EMap"/>
917
    </eOperations>
918
    <eOperations name="upper_ge_lower" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
919
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
920
        <details key="documentation" value="The upper bound must be greater than or equal to the lower bound.&#xD;&#xA;(upperBound()->notEmpty() and lowerBound()->notEmpty()) implies upperBound() >= lowerBound()"/>
921
      </eAnnotations>
922
      <eParameters name="diagnostics" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDiagnosticChain"/>
923
      <eParameters name="context" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EMap"/>
924
    </eOperations>
925
    <eOperations name="lowerBound" ordered="false" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt">
926
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
927
        <details key="documentation" value="The query lowerBound() returns the lower bound of the multiplicity as an integer.&#xD;&#xA;result = if lower->notEmpty() then lower else 1 endif"/>
928
      </eAnnotations>
929
      <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
930
        <details key="constraints" value="spec"/>
931
      </eAnnotations>
932
    </eOperations>
933
    <eOperations name="upperBound" ordered="false" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt">
934
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
935
        <details key="documentation" value="The query upperBound() returns the upper bound of the multiplicity for a bounded multiplicity as an unlimited natural.&#xD;&#xA;result = if upper->notEmpty() then upper else 1 endif"/>
936
      </eAnnotations>
937
      <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
938
        <details key="constraints" value="spec"/>
939
      </eAnnotations>
940
    </eOperations>
941
    <eOperations name="isMultivalued" ordered="false" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
942
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
943
        <details key="documentation" value="The query isMultivalued() checks whether this multiplicity has an upper bound greater than one.&#xD;&#xA;upperBound()->notEmpty()&#xD;&#xA;result = upperBound() > 1"/>
944
      </eAnnotations>
945
      <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
946
        <details key="constraints" value="spec"/>
947
      </eAnnotations>
948
    </eOperations>
949
    <eOperations name="includesCardinality" ordered="false" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
950
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
951
        <details key="documentation" value="The query includesCardinality() checks whether the specified cardinality is valid for this multiplicity.&#xD;&#xA;upperBound()->notEmpty() and lowerBound()->notEmpty()&#xD;&#xA;result = (lowerBound() &lt;= C) and (upperBound() >= C)"/>
952
      </eAnnotations>
953
      <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
954
        <details key="constraints" value="spec"/>
955
      </eAnnotations>
956
      <eParameters name="C" ordered="false" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
957
    </eOperations>
958
    <eOperations name="includesMultiplicity" ordered="false" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
959
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
960
        <details key="documentation" value="The query includesMultiplicity() checks whether this multiplicity includes all the cardinalities allowed by the specified multiplicity.&#xD;&#xA;self.upperBound()->notEmpty() and self.lowerBound()->notEmpty() and M.upperBound()->notEmpty() and M.lowerBound()->notEmpty()&#xD;&#xA;result = (self.lowerBound() &lt;= M.lowerBound()) and (self.upperBound() >= M.upperBound())"/>
961
      </eAnnotations>
962
      <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
963
        <details key="constraints" value="spec"/>
964
      </eAnnotations>
965
      <eParameters name="M" ordered="false" lowerBound="1" eType="#//MultiplicityElement"/>
966
    </eOperations>
967
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="isOrdered" ordered="false"
968
        lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"
969
        defaultValueLiteral="false">
970
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
971
        <details key="documentation" value="For a multivalued multiplicity, this attribute specifies whether the values in an instantiation of this element are sequentially ordered. Default is false."/>
972
      </eAnnotations>
973
    </eStructuralFeatures>
974
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="isUnique" ordered="false"
975
        lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"
976
        defaultValueLiteral="true">
977
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
978
        <details key="documentation" value="For a multivalued multiplicity, this attributes specifies whether the values in an instantiation of this element are unique. Default is true."/>
979
      </eAnnotations>
980
    </eStructuralFeatures>
981
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="lower" ordered="false"
982
        eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt" defaultValueLiteral="1">
983
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
984
        <details key="documentation" value="Specifies the lower bound of the multiplicity interval. Default is one."/>
985
      </eAnnotations>
986
    </eStructuralFeatures>
987
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="upper" ordered="false"
988
        eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt" defaultValueLiteral="1">
989
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
990
        <details key="documentation" value="Specifies the upper bound of the multiplicity interval. Default is one."/>
991
      </eAnnotations>
992
    </eStructuralFeatures>
993
  </eClassifiers>
994
  <eClassifiers xsi:type="ecore:EClass" name="Association" eSuperTypes="#//Classifier #//Relationship">
995
    <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
996
      <details key="documentation" value="An association specifies a semantic relationship that can occur between typed instances. It has at least two ends represented by properties, each of which is connected to the type of the end. More than one end of an association may have the same type.&#xA;&#xA;&#xA;&#xA;An end property of an association that is owned by an end class or that is a navigable owned end of the association indicates that the association is navigable from the opposite ends, otherwise the association is not navigable from the opposite ends."/>
997
    </eAnnotations>
998
    <eOperations name="association_ends" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
999
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1000
        <details key="documentation" value="Association ends of associations with more than two ends must be owned by the association.&#xD;&#xA;if memberEnd->size() > 2 then ownedEnd->includesAll(memberEnd)"/>
1001
      </eAnnotations>
1002
      <eParameters name="diagnostics" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDiagnosticChain"/>
1003
      <eParameters name="context" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EMap"/>
1004
    </eOperations>
1005
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="isDerived" ordered="false"
1006
        lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"
1007
        defaultValueLiteral="false">
1008
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1009
        <details key="documentation" value="Specifies whether the association is derived from other model elements such as other associations or constraints. The default value is false."/>
1010
      </eAnnotations>
1011
    </eStructuralFeatures>
1012
    <eStructuralFeatures xsi:type="ecore:EReference" name="endType" ordered="false"
1013
        lowerBound="1" upperBound="-1" eType="#//Type" changeable="false" volatile="true"
1014
        transient="true" derived="true">
1015
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1016
        <details key="documentation" value="References the classifiers that are used as types of the ends of the association."/>
1017
      </eAnnotations>
1018
      <eAnnotations source="subsets" references="#//Relationship/relatedElement"/>
1019
    </eStructuralFeatures>
1020
    <eStructuralFeatures xsi:type="ecore:EReference" name="memberEnd" lowerBound="2"
1021
        upperBound="-1" eType="#//Property" eOpposite="#//Property/association">
1022
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1023
        <details key="documentation" value="Each end represents participation of instances of the classifier connected to the end in links of the association. This is an ordered association."/>
1024
      </eAnnotations>
1025
      <eAnnotations source="subsets" references="#//Namespace/member"/>
1026
    </eStructuralFeatures>
1027
    <eStructuralFeatures xsi:type="ecore:EReference" name="navigableOwnedEnd" ordered="false"
1028
        upperBound="-1" eType="#//Property" resolveProxies="false">
1029
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1030
        <details key="documentation" value="The navigable ends that are owned by the association itself."/>
1031
      </eAnnotations>
1032
      <eAnnotations source="subsets" references="#//Association/ownedEnd"/>
1033
    </eStructuralFeatures>
1034
    <eStructuralFeatures xsi:type="ecore:EReference" name="ownedEnd" upperBound="-1"
1035
        eType="#//Property" containment="true" eOpposite="#//Property/owningAssociation">
1036
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1037
        <details key="documentation" value="The ends that are owned by the association itself. This is an ordered association."/>
1038
      </eAnnotations>
1039
      <eAnnotations source="subsets" references="#//Association/memberEnd #//Classifier/feature #//Namespace/%duplicates%/ownedMember"/>
1040
    </eStructuralFeatures>
1041
  </eClassifiers>
1042
  <eClassifiers xsi:type="ecore:EClass" name="DataType" eSuperTypes="#//Classifier">
1043
    <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1044
      <details key="documentation" value="A data type is a type whose instances are identified only by their value. A DataType may contain attributes to support the modeling of structured data types.&#xA;&#xA;&#xA;&#xA;A typical use of data types would be to represent programming language primitive types or CORBA basic types. For example, integer and string types are often treated as data types.&#xD;&#xA;DataType is an abstract class that acts as a common superclass for different kinds of data types."/>
1045
    </eAnnotations>
1046
    <eAnnotations source="duplicates">
1047
      <contents xsi:type="ecore:EOperation" name="inherit" ordered="false" upperBound="-1"
1048
          eType="#//NamedElement">
1049
        <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1050
          <details key="documentation" value="The inherit operation is overridden to exclude redefined properties.&#xD;&#xA;result = inhs->excluding(inh | ownedMember->select(oclIsKindOf(RedefinableElement))->select(redefinedElement->includes(inh)))"/>
1051
        </eAnnotations>
1052
        <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
1053
          <details key="constraints" value="spec"/>
1054
        </eAnnotations>
1055
        <eAnnotations source="redefines" references="#//Classifier/inherit"/>
1056
        <eParameters name="inhs" ordered="false" upperBound="-1" eType="#//NamedElement"/>
1057
      </contents>
1058
    </eAnnotations>
1059
    <eStructuralFeatures xsi:type="ecore:EReference" name="ownedOperation" upperBound="-1"
1060
        eType="#//Operation" containment="true" eOpposite="#//Operation/datatype">
1061
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1062
        <details key="documentation" value="The Operations owned by the DataType. Subsets Classifier::feature and Element::ownedMember."/>
1063
      </eAnnotations>
1064
      <eAnnotations source="subsets" references="#//Classifier/feature #//Namespace/%duplicates%/ownedMember"/>
1065
    </eStructuralFeatures>
1066
    <eStructuralFeatures xsi:type="ecore:EReference" name="ownedAttribute" upperBound="-1"
1067
        eType="#//Property" containment="true" eOpposite="#//Property/datatype">
1068
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1069
        <details key="documentation" value="The Attributes owned by the DataType. Subsets Classifier::attribute and Element::ownedMember."/>
1070
      </eAnnotations>
1071
      <eAnnotations source="subsets" references="#//Classifier/attribute #//Namespace/%duplicates%/ownedMember"/>
1072
    </eStructuralFeatures>
1073
  </eClassifiers>
1074
  <eClassifiers xsi:type="ecore:EClass" name="Operation" eSuperTypes="#//BehavioralFeature #//MultiplicityElement #//TypedElement">
1075
    <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1076
      <details key="documentation" value="An operation is owned by a class and may be invoked in the context of objects that are instances of that class. It is a typed element and a multiplicity element."/>
1077
    </eAnnotations>
1078
    <eAnnotations source="duplicates">
1079
      <contents xsi:type="ecore:EOperation" name="lowerBound" ordered="false" lowerBound="1"
1080
          eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt">
1081
        <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1082
          <details key="documentation" value="If this operation has a return parameter, lower equals the value of lower for that parameter. Otherwise lower is not defined.&#xD;&#xA;result = if returnResult->size() = 1 then returnResult->any().lower else Set{} endif"/>
1083
        </eAnnotations>
1084
        <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
1085
          <details key="constraints" value="spec"/>
1086
        </eAnnotations>
1087
        <eAnnotations source="redefines" references="#//MultiplicityElement/lowerBound"/>
1088
      </contents>
1089
      <contents xsi:type="ecore:EOperation" name="upperBound" ordered="false" lowerBound="1"
1090
          eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt">
1091
        <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1092
          <details key="documentation" value="If this operation has a return parameter, upper equals the value of upper for that parameter. Otherwise upper is not defined.&#xD;&#xA;result = if returnResult->size() = 1 then returnResult->any().upper else Set{} endif"/>
1093
        </eAnnotations>
1094
        <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
1095
          <details key="constraints" value="spec"/>
1096
        </eAnnotations>
1097
        <eAnnotations source="redefines" references="#//MultiplicityElement/upperBound"/>
1098
      </contents>
1099
      <contents xsi:type="ecore:EOperation" name="isConsistentWith" ordered="false"
1100
          lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
1101
        <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1102
          <details key="documentation" value="The query isConsistentWith() specifies, for any two Operations in a context in which redefinition is possible, whether redefinition would be consistent in the sense of maintaining type covariance. Other senses of consistency may be required, for example to determine consistency in the sense of contravariance. Users may define alternative queries under names different from 'isConsistentWith()', as for example, users may define a query named 'isContravariantWith()'.&#xD;&#xA;redefinee.isRedefinitionContextValid(self)&#xD;&#xA;result = (redefinee.oclIsKindOf(Operation) and&#xA;    let op: Operation = redefinee.oclAsType(Operation) in&#xA;        self.formalParameter.size() = op.formalParameter.size() and&#xA;        self.returnResult.size() = op.returnResult.size() and&#xA;        forAll(i | op.formalParameter[i].type.conformsTo(self.formalParameter[i].type)) and&#xA;        forAll(i | op.returnResult[i].type.conformsTo(self.returnResult[i].type))&#xA;)"/>
1103
        </eAnnotations>
1104
        <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
1105
          <details key="constraints" value="spec"/>
1106
        </eAnnotations>
1107
        <eAnnotations source="redefines" references="#//RedefinableElement/isConsistentWith"/>
1108
        <eParameters name="redefinee" ordered="false" lowerBound="1" eType="#//RedefinableElement"/>
1109
      </contents>
1110
      <contents xsi:type="ecore:EReference" name="ownedParameter" upperBound="-1"
1111
          eType="#//Parameter" containment="true" eOpposite="#//Parameter/operation">
1112
        <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1113
          <details key="documentation" value="Specifies the ordered set of formal parameters of this BehavioralFeature. Subsets Namespace::ownedMember.&#xD;&#xA;The parameters to the operation."/>
1114
        </eAnnotations>
1115
        <eAnnotations source="redefines" references="#//BehavioralFeature/ownedParameter"/>
1116
      </contents>
1117
      <contents xsi:type="ecore:EAttribute" name="isOrdered" ordered="false" lowerBound="1"
1118
          eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"
1119
          volatile="true" transient="true" defaultValueLiteral="false" derived="true">
1120
        <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1121
          <details key="documentation" value="Redefines the corresponding property from Basic to derive this information from the return result for this Operation."/>
1122
        </eAnnotations>
1123
        <eAnnotations source="redefines" references="#//MultiplicityElement/isOrdered"/>
1124
      </contents>
1125
      <contents xsi:type="ecore:EAttribute" name="isUnique" ordered="false" lowerBound="1"
1126
          eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"
1127
          volatile="true" transient="true" defaultValueLiteral="true" derived="true">
1128
        <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1129
          <details key="documentation" value="Redefines the corresponding property from Basic to derive this information from the return result for this Operation."/>
1130
        </eAnnotations>
1131
        <eAnnotations source="redefines" references="#//MultiplicityElement/isUnique"/>
1132
      </contents>
1133
      <contents xsi:type="ecore:EAttribute" name="lower" ordered="false" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"
1134
          volatile="true" transient="true" defaultValueLiteral="1" derived="true">
1135
        <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1136
          <details key="documentation" value="Redefines the corresponding property from Basic to derive this information from the return result for this Operation."/>
1137
        </eAnnotations>
1138
        <eAnnotations source="redefines" references="#//MultiplicityElement/lower"/>
1139
      </contents>
1140
      <contents xsi:type="ecore:EAttribute" name="upper" ordered="false" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"
1141
          volatile="true" transient="true" defaultValueLiteral="1" derived="true">
1142
        <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1143
          <details key="documentation" value="Redefines the corresponding property from Basic to derive this information from the return result for this Operation."/>
1144
        </eAnnotations>
1145
        <eAnnotations source="redefines" references="#//MultiplicityElement/upper"/>
1146
      </contents>
1147
      <contents xsi:type="ecore:EReference" name="type" ordered="false" eType="#//Type"
1148
          volatile="true" transient="true" derived="true">
1149
        <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1150
          <details key="documentation" value="Redefines the corresponding property from Basic to derive this information from the return result for this Operation."/>
1151
        </eAnnotations>
1152
        <eAnnotations source="redefines" references="#//TypedElement/type"/>
1153
      </contents>
1154
      <contents xsi:type="ecore:EReference" name="raisedException" ordered="false"
1155
          upperBound="-1" eType="#//Type">
1156
        <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1157
          <details key="documentation" value="References the Types representing exceptions that may be raised during an invocation of this operation. Redefines Basic::Operation.raisedException and BehavioralFeature.raisedException.&#xD;&#xA;The exceptions that are declared as possible during an invocation of the operation."/>
1158
        </eAnnotations>
1159
        <eAnnotations source="redefines" references="#//BehavioralFeature/raisedException"/>
1160
      </contents>
1161
    </eAnnotations>
1162
    <eOperations name="only_body_for_query" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
1163
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1164
        <details key="documentation" value="A bodyCondition can only be specified for a query operation.&#xD;&#xA;bodyCondition->notEmpty() implies isQuery"/>
1165
      </eAnnotations>
1166
      <eParameters name="diagnostics" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDiagnosticChain"/>
1167
      <eParameters name="context" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EMap"/>
1168
    </eOperations>
1169
    <eOperations name="at_most_one_return" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
1170
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1171
        <details key="documentation" value="An operation can have at most one return parameter; i.e., an owned parameter with the direction set to 'return'&#xD;&#xA;self.ownedParameter->select(par | par.direction = #return)->size() &lt;= 1"/>
1172
      </eAnnotations>
1173
      <eParameters name="diagnostics" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDiagnosticChain"/>
1174
      <eParameters name="context" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EMap"/>
1175
    </eOperations>
1176
    <eOperations name="isOrdered" ordered="false" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
1177
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1178
        <details key="documentation" value="If this operation has a return parameter, isOrdered equals the value of isOrdered for that parameter. Otherwise isOrdered is false.&#xD;&#xA;result = if returnResult->size() = 1 then returnResult->any().isOrdered else false endif"/>
1179
      </eAnnotations>
1180
      <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
1181
        <details key="constraints" value="spec"/>
1182
      </eAnnotations>
1183
    </eOperations>
1184
    <eOperations name="isUnique" ordered="false" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
1185
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1186
        <details key="documentation" value="If this operation has a return parameter, isUnique equals the value of isUnique for that parameter. Otherwise isUnique is true.&#xD;&#xA;result = if returnResult->size() = 1 then returnResult->any().isUnique else true endif"/>
1187
      </eAnnotations>
1188
      <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
1189
        <details key="constraints" value="spec"/>
1190
      </eAnnotations>
1191
    </eOperations>
1192
    <eOperations name="getType" ordered="false" lowerBound="1" eType="#//Type">
1193
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1194
        <details key="documentation" value="If this operation has a return parameter, type equals the value of type for that parameter. Otherwise type is not defined.&#xD;&#xA;result = if returnResult->size() = 1 then returnResult->any().type else Set{} endif"/>
1195
      </eAnnotations>
1196
      <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
1197
        <details key="constraints" value="spec"/>
1198
      </eAnnotations>
1199
    </eOperations>
1200
    <eOperations name="returnResult" ordered="false" upperBound="-1" eType="#//Parameter">
1201
      <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
1202
        <details key="constraints" value="spec"/>
1203
      </eAnnotations>
1204
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1205
        <details key="documentation" value="result = ownedParameter->select (par | par.direction = #return)"/>
1206
      </eAnnotations>
1207
    </eOperations>
1208
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="isQuery" ordered="false"
1209
        lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"
1210
        defaultValueLiteral="false">
1211
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1212
        <details key="documentation" value="Specifies whether an execution of the BehavioralFeature leaves the state of the system unchanged (isQuery=true) or whether side effects may occur (isQuery=false). The default value is false."/>
1213
      </eAnnotations>
1214
    </eStructuralFeatures>
1215
    <eStructuralFeatures xsi:type="ecore:EReference" name="redefinedOperation" ordered="false"
1216
        upperBound="-1" eType="#//Operation">
1217
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1218
        <details key="documentation" value="References the Operations that are redefined by this Operation. Subsets RedefinableElement.redefinedElement."/>
1219
      </eAnnotations>
1220
      <eAnnotations source="subsets" references="#//RedefinableElement/redefinedElement"/>
1221
    </eStructuralFeatures>
1222
    <eStructuralFeatures xsi:type="ecore:EReference" name="precondition" ordered="false"
1223
        upperBound="-1" eType="#//Constraint" resolveProxies="false">
1224
      <eAnnotations source="subsets" references="#//Namespace/ownedRule"/>
1225
    </eStructuralFeatures>
1226
    <eStructuralFeatures xsi:type="ecore:EReference" name="postcondition" ordered="false"
1227
        upperBound="-1" eType="#//Constraint" resolveProxies="false">
1228
      <eAnnotations source="subsets" references="#//Namespace/ownedRule"/>
1229
    </eStructuralFeatures>
1230
    <eStructuralFeatures xsi:type="ecore:EReference" name="bodyCondition" ordered="false"
1231
        upperBound="-1" eType="#//Constraint" resolveProxies="false">
1232
      <eAnnotations source="subsets" references="#//Namespace/ownedRule"/>
1233
    </eStructuralFeatures>
1234
    <eStructuralFeatures xsi:type="ecore:EReference" name="class" ordered="false"
1235
        eType="#//Class" transient="true" eOpposite="#//Class/ownedOperation">
1236
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1237
        <details key="documentation" value="The class that owns the operation. Subsets RedefinableElement::redefinitionContext and NamedElement::namespace and Feature::featuringClassifier.&#xD;&#xA;The class that owns the operation."/>
1238
      </eAnnotations>
1239
      <eAnnotations source="subsets" references="#//RedefinableElement/redefinitionContext #//NamedElement/%duplicates%/namespace #//Feature/featuringClassifier"/>
1240
    </eStructuralFeatures>
1241
    <eStructuralFeatures xsi:type="ecore:EReference" name="datatype" ordered="false"
1242
        eType="#//DataType" transient="true" eOpposite="#//DataType/ownedOperation">
1243
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1244
        <details key="documentation" value="The DataType that owns this Operation. Subsets NamedElement::namespace, Feature::featuringClassifier, and RedefinableElement::redefinitionContext."/>
1245
      </eAnnotations>
1246
      <eAnnotations source="subsets" references="#//RedefinableElement/redefinitionContext #//NamedElement/%duplicates%/namespace #//Feature/featuringClassifier"/>
1247
    </eStructuralFeatures>
1248
  </eClassifiers>
1249
  <eClassifiers xsi:type="ecore:EClass" name="BehavioralFeature" abstract="true" eSuperTypes="#//Namespace #//Feature">
1250
    <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1251
      <details key="documentation" value="A behavioral feature is a feature of a classifier that specifies an aspect of the behavior of its instances. BehavioralFeature is an abstract metaclass specializing Feature and Namespace. Kinds of behavioral aspects are modeled by subclasses of BehavioralFeature."/>
1252
    </eAnnotations>
1253
    <eAnnotations source="duplicates">
1254
      <contents xsi:type="ecore:EOperation" name="isDistinguishableFrom" ordered="false"
1255
          lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
1256
        <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1257
          <details key="documentation" value="The query isDistinguishableFrom() determines whether two BehavioralFeatures may coexist in the same Namespace. It specifies that they have to have different signatures.&#xD;&#xA;result = if n.oclIsKindOf(BehavioralFeature)&#xA;then&#xA;  if ns.getNamesOfMember(self)->intersection(ns.getNamesOfMember(n))->notEmpty()&#xA;  then Set{}->include(self)->include(n)->isUnique( bf | bf.parameter->collect(type))&#xA;  else true&#xA;  endif&#xA;else true&#xA;endif"/>
1258
        </eAnnotations>
1259
        <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
1260
          <details key="constraints" value="spec"/>
1261
        </eAnnotations>
1262
        <eAnnotations source="redefines" references="#//NamedElement/isDistinguishableFrom"/>
1263
        <eParameters name="n" ordered="false" lowerBound="1" eType="#//NamedElement"/>
1264
        <eParameters name="ns" ordered="false" lowerBound="1" eType="#//Namespace"/>
1265
      </contents>
1266
    </eAnnotations>
1267
    <eStructuralFeatures xsi:type="ecore:EReference" name="ownedParameter" upperBound="-1"
1268
        eType="#//Parameter" containment="true">
1269
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1270
        <details key="documentation" value="Specifies the ordered set of formal parameters of this BehavioralFeature."/>
1271
      </eAnnotations>
1272
      <eAnnotations source="subsets" references="#//Namespace/%duplicates%/ownedMember"/>
1273
    </eStructuralFeatures>
1274
    <eStructuralFeatures xsi:type="ecore:EReference" name="raisedException" ordered="false"
1275
        upperBound="-1" eType="#//Type">
1276
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1277
        <details key="documentation" value="References the Types representing exceptions that may be raised during an invocation of this feature."/>
1278
      </eAnnotations>
1279
    </eStructuralFeatures>
1280
  </eClassifiers>
1281
  <eClassifiers xsi:type="ecore:EClass" name="Parameter" eSuperTypes="#//MultiplicityElement #//TypedElement">
1282
    <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1283
      <details key="documentation" value="A parameter is a kind of typed element in order to allow the specification of an optional multiplicity on parameters. In addition, it supports the specification of an optional default value.&#xD;&#xA;A parameter is a typed element that represents a parameter of an operation."/>
1284
    </eAnnotations>
1285
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="default" ordered="false"
1286
        eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
1287
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1288
        <details key="documentation" value="Specifies a String that represents a value to be used when no argument is supplied for the Parameter."/>
1289
      </eAnnotations>
1290
    </eStructuralFeatures>
1291
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="direction" ordered="false"
1292
        lowerBound="1" eType="#//ParameterDirectionKind" defaultValueLiteral="in">
1293
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1294
        <details key="documentation" value="Indicates whether a parameter is being sent into or out of a behavioral element. The default value is in."/>
1295
      </eAnnotations>
1296
    </eStructuralFeatures>
1297
    <eStructuralFeatures xsi:type="ecore:EReference" name="operation" ordered="false"
1298
        eType="#//Operation" changeable="false" volatile="true" transient="true">
1299
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1300
        <details key="documentation" value="References the Operation for which this is a formal parameter. Subsets NamedElement::namespace and redefines Basic::Parameter::operation.&#xD;&#xA;The operation that owns the parameter."/>
1301
      </eAnnotations>
1302
      <eAnnotations source="subsets" references="#//NamedElement/%duplicates%/namespace"/>
1303
    </eStructuralFeatures>
1304
  </eClassifiers>
1305
  <eClassifiers xsi:type="ecore:EEnum" name="ParameterDirectionKind">
1306
    <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1307
      <details key="documentation" value="ParameterDirectionKind is an enumeration of the following literal values:&#xA;&#xA;  - in Indicates that parameter values are passed into the behavioral element by the caller.&#xA;&#xA;  - inout Indicates that parameter values are passed into a behavioral element by the caller and then back out to the caller from the behavioral element.&#xA;&#xA;  - out Indicates that parameter values are passed from a behavioral element out to the caller.&#xA;&#xA;  - return Indicates that parameter values are passed as return values from a behavioral element back to the caller.&#xA;&#xA;"/>
1308
    </eAnnotations>
1309
    <eLiterals name="in">
1310
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1311
        <details key="documentation" value="Indicates that parameter values are passed into the behavioral element by the caller."/>
1312
      </eAnnotations>
1313
    </eLiterals>
1314
    <eLiterals name="inout" value="1">
1315
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1316
        <details key="documentation" value="Indicates that parameter values are passed into a behavioral element by the caller and then back out to the caller from the behavioral element."/>
1317
      </eAnnotations>
1318
    </eLiterals>
1319
    <eLiterals name="out" value="2">
1320
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1321
        <details key="documentation" value="Indicates that parameter values are passed from a behavioral element out to the caller."/>
1322
      </eAnnotations>
1323
    </eLiterals>
1324
    <eLiterals name="return" value="3">
1325
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1326
        <details key="documentation" value="Indicates that parameter values are passed as return values from a behavioral element back to the caller."/>
1327
      </eAnnotations>
1328
    </eLiterals>
1329
  </eClassifiers>
1330
  <eClassifiers xsi:type="ecore:EClass" name="Constraint" eSuperTypes="#//PackageableElement">
1331
    <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1332
      <details key="documentation" value="Constraint contains a ValueSpecification that specifies additional semantics for one or more elements. Certain kinds of constraints (such as an association &quot;xor&quot; constraint) are predefined in UML, others may be user-defined. A user-defined Constraint is described using a specified language, whose syntax and interpretation is a tool responsibility. One predefined language for writing constraints is OCL. In some situations, a programming language such as Java may be appropriate for expressing a constraint. In other situations natural language may be used.&#xA;&#xA;&#xA;&#xA;Constraint is a condition (a Boolean expression) that restricts the extension of the associated element beyond what is imposed by the other language constructs applied to the element. Constraint contains an optional name, although they are commonly unnamed."/>
1333
    </eAnnotations>
1334
    <eOperations name="not_apply_to_self" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
1335
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1336
        <details key="documentation" value="A constraint cannot be applied to itself.&#xD;&#xA;not constrainedElement->includes(self)"/>
1337
      </eAnnotations>
1338
      <eParameters name="diagnostics" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDiagnosticChain"/>
1339
      <eParameters name="context" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EMap"/>
1340
    </eOperations>
1341
    <eOperations name="value_specification_boolean" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
1342
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1343
        <details key="documentation" value="The value specification for a constraint must evaluate to a boolean value.&#xD;&#xA;self.specification().booleanValue().isOclKindOf(Boolean)"/>
1344
      </eAnnotations>
1345
      <eParameters name="diagnostics" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDiagnosticChain"/>
1346
      <eParameters name="context" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EMap"/>
1347
    </eOperations>
1348
    <eStructuralFeatures xsi:type="ecore:EReference" name="context" ordered="false"
1349
        eType="#//Namespace" changeable="false" volatile="true" transient="true" derived="true">
1350
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1351
        <details key="documentation" value="Specifies the Namespace that is the context for evaluating this constraint. This is a derived union."/>
1352
      </eAnnotations>
1353
      <eAnnotations source="union"/>
1354
    </eStructuralFeatures>
1355
    <eStructuralFeatures xsi:type="ecore:EReference" name="constrainedElement" upperBound="-1"
1356
        eType="#//Element">
1357
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1358
        <details key="documentation" value="The ordered set of Elements referenced by this Constraint."/>
1359
      </eAnnotations>
1360
    </eStructuralFeatures>
1361
    <eStructuralFeatures xsi:type="ecore:EReference" name="specification" ordered="false"
1362
        lowerBound="1" eType="#//ValueSpecification" containment="true">
1363
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1364
        <details key="documentation" value="A condition that must be true when evaluated in order for the constraint to be satisfied. Subsets Element::ownedElement.&#xA;&#xA;"/>
1365
      </eAnnotations>
1366
      <eAnnotations source="subsets" references="#//Element/ownedElement"/>
1367
    </eStructuralFeatures>
1368
    <eStructuralFeatures xsi:type="ecore:EReference" name="namespace" ordered="false"
1369
        eType="#//Namespace" transient="true" eOpposite="#//Namespace/ownedRule">
1370
      <eAnnotations source="subsets" references="#//Constraint/context"/>
1371
      <eAnnotations source="redefines" references="#//NamedElement/%duplicates%/namespace"/>
1372
    </eStructuralFeatures>
1373
  </eClassifiers>
1374
  <eClassifiers xsi:type="ecore:EClass" name="ValueSpecification" abstract="true"
1375
      eSuperTypes="#//TypedElement #//PackageableElement">
1376
    <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1377
      <details key="documentation" value="ValueSpecification is an abstract metaclass used to identify a value or values in a model. It may reference an instance or it may be an expression denoting an instance or instances when evaluated. It adds a specialization to Constructs::TypedElement."/>
1378
    </eAnnotations>
1379
    <eOperations name="isComputable" ordered="false" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
1380
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1381
        <details key="documentation" value="The query isComputable() determines whether a value specification can be computed in a model. This operation cannot be fully defined in OCL. A conforming implementation is expected to deliver true for this operation for all value specifications that it can compute, and to compute all of those for which the operation is true. A conforming implementation is expected to be able to compute the value of all literals.&#xD;&#xA;result = false"/>
1382
      </eAnnotations>
1383
      <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
1384
        <details key="constraints" value="spec"/>
1385
      </eAnnotations>
1386
    </eOperations>
1387
    <eOperations name="integerValue" ordered="false" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt">
1388
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1389
        <details key="documentation" value="The query integerValue() gives a single Integer value when one can be computed.&#xD;&#xA;result = Set{}"/>
1390
      </eAnnotations>
1391
      <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
1392
        <details key="constraints" value="spec"/>
1393
      </eAnnotations>
1394
    </eOperations>
1395
    <eOperations name="booleanValue" ordered="false" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
1396
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1397
        <details key="documentation" value="The query booleanValue() gives a single Boolean value when one can be computed.&#xD;&#xA;result = Set{}"/>
1398
      </eAnnotations>
1399
      <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
1400
        <details key="constraints" value="spec"/>
1401
      </eAnnotations>
1402
    </eOperations>
1403
    <eOperations name="stringValue" ordered="false" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
1404
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1405
        <details key="documentation" value="The query stringValue() gives a single String value when one can be computed.&#xD;&#xA;result = Set{}"/>
1406
      </eAnnotations>
1407
      <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
1408
        <details key="constraints" value="spec"/>
1409
      </eAnnotations>
1410
    </eOperations>
1411
    <eOperations name="unlimitedValue" ordered="false" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt">
1412
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1413
        <details key="documentation" value="The query unlimitedValue() gives a single UnlimitedNatural value when one can be computed.&#xD;&#xA;result = Set{}"/>
1414
      </eAnnotations>
1415
      <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
1416
        <details key="constraints" value="spec"/>
1417
      </eAnnotations>
1418
    </eOperations>
1419
    <eOperations name="isNull" ordered="false" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
1420
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1421
        <details key="documentation" value="The query isNull() returns true when it can be computed that the value is null.&#xD;&#xA;result = false"/>
1422
      </eAnnotations>
1423
      <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
1424
        <details key="constraints" value="spec"/>
1425
      </eAnnotations>
1426
    </eOperations>
1427
  </eClassifiers>
1428
  <eClassifiers xsi:type="ecore:EClass" name="Argument">
1429
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" ordered="false" lowerBound="1"
1430
        eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
1431
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="value" ordered="false"
1432
        lowerBound="1" eType="#//Object"/>
1433
  </eClassifiers>
1434
  <eClassifiers xsi:type="ecore:EDataType" name="ReflectiveCollection" instanceClassName="java.util.Collection"/>
1435
  <eClassifiers xsi:type="ecore:EEnum" name="VisibilityKind">
1436
    <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1437
      <details key="documentation" value="VisibilityKind is an enumeration of the following literal values:&#xA;&#xA;  - public&#xA;&#xA;  - private&#xA;&#xA;  - protected&#xA;&#xA;  - package"/>
1438
    </eAnnotations>
1439
    <eLiterals name="public">
1440
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1441
        <details key="documentation" value="A public element is visible to all elements that can access the contents of the namespace that owns it."/>
1442
      </eAnnotations>
1443
    </eLiterals>
1444
    <eLiterals name="private" value="1">
1445
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1446
        <details key="documentation" value="A private element is only visible inside the namespace that owns it."/>
1447
      </eAnnotations>
1448
    </eLiterals>
1449
    <eLiterals name="protected" value="2">
1450
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1451
        <details key="documentation" value="A protected element is visible to elements that have a generalization relationship to the namespace that owns it."/>
1452
      </eAnnotations>
1453
    </eLiterals>
1454
    <eLiterals name="package" value="3">
1455
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1456
        <details key="documentation" value="A package element is owned by a namespace that is not a package, and is visible to elements that are in the same package as its owning namespace. Only named elements that are not owned by packages can be marked as having package visibility.  Any element marked as having package visibility is visible to all elements within the nearest enclosing package (given that other owning elements have proper visibility).  Outside the nearest enclosing package, an element marked as having package visibility is not visible."/>
1457
      </eAnnotations>
1458
    </eLiterals>
1459
  </eClassifiers>
1460
  <eClassifiers xsi:type="ecore:EClass" name="ElementImport" eSuperTypes="#//DirectedRelationship">
1461
    <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1462
      <details key="documentation" value="An element import is defined as a directed relationship between an importing namespace and a packageable element. The name of the packageable element or its alias is to be added to the namespace of the importing namespace. It is also possible to control whether the imported element can be further imported."/>
1463
    </eAnnotations>
1464
    <eOperations name="visibility_public_or_private" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
1465
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1466
        <details key="documentation" value="The visibility of an ElementImport is either public or private.&#xD;&#xA;self.visibility = #public or self.visibility = #private"/>
1467
      </eAnnotations>
1468
      <eParameters name="diagnostics" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDiagnosticChain"/>
1469
      <eParameters name="context" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EMap"/>
1470
    </eOperations>
1471
    <eOperations name="imported_element_is_public" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
1472
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1473
        <details key="documentation" value="An importedElement has either public visibility or no visibility at all.&#xD;&#xA;self.importedElement.visibility.notEmpty() implies self.importedElement.visibility = #public"/>
1474
      </eAnnotations>
1475
      <eParameters name="diagnostics" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDiagnosticChain"/>
1476
      <eParameters name="context" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EMap"/>
1477
    </eOperations>
1478
    <eOperations name="getName" ordered="false" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
1479
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1480
        <details key="documentation" value="The query getName() returns the name under which the imported PackageableElement will be known in the importing namespace.&#xD;&#xA;result = if self.alias->notEmpty() then &#xA;  self.alias&#xA;else&#xA;  self.importedElement.name&#xA;endif"/>
1481
      </eAnnotations>
1482
      <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
1483
        <details key="constraints" value="spec"/>
1484
      </eAnnotations>
1485
    </eOperations>
1486
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="visibility" ordered="false"
1487
        lowerBound="1" eType="#//VisibilityKind">
1488
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1489
        <details key="documentation" value="Specifies the visibility of the imported PackageableElement within the importing Package. The default visibility is the same as that of the imported element. If the imported element does not have a visibility, it is possible to add visibility to the element import."/>
1490
      </eAnnotations>
1491
    </eStructuralFeatures>
1492
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="alias" ordered="false"
1493
        eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
1494
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1495
        <details key="documentation" value="Specifies the name that should be added to the namespace of the importing Package in lieu of the name of the imported PackagableElement. The aliased name must not clash with any other member name in the importing Package. By default, no alias is used."/>
1496
      </eAnnotations>
1497
    </eStructuralFeatures>
1498
    <eStructuralFeatures xsi:type="ecore:EReference" name="importedElement" ordered="false"
1499
        lowerBound="1" eType="#//PackageableElement">
1500
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1501
        <details key="documentation" value="Specifies the PackageableElement whose name is to be added to a Namespace. Subsets DirectedRelationship::target."/>
1502
      </eAnnotations>
1503
      <eAnnotations source="subsets" references="#//DirectedRelationship/target"/>
1504
    </eStructuralFeatures>
1505
    <eStructuralFeatures xsi:type="ecore:EReference" name="importingNamespace" ordered="false"
1506
        lowerBound="1" eType="#//Namespace" transient="true" eOpposite="#//Namespace/elementImport">
1507
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1508
        <details key="documentation" value="Specifies the Namespace that imports a PackageableElement from another Package. Subsets DirectedRelationship::source and Element::owner."/>
1509
      </eAnnotations>
1510
      <eAnnotations source="subsets" references="#//DirectedRelationship/source #//Element/owner"/>
1511
    </eStructuralFeatures>
1512
  </eClassifiers>
1513
  <eClassifiers xsi:type="ecore:EClass" name="PackageImport" eSuperTypes="#//DirectedRelationship">
1514
    <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1515
      <details key="documentation" value="A package import is defined as a directed relationship that identifies a package whose members are to be imported by a namespace."/>
1516
    </eAnnotations>
1517
    <eOperations name="public_or_private" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
1518
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1519
        <details key="documentation" value="The visibility of a PackageImport is either public or private.&#xD;&#xA;self.visibility = #public or self.visibility = #private"/>
1520
      </eAnnotations>
1521
      <eParameters name="diagnostics" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDiagnosticChain"/>
1522
      <eParameters name="context" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EMap"/>
1523
    </eOperations>
1524
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="visibility" ordered="false"
1525
        lowerBound="1" eType="#//VisibilityKind">
1526
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1527
        <details key="documentation" value="Specifies the visibility of the imported PackageableElements within the importing Namespace, i.e., whether imported elements will in turn be visible to other packages that use that importingPackage as an importedPackage. If the PackageImport is public, the imported elements will be visible outside the package, while if it is private they will not. By default, the value of visibility is public."/>
1528
      </eAnnotations>
1529
    </eStructuralFeatures>
1530
    <eStructuralFeatures xsi:type="ecore:EReference" name="importedPackage" ordered="false"
1531
        lowerBound="1" eType="#//Package">
1532
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1533
        <details key="documentation" value="Specifies the Package whose members are imported into a Namespace. Subsets DirectedRelationship::target."/>
1534
      </eAnnotations>
1535
      <eAnnotations source="subsets" references="#//DirectedRelationship/target"/>
1536
    </eStructuralFeatures>
1537
    <eStructuralFeatures xsi:type="ecore:EReference" name="importingNamespace" ordered="false"
1538
        lowerBound="1" eType="#//Namespace" transient="true" eOpposite="#//Namespace/packageImport">
1539
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1540
        <details key="documentation" value="Specifies the Namespace that imports the members from a Package. Subsets DirectedRelationship::source and Element::owner."/>
1541
      </eAnnotations>
1542
      <eAnnotations source="subsets" references="#//DirectedRelationship/source #//Element/owner"/>
1543
    </eStructuralFeatures>
1544
  </eClassifiers>
1545
  <eClassifiers xsi:type="ecore:EClass" name="OpaqueExpression" eSuperTypes="#//ValueSpecification">
1546
    <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1547
      <details key="documentation" value="An opaque expression contains language-specific text strings used to describe a value or values, and an optional specification of the languages."/>
1548
    </eAnnotations>
1549
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="body" lowerBound="1" upperBound="-1"
1550
        eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
1551
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1552
        <details key="documentation" value="The text of the expression, possibly in multiple languages."/>
1553
      </eAnnotations>
1554
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
1555
        <details key="kind" value="element"/>
1556
      </eAnnotations>
1557
    </eStructuralFeatures>
1558
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="language" upperBound="-1"
1559
        eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
1560
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1561
        <details key="documentation" value="Specifies the languages in which the expression is stated. The interpretation of the expression body depends on the language. If languages are unspecified, it might be implicit from the expression body or the context. Languages are matched to body strings by order."/>
1562
      </eAnnotations>
1563
    </eStructuralFeatures>
1564
  </eClassifiers>
1565
  <eClassifiers xsi:type="ecore:EClass" name="Expression" eSuperTypes="#//ValueSpecification">
1566
    <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1567
      <details key="documentation" value="An expression is a structured tree of symbols that denotes a (possibly empty) set of values when evaluated in a context."/>
1568
    </eAnnotations>
1569
    <eStructuralFeatures xsi:type="ecore:EReference" name="operand" upperBound="-1"
1570
        eType="#//ValueSpecification" containment="true">
1571
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1572
        <details key="documentation" value="Specifies a sequence of operands."/>
1573
      </eAnnotations>
1574
      <eAnnotations source="subsets" references="#//Element/ownedElement"/>
1575
    </eStructuralFeatures>
1576
  </eClassifiers>
1577
  <eClassifiers xsi:type="ecore:EClass" name="Enumeration" eSuperTypes="#//DataType">
1578
    <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1579
      <details key="documentation" value="Enumeration is a kind of data type, whose instances may be any of a number of predefined enumeration literals.&#xA;&#xA;It is possible to extend the set of applicable enumeration literals in other packages or profiles.&#xA;&#xA;&#xD;&#xA;An enumeration defines a set of literals that can be used as its values."/>
1580
    </eAnnotations>
1581
    <eStructuralFeatures xsi:type="ecore:EReference" name="ownedLiteral" upperBound="-1"
1582
        eType="#//EnumerationLiteral" containment="true" eOpposite="#//EnumerationLiteral/enumeration">
1583
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1584
        <details key="documentation" value="The ordered collection of literals for the enumeration. Subsets Element::ownedMember.&#xD;&#xA;The ordered set of literals for this Enumeration."/>
1585
      </eAnnotations>
1586
      <eAnnotations source="subsets" references="#//Namespace/%duplicates%/ownedMember"/>
1587
    </eStructuralFeatures>
1588
  </eClassifiers>
1589
  <eClassifiers xsi:type="ecore:EClass" name="EnumerationLiteral" eSuperTypes="#//NamedElement">
1590
    <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1591
      <details key="documentation" value="An enumeration literal is a value of an enumeration."/>
1592
    </eAnnotations>
1593
    <eStructuralFeatures xsi:type="ecore:EReference" name="enumeration" ordered="false"
1594
        eType="#//Enumeration" transient="true" eOpposite="#//Enumeration/ownedLiteral">
1595
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1596
        <details key="documentation" value="The enumeration that this literal belongs to. Subsets NamedElement::namespace.&#xD;&#xA;The Enumeration that this EnumerationLiteral is a member of."/>
1597
      </eAnnotations>
1598
      <eAnnotations source="subsets" references="#//NamedElement/%duplicates%/namespace"/>
1599
    </eStructuralFeatures>
1600
  </eClassifiers>
1601
  <eClassifiers xsi:type="ecore:EClass" name="PrimitiveType" eSuperTypes="#//DataType">
1602
    <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1603
      <details key="documentation" value="The PrimitiveTypes subpackage within the Core package defines the different types of primitive values that are used to define the Core metamodel. It is also intended that every metamodel based on Core will reuse the following primitive types.&#xA;&#xA;In Core and the UML metamodel, these primitive types are predefined and available to the Core and UML extensions at all time. These predefined value types are independent of any object model and part of the definition of the Core.&#xA;&#xA;&#xD;&#xA;A primitive type is a data type implemented by the underlying infrastructure and made available for modeling."/>
1604
    </eAnnotations>
1605
  </eClassifiers>
1606
  <eClassifiers xsi:type="ecore:EDataType" name="ReflectiveSequence" instanceClassName="java.util.List"/>
1607
  <eClassifiers xsi:type="ecore:EDataType" name="URIExtent" instanceClassName="org.eclipse.emf.ecore.resource.Resource">
1608
    <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1609
      <details key="documentation" value="Objects may be identified by URIs which are provided by a URIExtent. Use a URIExtent to lookup an Object given a URI, or get the URI of an object in that extent.&#xA;&#xA;"/>
1610
    </eAnnotations>
1611
  </eClassifiers>
1612
  <eClassifiers xsi:type="ecore:EClass" name="Exception">
1613
    <eStructuralFeatures xsi:type="ecore:EReference" name="objectInError" ordered="false"
1614
        lowerBound="1" eType="#//Element"/>
1615
    <eStructuralFeatures xsi:type="ecore:EReference" name="elementInError" ordered="false"
1616
        lowerBound="1" eType="#//Element"/>
1617
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="description" ordered="false"
1618
        lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
1619
  </eClassifiers>
1620
  <eClassifiers xsi:type="ecore:EClass" name="Factory" eSuperTypes="#//Element">
1621
    <eOperations name="createFromString" ordered="false" lowerBound="1" eType="#//Object">
1622
      <eParameters name="dataType" ordered="false" lowerBound="1" eType="#//DataType"/>
1623
      <eParameters name="string" ordered="false" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
1624
    </eOperations>
1625
    <eOperations name="convertToString" ordered="false" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
1626
      <eParameters name="dataType" ordered="false" lowerBound="1" eType="#//DataType"/>
1627
      <eParameters name="object" ordered="false" lowerBound="1" eType="#//Object"/>
1628
    </eOperations>
1629
    <eOperations name="create" ordered="false" lowerBound="1" eType="#//Element">
1630
      <eParameters name="metaClass" ordered="false" lowerBound="1" eType="#//Class"/>
1631
    </eOperations>
1632
    <eOperations name="createElement" ordered="false" lowerBound="1" eType="#//Element">
1633
      <eParameters name="aClass" ordered="false" lowerBound="1" eType="#//Class"/>
1634
      <eParameters name="arguments" ordered="false" lowerBound="1" eType="#//Argument"/>
1635
    </eOperations>
1636
    <eOperations name="createLink" ordered="false" lowerBound="1" eType="#//Link">
1637
      <eParameters name="association" ordered="false" lowerBound="1" eType="#//Association"/>
1638
      <eParameters name="firstElement" ordered="false" lowerBound="1" eType="#//Element"/>
1639
      <eParameters name="secondElement" ordered="false" lowerBound="1" eType="#//Element"/>
1640
    </eOperations>
1641
    <eStructuralFeatures xsi:type="ecore:EReference" name="package" ordered="false"
1642
        lowerBound="1" eType="#//Package"/>
1643
  </eClassifiers>
1644
  <eClassifiers xsi:type="ecore:EClass" name="Link">
1645
    <eOperations name="equals" ordered="false" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
1646
      <eParameters name="otherLink" ordered="false" lowerBound="1" eType="#//Link"/>
1647
    </eOperations>
1648
    <eOperations name="delete" ordered="false" lowerBound="1" eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
1649
    <eStructuralFeatures xsi:type="ecore:EReference" name="secondElement" ordered="false"
1650
        lowerBound="1" eType="#//Element"/>
1651
    <eStructuralFeatures xsi:type="ecore:EReference" name="firstElement" ordered="false"
1652
        lowerBound="1" eType="#//Element"/>
1653
    <eStructuralFeatures xsi:type="ecore:EReference" name="association" ordered="false"
1654
        lowerBound="1" eType="#//Association"/>
1655
  </eClassifiers>
1656
  <eClassifiers xsi:type="ecore:EDataType" name="Extent" instanceClassName="org.eclipse.emf.ecore.resource.Resource">
1657
    <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
1658
      <details key="documentation" value="An Extent refers to a set of Objects. An object may be in more than one extent. An Extent is not an Object, it is part of the MOF facility."/>
1659
    </eAnnotations>
1660
  </eClassifiers>
1661
  <eClassifiers xsi:type="ecore:EClass" name="Tag" eSuperTypes="#//Element">
1662
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" ordered="false" lowerBound="1"
1663
        eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
1664
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="value" ordered="false"
1665
        lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
1666
    <eStructuralFeatures xsi:type="ecore:EReference" name="element" ordered="false"
1667
        upperBound="-1" eType="#//Element"/>
1668
  </eClassifiers>
1669
</ecore:EPackage>
(-)plugin.xml (-2 / +2 lines)
Lines 2-8 Link Here
2
<?eclipse version="3.0"?>
2
<?eclipse version="3.0"?>
3
3
4
<!--
4
<!--
5
 Copyright (c) 2005, 2006 IBM Corporation and others.
5
 Copyright (c) 2005, 2007 IBM Corporation and others.
6
 All rights reserved.   This program and the accompanying materials
6
 All rights reserved.   This program and the accompanying materials
7
 are made available under the terms of the Eclipse Public License v1.0
7
 are made available under the terms of the Eclipse Public License v1.0
8
 which accompanies this distribution, and is available at
8
 which accompanies this distribution, and is available at
Lines 40-46 Link Here
40
       id = "org.eclipse.uml2.uml.editor.presentation.UMLEditorID"
40
       id = "org.eclipse.uml2.uml.editor.presentation.UMLEditorID"
41
       name = "%_UI_UMLEditor_label"
41
       name = "%_UI_UMLEditor_label"
42
       icon = "icons/full/obj16/UMLModelFile.gif"
42
       icon = "icons/full/obj16/UMLModelFile.gif"
43
       extensions = "uml,uml2,xmi"
43
       extensions = "uml,uml2,xmi,cmof"
44
       class = "org.eclipse.uml2.uml.editor.presentation.UMLEditor" 
44
       class = "org.eclipse.uml2.uml.editor.presentation.UMLEditor" 
45
       contributorClass="org.eclipse.uml2.uml.editor.presentation.UMLActionBarContributor" >
45
       contributorClass="org.eclipse.uml2.uml.editor.presentation.UMLActionBarContributor" >
46
    </editor>
46
    </editor>
(-)src/org/eclipse/uml2/uml/editor/presentation/UMLEditor.java (+5 lines)
Lines 183-188 Link Here
183
183
184
import org.eclipse.uml2.uml.editor.UMLEditorPlugin;
184
import org.eclipse.uml2.uml.editor.UMLEditorPlugin;
185
185
186
import org.eclipse.uml2.uml.resource.CMOF2UMLExtendedMetaData;
187
import org.eclipse.uml2.uml.resource.CMOF2UMLResource;
186
import org.eclipse.uml2.uml.resource.UML22UMLExtendedMetaData;
188
import org.eclipse.uml2.uml.resource.UML22UMLExtendedMetaData;
187
import org.eclipse.uml2.uml.resource.UML22UMLResource;
189
import org.eclipse.uml2.uml.resource.UML22UMLResource;
188
import org.eclipse.uml2.uml.resource.UMLResource;
190
import org.eclipse.uml2.uml.resource.UMLResource;
Lines 941-951 Link Here
941
			UML22UMLResource.Factory.INSTANCE);
943
			UML22UMLResource.Factory.INSTANCE);
942
		extensionToFactoryMap.put(XMI2UMLResource.FILE_EXTENSION,
944
		extensionToFactoryMap.put(XMI2UMLResource.FILE_EXTENSION,
943
			XMI2UMLResource.Factory.INSTANCE);
945
			XMI2UMLResource.Factory.INSTANCE);
946
		extensionToFactoryMap.put(CMOF2UMLResource.FILE_EXTENSION,
947
			CMOF2UMLResource.Factory.INSTANCE);
944
948
945
		Map<URI, URI> uriMap = resourceSet.getURIConverter().getURIMap();
949
		Map<URI, URI> uriMap = resourceSet.getURIConverter().getURIMap();
946
950
947
		uriMap.putAll(UML22UMLExtendedMetaData.getURIMap());
951
		uriMap.putAll(UML22UMLExtendedMetaData.getURIMap());
948
		uriMap.putAll(XMI2UMLExtendedMetaData.getURIMap());
952
		uriMap.putAll(XMI2UMLExtendedMetaData.getURIMap());
953
		uriMap.putAll(CMOF2UMLExtendedMetaData.getURIMap());
949
954
950
		createModelGen();
955
		createModelGen();
951
956

Return to bug 199624