| <?xml version="1.0" encoding="UTF-8"?> |
| <genmodel:GenModel 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:genmodel="http://www.eclipse.org/uml2/2.2.0/GenModel" |
| copyrightText="Copyright (c) 2023 CEA LIST.

 All rights reserved. This program and the accompanying materials
 are made available under the terms of the Eclipse Public License 2.0
 which accompanies this distribution, and is available at
 https://www.eclipse.org/legal/epl-2.0/

 SPDX-License-Identifier: EPL-2.0

 Contributors:
 Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation" |
| modelDirectory="/org.eclipse.papyrus.model2doc.markup.uml.documentstructuretemplate/src-gen" |
| creationIcons="false" editDirectory="/org.eclipse.papyrus.model2doc.markup.uml.documentstructuretemplate.edit/src-gen" |
| editorDirectory="/org.eclipse.papyrus.model2doc.markup.uml.documentstructuretemplate.editor/src-gen" |
| modelPluginID="org.eclipse.papyrus.model2doc.markup.uml.documentstructuretemplate" |
| modelName="Markup-umldocumentstructuretemplate" editPluginClass="org.eclipse.papyrus.model2doc.markup.uml.documentstructuretemplate.provider.MarkupUMLDocumentStructureTemplateEditPlugin" |
| editorPluginClass="org.eclipse.papyrus.model2doc.markup.uml.documentstructuretemplate.presentation.MarkupUMLDocumentStructureTemplateEditorPlugin" |
| nonNLSMarkers="true" rootExtendsClass="org.eclipse.emf.ecore.impl.MinimalEObjectImpl$Container" |
| codeFormatting="true" commentFormatting="true" testsDirectory="/org.eclipse.papyrus.model2doc.markup.uml.documentstructuretemplate.tests/src-gen" |
| importerID="org.eclipse.uml2.uml.ecore.importer" complianceLevel="11.0" copyrightFields="false" |
| usedGenPackages="../../org.eclipse.papyrus.model2doc.core.author/model/author.genmodel#//author ../../org.eclipse.papyrus.model2doc.core.builtintypes/model/BuiltInTypes.genmodel#//builtintypes ../../org.eclipse.papyrus.model2doc.emf.documentstructuretemplate/model/documentstructuretemplate.genmodel#//documentstructuretemplate ../../org.eclipse.emf.ecore/model/Ecore.genmodel#//ecore ../../org.eclipse.papyrus.model2doc.core.generatorconfiguration/model/generatorconfiguration.genmodel#//generatorconfiguration ../../org.eclipse.papyrus.model2doc.markup.emf.documentstructuretemplate/model/markup-documentstructuretemplate.genmodel#//documentstructuretemplate ../../org.eclipse.papyrus.model2doc.core.styles/model/Styles.genmodel#//styles ../../org.eclipse.papyrus.model2doc.uml.documentstructuretemplate/model/umldocumentstructuretemplate.genmodel#//documentstructuretemplate ../../org.eclipse.papyrus.infra.emf.expressions/model/expressions.genmodel#//expressions/booleanexpressions ../../org.eclipse.papyrus.infra.emf.expressions/model/expressions.genmodel#//expressions" |
| operationReflection="true" importOrganizing="true" cleanup="true" oSGiCompatible="true" |
| eclipsePlatformVersion="2022-12" pluralizedGetters="true"> |
| <genAnnotations source="http://www.eclipse.org/emf/2002/GenModel/importer/org.eclipse.uml2.uml.ecore.importer"> |
| <details key="OPPOSITE_ROLE_NAMES" value="IGNORE"/> |
| <details key="DUPLICATE_FEATURES" value="PROCESS"/> |
| <details key="ANNOTATION_DETAILS" value="PROCESS"/> |
| <details key="PROPERTY_DEFAULT_EXPRESSIONS" value="IGNORE"/> |
| <details key="DUPLICATE_FEATURE_INHERITANCE" value="PROCESS"/> |
| <details key="COMMENTS" value="PROCESS"/> |
| <details key="DERIVED_FEATURES" value="PROCESS"/> |
| <details key="SUPER_CLASS_ORDER" value="PROCESS"/> |
| <details key="DUPLICATE_OPERATION_INHERITANCE" value="PROCESS"/> |
| <details key="REDEFINING_OPERATIONS" value="PROCESS"/> |
| <details key="INVARIANT_CONSTRAINTS" value="PROCESS"/> |
| <details key="UNION_PROPERTIES" value="REPORT"/> |
| <details key="DUPLICATE_OPERATIONS" value="PROCESS"/> |
| <details key="NON_API_INVARIANTS" value="IGNORE"/> |
| <details key="CAMEL_CASE_NAMES" value="IGNORE"/> |
| <details key="SUBSETTING_PROPERTIES" value="REPORT"/> |
| <details key="OPERATION_BODIES" value="IGNORE"/> |
| <details key="ECORE_TAGGED_VALUES" value="PROCESS"/> |
| <details key="UNTYPED_PROPERTIES" value="REPORT"/> |
| <details key="REDEFINING_PROPERTIES" value="PROCESS"/> |
| <details key="INVOCATION_DELEGATES" value="IGNORE"/> |
| <details key="VALIDATION_DELEGATES" value="IGNORE"/> |
| </genAnnotations> |
| <foreignModel>markup-umldocumentstructuretemplate.uml</foreignModel> |
| <genPackages xsi:type="genmodel:GenPackage" prefix="MarkupUMLDocumentStructureTemplate" |
| basePackage="org.eclipse.papyrus.model2doc.markup.uml" disposableProviderFactory="true" |
| multipleEditorPages="false" generateModelWizard="false" extensibleProviderFactory="true" |
| childCreationExtenders="true" ecorePackage="markup-umldocumentstructuretemplate.ecore#/"> |
| <genClasses xsi:type="genmodel:GenClass" ecoreClass="markup-umldocumentstructuretemplate.ecore#//StereotypePropertyAttributeInMarkupToFile"/> |
| <genClasses xsi:type="genmodel:GenClass" image="false" ecoreClass="markup-umldocumentstructuretemplate.ecore#//IMarkupUMLBodyPartTemplateTitle"/> |
| <genClasses xsi:type="genmodel:GenClass" ecoreClass="markup-umldocumentstructuretemplate.ecore#//CommentInMarkupToFile"> |
| <genFeatures xsi:type="genmodel:GenFeature" createChild="false" ecoreFeature="ecore:EAttribute markup-umldocumentstructuretemplate.ecore#//CommentInMarkupToFile/commentChoice"/> |
| <genOperations xsi:type="genmodel:GenOperation" ecoreOperation="markup-umldocumentstructuretemplate.ecore#//CommentInMarkupToFile/getMatchingComments" |
| body="if (false == element instanceof org.eclipse.uml2.uml.Element) {
	return org.eclipse.emf.common.util.ECollections.emptyEList();
}
final java.util.List<Comment> comments = ((org.eclipse.uml2.uml.Element) element).getOwnedComments().stream().filter(cmt -> cmt.getAnnotatedElements().contains(element)).collect(java.util.stream.Collectors.toList());
if (comments.isEmpty()) {
	return org.eclipse.emf.common.util.ECollections.emptyEList();
}
switch (this.commentChoice) {
case ALL_OWNED_COMMENTS:
	return org.eclipse.emf.common.util.ECollections.unmodifiableEList(comments);
case FIRST_OWNED_COMMENT:
	if (comments.size() > 0) {
		return org.eclipse.emf.common.util.ECollections.singletonEList(comments.get(0));
	}
default:
	// not possible
	return org.eclipse.emf.common.util.ECollections.emptyEList();
}"> |
| <genParameters xsi:type="genmodel:GenParameter" ecoreParameter="markup-umldocumentstructuretemplate.ecore#//CommentInMarkupToFile/getMatchingComments/element"/> |
| </genOperations> |
| </genClasses> |
| </genPackages> |
| </genmodel:GenModel> |