Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnsgar Radermacher2015-11-19 12:14:28 +0000
committerGerrit Code Review @ Eclipse.org2015-11-19 14:23:44 +0000
commitd3f91acb5d63c00dfe37b8cabf540a8fd3360029 (patch)
treee6a19b794db02432f6994885a9675753b3d2bc1f /extraplugins
parente3bfa6b23ce4600bf9233cc8dd2629477f83a94f (diff)
downloadorg.eclipse.papyrus-d3f91acb5d63c00dfe37b8cabf540a8fd3360029.tar.gz
org.eclipse.papyrus-d3f91acb5d63c00dfe37b8cabf540a8fd3360029.tar.xz
org.eclipse.papyrus-d3f91acb5d63c00dfe37b8cabf540a8fd3360029.zip
Bug 464249 - [Papyrus DSML Validation] The validation plugin generator silently ignores constraints without ValidationRule stereotype
Diffstat (limited to 'extraplugins')
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.wizard/META-INF/MANIFEST.MF3
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.wizard/src/org/eclipse/papyrus/dsml/validation/wizard/ValidationPluginGenerator.java37
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/resource/PapyrusDSMLValidationRule.ecore89
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/resource/PapyrusValidationRuleDSML.genmodel15
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/resource/PapyrusValidationRuleDSML.notation521
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/resource/PapyrusValidationRuleDSML.uml170
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/MessageHandling.java107
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/Mode.java42
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/NameBasedMsgMode.java241
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/PapyrusDSMLValidationRuleFactory.java13
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/PapyrusDSMLValidationRulePackage.java215
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/Severity.java56
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/ValidationRule.java68
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/impl/MessageHandlingImpl.java279
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/impl/PapyrusDSMLValidationRuleFactoryImpl.java95
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/impl/PapyrusDSMLValidationRulePackageImpl.java169
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/impl/ValidationRuleImpl.java311
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/util/PapyrusDSMLValidationRuleAdapterFactory.java53
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/util/PapyrusDSMLValidationRuleResourceFactoryImpl.java12
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/util/PapyrusDSMLValidationRuleResourceImpl.java5
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/util/PapyrusDSMLValidationRuleSwitch.java52
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/util/PapyrusDSMLValidationRuleXMLProcessor.java3
22 files changed, 1743 insertions, 813 deletions
diff --git a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.wizard/META-INF/MANIFEST.MF b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.wizard/META-INF/MANIFEST.MF
index fb4d9b5670d..923efa32607 100644
--- a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.wizard/META-INF/MANIFEST.MF
+++ b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.wizard/META-INF/MANIFEST.MF
@@ -13,7 +13,8 @@ Require-Bundle: org.eclipse.ui,
org.eclipse.papyrus.dsml.validation.generator;bundle-version="1.2.0",
org.eclipse.acceleo.engine;bundle-version="3.1.1",
org.eclipse.papyrus.customization;bundle-version="1.2.0",
- org.eclipse.papyrus.infra.core.log;bundle-version="1.2.0"
+ org.eclipse.papyrus.infra.core.log;bundle-version="1.2.0",
+ org.eclipse.papyrus.dsml.validation;bundle-version="1.2.0"
Bundle-Vendor: %pluginProvider
Bundle-ActivationPolicy: lazy
Bundle-Version: 1.2.0.qualifier
diff --git a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.wizard/src/org/eclipse/papyrus/dsml/validation/wizard/ValidationPluginGenerator.java b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.wizard/src/org/eclipse/papyrus/dsml/validation/wizard/ValidationPluginGenerator.java
index c64c15aeeaf..0ffaedb1b67 100644
--- a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.wizard/src/org/eclipse/papyrus/dsml/validation/wizard/ValidationPluginGenerator.java
+++ b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.wizard/src/org/eclipse/papyrus/dsml/validation/wizard/ValidationPluginGenerator.java
@@ -26,6 +26,8 @@ import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.papyrus.customization.plugin.PluginEditor;
+import org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.MessageHandling;
+import org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.NameBasedMsgMode;
import org.eclipse.papyrus.dsml.validation.model.elements.interfaces.Category;
import org.eclipse.papyrus.dsml.validation.model.elements.interfaces.IConstraintProvider;
import org.eclipse.papyrus.dsml.validation.model.elements.interfaces.IConstraintsCategory;
@@ -35,8 +37,10 @@ import org.eclipse.papyrus.dsml.validation.model.profilenames.Utils;
import org.eclipse.papyrus.eclipse.project.editors.file.ManifestEditor;
import org.eclipse.papyrus.eclipse.project.editors.interfaces.IPluginProjectEditor;
import org.eclipse.uml2.uml.Constraint;
+import org.eclipse.uml2.uml.Package;
import org.eclipse.uml2.uml.Stereotype;
import org.eclipse.uml2.uml.UMLPackage;
+import org.eclipse.uml2.uml.util.UMLUtil;
import org.w3c.dom.CDATASection;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
@@ -51,6 +55,11 @@ import org.xml.sax.SAXException;
*/
public class ValidationPluginGenerator {
+ /**
+ *
+ */
+ private static final String CONSTRAINT_S_IS_VIOLATED = "Constraint '%s' is violated"; //$NON-NLS-1$
+
private static final String XML_CONSTRAINT_TARGET = "target"; //$NON-NLS-1$
private static final String XML_CONSTRAINT_MESSAGE = "message"; //$NON-NLS-1$
@@ -236,12 +245,30 @@ public class ValidationPluginGenerator {
}
String validationMsg = validationRule.getMessage();
+ Element message = editor.addChild(extElForConstraint, XML_CONSTRAINT_MESSAGE);
if ((validationMsg != null) && (validationMsg.length() > 0)) {
- Element message = editor.addChild(extElForConstraint, XML_CONSTRAINT_MESSAGE);
message.setTextContent(validationMsg);
} else {
- Element message = editor.addChild(extElForConstraint, XML_CONSTRAINT_MESSAGE);
- message.setTextContent(validationRule.getName() + " not valid"); //$NON-NLS-1$
+ Package constraintPkg = validationRule.getConstraint().getNearestPackage();
+ boolean set = false;
+ if (constraintPkg != null) {
+ MessageHandling messageHandling = UMLUtil.getStereotypeApplication(constraintPkg, MessageHandling.class);
+ if (messageHandling != null) {
+ if (messageHandling.getMessageMode() == NameBasedMsgMode.NAME_IS_MESSAGE) {
+ message.setTextContent(validationRule.getName());
+ set = true;
+ } else if (messageHandling.getMessageMode() == NameBasedMsgMode.CUSTOM_TEMPLATE) {
+ String template = messageHandling.getCustomTemplate();
+ if (template != null && template.length() > 0) {
+ message.setTextContent(String.format(template, validationRule.getName()));
+ set = true;
+ }
+ }
+ }
+ }
+ if (!set) {
+ message.setTextContent(String.format(CONSTRAINT_S_IS_VIOLATED, validationRule.getName()));
+ }
}
if (validationRule.getDescription() != null) {
@@ -417,8 +444,8 @@ public class ValidationPluginGenerator {
* children are removed. This function enables multiple generation phases without duplicating elements.
*
* CAVEAT: This function has been changed: filtering is now based on its name instead of the ID. Using an
- * ID on the extension point level, unifies the associated contexts, see bug 467692 - [UML-RT] Multiple
- * issues when validating a UML-RT model
+ * ID on the extension point level, unifies the associated contexts, see bug 467692 - [UML-RT] Multiple
+ * issues when validating a UML-RT model
*
* @param editor
* the plugin editor
diff --git a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/resource/PapyrusDSMLValidationRule.ecore b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/resource/PapyrusDSMLValidationRule.ecore
index 155d3970414..343829d8a65 100644
--- a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/resource/PapyrusDSMLValidationRule.ecore
+++ b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/resource/PapyrusDSMLValidationRule.ecore
@@ -1,38 +1,51 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<ecore:EPackage 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" name="PapyrusDSMLValidationRule" nsURI="http://www.eclipse.org/papyrus/dsmlvalidation"
- nsPrefix="PapyrusDSMLValidationRule">
- <eClassifiers xsi:type="ecore:EClass" name="ValidationRule">
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="severity" ordered="false"
- lowerBound="1" eType="#//Severity" defaultValueLiteral="ERROR"/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="mode" ordered="false" lowerBound="1"
- eType="#//Mode" defaultValueLiteral="Batch"/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="isEnabledByDefault" ordered="false"
- lowerBound="1" eType="ecore:EDataType platform:/plugin/org.eclipse.uml2.types/model/Types.ecore#//Boolean"
- defaultValueLiteral="true"/>
- <eStructuralFeatures xsi:type="ecore:EReference" name="base_Constraint" ordered="false"
- lowerBound="1" eType="ecore:EClass platform:/plugin/org.eclipse.uml2.uml/model/UML.ecore#//Constraint"/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="statusCode" ordered="false"
- lowerBound="1" eType="ecore:EDataType platform:/plugin/org.eclipse.uml2.types/model/Types.ecore#//Integer"
- defaultValueLiteral="1"/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="message" ordered="false"
- eType="ecore:EDataType platform:/plugin/org.eclipse.uml2.types/model/Types.ecore#//String"/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="description" ordered="false"
- eType="ecore:EDataType platform:/plugin/org.eclipse.uml2.types/model/Types.ecore#//String"/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="target" ordered="false"
- upperBound="-1" eType="ecore:EDataType platform:/plugin/org.eclipse.uml2.types/model/Types.ecore#//String"/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="class" ordered="false"
- eType="ecore:EDataType platform:/plugin/org.eclipse.uml2.types/model/Types.ecore#//String"/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="id" ordered="false" eType="ecore:EDataType platform:/plugin/org.eclipse.uml2.types/model/Types.ecore#//String"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EEnum" name="Severity">
- <eLiterals name="ERROR"/>
- <eLiterals name="WARNING" value="1"/>
- <eLiterals name="INFO" value="2"/>
- <eLiterals name="CANCEL" value="3"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EEnum" name="Mode">
- <eLiterals name="Batch"/>
- <eLiterals name="Live" value="1"/>
- </eClassifiers>
-</ecore:EPackage>
+<?xml version="1.0" encoding="UTF-8"?>
+<ecore:EPackage 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" name="PapyrusDSMLValidationRule" nsURI="http://www.eclipse.org/papyrus/dsmlvalidation"
+ nsPrefix="PapyrusDSMLValidationRule">
+ <eClassifiers xsi:type="ecore:EClass" name="ValidationRule">
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="severity" ordered="false"
+ lowerBound="1" eType="#//Severity" defaultValueLiteral="ERROR"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="mode" ordered="false" lowerBound="1"
+ eType="#//Mode" defaultValueLiteral="Batch"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="isEnabledByDefault" ordered="false"
+ lowerBound="1" eType="ecore:EDataType ../../org.eclipse.uml2.types/model/Types.ecore#//Boolean"
+ defaultValueLiteral="true"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="base_Constraint" ordered="false"
+ lowerBound="1" eType="ecore:EClass ../../org.eclipse.uml2.uml/model/UML.ecore#//Constraint"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="statusCode" ordered="false"
+ lowerBound="1" eType="ecore:EDataType ../../org.eclipse.uml2.types/model/Types.ecore#//Integer"
+ defaultValueLiteral="1"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="message" ordered="false"
+ eType="ecore:EDataType ../../org.eclipse.uml2.types/model/Types.ecore#//String"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="description" ordered="false"
+ eType="ecore:EDataType ../../org.eclipse.uml2.types/model/Types.ecore#//String"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="target" ordered="false"
+ upperBound="-1" eType="ecore:EDataType ../../org.eclipse.uml2.types/model/Types.ecore#//String"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="class" ordered="false"
+ eType="ecore:EDataType ../../org.eclipse.uml2.types/model/Types.ecore#//String"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="id" ordered="false" eType="ecore:EDataType ../../org.eclipse.uml2.types/model/Types.ecore#//String"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EEnum" name="Severity">
+ <eLiterals name="ERROR"/>
+ <eLiterals name="WARNING" value="1"/>
+ <eLiterals name="INFO" value="2"/>
+ <eLiterals name="CANCEL" value="3"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EEnum" name="Mode">
+ <eLiterals name="Batch"/>
+ <eLiterals name="Live" value="1"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="MessageHandling">
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="messageMode" ordered="false"
+ lowerBound="1" eType="#//NameBasedMsgMode"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="base_Package" ordered="false"
+ lowerBound="1" eType="ecore:EClass ../../org.eclipse.uml2.uml/model/UML.ecore#//Package"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="customTemplate" ordered="false"
+ eType="ecore:EDataType ../../org.eclipse.uml2.types/model/Types.ecore#//String"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EEnum" name="NameBasedMsgMode">
+ <eLiterals name="Default"/>
+ <eLiterals name="NameIsMessage" value="1"/>
+ <eLiterals name="CustomTemplate" value="2"/>
+ </eClassifiers>
+</ecore:EPackage>
diff --git a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/resource/PapyrusValidationRuleDSML.genmodel b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/resource/PapyrusValidationRuleDSML.genmodel
index 131212d0b66..f0243e97d15 100644
--- a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/resource/PapyrusValidationRuleDSML.genmodel
+++ b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/resource/PapyrusValidationRuleDSML.genmodel
@@ -4,7 +4,7 @@
modelDirectory="/org.eclipse.papyrus.dsml.validation/src-gen" editDirectory="/org.eclipse.papyrus.dsml.validation.edit/src-gen"
editorDirectory="/org.eclipse.papyrus.dsml.validation.editor/src-gen" modelPluginID="org.eclipse.papyrus.dsml.validation"
modelName="PapyrusValidationRuleDSML" rootExtendsClass="org.eclipse.emf.ecore.impl.MinimalEObjectImpl$Container"
- testsDirectory="/org.eclipse.papyrus.dsml.validation.tests/src-gen" importerID="org.eclipse.uml2.uml.ecore.importer"
+ testsDirectory="/org.eclipse.papyrus.dsml.validation.tests/src-gen" importerID="org.eclipse.emf.importer.ecore"
complianceLevel="5.0" copyrightFields="false" usedGenPackages="../../org.eclipse.emf.ecore/model/Ecore.genmodel#//ecore ../../org.eclipse.uml2.types/model/Types.genmodel#//types ../../org.eclipse.uml2.uml/model/UML.genmodel#//uml"
operationReflection="true" importOrganizing="true">
<genAnnotations source="http://www.eclipse.org/emf/2002/GenModel/importer/org.eclipse.uml2.uml.ecore.importer">
@@ -31,7 +31,7 @@
<details key="CAMEL_CASE_NAMES" value="IGNORE"/>
<details key="SUPER_CLASS_ORDER" value="PROCESS"/>
</genAnnotations>
- <foreignModel>PapyrusValidationRuleDSML.uml</foreignModel>
+ <foreignModel>PapyrusDSMLValidationRule.ecore</foreignModel>
<genPackages xsi:type="genmodel:GenPackage" prefix="PapyrusDSMLValidationRule" basePackage="org.eclipse.papyrus.dsml.validation"
resource="XML" disposableProviderFactory="true" ecorePackage="PapyrusDSMLValidationRule.ecore#/">
<genEnums xsi:type="genmodel:GenEnum" typeSafeEnumCompatible="false" ecoreEnum="PapyrusDSMLValidationRule.ecore#//Severity">
@@ -44,6 +44,11 @@
<genEnumLiterals xsi:type="genmodel:GenEnumLiteral" ecoreEnumLiteral="PapyrusDSMLValidationRule.ecore#//Mode/Batch"/>
<genEnumLiterals xsi:type="genmodel:GenEnumLiteral" ecoreEnumLiteral="PapyrusDSMLValidationRule.ecore#//Mode/Live"/>
</genEnums>
+ <genEnums xsi:type="genmodel:GenEnum" typeSafeEnumCompatible="false" ecoreEnum="PapyrusDSMLValidationRule.ecore#//NameBasedMsgMode">
+ <genEnumLiterals xsi:type="genmodel:GenEnumLiteral" ecoreEnumLiteral="PapyrusDSMLValidationRule.ecore#//NameBasedMsgMode/Default"/>
+ <genEnumLiterals xsi:type="genmodel:GenEnumLiteral" ecoreEnumLiteral="PapyrusDSMLValidationRule.ecore#//NameBasedMsgMode/NameIsMessage"/>
+ <genEnumLiterals xsi:type="genmodel:GenEnumLiteral" ecoreEnumLiteral="PapyrusDSMLValidationRule.ecore#//NameBasedMsgMode/CustomTemplate"/>
+ </genEnums>
<genClasses xsi:type="genmodel:GenClass" ecoreClass="PapyrusDSMLValidationRule.ecore#//ValidationRule">
<genFeatures xsi:type="genmodel:GenFeature" createChild="false" ecoreFeature="ecore:EAttribute PapyrusDSMLValidationRule.ecore#//ValidationRule/severity"/>
<genFeatures xsi:type="genmodel:GenFeature" createChild="false" ecoreFeature="ecore:EAttribute PapyrusDSMLValidationRule.ecore#//ValidationRule/mode"/>
@@ -57,5 +62,11 @@
<genFeatures xsi:type="genmodel:GenFeature" createChild="false" ecoreFeature="ecore:EAttribute PapyrusDSMLValidationRule.ecore#//ValidationRule/class"/>
<genFeatures xsi:type="genmodel:GenFeature" createChild="false" ecoreFeature="ecore:EAttribute PapyrusDSMLValidationRule.ecore#//ValidationRule/id"/>
</genClasses>
+ <genClasses xsi:type="genmodel:GenClass" ecoreClass="PapyrusDSMLValidationRule.ecore#//MessageHandling">
+ <genFeatures xsi:type="genmodel:GenFeature" createChild="false" ecoreFeature="ecore:EAttribute PapyrusDSMLValidationRule.ecore#//MessageHandling/messageMode"/>
+ <genFeatures xsi:type="genmodel:GenFeature" notify="false" createChild="false"
+ propertySortChoices="true" ecoreFeature="ecore:EReference PapyrusDSMLValidationRule.ecore#//MessageHandling/base_Package"/>
+ <genFeatures xsi:type="genmodel:GenFeature" createChild="false" ecoreFeature="ecore:EAttribute PapyrusDSMLValidationRule.ecore#//MessageHandling/customTemplate"/>
+ </genClasses>
</genPackages>
</genmodel:GenModel>
diff --git a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/resource/PapyrusValidationRuleDSML.notation b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/resource/PapyrusValidationRuleDSML.notation
index 29b8d773e3b..c7a401197eb 100644
--- a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/resource/PapyrusValidationRuleDSML.notation
+++ b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/resource/PapyrusValidationRuleDSML.notation
@@ -1,183 +1,338 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<notation:Diagram xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:l2="http://www.eclipse.org/uml2/4.0.0/UML/Profile/L2" xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.2/notation" xmlns:uml="http://www.eclipse.org/uml2/4.0.0/UML" xmi:id="_S1N6UOhOEeCjcc2EgK3Uwg" type="PapyrusUMLProfileDiagram" name="PapyrusValidationRuleDSML" measurementUnit="Pixel">
- <children xmi:type="notation:Shape" xmi:id="_wrGk8OhOEeCjcc2EgK3Uwg" type="1031" fontName="Segoe UI" lineColor="0">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_wrHMAOhOEeCjcc2EgK3Uwg" source="ShadowFigure">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_wrHMAehOEeCjcc2EgK3Uwg" key="ShadowFigure_Value" value="false"/>
- </eAnnotations>
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_wrHMAuhOEeCjcc2EgK3Uwg" source="displayNameLabelIcon">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_wrHMA-hOEeCjcc2EgK3Uwg" key="displayNameLabelIcon_value" value="false"/>
- </eAnnotations>
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_wrHMBOhOEeCjcc2EgK3Uwg" source="QualifiedName">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_wrHMBehOEeCjcc2EgK3Uwg" key="QualifiedNameDepth" value="1000"/>
- </eAnnotations>
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_wrHzEOhOEeCjcc2EgK3Uwg" source="Stereotype_Annotation">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_Q6IUkNgTEeKgsd1mLVpBNQ" key="StereotypeWithQualifiedNameList" value=""/>
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_Q6IUkdgTEeKgsd1mLVpBNQ" key="StereotypeList" value=",StandardProfileL2::Metaclass"/>
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_Q6IUktgTEeKgsd1mLVpBNQ" key="Stereotype_Presentation_Kind" value="HorizontalStereo"/>
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_Q6IUk9gTEeKgsd1mLVpBNQ" key="PropStereoDisplay" value=""/>
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_Q6IUlNgTEeKgsd1mLVpBNQ" key="StereotypePropertyLocation" value="Compartment"/>
- </eAnnotations>
- <children xmi:type="notation:DecorationNode" xmi:id="_wrHMBuhOEeCjcc2EgK3Uwg" type="1084"/>
- <children xmi:type="notation:BasicCompartment" xmi:id="_QvxesNgTEeKgsd1mLVpBNQ" visible="false" type="AppliedStereotypeCompartement">
- <styles xmi:type="notation:TitleStyle" xmi:id="_QvxesdgTEeKgsd1mLVpBNQ" showTitle="true"/>
- <element xmi:type="l2:Metaclass" href="pathmap://UML_METAMODELS/UML.metamodel.uml#_Si8pwKtKEeGF4uwJob34Mw"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_QvxestgTEeKgsd1mLVpBNQ"/>
- </children>
- <children xmi:type="notation:BasicCompartment" xmi:id="_QvyFwNgTEeKgsd1mLVpBNQ" visible="false" type="compartment_shape_display">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_QvyFw9gTEeKgsd1mLVpBNQ" source="PapyrusCSSForceValue">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_QvyFxNgTEeKgsd1mLVpBNQ" key="mutable" value="true"/>
- </eAnnotations>
- <styles xmi:type="notation:TitleStyle" xmi:id="_QvyFwdgTEeKgsd1mLVpBNQ"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_QvyFwtgTEeKgsd1mLVpBNQ"/>
- </children>
- <element xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Constraint"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_wrHMB-hOEeCjcc2EgK3Uwg" x="50" y="15" width="231" height="77"/>
- </children>
- <children xmi:type="notation:Shape" xmi:id="_xvDVQOhOEeCjcc2EgK3Uwg" type="1026" fontName="Segoe UI" lineColor="0">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_xvD8UOhOEeCjcc2EgK3Uwg" source="ShadowFigure">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_xvEjYOhOEeCjcc2EgK3Uwg" key="ShadowFigure_Value" value="false"/>
- </eAnnotations>
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_xvEjYehOEeCjcc2EgK3Uwg" source="displayNameLabelIcon">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_xvEjYuhOEeCjcc2EgK3Uwg" key="displayNameLabelIcon_value" value="false"/>
- </eAnnotations>
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_xvEjY-hOEeCjcc2EgK3Uwg" source="QualifiedName">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_xvEjZOhOEeCjcc2EgK3Uwg" key="QualifiedNameDepth" value="1000"/>
- </eAnnotations>
- <children xmi:type="notation:DecorationNode" xmi:id="_xvEjZehOEeCjcc2EgK3Uwg" type="1034"/>
- <children xmi:type="notation:BasicCompartment" xmi:id="_xvFKcOhOEeCjcc2EgK3Uwg" type="1071">
- <children xmi:type="notation:Shape" xmi:id="_5xZwMOhQEeCjcc2EgK3Uwg" type="3002" fontName="Segoe UI" lineColor="0">
- <element xmi:type="uml:Property" href="PapyrusValidationRuleDSML.uml#_5xSbcOhQEeCjcc2EgK3Uwg"/>
- <layoutConstraint xmi:type="notation:Location" xmi:id="_5xZwMehQEeCjcc2EgK3Uwg"/>
- </children>
- <children xmi:type="notation:Shape" xmi:id="_8gWpwOhQEeCjcc2EgK3Uwg" type="3002" fontName="Segoe UI" lineColor="0">
- <element xmi:type="uml:Property" href="PapyrusValidationRuleDSML.uml#_8gPVAOhQEeCjcc2EgK3Uwg"/>
- <layoutConstraint xmi:type="notation:Location" xmi:id="_8gWpwehQEeCjcc2EgK3Uwg"/>
- </children>
- <children xmi:type="notation:Shape" xmi:id="_Gkg2UOhREeCjcc2EgK3Uwg" type="3002" fontName="Segoe UI" lineColor="0">
- <element xmi:type="uml:Property" href="PapyrusValidationRuleDSML.uml#_GkavsOhREeCjcc2EgK3Uwg"/>
- <layoutConstraint xmi:type="notation:Location" xmi:id="_Gkg2UehREeCjcc2EgK3Uwg"/>
- </children>
- <children xmi:type="notation:Shape" xmi:id="_vXtagOqrEeCnkfBG0tzRQg" type="3002" fontName="Segoe UI" lineColor="0">
- <element xmi:type="uml:Property" href="PapyrusValidationRuleDSML.uml#_vXrlUOqrEeCnkfBG0tzRQg"/>
- <layoutConstraint xmi:type="notation:Location" xmi:id="_vXtageqrEeCnkfBG0tzRQg"/>
- </children>
- <children xmi:type="notation:Shape" xmi:id="_ClYJQOqsEeCnkfBG0tzRQg" type="3002" fontName="Segoe UI" lineColor="0">
- <element xmi:type="uml:Property" href="PapyrusValidationRuleDSML.uml#_ClVF8OqsEeCnkfBG0tzRQg"/>
- <layoutConstraint xmi:type="notation:Location" xmi:id="_ClYJQeqsEeCnkfBG0tzRQg"/>
- </children>
- <children xmi:type="notation:Shape" xmi:id="_JFOhkOqsEeCnkfBG0tzRQg" type="3002" fontName="Segoe UI" lineColor="0">
- <element xmi:type="uml:Property" href="PapyrusValidationRuleDSML.uml#_JFLeQOqsEeCnkfBG0tzRQg"/>
- <layoutConstraint xmi:type="notation:Location" xmi:id="_JFOhkeqsEeCnkfBG0tzRQg"/>
- </children>
- <children xmi:type="notation:Shape" xmi:id="_gvp5EOq4EeCnkfBG0tzRQg" type="3002" fontName="Segoe UI" lineColor="0">
- <element xmi:type="uml:Property" href="PapyrusValidationRuleDSML.uml#_gvm1wOq4EeCnkfBG0tzRQg"/>
- <layoutConstraint xmi:type="notation:Location" xmi:id="_gvp5Eeq4EeCnkfBG0tzRQg"/>
- </children>
- <children xmi:type="notation:Shape" xmi:id="_gG0bkOt1EeCnkfBG0tzRQg" type="3002" fontName="Segoe UI" lineColor="0">
- <element xmi:type="uml:Property" href="PapyrusValidationRuleDSML.uml#_gGxYQOt1EeCnkfBG0tzRQg"/>
- <layoutConstraint xmi:type="notation:Location" xmi:id="_gG0bket1EeCnkfBG0tzRQg"/>
- </children>
- <styles xmi:type="notation:SortingStyle" xmi:id="_xvFKcehOEeCjcc2EgK3Uwg"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_xvFKcuhOEeCjcc2EgK3Uwg"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_xvFKc-hOEeCjcc2EgK3Uwg"/>
- </children>
- <children xmi:type="notation:BasicCompartment" xmi:id="_xvFKdOhOEeCjcc2EgK3Uwg" type="1019">
- <styles xmi:type="notation:SortingStyle" xmi:id="_xvFKdehOEeCjcc2EgK3Uwg"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_xvFKduhOEeCjcc2EgK3Uwg"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_xvFKd-hOEeCjcc2EgK3Uwg"/>
- </children>
- <children xmi:type="notation:BasicCompartment" xmi:id="_Qv0iANgTEeKgsd1mLVpBNQ" visible="false" type="compartment_shape_display">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_Qv0iA9gTEeKgsd1mLVpBNQ" source="PapyrusCSSForceValue">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_Qv0iBNgTEeKgsd1mLVpBNQ" key="mutable" value="true"/>
- </eAnnotations>
- <styles xmi:type="notation:TitleStyle" xmi:id="_Qv0iAdgTEeKgsd1mLVpBNQ"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Qv0iAtgTEeKgsd1mLVpBNQ"/>
- </children>
- <element xmi:type="uml:Stereotype" href="PapyrusValidationRuleDSML.uml#_xu6yYOhOEeCjcc2EgK3Uwg"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_xvDVQehOEeCjcc2EgK3Uwg" x="30" y="160" width="266" height="221"/>
- </children>
- <children xmi:type="notation:Shape" xmi:id="_1DQQ8OhOEeCjcc2EgK3Uwg" type="2006" fontName="Segoe UI" lineColor="0">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_1DQQ8uhOEeCjcc2EgK3Uwg" source="ShadowFigure">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_1DQQ8-hOEeCjcc2EgK3Uwg" key="ShadowFigure_Value" value="false"/>
- </eAnnotations>
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_1DQQ9OhOEeCjcc2EgK3Uwg" source="displayNameLabelIcon">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_1DQQ9ehOEeCjcc2EgK3Uwg" key="displayNameLabelIcon_value" value="false"/>
- </eAnnotations>
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_1DQQ9uhOEeCjcc2EgK3Uwg" source="QualifiedName">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_1DQ4AOhOEeCjcc2EgK3Uwg" key="QualifiedNameDepth" value="1000"/>
- </eAnnotations>
- <children xmi:type="notation:DecorationNode" xmi:id="_1DQ4AehOEeCjcc2EgK3Uwg" type="5023"/>
- <children xmi:type="notation:BasicCompartment" xmi:id="_1DQ4AuhOEeCjcc2EgK3Uwg" type="1063">
- <children xmi:type="notation:Shape" xmi:id="_3K9kUOhOEeCjcc2EgK3Uwg" type="1037" fontName="Segoe UI" lineColor="0">
- <element xmi:type="uml:EnumerationLiteral" href="PapyrusValidationRuleDSML.uml#_3K1ogOhOEeCjcc2EgK3Uwg"/>
- <layoutConstraint xmi:type="notation:Location" xmi:id="_3K9kUehOEeCjcc2EgK3Uwg"/>
- </children>
- <children xmi:type="notation:Shape" xmi:id="_3tmXUOhOEeCjcc2EgK3Uwg" type="1037" fontName="Segoe UI" lineColor="0">
- <element xmi:type="uml:EnumerationLiteral" href="PapyrusValidationRuleDSML.uml#_3td0cOhOEeCjcc2EgK3Uwg"/>
- <layoutConstraint xmi:type="notation:Location" xmi:id="_3tmXUehOEeCjcc2EgK3Uwg"/>
- </children>
- <children xmi:type="notation:Shape" xmi:id="_4SE9YOhOEeCjcc2EgK3Uwg" type="1037" fontName="Segoe UI" lineColor="0">
- <element xmi:type="uml:EnumerationLiteral" href="PapyrusValidationRuleDSML.uml#_4SAr8OhOEeCjcc2EgK3Uwg"/>
- <layoutConstraint xmi:type="notation:Location" xmi:id="_4SE9YehOEeCjcc2EgK3Uwg"/>
- </children>
- <children xmi:type="notation:Shape" xmi:id="_44FNcOhOEeCjcc2EgK3Uwg" type="1037" fontName="Segoe UI" lineColor="0">
- <element xmi:type="uml:EnumerationLiteral" href="PapyrusValidationRuleDSML.uml#_44A8AOhOEeCjcc2EgK3Uwg"/>
- <layoutConstraint xmi:type="notation:Location" xmi:id="_44FNcehOEeCjcc2EgK3Uwg"/>
- </children>
- <styles xmi:type="notation:SortingStyle" xmi:id="_1DQ4A-hOEeCjcc2EgK3Uwg"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_1DQ4BOhOEeCjcc2EgK3Uwg"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_1DQ4BehOEeCjcc2EgK3Uwg"/>
- </children>
- <children xmi:type="notation:BasicCompartment" xmi:id="_Qv6BkNgTEeKgsd1mLVpBNQ" visible="false" type="compartment_shape_display">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_Qv6Bk9gTEeKgsd1mLVpBNQ" source="PapyrusCSSForceValue">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_Qv6BlNgTEeKgsd1mLVpBNQ" key="mutable" value="true"/>
- </eAnnotations>
- <styles xmi:type="notation:TitleStyle" xmi:id="_Qv6BkdgTEeKgsd1mLVpBNQ"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Qv6BktgTEeKgsd1mLVpBNQ"/>
- </children>
- <element xmi:type="uml:Enumeration" href="PapyrusValidationRuleDSML.uml#_1CpM8OhOEeCjcc2EgK3Uwg"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_1DQQ8ehOEeCjcc2EgK3Uwg" x="330" y="250" width="181" height="116"/>
- </children>
- <children xmi:type="notation:Shape" xmi:id="_97TPsOhOEeCjcc2EgK3Uwg" type="2006" fontName="Segoe UI" lineColor="0">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_97Ud0OhOEeCjcc2EgK3Uwg" source="ShadowFigure">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_97Ud0ehOEeCjcc2EgK3Uwg" key="ShadowFigure_Value" value="false"/>
- </eAnnotations>
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_97Ud0uhOEeCjcc2EgK3Uwg" source="displayNameLabelIcon">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_97Ud0-hOEeCjcc2EgK3Uwg" key="displayNameLabelIcon_value" value="false"/>
- </eAnnotations>
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_97VE4OhOEeCjcc2EgK3Uwg" source="QualifiedName">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_97VE4ehOEeCjcc2EgK3Uwg" key="QualifiedNameDepth" value="1000"/>
- </eAnnotations>
- <children xmi:type="notation:DecorationNode" xmi:id="_97VE4uhOEeCjcc2EgK3Uwg" type="5023"/>
- <children xmi:type="notation:BasicCompartment" xmi:id="_97VE4-hOEeCjcc2EgK3Uwg" type="1063">
- <children xmi:type="notation:Shape" xmi:id="_-4MVwOhOEeCjcc2EgK3Uwg" type="1037" fontName="Segoe UI" lineColor="0">
- <element xmi:type="uml:EnumerationLiteral" href="PapyrusValidationRuleDSML.uml#_-4BWoOhOEeCjcc2EgK3Uwg"/>
- <layoutConstraint xmi:type="notation:Location" xmi:id="_-4MVwehOEeCjcc2EgK3Uwg"/>
- </children>
- <children xmi:type="notation:Shape" xmi:id="_43cCUOhQEeCjcc2EgK3Uwg" type="1037" fontName="Segoe UI" lineColor="0">
- <element xmi:type="uml:EnumerationLiteral" href="PapyrusValidationRuleDSML.uml#_43Xw4OhQEeCjcc2EgK3Uwg"/>
- <layoutConstraint xmi:type="notation:Location" xmi:id="_43cCUehQEeCjcc2EgK3Uwg"/>
- </children>
- <styles xmi:type="notation:SortingStyle" xmi:id="_97VE5OhOEeCjcc2EgK3Uwg"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_97VE5ehOEeCjcc2EgK3Uwg"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_97VE5uhOEeCjcc2EgK3Uwg"/>
- </children>
- <children xmi:type="notation:BasicCompartment" xmi:id="_Qv8d0NgTEeKgsd1mLVpBNQ" visible="false" type="compartment_shape_display">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_Qv8d09gTEeKgsd1mLVpBNQ" source="PapyrusCSSForceValue">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_Qv8d1NgTEeKgsd1mLVpBNQ" key="mutable" value="true"/>
- </eAnnotations>
- <styles xmi:type="notation:TitleStyle" xmi:id="_Qv8d0dgTEeKgsd1mLVpBNQ"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Qv8d0tgTEeKgsd1mLVpBNQ"/>
- </children>
- <element xmi:type="uml:Enumeration" href="PapyrusValidationRuleDSML.uml#_97I3oOhOEeCjcc2EgK3Uwg"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_97T2wOhOEeCjcc2EgK3Uwg" x="325" y="85" width="186" height="116"/>
- </children>
- <styles xmi:type="notation:DiagramStyle" xmi:id="_S1N6UehOEeCjcc2EgK3Uwg"/>
- <element xmi:type="uml:Profile" href="PapyrusValidationRuleDSML.uml#__sUW0OhNEeCjcc2EgK3Uwg"/>
- <edges xmi:type="notation:Connector" xmi:id="_I_zNAOhREeCjcc2EgK3Uwg" type="1013" source="_xvDVQOhOEeCjcc2EgK3Uwg" target="_wrGk8OhOEeCjcc2EgK3Uwg" lineColor="0">
- <styles xmi:type="notation:FontStyle" xmi:id="_I_zNAehREeCjcc2EgK3Uwg" fontName="Segoe UI"/>
- <element xmi:type="uml:Extension" href="PapyrusValidationRuleDSML.uml#_I_fD8OhREeCjcc2EgK3Uwg"/>
- <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_I_zNAuhREeCjcc2EgK3Uwg" points="[2, -22, 14, 113]$[43, -96, 55, 39]"/>
- <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_I_8W8OhREeCjcc2EgK3Uwg" id="(0.5198237885462555,0.1981981981981982)"/>
- </edges>
-</notation:Diagram>
+<?xml version="1.0" encoding="UTF-8"?>
+<notation:Diagram 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:notation="http://www.eclipse.org/gmf/runtime/1.0.2/notation" xmlns:standard="http://www.eclipse.org/uml2/5.0.0/UML/Profile/Standard" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML" xmi:id="_S1N6UOhOEeCjcc2EgK3Uwg" type="PapyrusUMLProfileDiagram" name="PapyrusValidationRuleDSML" measurementUnit="Pixel">
+ <children xmi:type="notation:Shape" xmi:id="_wrGk8OhOEeCjcc2EgK3Uwg" type="1031" fontName="Segoe UI" lineColor="0">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_wrHMAOhOEeCjcc2EgK3Uwg" source="ShadowFigure">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_wrHMAehOEeCjcc2EgK3Uwg" key="ShadowFigure_Value" value="false"/>
+ </eAnnotations>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_wrHMAuhOEeCjcc2EgK3Uwg" source="displayNameLabelIcon">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_wrHMA-hOEeCjcc2EgK3Uwg" key="displayNameLabelIcon_value" value="false"/>
+ </eAnnotations>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_wrHMBOhOEeCjcc2EgK3Uwg" source="QualifiedName">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_wrHMBehOEeCjcc2EgK3Uwg" key="QualifiedNameDepth" value="1000"/>
+ </eAnnotations>
+ <children xmi:type="notation:DecorationNode" xmi:id="_wrHMBuhOEeCjcc2EgK3Uwg" type="1084"/>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_QvxesNgTEeKgsd1mLVpBNQ" visible="false" type="AppliedStereotypeCompartement">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_QvxesdgTEeKgsd1mLVpBNQ" showTitle="true"/>
+ <element xmi:type="standard:Metaclass" href="pathmap://UML_METAMODELS/UML.metamodel.uml#_Si8pwKtKEeGF4uwJob34Mw"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_QvxestgTEeKgsd1mLVpBNQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_QvyFwNgTEeKgsd1mLVpBNQ" visible="false" type="compartment_shape_display">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_QvyFw9gTEeKgsd1mLVpBNQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_QvyFxNgTEeKgsd1mLVpBNQ" key="mutable" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_QvyFwdgTEeKgsd1mLVpBNQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_QvyFwtgTEeKgsd1mLVpBNQ"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_l5BE8I1REeWYosrjsYCWsA" visible="false" type="StereotypeLabel">
+ <styles xmi:type="notation:StringValueStyle" xmi:id="_l5BE8Y1REeWYosrjsYCWsA" name="stereotype" stringValue="StandardProfile::Metaclass"/>
+ <element xmi:type="uml:Stereotype" href="pathmap://UML_PROFILES/Standard.profile.uml#Metaclass"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_l5BsAI1REeWYosrjsYCWsA"/>
+ </children>
+ <element xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Constraint"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_wrHMB-hOEeCjcc2EgK3Uwg" x="40" y="20" width="241" height="61"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_xvDVQOhOEeCjcc2EgK3Uwg" type="1026" fontName="Segoe UI" lineColor="0">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_xvD8UOhOEeCjcc2EgK3Uwg" source="ShadowFigure">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_xvEjYOhOEeCjcc2EgK3Uwg" key="ShadowFigure_Value" value="false"/>
+ </eAnnotations>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_xvEjYehOEeCjcc2EgK3Uwg" source="displayNameLabelIcon">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_xvEjYuhOEeCjcc2EgK3Uwg" key="displayNameLabelIcon_value" value="false"/>
+ </eAnnotations>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_xvEjY-hOEeCjcc2EgK3Uwg" source="QualifiedName">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_xvEjZOhOEeCjcc2EgK3Uwg" key="QualifiedNameDepth" value="1000"/>
+ </eAnnotations>
+ <children xmi:type="notation:DecorationNode" xmi:id="_xvEjZehOEeCjcc2EgK3Uwg" type="1034"/>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_xvFKcOhOEeCjcc2EgK3Uwg" type="1071">
+ <children xmi:type="notation:Shape" xmi:id="_5xZwMOhQEeCjcc2EgK3Uwg" type="3002" fontName="Segoe UI" lineColor="0">
+ <styles xmi:type="notation:StringListValueStyle" xmi:id="_RC_b0I1SEeWYosrjsYCWsA" name="maskLabel">
+ <stringListValue>multiplicity</stringListValue>
+ <stringListValue>name</stringListValue>
+ <stringListValue>type</stringListValue>
+ <stringListValue>derived</stringListValue>
+ </styles>
+ <element xmi:type="uml:Property" href="PapyrusValidationRuleDSML.uml#_5xSbcOhQEeCjcc2EgK3Uwg"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_5xZwMehQEeCjcc2EgK3Uwg"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_8gWpwOhQEeCjcc2EgK3Uwg" type="3002" fontName="Segoe UI" lineColor="0">
+ <styles xmi:type="notation:StringListValueStyle" xmi:id="_RgM8QI1SEeWYosrjsYCWsA" name="maskLabel">
+ <stringListValue>multiplicity</stringListValue>
+ <stringListValue>name</stringListValue>
+ <stringListValue>type</stringListValue>
+ <stringListValue>derived</stringListValue>
+ </styles>
+ <element xmi:type="uml:Property" href="PapyrusValidationRuleDSML.uml#_8gPVAOhQEeCjcc2EgK3Uwg"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_8gWpwehQEeCjcc2EgK3Uwg"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_Gkg2UOhREeCjcc2EgK3Uwg" type="3002" fontName="Segoe UI" lineColor="0">
+ <styles xmi:type="notation:StringListValueStyle" xmi:id="_TgYEQI1SEeWYosrjsYCWsA" name="maskLabel">
+ <stringListValue>multiplicity</stringListValue>
+ <stringListValue>name</stringListValue>
+ <stringListValue>type</stringListValue>
+ <stringListValue>derived</stringListValue>
+ </styles>
+ <element xmi:type="uml:Property" href="PapyrusValidationRuleDSML.uml#_GkavsOhREeCjcc2EgK3Uwg"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_Gkg2UehREeCjcc2EgK3Uwg"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_vXtagOqrEeCnkfBG0tzRQg" type="3002" fontName="Segoe UI" lineColor="0">
+ <styles xmi:type="notation:StringListValueStyle" xmi:id="_T-nfcI1SEeWYosrjsYCWsA" name="maskLabel">
+ <stringListValue>multiplicity</stringListValue>
+ <stringListValue>name</stringListValue>
+ <stringListValue>type</stringListValue>
+ <stringListValue>derived</stringListValue>
+ </styles>
+ <element xmi:type="uml:Property" href="PapyrusValidationRuleDSML.uml#_vXrlUOqrEeCnkfBG0tzRQg"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_vXtageqrEeCnkfBG0tzRQg"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_ClYJQOqsEeCnkfBG0tzRQg" type="3002" fontName="Segoe UI" lineColor="0">
+ <styles xmi:type="notation:StringListValueStyle" xmi:id="_Uij6AI1SEeWYosrjsYCWsA" name="maskLabel">
+ <stringListValue>multiplicity</stringListValue>
+ <stringListValue>name</stringListValue>
+ <stringListValue>type</stringListValue>
+ <stringListValue>derived</stringListValue>
+ </styles>
+ <element xmi:type="uml:Property" href="PapyrusValidationRuleDSML.uml#_ClVF8OqsEeCnkfBG0tzRQg"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_ClYJQeqsEeCnkfBG0tzRQg"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_JFOhkOqsEeCnkfBG0tzRQg" type="3002" fontName="Segoe UI" lineColor="0">
+ <styles xmi:type="notation:StringListValueStyle" xmi:id="_VAZFgI1SEeWYosrjsYCWsA" name="maskLabel">
+ <stringListValue>multiplicity</stringListValue>
+ <stringListValue>name</stringListValue>
+ <stringListValue>type</stringListValue>
+ <stringListValue>derived</stringListValue>
+ </styles>
+ <element xmi:type="uml:Property" href="PapyrusValidationRuleDSML.uml#_JFLeQOqsEeCnkfBG0tzRQg"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_JFOhkeqsEeCnkfBG0tzRQg"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_gvp5EOq4EeCnkfBG0tzRQg" type="3002" fontName="Segoe UI" lineColor="0">
+ <styles xmi:type="notation:StringListValueStyle" xmi:id="_VdDzYI1SEeWYosrjsYCWsA" name="maskLabel">
+ <stringListValue>multiplicity</stringListValue>
+ <stringListValue>name</stringListValue>
+ <stringListValue>type</stringListValue>
+ <stringListValue>derived</stringListValue>
+ </styles>
+ <element xmi:type="uml:Property" href="PapyrusValidationRuleDSML.uml#_gvm1wOq4EeCnkfBG0tzRQg"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_gvp5Eeq4EeCnkfBG0tzRQg"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_gG0bkOt1EeCnkfBG0tzRQg" type="3002" fontName="Segoe UI" lineColor="0">
+ <styles xmi:type="notation:StringListValueStyle" xmi:id="_WAIrQI1SEeWYosrjsYCWsA" name="maskLabel">
+ <stringListValue>multiplicity</stringListValue>
+ <stringListValue>name</stringListValue>
+ <stringListValue>type</stringListValue>
+ <stringListValue>derived</stringListValue>
+ </styles>
+ <element xmi:type="uml:Property" href="PapyrusValidationRuleDSML.uml#_gGxYQOt1EeCnkfBG0tzRQg"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_gG0bket1EeCnkfBG0tzRQg"/>
+ </children>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_xvFKcehOEeCjcc2EgK3Uwg"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_xvFKcuhOEeCjcc2EgK3Uwg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_xvFKc-hOEeCjcc2EgK3Uwg"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_xvFKdOhOEeCjcc2EgK3Uwg" visible="false" type="1019">
+ <styles xmi:type="notation:SortingStyle" xmi:id="_xvFKdehOEeCjcc2EgK3Uwg"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_xvFKduhOEeCjcc2EgK3Uwg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_xvFKd-hOEeCjcc2EgK3Uwg"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_Qv0iANgTEeKgsd1mLVpBNQ" visible="false" type="compartment_shape_display">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_Qv0iA9gTEeKgsd1mLVpBNQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_Qv0iBNgTEeKgsd1mLVpBNQ" key="mutable" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_Qv0iAdgTEeKgsd1mLVpBNQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Qv0iAtgTEeKgsd1mLVpBNQ"/>
+ </children>
+ <element xmi:type="uml:Stereotype" href="PapyrusValidationRuleDSML.uml#_xu6yYOhOEeCjcc2EgK3Uwg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_xvDVQehOEeCjcc2EgK3Uwg" x="40" y="160" width="241" height="201"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_1DQQ8OhOEeCjcc2EgK3Uwg" type="2006" fontName="Segoe UI" lineColor="0">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_1DQQ8uhOEeCjcc2EgK3Uwg" source="ShadowFigure">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_1DQQ8-hOEeCjcc2EgK3Uwg" key="ShadowFigure_Value" value="false"/>
+ </eAnnotations>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_1DQQ9OhOEeCjcc2EgK3Uwg" source="displayNameLabelIcon">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_1DQQ9ehOEeCjcc2EgK3Uwg" key="displayNameLabelIcon_value" value="false"/>
+ </eAnnotations>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_1DQQ9uhOEeCjcc2EgK3Uwg" source="QualifiedName">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_1DQ4AOhOEeCjcc2EgK3Uwg" key="QualifiedNameDepth" value="1000"/>
+ </eAnnotations>
+ <children xmi:type="notation:DecorationNode" xmi:id="_1DQ4AehOEeCjcc2EgK3Uwg" type="5023"/>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_1DQ4AuhOEeCjcc2EgK3Uwg" type="1063">
+ <children xmi:type="notation:Shape" xmi:id="_3K9kUOhOEeCjcc2EgK3Uwg" type="1037" fontName="Segoe UI" lineColor="0">
+ <element xmi:type="uml:EnumerationLiteral" href="PapyrusValidationRuleDSML.uml#_3K1ogOhOEeCjcc2EgK3Uwg"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_3K9kUehOEeCjcc2EgK3Uwg"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_3tmXUOhOEeCjcc2EgK3Uwg" type="1037" fontName="Segoe UI" lineColor="0">
+ <element xmi:type="uml:EnumerationLiteral" href="PapyrusValidationRuleDSML.uml#_3td0cOhOEeCjcc2EgK3Uwg"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_3tmXUehOEeCjcc2EgK3Uwg"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_4SE9YOhOEeCjcc2EgK3Uwg" type="1037" fontName="Segoe UI" lineColor="0">
+ <element xmi:type="uml:EnumerationLiteral" href="PapyrusValidationRuleDSML.uml#_4SAr8OhOEeCjcc2EgK3Uwg"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_4SE9YehOEeCjcc2EgK3Uwg"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_44FNcOhOEeCjcc2EgK3Uwg" type="1037" fontName="Segoe UI" lineColor="0">
+ <element xmi:type="uml:EnumerationLiteral" href="PapyrusValidationRuleDSML.uml#_44A8AOhOEeCjcc2EgK3Uwg"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_44FNcehOEeCjcc2EgK3Uwg"/>
+ </children>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_1DQ4A-hOEeCjcc2EgK3Uwg"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_1DQ4BOhOEeCjcc2EgK3Uwg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_1DQ4BehOEeCjcc2EgK3Uwg"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_Qv6BkNgTEeKgsd1mLVpBNQ" visible="false" type="compartment_shape_display">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_Qv6Bk9gTEeKgsd1mLVpBNQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_Qv6BlNgTEeKgsd1mLVpBNQ" key="mutable" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_Qv6BkdgTEeKgsd1mLVpBNQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Qv6BktgTEeKgsd1mLVpBNQ"/>
+ </children>
+ <element xmi:type="uml:Enumeration" href="PapyrusValidationRuleDSML.uml#_1CpM8OhOEeCjcc2EgK3Uwg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_1DQQ8ehOEeCjcc2EgK3Uwg" x="320" y="260" width="181" height="101"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_97TPsOhOEeCjcc2EgK3Uwg" type="2006" fontName="Segoe UI" lineColor="0">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_97Ud0OhOEeCjcc2EgK3Uwg" source="ShadowFigure">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_97Ud0ehOEeCjcc2EgK3Uwg" key="ShadowFigure_Value" value="false"/>
+ </eAnnotations>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_97Ud0uhOEeCjcc2EgK3Uwg" source="displayNameLabelIcon">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_97Ud0-hOEeCjcc2EgK3Uwg" key="displayNameLabelIcon_value" value="false"/>
+ </eAnnotations>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_97VE4OhOEeCjcc2EgK3Uwg" source="QualifiedName">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_97VE4ehOEeCjcc2EgK3Uwg" key="QualifiedNameDepth" value="1000"/>
+ </eAnnotations>
+ <children xmi:type="notation:DecorationNode" xmi:id="_97VE4uhOEeCjcc2EgK3Uwg" type="5023"/>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_97VE4-hOEeCjcc2EgK3Uwg" type="1063">
+ <children xmi:type="notation:Shape" xmi:id="_-4MVwOhOEeCjcc2EgK3Uwg" type="1037" fontName="Segoe UI" lineColor="0">
+ <element xmi:type="uml:EnumerationLiteral" href="PapyrusValidationRuleDSML.uml#_-4BWoOhOEeCjcc2EgK3Uwg"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_-4MVwehOEeCjcc2EgK3Uwg"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_43cCUOhQEeCjcc2EgK3Uwg" type="1037" fontName="Segoe UI" lineColor="0">
+ <element xmi:type="uml:EnumerationLiteral" href="PapyrusValidationRuleDSML.uml#_43Xw4OhQEeCjcc2EgK3Uwg"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_43cCUehQEeCjcc2EgK3Uwg"/>
+ </children>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_97VE5OhOEeCjcc2EgK3Uwg"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_97VE5ehOEeCjcc2EgK3Uwg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_97VE5uhOEeCjcc2EgK3Uwg"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_Qv8d0NgTEeKgsd1mLVpBNQ" visible="false" type="compartment_shape_display">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_Qv8d09gTEeKgsd1mLVpBNQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_Qv8d1NgTEeKgsd1mLVpBNQ" key="mutable" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_Qv8d0dgTEeKgsd1mLVpBNQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Qv8d0tgTEeKgsd1mLVpBNQ"/>
+ </children>
+ <element xmi:type="uml:Enumeration" href="PapyrusValidationRuleDSML.uml#_97I3oOhOEeCjcc2EgK3Uwg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_97T2wOhOEeCjcc2EgK3Uwg" x="540" y="260" width="181" height="101"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_l5SKsI1REeWYosrjsYCWsA" type="StereotypeComment">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_l5SKsY1REeWYosrjsYCWsA" showTitle="true"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_l5SxwI1REeWYosrjsYCWsA" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Constraint"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_l5SKso1REeWYosrjsYCWsA" x="250" y="15"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_9X8NgI1REeWYosrjsYCWsA" type="1031">
+ <children xmi:type="notation:DecorationNode" xmi:id="_9X-CsI1REeWYosrjsYCWsA" type="1084"/>
+ <element xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Package"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_9X-CsY1REeWYosrjsYCWsA" x="320" y="20" width="281" height="61"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_9YXEQI1REeWYosrjsYCWsA" type="StereotypeComment">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_9YXEQY1REeWYosrjsYCWsA" showTitle="true"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_9YXEQ41REeWYosrjsYCWsA" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Package"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_9YXEQo1REeWYosrjsYCWsA" x="540" y="20"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_B_luEI1SEeWYosrjsYCWsA" type="1026">
+ <children xmi:type="notation:DecorationNode" xmi:id="_B_luEo1SEeWYosrjsYCWsA" type="1034"/>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_B_luE41SEeWYosrjsYCWsA" type="1071">
+ <children xmi:type="notation:Shape" xmi:id="_La3VsI1SEeWYosrjsYCWsA" type="3002">
+ <styles xmi:type="notation:StringListValueStyle" xmi:id="_P11sMI1SEeWYosrjsYCWsA" name="maskLabel">
+ <stringListValue>multiplicity</stringListValue>
+ <stringListValue>name</stringListValue>
+ <stringListValue>type</stringListValue>
+ <stringListValue>derived</stringListValue>
+ </styles>
+ <element xmi:type="uml:Property" href="PapyrusValidationRuleDSML.uml#_Lap6UI1SEeWYosrjsYCWsA"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_La3VsY1SEeWYosrjsYCWsA"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_Wye5sI4MEeWYTrG6651VjA" type="3002">
+ <styles xmi:type="notation:StringListValueStyle" xmi:id="_mUB8AI4MEeWYTrG6651VjA" name="maskLabel">
+ <stringListValue>multiplicity</stringListValue>
+ <stringListValue>name</stringListValue>
+ <stringListValue>type</stringListValue>
+ <stringListValue>derived</stringListValue>
+ </styles>
+ <element xmi:type="uml:Property" href="PapyrusValidationRuleDSML.uml#_WyNM4I4MEeWYTrG6651VjA"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_Wye5sY4MEeWYTrG6651VjA"/>
+ </children>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_B_luFI1SEeWYosrjsYCWsA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_B_luFY1SEeWYosrjsYCWsA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_B_luFo1SEeWYosrjsYCWsA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_B_luF41SEeWYosrjsYCWsA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_B_luGI1SEeWYosrjsYCWsA" visible="false" type="1019">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_B_luGY1SEeWYosrjsYCWsA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_B_luGo1SEeWYosrjsYCWsA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_B_luG41SEeWYosrjsYCWsA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_B_luHI1SEeWYosrjsYCWsA"/>
+ </children>
+ <element xmi:type="uml:Stereotype" href="PapyrusValidationRuleDSML.uml#_B_fAYI1SEeWYosrjsYCWsA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_B_luEY1SEeWYosrjsYCWsA" x="320" y="160" width="301" height="81"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_rIg-sI4MEeWYTrG6651VjA" type="2006">
+ <children xmi:type="notation:DecorationNode" xmi:id="_rIhlwI4MEeWYTrG6651VjA" type="5023"/>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_rIhlwY4MEeWYTrG6651VjA" type="1063">
+ <children xmi:type="notation:Shape" xmi:id="_wVJboI4MEeWYTrG6651VjA" type="1037">
+ <element xmi:type="uml:EnumerationLiteral" href="PapyrusValidationRuleDSML.uml#_wU_qoI4MEeWYTrG6651VjA"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_wVJboY4MEeWYTrG6651VjA"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_0GbU4I4MEeWYTrG6651VjA" type="1037">
+ <element xmi:type="uml:EnumerationLiteral" href="PapyrusValidationRuleDSML.uml#_0GPHoI4MEeWYTrG6651VjA"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_0GbU4Y4MEeWYTrG6651VjA"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_3BSjgI4MEeWYTrG6651VjA" type="1037">
+ <element xmi:type="uml:EnumerationLiteral" href="PapyrusValidationRuleDSML.uml#_3BILcI4MEeWYTrG6651VjA"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_3BSjgY4MEeWYTrG6651VjA"/>
+ </children>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_rIhlwo4MEeWYTrG6651VjA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_rIhlw44MEeWYTrG6651VjA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_rIhlxI4MEeWYTrG6651VjA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_rIhlxY4MEeWYTrG6651VjA"/>
+ </children>
+ <element xmi:type="uml:Enumeration" href="PapyrusValidationRuleDSML.uml#_rIeicI4MEeWYTrG6651VjA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_rIg-sY4MEeWYTrG6651VjA" x="760" y="260" width="181" height="101"/>
+ </children>
+ <styles xmi:type="notation:DiagramStyle" xmi:id="_S1N6UehOEeCjcc2EgK3Uwg"/>
+ <styles xmi:type="notation:StringValueStyle" xmi:id="_lyHywI1REeWYosrjsYCWsA" name="diagram_compatibility_version" stringValue="1.1.0"/>
+ <element xmi:type="uml:Profile" href="PapyrusValidationRuleDSML.uml#__sUW0OhNEeCjcc2EgK3Uwg"/>
+ <edges xmi:type="notation:Connector" xmi:id="_I_zNAOhREeCjcc2EgK3Uwg" type="1013" source="_xvDVQOhOEeCjcc2EgK3Uwg" target="_wrGk8OhOEeCjcc2EgK3Uwg" lineColor="0">
+ <styles xmi:type="notation:FontStyle" xmi:id="_I_zNAehREeCjcc2EgK3Uwg" fontName="Segoe UI"/>
+ <element xmi:type="uml:Extension" href="PapyrusValidationRuleDSML.uml#_I_fD8OhREeCjcc2EgK3Uwg"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_I_zNAuhREeCjcc2EgK3Uwg" points="[2, -22, 14, 113]$[43, -96, 55, 39]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_I_8W8OhREeCjcc2EgK3Uwg" id="(0.5198237885462555,0.1981981981981982)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_l5SxwY1REeWYosrjsYCWsA" type="StereotypeCommentLink" source="_wrGk8OhOEeCjcc2EgK3Uwg" target="_l5SKsI1REeWYosrjsYCWsA">
+ <styles xmi:type="notation:FontStyle" xmi:id="_l5Sxwo1REeWYosrjsYCWsA"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_l5Sxxo1REeWYosrjsYCWsA" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Constraint"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_l5Sxw41REeWYosrjsYCWsA" points="[0, 0, 0, 0]$[0, 0, 0, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_l5SxxI1REeWYosrjsYCWsA"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_l5SxxY1REeWYosrjsYCWsA"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_9YXERI1REeWYosrjsYCWsA" type="StereotypeCommentLink" source="_9X8NgI1REeWYosrjsYCWsA" target="_9YXEQI1REeWYosrjsYCWsA">
+ <styles xmi:type="notation:FontStyle" xmi:id="_9YXERY1REeWYosrjsYCWsA"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_9YXESY1REeWYosrjsYCWsA" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Package"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_9YXERo1REeWYosrjsYCWsA" points="[0, 0, 0, 0]$[0, 0, 0, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_9YXER41REeWYosrjsYCWsA"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_9YXESI1REeWYosrjsYCWsA"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_ZI82UI1SEeWYosrjsYCWsA" type="1013" source="_B_luEI1SEeWYosrjsYCWsA" target="_9X8NgI1REeWYosrjsYCWsA">
+ <styles xmi:type="notation:FontStyle" xmi:id="_ZI82UY1SEeWYosrjsYCWsA"/>
+ <element xmi:type="uml:Extension" href="PapyrusValidationRuleDSML.uml#_ZIkb0I1SEeWYosrjsYCWsA"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_ZI82Uo1SEeWYosrjsYCWsA" points="[440, 160, -643984, -643984]$[420, 81, -643984, -643984]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_ZJUpwI1SEeWYosrjsYCWsA" id="(0.498220640569395,0.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_ZJVQ0I1SEeWYosrjsYCWsA" id="(0.498220640569395,1.0)"/>
+ </edges>
+</notation:Diagram>
diff --git a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/resource/PapyrusValidationRuleDSML.uml b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/resource/PapyrusValidationRuleDSML.uml
index 40c30f3bd54..aec3f60fad3 100644
--- a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/resource/PapyrusValidationRuleDSML.uml
+++ b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/resource/PapyrusValidationRuleDSML.uml
@@ -1,71 +1,99 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<uml:Profile xmi:version="20131001" xmlns:xmi="http://www.omg.org/spec/XMI/20131001" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML" xmi:id="__sUW0OhNEeCjcc2EgK3Uwg" name="PapyrusDSMLValidationRule" URI="http://www.eclipse.org/papyrus/dsmlvalidation" metaclassReference="_wrBFYOhOEeCjcc2EgK3Uwg">
- <elementImport xmi:id="_wrBFYOhOEeCjcc2EgK3Uwg" alias="Constraint">
- <importedElement xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Constraint"/>
- </elementImport>
- <packagedElement xmi:type="uml:Stereotype" xmi:id="_xu6yYOhOEeCjcc2EgK3Uwg" name="ValidationRule">
- <ownedAttribute xmi:id="_5xSbcOhQEeCjcc2EgK3Uwg" name="severity" visibility="public" type="_1CpM8OhOEeCjcc2EgK3Uwg">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_6YAdMOhQEeCjcc2EgK3Uwg" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_6YCSYOhQEeCjcc2EgK3Uwg" value="1"/>
- <defaultValue xmi:type="uml:InstanceValue" xmi:id="_3DogkNgmEeKOqNIXy22Xwg" type="_1CpM8OhOEeCjcc2EgK3Uwg" instance="_3K1ogOhOEeCjcc2EgK3Uwg"/>
- </ownedAttribute>
- <ownedAttribute xmi:id="_8gPVAOhQEeCjcc2EgK3Uwg" name="mode" visibility="public" type="_97I3oOhOEeCjcc2EgK3Uwg">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_9H_RgOhQEeCjcc2EgK3Uwg" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_9IBGsOhQEeCjcc2EgK3Uwg" value="1"/>
- <defaultValue xmi:type="uml:InstanceValue" xmi:id="_9iCucNgmEeKOqNIXy22Xwg" type="_97I3oOhOEeCjcc2EgK3Uwg" instance="_-4BWoOhOEeCjcc2EgK3Uwg"/>
- </ownedAttribute>
- <ownedAttribute xmi:id="_GkavsOhREeCjcc2EgK3Uwg" name="isEnabledByDefault" visibility="public">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Boolean"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_HZ0tsOhREeCjcc2EgK3Uwg" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_HZ2i4OhREeCjcc2EgK3Uwg" value="1"/>
- <defaultValue xmi:type="uml:LiteralBoolean" xmi:id="_0BdJANgmEeKOqNIXy22Xwg" value="true"/>
- </ownedAttribute>
- <ownedAttribute xmi:id="_I_ec4OhREeCjcc2EgK3Uwg" name="base_Constraint" association="_I_fD8OhREeCjcc2EgK3Uwg">
- <type xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Constraint"/>
- </ownedAttribute>
- <ownedAttribute xmi:id="_vXrlUOqrEeCnkfBG0tzRQg" name="statusCode">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_XFjVANgTEeKgsd1mLVpBNQ" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_XFtGANgTEeKgsd1mLVpBNQ" value="1"/>
- <defaultValue xmi:type="uml:LiteralInteger" xmi:id="_ZUED4NgnEeKOqNIXy22Xwg" value="1"/>
- </ownedAttribute>
- <ownedAttribute xmi:id="_ClVF8OqsEeCnkfBG0tzRQg" name="message">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_oBa2gPleEeC9cqGrFP9Xuw"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_oBpgAPleEeC9cqGrFP9Xuw" value="1"/>
- </ownedAttribute>
- <ownedAttribute xmi:id="_JFLeQOqsEeCnkfBG0tzRQg" name="description">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_pAft4PleEeC9cqGrFP9Xuw"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_pAsiMPleEeC9cqGrFP9Xuw" value="1"/>
- </ownedAttribute>
- <ownedAttribute xmi:id="_gvm1wOq4EeCnkfBG0tzRQg" name="target">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_Ps-IsPaAEeCNFabmhlIhLg"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_PtUuAPaAEeCNFabmhlIhLg" value="*"/>
- </ownedAttribute>
- <ownedAttribute xmi:id="_a1vCoOtYEeCnkfBG0tzRQg" name="class">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_yu5U8NgmEeKOqNIXy22Xwg"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_yvE7INgmEeKOqNIXy22Xwg" value="1"/>
- </ownedAttribute>
- <ownedAttribute xmi:id="_gGxYQOt1EeCnkfBG0tzRQg" name="id">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_VGHM0NgTEeKgsd1mLVpBNQ"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_VGOhkNgTEeKgsd1mLVpBNQ" value="1"/>
- </ownedAttribute>
- </packagedElement>
- <packagedElement xmi:type="uml:Enumeration" xmi:id="_1CpM8OhOEeCjcc2EgK3Uwg" name="Severity">
- <ownedLiteral xmi:id="_3K1ogOhOEeCjcc2EgK3Uwg" name="ERROR"/>
- <ownedLiteral xmi:id="_3td0cOhOEeCjcc2EgK3Uwg" name="WARNING"/>
- <ownedLiteral xmi:id="_4SAr8OhOEeCjcc2EgK3Uwg" name="INFO"/>
- <ownedLiteral xmi:id="_44A8AOhOEeCjcc2EgK3Uwg" name="CANCEL"/>
- </packagedElement>
- <packagedElement xmi:type="uml:Enumeration" xmi:id="_97I3oOhOEeCjcc2EgK3Uwg" name="Mode">
- <ownedLiteral xmi:id="_-4BWoOhOEeCjcc2EgK3Uwg" name="Batch"/>
- <ownedLiteral xmi:id="_43Xw4OhQEeCjcc2EgK3Uwg" name="Live"/>
- </packagedElement>
- <packagedElement xmi:type="uml:Extension" xmi:id="_I_fD8OhREeCjcc2EgK3Uwg" name="E_ValidationRule_Constraint1" memberEnd="_I_fD8ehREeCjcc2EgK3Uwg _I_ec4OhREeCjcc2EgK3Uwg">
- <ownedEnd xmi:type="uml:ExtensionEnd" xmi:id="_I_fD8ehREeCjcc2EgK3Uwg" name="extension_ValidationRule" type="_xu6yYOhOEeCjcc2EgK3Uwg" aggregation="composite" association="_I_fD8OhREeCjcc2EgK3Uwg"/>
- </packagedElement>
-</uml:Profile>
+<?xml version="1.0" encoding="UTF-8"?>
+<uml:Profile xmi:version="20131001" xmlns:xmi="http://www.omg.org/spec/XMI/20131001" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML" xmi:id="__sUW0OhNEeCjcc2EgK3Uwg" name="PapyrusDSMLValidationRule" URI="http://www.eclipse.org/papyrus/dsmlvalidation" metaclassReference="_wrBFYOhOEeCjcc2EgK3Uwg _9X5KMI1REeWYosrjsYCWsA">
+ <elementImport xmi:type="uml:ElementImport" xmi:id="_wrBFYOhOEeCjcc2EgK3Uwg" alias="Constraint">
+ <importedElement xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Constraint"/>
+ </elementImport>
+ <elementImport xmi:type="uml:ElementImport" xmi:id="_9X5KMI1REeWYosrjsYCWsA" alias="Package">
+ <importedElement xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Package"/>
+ </elementImport>
+ <packagedElement xmi:type="uml:Stereotype" xmi:id="_xu6yYOhOEeCjcc2EgK3Uwg" name="ValidationRule">
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_5xSbcOhQEeCjcc2EgK3Uwg" name="severity" visibility="public" type="_1CpM8OhOEeCjcc2EgK3Uwg">
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_6YAdMOhQEeCjcc2EgK3Uwg" value="1"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_6YCSYOhQEeCjcc2EgK3Uwg" value="1"/>
+ <defaultValue xmi:type="uml:InstanceValue" xmi:id="_3DogkNgmEeKOqNIXy22Xwg" type="_1CpM8OhOEeCjcc2EgK3Uwg" instance="_3K1ogOhOEeCjcc2EgK3Uwg"/>
+ </ownedAttribute>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_8gPVAOhQEeCjcc2EgK3Uwg" name="mode" visibility="public" type="_97I3oOhOEeCjcc2EgK3Uwg">
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_9H_RgOhQEeCjcc2EgK3Uwg" value="1"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_9IBGsOhQEeCjcc2EgK3Uwg" value="1"/>
+ <defaultValue xmi:type="uml:InstanceValue" xmi:id="_9iCucNgmEeKOqNIXy22Xwg" type="_97I3oOhOEeCjcc2EgK3Uwg" instance="_-4BWoOhOEeCjcc2EgK3Uwg"/>
+ </ownedAttribute>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_GkavsOhREeCjcc2EgK3Uwg" name="isEnabledByDefault" visibility="public">
+ <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Boolean"/>
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_HZ0tsOhREeCjcc2EgK3Uwg" value="1"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_HZ2i4OhREeCjcc2EgK3Uwg" value="1"/>
+ <defaultValue xmi:type="uml:LiteralBoolean" xmi:id="_0BdJANgmEeKOqNIXy22Xwg" value="true"/>
+ </ownedAttribute>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_I_ec4OhREeCjcc2EgK3Uwg" name="base_Constraint" association="_I_fD8OhREeCjcc2EgK3Uwg">
+ <type xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Constraint"/>
+ </ownedAttribute>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_vXrlUOqrEeCnkfBG0tzRQg" name="statusCode">
+ <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_XFjVANgTEeKgsd1mLVpBNQ" value="1"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_XFtGANgTEeKgsd1mLVpBNQ" value="1"/>
+ <defaultValue xmi:type="uml:LiteralInteger" xmi:id="_ZUED4NgnEeKOqNIXy22Xwg" value="1"/>
+ </ownedAttribute>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_ClVF8OqsEeCnkfBG0tzRQg" name="message">
+ <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_oBa2gPleEeC9cqGrFP9Xuw"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_oBpgAPleEeC9cqGrFP9Xuw" value="1"/>
+ </ownedAttribute>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_JFLeQOqsEeCnkfBG0tzRQg" name="description">
+ <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_pAft4PleEeC9cqGrFP9Xuw"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_pAsiMPleEeC9cqGrFP9Xuw" value="1"/>
+ </ownedAttribute>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_gvm1wOq4EeCnkfBG0tzRQg" name="target">
+ <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_Ps-IsPaAEeCNFabmhlIhLg"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_PtUuAPaAEeCNFabmhlIhLg" value="*"/>
+ </ownedAttribute>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_a1vCoOtYEeCnkfBG0tzRQg" name="class">
+ <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_yu5U8NgmEeKOqNIXy22Xwg"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_yvE7INgmEeKOqNIXy22Xwg" value="1"/>
+ </ownedAttribute>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_gGxYQOt1EeCnkfBG0tzRQg" name="id">
+ <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_VGHM0NgTEeKgsd1mLVpBNQ"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_VGOhkNgTEeKgsd1mLVpBNQ" value="1"/>
+ </ownedAttribute>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Enumeration" xmi:id="_1CpM8OhOEeCjcc2EgK3Uwg" name="Severity">
+ <ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="_3K1ogOhOEeCjcc2EgK3Uwg" name="ERROR"/>
+ <ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="_3td0cOhOEeCjcc2EgK3Uwg" name="WARNING"/>
+ <ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="_4SAr8OhOEeCjcc2EgK3Uwg" name="INFO"/>
+ <ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="_44A8AOhOEeCjcc2EgK3Uwg" name="CANCEL"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Enumeration" xmi:id="_97I3oOhOEeCjcc2EgK3Uwg" name="Mode">
+ <ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="_-4BWoOhOEeCjcc2EgK3Uwg" name="Batch"/>
+ <ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="_43Xw4OhQEeCjcc2EgK3Uwg" name="Live"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Extension" xmi:id="_I_fD8OhREeCjcc2EgK3Uwg" name="E_ValidationRule_Constraint1" memberEnd="_I_fD8ehREeCjcc2EgK3Uwg _I_ec4OhREeCjcc2EgK3Uwg">
+ <ownedEnd xmi:type="uml:ExtensionEnd" xmi:id="_I_fD8ehREeCjcc2EgK3Uwg" name="extension_ValidationRule" type="_xu6yYOhOEeCjcc2EgK3Uwg" aggregation="composite" association="_I_fD8OhREeCjcc2EgK3Uwg"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Stereotype" xmi:id="_B_fAYI1SEeWYosrjsYCWsA" name="MessageHandling">
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_Lap6UI1SEeWYosrjsYCWsA" name="messageMode" visibility="public" type="_rIeicI4MEeWYTrG6651VjA"/>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_ZImRAY1SEeWYosrjsYCWsA" name="base_Package" association="_ZIkb0I1SEeWYosrjsYCWsA">
+ <type xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Package"/>
+ </ownedAttribute>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_WyNM4I4MEeWYTrG6651VjA" name="customTemplate" visibility="public">
+ <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_DIQqcI4PEeWmSrQiOQqlLg"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_DIZNUI4PEeWmSrQiOQqlLg" value="1"/>
+ </ownedAttribute>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Extension" xmi:id="_ZIkb0I1SEeWYosrjsYCWsA" name="E_MessageHandling_Package1" memberEnd="_ZImRAI1SEeWYosrjsYCWsA _ZImRAY1SEeWYosrjsYCWsA">
+ <ownedEnd xmi:type="uml:ExtensionEnd" xmi:id="_ZImRAI1SEeWYosrjsYCWsA" name="extension_MessageHandling" type="_B_fAYI1SEeWYosrjsYCWsA" aggregation="composite" association="_ZIkb0I1SEeWYosrjsYCWsA"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Enumeration" xmi:id="_rIeicI4MEeWYTrG6651VjA" name="NameBasedMsgMode">
+ <ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="_wU_qoI4MEeWYTrG6651VjA" name="Default"/>
+ <ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="_0GPHoI4MEeWYTrG6651VjA" name="NameIsMessage"/>
+ <ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="_3BILcI4MEeWYTrG6651VjA" name="CustomTemplate"/>
+ </packagedElement>
+ <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_jxbQ4I1SEeWYosrjsYCWsA">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_jxb38I1SEeWYosrjsYCWsA" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#_Kv8EIKFXEeS_KNX0nfvIVQ"/>
+ </eAnnotations>
+ <appliedProfile xmi:type="uml:Profile" href="pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#ActionLanguage"/>
+ </profileApplication>
+</uml:Profile>
diff --git a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/MessageHandling.java b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/MessageHandling.java
new file mode 100644
index 00000000000..2467735ad09
--- /dev/null
+++ b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/MessageHandling.java
@@ -0,0 +1,107 @@
+/**
+ */
+package org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Message Handling</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.MessageHandling#getMessageMode <em>Message Mode</em>}</li>
+ * <li>{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.MessageHandling#getBase_Package <em>Base Package</em>}</li>
+ * <li>{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.MessageHandling#getCustomTemplate <em>Custom Template</em>}</li>
+ * </ul>
+ *
+ * @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.PapyrusDSMLValidationRulePackage#getMessageHandling()
+ * @model
+ * @generated
+ */
+public interface MessageHandling extends EObject {
+ /**
+ * Returns the value of the '<em><b>Message Mode</b></em>' attribute.
+ * The literals are from the enumeration {@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.NameBasedMsgMode}.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Message Mode</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Message Mode</em>' attribute.
+ * @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.NameBasedMsgMode
+ * @see #setMessageMode(NameBasedMsgMode)
+ * @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.PapyrusDSMLValidationRulePackage#getMessageHandling_MessageMode()
+ * @model required="true" ordered="false"
+ * @generated
+ */
+ NameBasedMsgMode getMessageMode();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.MessageHandling#getMessageMode <em>Message Mode</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Message Mode</em>' attribute.
+ * @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.NameBasedMsgMode
+ * @see #getMessageMode()
+ * @generated
+ */
+ void setMessageMode(NameBasedMsgMode value);
+
+ /**
+ * Returns the value of the '<em><b>Base Package</b></em>' reference.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Base Package</em>' reference isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Base Package</em>' reference.
+ * @see #setBase_Package(org.eclipse.uml2.uml.Package)
+ * @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.PapyrusDSMLValidationRulePackage#getMessageHandling_Base_Package()
+ * @model required="true" ordered="false"
+ * @generated
+ */
+ org.eclipse.uml2.uml.Package getBase_Package();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.MessageHandling#getBase_Package <em>Base Package</em>}' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Base Package</em>' reference.
+ * @see #getBase_Package()
+ * @generated
+ */
+ void setBase_Package(org.eclipse.uml2.uml.Package value);
+
+ /**
+ * Returns the value of the '<em><b>Custom Template</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Custom Template</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Custom Template</em>' attribute.
+ * @see #setCustomTemplate(String)
+ * @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.PapyrusDSMLValidationRulePackage#getMessageHandling_CustomTemplate()
+ * @model dataType="org.eclipse.uml2.types.String" ordered="false"
+ * @generated
+ */
+ String getCustomTemplate();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.MessageHandling#getCustomTemplate <em>Custom Template</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Custom Template</em>' attribute.
+ * @see #getCustomTemplate()
+ * @generated
+ */
+ void setCustomTemplate(String value);
+
+} // MessageHandling
diff --git a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/Mode.java b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/Mode.java
index 2c42d80f4e0..72e15fc792f 100644
--- a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/Mode.java
+++ b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/Mode.java
@@ -13,7 +13,6 @@ import org.eclipse.emf.common.util.Enumerator;
* A representation of the literals of the enumeration '<em><b>Mode</b></em>',
* and utility methods for working with them.
* <!-- end-user-doc -->
- *
* @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.PapyrusDSMLValidationRulePackage#getMode()
* @model
* @generated
@@ -23,7 +22,6 @@ public enum Mode implements Enumerator {
* The '<em><b>Batch</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #BATCH_VALUE
* @generated
* @ordered
@@ -34,7 +32,6 @@ public enum Mode implements Enumerator {
* The '<em><b>Live</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #LIVE_VALUE
* @generated
* @ordered
@@ -48,7 +45,6 @@ public enum Mode implements Enumerator {
* If the meaning of '<em><b>Batch</b></em>' literal object isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- *
* @see #BATCH
* @model name="Batch"
* @generated
@@ -63,7 +59,6 @@ public enum Mode implements Enumerator {
* If the meaning of '<em><b>Live</b></em>' literal object isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- *
* @see #LIVE
* @model name="Live"
* @generated
@@ -75,20 +70,18 @@ public enum Mode implements Enumerator {
* An array of all the '<em><b>Mode</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
private static final Mode[] VALUES_ARRAY =
new Mode[] {
- BATCH,
- LIVE,
- };
+ BATCH,
+ LIVE,
+ };
/**
* A public read-only list of all the '<em><b>Mode</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public static final List<Mode> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
@@ -97,7 +90,8 @@ public enum Mode implements Enumerator {
* Returns the '<em><b>Mode</b></em>' literal with the specified literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ * @param literal the literal.
+ * @return the matching enumerator or <code>null</code>.
* @generated
*/
public static Mode get(String literal) {
@@ -114,7 +108,8 @@ public enum Mode implements Enumerator {
* Returns the '<em><b>Mode</b></em>' literal with the specified name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ * @param name the name.
+ * @return the matching enumerator or <code>null</code>.
* @generated
*/
public static Mode getByName(String name) {
@@ -131,15 +126,14 @@ public enum Mode implements Enumerator {
* Returns the '<em><b>Mode</b></em>' literal with the specified integer value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ * @param value the integer value.
+ * @return the matching enumerator or <code>null</code>.
* @generated
*/
public static Mode get(int value) {
switch (value) {
- case BATCH_VALUE:
- return BATCH;
- case LIVE_VALUE:
- return LIVE;
+ case BATCH_VALUE: return BATCH;
+ case LIVE_VALUE: return LIVE;
}
return null;
}
@@ -147,7 +141,6 @@ public enum Mode implements Enumerator {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
private final int value;
@@ -155,7 +148,6 @@ public enum Mode implements Enumerator {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
private final String name;
@@ -163,7 +155,6 @@ public enum Mode implements Enumerator {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
private final String literal;
@@ -172,7 +163,6 @@ public enum Mode implements Enumerator {
* Only this class can construct instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
private Mode(int value, String name, String literal) {
@@ -184,38 +174,34 @@ public enum Mode implements Enumerator {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public int getValue() {
- return value;
+ return value;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public String getName() {
- return name;
+ return name;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public String getLiteral() {
- return literal;
+ return literal;
}
/**
* Returns the literal value of the enumerator, which is its string representation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
diff --git a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/NameBasedMsgMode.java b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/NameBasedMsgMode.java
new file mode 100644
index 00000000000..b09e88aed52
--- /dev/null
+++ b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/NameBasedMsgMode.java
@@ -0,0 +1,241 @@
+/**
+ */
+package org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.emf.common.util.Enumerator;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the literals of the enumeration '<em><b>Name Based Msg Mode</b></em>',
+ * and utility methods for working with them.
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.PapyrusDSMLValidationRulePackage#getNameBasedMsgMode()
+ * @model
+ * @generated
+ */
+public enum NameBasedMsgMode implements Enumerator {
+ /**
+ * The '<em><b>Default</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #DEFAULT_VALUE
+ * @generated
+ * @ordered
+ */
+ DEFAULT(0, "Default", "Default"),
+
+ /**
+ * The '<em><b>Name Is Message</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #NAME_IS_MESSAGE_VALUE
+ * @generated
+ * @ordered
+ */
+ NAME_IS_MESSAGE(1, "NameIsMessage", "NameIsMessage"),
+
+ /**
+ * The '<em><b>Custom Template</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #CUSTOM_TEMPLATE_VALUE
+ * @generated
+ * @ordered
+ */
+ CUSTOM_TEMPLATE(2, "CustomTemplate", "CustomTemplate");
+
+ /**
+ * The '<em><b>Default</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>Default</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #DEFAULT
+ * @model name="Default"
+ * @generated
+ * @ordered
+ */
+ public static final int DEFAULT_VALUE = 0;
+
+ /**
+ * The '<em><b>Name Is Message</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>Name Is Message</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #NAME_IS_MESSAGE
+ * @model name="NameIsMessage"
+ * @generated
+ * @ordered
+ */
+ public static final int NAME_IS_MESSAGE_VALUE = 1;
+
+ /**
+ * The '<em><b>Custom Template</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>Custom Template</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #CUSTOM_TEMPLATE
+ * @model name="CustomTemplate"
+ * @generated
+ * @ordered
+ */
+ public static final int CUSTOM_TEMPLATE_VALUE = 2;
+
+ /**
+ * An array of all the '<em><b>Name Based Msg Mode</b></em>' enumerators.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private static final NameBasedMsgMode[] VALUES_ARRAY =
+ new NameBasedMsgMode[] {
+ DEFAULT,
+ NAME_IS_MESSAGE,
+ CUSTOM_TEMPLATE,
+ };
+
+ /**
+ * A public read-only list of all the '<em><b>Name Based Msg Mode</b></em>' enumerators.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static final List<NameBasedMsgMode> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
+
+ /**
+ * Returns the '<em><b>Name Based Msg Mode</b></em>' literal with the specified literal value.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param literal the literal.
+ * @return the matching enumerator or <code>null</code>.
+ * @generated
+ */
+ public static NameBasedMsgMode get(String literal) {
+ for (int i = 0; i < VALUES_ARRAY.length; ++i) {
+ NameBasedMsgMode result = VALUES_ARRAY[i];
+ if (result.toString().equals(literal)) {
+ return result;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * Returns the '<em><b>Name Based Msg Mode</b></em>' literal with the specified name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param name the name.
+ * @return the matching enumerator or <code>null</code>.
+ * @generated
+ */
+ public static NameBasedMsgMode getByName(String name) {
+ for (int i = 0; i < VALUES_ARRAY.length; ++i) {
+ NameBasedMsgMode result = VALUES_ARRAY[i];
+ if (result.getName().equals(name)) {
+ return result;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * Returns the '<em><b>Name Based Msg Mode</b></em>' literal with the specified integer value.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the integer value.
+ * @return the matching enumerator or <code>null</code>.
+ * @generated
+ */
+ public static NameBasedMsgMode get(int value) {
+ switch (value) {
+ case DEFAULT_VALUE: return DEFAULT;
+ case NAME_IS_MESSAGE_VALUE: return NAME_IS_MESSAGE;
+ case CUSTOM_TEMPLATE_VALUE: return CUSTOM_TEMPLATE;
+ }
+ return null;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private final int value;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private final String name;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private final String literal;
+
+ /**
+ * Only this class can construct instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private NameBasedMsgMode(int value, String name, String literal) {
+ this.value = value;
+ this.name = name;
+ this.literal = literal;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public int getValue() {
+ return value;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getLiteral() {
+ return literal;
+ }
+
+ /**
+ * Returns the literal value of the enumerator, which is its string representation.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString() {
+ return literal;
+ }
+
+} //NameBasedMsgMode
diff --git a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/PapyrusDSMLValidationRuleFactory.java b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/PapyrusDSMLValidationRuleFactory.java
index e8d2c619dbd..199bb0956ce 100644
--- a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/PapyrusDSMLValidationRuleFactory.java
+++ b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/PapyrusDSMLValidationRuleFactory.java
@@ -9,7 +9,6 @@ import org.eclipse.emf.ecore.EFactory;
* The <b>Factory</b> for the model.
* It provides a create method for each non-abstract class of the model.
* <!-- end-user-doc -->
- *
* @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.PapyrusDSMLValidationRulePackage
* @generated
*/
@@ -18,7 +17,6 @@ public interface PapyrusDSMLValidationRuleFactory extends EFactory {
* The singleton instance of the factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
PapyrusDSMLValidationRuleFactory eINSTANCE = org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.impl.PapyrusDSMLValidationRuleFactoryImpl.init();
@@ -27,17 +25,24 @@ public interface PapyrusDSMLValidationRuleFactory extends EFactory {
* Returns a new object of class '<em>Validation Rule</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @return a new object of class '<em>Validation Rule</em>'.
* @generated
*/
ValidationRule createValidationRule();
/**
+ * Returns a new object of class '<em>Message Handling</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Message Handling</em>'.
+ * @generated
+ */
+ MessageHandling createMessageHandling();
+
+ /**
* Returns the package supported by this factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @return the package supported by this factory.
* @generated
*/
diff --git a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/PapyrusDSMLValidationRulePackage.java b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/PapyrusDSMLValidationRulePackage.java
index 043c8bdf032..43c95ae594e 100644
--- a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/PapyrusDSMLValidationRulePackage.java
+++ b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/PapyrusDSMLValidationRulePackage.java
@@ -20,7 +20,6 @@ import org.eclipse.emf.ecore.EReference;
* <li>and each data type</li>
* </ul>
* <!-- end-user-doc -->
- *
* @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.PapyrusDSMLValidationRuleFactory
* @model kind="package"
* @generated
@@ -30,7 +29,6 @@ public interface PapyrusDSMLValidationRulePackage extends EPackage {
* The package name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
String eNAME = "PapyrusDSMLValidationRule";
@@ -39,7 +37,6 @@ public interface PapyrusDSMLValidationRulePackage extends EPackage {
* The package namespace URI.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
String eNS_URI = "http://www.eclipse.org/papyrus/dsmlvalidation";
@@ -48,7 +45,6 @@ public interface PapyrusDSMLValidationRulePackage extends EPackage {
* The package namespace name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
String eNS_PREFIX = "PapyrusDSMLValidationRule";
@@ -57,7 +53,6 @@ public interface PapyrusDSMLValidationRulePackage extends EPackage {
* The singleton instance of the package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
PapyrusDSMLValidationRulePackage eINSTANCE = org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.impl.PapyrusDSMLValidationRulePackageImpl.init();
@@ -66,7 +61,6 @@ public interface PapyrusDSMLValidationRulePackage extends EPackage {
* The meta object id for the '{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.impl.ValidationRuleImpl <em>Validation Rule</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.impl.ValidationRuleImpl
* @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.impl.PapyrusDSMLValidationRulePackageImpl#getValidationRule()
* @generated
@@ -77,7 +71,6 @@ public interface PapyrusDSMLValidationRulePackage extends EPackage {
* The feature id for the '<em><b>Severity</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
* @ordered
*/
@@ -87,7 +80,6 @@ public interface PapyrusDSMLValidationRulePackage extends EPackage {
* The feature id for the '<em><b>Mode</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
* @ordered
*/
@@ -97,7 +89,6 @@ public interface PapyrusDSMLValidationRulePackage extends EPackage {
* The feature id for the '<em><b>Is Enabled By Default</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
* @ordered
*/
@@ -107,7 +98,6 @@ public interface PapyrusDSMLValidationRulePackage extends EPackage {
* The feature id for the '<em><b>Base Constraint</b></em>' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
* @ordered
*/
@@ -117,7 +107,6 @@ public interface PapyrusDSMLValidationRulePackage extends EPackage {
* The feature id for the '<em><b>Status Code</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
* @ordered
*/
@@ -127,7 +116,6 @@ public interface PapyrusDSMLValidationRulePackage extends EPackage {
* The feature id for the '<em><b>Message</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
* @ordered
*/
@@ -137,7 +125,6 @@ public interface PapyrusDSMLValidationRulePackage extends EPackage {
* The feature id for the '<em><b>Description</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
* @ordered
*/
@@ -147,7 +134,6 @@ public interface PapyrusDSMLValidationRulePackage extends EPackage {
* The feature id for the '<em><b>Target</b></em>' attribute list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
* @ordered
*/
@@ -157,7 +143,6 @@ public interface PapyrusDSMLValidationRulePackage extends EPackage {
* The feature id for the '<em><b>Class</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
* @ordered
*/
@@ -167,7 +152,6 @@ public interface PapyrusDSMLValidationRulePackage extends EPackage {
* The feature id for the '<em><b>Id</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
* @ordered
*/
@@ -177,7 +161,6 @@ public interface PapyrusDSMLValidationRulePackage extends EPackage {
* The number of structural features of the '<em>Validation Rule</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
* @ordered
*/
@@ -187,40 +170,102 @@ public interface PapyrusDSMLValidationRulePackage extends EPackage {
* The number of operations of the '<em>Validation Rule</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
* @ordered
*/
int VALIDATION_RULE_OPERATION_COUNT = 0;
/**
+ * The meta object id for the '{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.impl.MessageHandlingImpl <em>Message Handling</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.impl.MessageHandlingImpl
+ * @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.impl.PapyrusDSMLValidationRulePackageImpl#getMessageHandling()
+ * @generated
+ */
+ int MESSAGE_HANDLING = 1;
+
+ /**
+ * The feature id for the '<em><b>Message Mode</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int MESSAGE_HANDLING__MESSAGE_MODE = 0;
+
+ /**
+ * The feature id for the '<em><b>Base Package</b></em>' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int MESSAGE_HANDLING__BASE_PACKAGE = 1;
+
+ /**
+ * The feature id for the '<em><b>Custom Template</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int MESSAGE_HANDLING__CUSTOM_TEMPLATE = 2;
+
+ /**
+ * The number of structural features of the '<em>Message Handling</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int MESSAGE_HANDLING_FEATURE_COUNT = 3;
+
+ /**
+ * The number of operations of the '<em>Message Handling</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int MESSAGE_HANDLING_OPERATION_COUNT = 0;
+
+ /**
* The meta object id for the '{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.Severity <em>Severity</em>}' enum.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.Severity
* @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.impl.PapyrusDSMLValidationRulePackageImpl#getSeverity()
* @generated
*/
- int SEVERITY = 1;
+ int SEVERITY = 2;
/**
* The meta object id for the '{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.Mode <em>Mode</em>}' enum.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.Mode
* @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.impl.PapyrusDSMLValidationRulePackageImpl#getMode()
* @generated
*/
- int MODE = 2;
+ int MODE = 3;
+
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.NameBasedMsgMode <em>Name Based Msg Mode</em>}' enum.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.NameBasedMsgMode
+ * @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.impl.PapyrusDSMLValidationRulePackageImpl#getNameBasedMsgMode()
+ * @generated
+ */
+ int NAME_BASED_MSG_MODE = 4;
/**
* Returns the meta object for class '{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.ValidationRule <em>Validation Rule</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @return the meta object for class '<em>Validation Rule</em>'.
* @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.ValidationRule
* @generated
@@ -231,7 +276,6 @@ public interface PapyrusDSMLValidationRulePackage extends EPackage {
* Returns the meta object for the attribute '{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.ValidationRule#getSeverity <em>Severity</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @return the meta object for the attribute '<em>Severity</em>'.
* @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.ValidationRule#getSeverity()
* @see #getValidationRule()
@@ -243,7 +287,6 @@ public interface PapyrusDSMLValidationRulePackage extends EPackage {
* Returns the meta object for the attribute '{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.ValidationRule#getMode <em>Mode</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @return the meta object for the attribute '<em>Mode</em>'.
* @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.ValidationRule#getMode()
* @see #getValidationRule()
@@ -255,7 +298,6 @@ public interface PapyrusDSMLValidationRulePackage extends EPackage {
* Returns the meta object for the attribute '{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.ValidationRule#isEnabledByDefault <em>Is Enabled By Default</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @return the meta object for the attribute '<em>Is Enabled By Default</em>'.
* @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.ValidationRule#isEnabledByDefault()
* @see #getValidationRule()
@@ -267,7 +309,6 @@ public interface PapyrusDSMLValidationRulePackage extends EPackage {
* Returns the meta object for the reference '{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.ValidationRule#getBase_Constraint <em>Base Constraint</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @return the meta object for the reference '<em>Base Constraint</em>'.
* @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.ValidationRule#getBase_Constraint()
* @see #getValidationRule()
@@ -279,7 +320,6 @@ public interface PapyrusDSMLValidationRulePackage extends EPackage {
* Returns the meta object for the attribute '{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.ValidationRule#getStatusCode <em>Status Code</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @return the meta object for the attribute '<em>Status Code</em>'.
* @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.ValidationRule#getStatusCode()
* @see #getValidationRule()
@@ -291,7 +331,6 @@ public interface PapyrusDSMLValidationRulePackage extends EPackage {
* Returns the meta object for the attribute '{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.ValidationRule#getMessage <em>Message</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @return the meta object for the attribute '<em>Message</em>'.
* @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.ValidationRule#getMessage()
* @see #getValidationRule()
@@ -303,7 +342,6 @@ public interface PapyrusDSMLValidationRulePackage extends EPackage {
* Returns the meta object for the attribute '{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.ValidationRule#getDescription <em>Description</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @return the meta object for the attribute '<em>Description</em>'.
* @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.ValidationRule#getDescription()
* @see #getValidationRule()
@@ -315,7 +353,6 @@ public interface PapyrusDSMLValidationRulePackage extends EPackage {
* Returns the meta object for the attribute list '{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.ValidationRule#getTarget <em>Target</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @return the meta object for the attribute list '<em>Target</em>'.
* @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.ValidationRule#getTarget()
* @see #getValidationRule()
@@ -327,7 +364,6 @@ public interface PapyrusDSMLValidationRulePackage extends EPackage {
* Returns the meta object for the attribute '{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.ValidationRule#getClass_ <em>Class</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @return the meta object for the attribute '<em>Class</em>'.
* @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.ValidationRule#getClass_()
* @see #getValidationRule()
@@ -339,7 +375,6 @@ public interface PapyrusDSMLValidationRulePackage extends EPackage {
* Returns the meta object for the attribute '{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.ValidationRule#getId <em>Id</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @return the meta object for the attribute '<em>Id</em>'.
* @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.ValidationRule#getId()
* @see #getValidationRule()
@@ -348,10 +383,52 @@ public interface PapyrusDSMLValidationRulePackage extends EPackage {
EAttribute getValidationRule_Id();
/**
+ * Returns the meta object for class '{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.MessageHandling <em>Message Handling</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Message Handling</em>'.
+ * @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.MessageHandling
+ * @generated
+ */
+ EClass getMessageHandling();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.MessageHandling#getMessageMode <em>Message Mode</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Message Mode</em>'.
+ * @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.MessageHandling#getMessageMode()
+ * @see #getMessageHandling()
+ * @generated
+ */
+ EAttribute getMessageHandling_MessageMode();
+
+ /**
+ * Returns the meta object for the reference '{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.MessageHandling#getBase_Package <em>Base Package</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the reference '<em>Base Package</em>'.
+ * @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.MessageHandling#getBase_Package()
+ * @see #getMessageHandling()
+ * @generated
+ */
+ EReference getMessageHandling_Base_Package();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.MessageHandling#getCustomTemplate <em>Custom Template</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Custom Template</em>'.
+ * @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.MessageHandling#getCustomTemplate()
+ * @see #getMessageHandling()
+ * @generated
+ */
+ EAttribute getMessageHandling_CustomTemplate();
+
+ /**
* Returns the meta object for enum '{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.Severity <em>Severity</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @return the meta object for enum '<em>Severity</em>'.
* @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.Severity
* @generated
@@ -362,7 +439,6 @@ public interface PapyrusDSMLValidationRulePackage extends EPackage {
* Returns the meta object for enum '{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.Mode <em>Mode</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @return the meta object for enum '<em>Mode</em>'.
* @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.Mode
* @generated
@@ -370,10 +446,19 @@ public interface PapyrusDSMLValidationRulePackage extends EPackage {
EEnum getMode();
/**
+ * Returns the meta object for enum '{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.NameBasedMsgMode <em>Name Based Msg Mode</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for enum '<em>Name Based Msg Mode</em>'.
+ * @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.NameBasedMsgMode
+ * @generated
+ */
+ EEnum getNameBasedMsgMode();
+
+ /**
* Returns the factory that creates the instances of the model.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @return the factory that creates the instances of the model.
* @generated
*/
@@ -390,7 +475,6 @@ public interface PapyrusDSMLValidationRulePackage extends EPackage {
* <li>and each data type</li>
* </ul>
* <!-- end-user-doc -->
- *
* @generated
*/
interface Literals {
@@ -398,7 +482,6 @@ public interface PapyrusDSMLValidationRulePackage extends EPackage {
* The meta object literal for the '{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.impl.ValidationRuleImpl <em>Validation Rule</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.impl.ValidationRuleImpl
* @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.impl.PapyrusDSMLValidationRulePackageImpl#getValidationRule()
* @generated
@@ -409,7 +492,6 @@ public interface PapyrusDSMLValidationRulePackage extends EPackage {
* The meta object literal for the '<em><b>Severity</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
EAttribute VALIDATION_RULE__SEVERITY = eINSTANCE.getValidationRule_Severity();
@@ -418,7 +500,6 @@ public interface PapyrusDSMLValidationRulePackage extends EPackage {
* The meta object literal for the '<em><b>Mode</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
EAttribute VALIDATION_RULE__MODE = eINSTANCE.getValidationRule_Mode();
@@ -427,7 +508,6 @@ public interface PapyrusDSMLValidationRulePackage extends EPackage {
* The meta object literal for the '<em><b>Is Enabled By Default</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
EAttribute VALIDATION_RULE__IS_ENABLED_BY_DEFAULT = eINSTANCE.getValidationRule_IsEnabledByDefault();
@@ -436,7 +516,6 @@ public interface PapyrusDSMLValidationRulePackage extends EPackage {
* The meta object literal for the '<em><b>Base Constraint</b></em>' reference feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
EReference VALIDATION_RULE__BASE_CONSTRAINT = eINSTANCE.getValidationRule_Base_Constraint();
@@ -445,7 +524,6 @@ public interface PapyrusDSMLValidationRulePackage extends EPackage {
* The meta object literal for the '<em><b>Status Code</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
EAttribute VALIDATION_RULE__STATUS_CODE = eINSTANCE.getValidationRule_StatusCode();
@@ -454,7 +532,6 @@ public interface PapyrusDSMLValidationRulePackage extends EPackage {
* The meta object literal for the '<em><b>Message</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
EAttribute VALIDATION_RULE__MESSAGE = eINSTANCE.getValidationRule_Message();
@@ -463,7 +540,6 @@ public interface PapyrusDSMLValidationRulePackage extends EPackage {
* The meta object literal for the '<em><b>Description</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
EAttribute VALIDATION_RULE__DESCRIPTION = eINSTANCE.getValidationRule_Description();
@@ -472,7 +548,6 @@ public interface PapyrusDSMLValidationRulePackage extends EPackage {
* The meta object literal for the '<em><b>Target</b></em>' attribute list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
EAttribute VALIDATION_RULE__TARGET = eINSTANCE.getValidationRule_Target();
@@ -481,7 +556,6 @@ public interface PapyrusDSMLValidationRulePackage extends EPackage {
* The meta object literal for the '<em><b>Class</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
EAttribute VALIDATION_RULE__CLASS = eINSTANCE.getValidationRule_Class();
@@ -490,16 +564,48 @@ public interface PapyrusDSMLValidationRulePackage extends EPackage {
* The meta object literal for the '<em><b>Id</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
EAttribute VALIDATION_RULE__ID = eINSTANCE.getValidationRule_Id();
/**
+ * The meta object literal for the '{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.impl.MessageHandlingImpl <em>Message Handling</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.impl.MessageHandlingImpl
+ * @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.impl.PapyrusDSMLValidationRulePackageImpl#getMessageHandling()
+ * @generated
+ */
+ EClass MESSAGE_HANDLING = eINSTANCE.getMessageHandling();
+
+ /**
+ * The meta object literal for the '<em><b>Message Mode</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute MESSAGE_HANDLING__MESSAGE_MODE = eINSTANCE.getMessageHandling_MessageMode();
+
+ /**
+ * The meta object literal for the '<em><b>Base Package</b></em>' reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference MESSAGE_HANDLING__BASE_PACKAGE = eINSTANCE.getMessageHandling_Base_Package();
+
+ /**
+ * The meta object literal for the '<em><b>Custom Template</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute MESSAGE_HANDLING__CUSTOM_TEMPLATE = eINSTANCE.getMessageHandling_CustomTemplate();
+
+ /**
* The meta object literal for the '{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.Severity <em>Severity</em>}' enum.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.Severity
* @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.impl.PapyrusDSMLValidationRulePackageImpl#getSeverity()
* @generated
@@ -510,13 +616,22 @@ public interface PapyrusDSMLValidationRulePackage extends EPackage {
* The meta object literal for the '{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.Mode <em>Mode</em>}' enum.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.Mode
* @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.impl.PapyrusDSMLValidationRulePackageImpl#getMode()
* @generated
*/
EEnum MODE = eINSTANCE.getMode();
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.NameBasedMsgMode <em>Name Based Msg Mode</em>}' enum.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.NameBasedMsgMode
+ * @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.impl.PapyrusDSMLValidationRulePackageImpl#getNameBasedMsgMode()
+ * @generated
+ */
+ EEnum NAME_BASED_MSG_MODE = eINSTANCE.getNameBasedMsgMode();
+
}
} // PapyrusDSMLValidationRulePackage
diff --git a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/Severity.java b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/Severity.java
index 13a3c9ae796..241503b4c63 100644
--- a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/Severity.java
+++ b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/Severity.java
@@ -13,7 +13,6 @@ import org.eclipse.emf.common.util.Enumerator;
* A representation of the literals of the enumeration '<em><b>Severity</b></em>',
* and utility methods for working with them.
* <!-- end-user-doc -->
- *
* @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.PapyrusDSMLValidationRulePackage#getSeverity()
* @model
* @generated
@@ -23,7 +22,6 @@ public enum Severity implements Enumerator {
* The '<em><b>ERROR</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #ERROR_VALUE
* @generated
* @ordered
@@ -34,7 +32,6 @@ public enum Severity implements Enumerator {
* The '<em><b>WARNING</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #WARNING_VALUE
* @generated
* @ordered
@@ -45,7 +42,6 @@ public enum Severity implements Enumerator {
* The '<em><b>INFO</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #INFO_VALUE
* @generated
* @ordered
@@ -56,7 +52,6 @@ public enum Severity implements Enumerator {
* The '<em><b>CANCEL</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #CANCEL_VALUE
* @generated
* @ordered
@@ -70,7 +65,6 @@ public enum Severity implements Enumerator {
* If the meaning of '<em><b>ERROR</b></em>' literal object isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- *
* @see #ERROR
* @model
* @generated
@@ -85,7 +79,6 @@ public enum Severity implements Enumerator {
* If the meaning of '<em><b>WARNING</b></em>' literal object isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- *
* @see #WARNING
* @model
* @generated
@@ -100,7 +93,6 @@ public enum Severity implements Enumerator {
* If the meaning of '<em><b>INFO</b></em>' literal object isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- *
* @see #INFO
* @model
* @generated
@@ -115,7 +107,6 @@ public enum Severity implements Enumerator {
* If the meaning of '<em><b>CANCEL</b></em>' literal object isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- *
* @see #CANCEL
* @model
* @generated
@@ -127,22 +118,20 @@ public enum Severity implements Enumerator {
* An array of all the '<em><b>Severity</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
private static final Severity[] VALUES_ARRAY =
new Severity[] {
- ERROR,
- WARNING,
- INFO,
- CANCEL,
- };
+ ERROR,
+ WARNING,
+ INFO,
+ CANCEL,
+ };
/**
* A public read-only list of all the '<em><b>Severity</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public static final List<Severity> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
@@ -151,7 +140,8 @@ public enum Severity implements Enumerator {
* Returns the '<em><b>Severity</b></em>' literal with the specified literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ * @param literal the literal.
+ * @return the matching enumerator or <code>null</code>.
* @generated
*/
public static Severity get(String literal) {
@@ -168,7 +158,8 @@ public enum Severity implements Enumerator {
* Returns the '<em><b>Severity</b></em>' literal with the specified name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ * @param name the name.
+ * @return the matching enumerator or <code>null</code>.
* @generated
*/
public static Severity getByName(String name) {
@@ -185,19 +176,16 @@ public enum Severity implements Enumerator {
* Returns the '<em><b>Severity</b></em>' literal with the specified integer value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ * @param value the integer value.
+ * @return the matching enumerator or <code>null</code>.
* @generated
*/
public static Severity get(int value) {
switch (value) {
- case ERROR_VALUE:
- return ERROR;
- case WARNING_VALUE:
- return WARNING;
- case INFO_VALUE:
- return INFO;
- case CANCEL_VALUE:
- return CANCEL;
+ case ERROR_VALUE: return ERROR;
+ case WARNING_VALUE: return WARNING;
+ case INFO_VALUE: return INFO;
+ case CANCEL_VALUE: return CANCEL;
}
return null;
}
@@ -205,7 +193,6 @@ public enum Severity implements Enumerator {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
private final int value;
@@ -213,7 +200,6 @@ public enum Severity implements Enumerator {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
private final String name;
@@ -221,7 +207,6 @@ public enum Severity implements Enumerator {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
private final String literal;
@@ -230,7 +215,6 @@ public enum Severity implements Enumerator {
* Only this class can construct instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
private Severity(int value, String name, String literal) {
@@ -242,38 +226,34 @@ public enum Severity implements Enumerator {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public int getValue() {
- return value;
+ return value;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public String getName() {
- return name;
+ return name;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public String getLiteral() {
- return literal;
+ return literal;
}
/**
* Returns the literal value of the enumerator, which is its string representation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
diff --git a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/ValidationRule.java b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/ValidationRule.java
index 3fd710d7b30..48ac6afcaa0 100644
--- a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/ValidationRule.java
+++ b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/ValidationRule.java
@@ -13,19 +13,19 @@ import org.eclipse.uml2.uml.Constraint;
*
* <p>
* The following features are supported:
+ * </p>
* <ul>
- * <li>{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.ValidationRule#getSeverity <em>Severity</em>}</li>
- * <li>{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.ValidationRule#getMode <em>Mode</em>}</li>
- * <li>{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.ValidationRule#isEnabledByDefault <em>Is Enabled By Default</em>}</li>
- * <li>{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.ValidationRule#getBase_Constraint <em>Base Constraint</em>}</li>
- * <li>{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.ValidationRule#getStatusCode <em>Status Code</em>}</li>
- * <li>{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.ValidationRule#getMessage <em>Message</em>}</li>
- * <li>{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.ValidationRule#getDescription <em>Description</em>}</li>
- * <li>{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.ValidationRule#getTarget <em>Target</em>}</li>
- * <li>{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.ValidationRule#getClass_ <em>Class</em>}</li>
- * <li>{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.ValidationRule#getId <em>Id</em>}</li>
+ * <li>{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.ValidationRule#getSeverity <em>Severity</em>}</li>
+ * <li>{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.ValidationRule#getMode <em>Mode</em>}</li>
+ * <li>{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.ValidationRule#isEnabledByDefault <em>Is Enabled By Default</em>}</li>
+ * <li>{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.ValidationRule#getBase_Constraint <em>Base Constraint</em>}</li>
+ * <li>{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.ValidationRule#getStatusCode <em>Status Code</em>}</li>
+ * <li>{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.ValidationRule#getMessage <em>Message</em>}</li>
+ * <li>{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.ValidationRule#getDescription <em>Description</em>}</li>
+ * <li>{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.ValidationRule#getTarget <em>Target</em>}</li>
+ * <li>{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.ValidationRule#getClass_ <em>Class</em>}</li>
+ * <li>{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.ValidationRule#getId <em>Id</em>}</li>
* </ul>
- * </p>
*
* @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.PapyrusDSMLValidationRulePackage#getValidationRule()
* @model
@@ -41,7 +41,6 @@ public interface ValidationRule extends EObject {
* If the meaning of the '<em>Severity</em>' attribute isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- *
* @return the value of the '<em>Severity</em>' attribute.
* @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.Severity
* @see #setSeverity(Severity)
@@ -55,9 +54,7 @@ public interface ValidationRule extends EObject {
* Sets the value of the '{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.ValidationRule#getSeverity <em>Severity</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Severity</em>' attribute.
+ * @param value the new value of the '<em>Severity</em>' attribute.
* @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.Severity
* @see #getSeverity()
* @generated
@@ -73,7 +70,6 @@ public interface ValidationRule extends EObject {
* If the meaning of the '<em>Mode</em>' attribute isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- *
* @return the value of the '<em>Mode</em>' attribute.
* @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.Mode
* @see #setMode(Mode)
@@ -87,9 +83,7 @@ public interface ValidationRule extends EObject {
* Sets the value of the '{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.ValidationRule#getMode <em>Mode</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Mode</em>' attribute.
+ * @param value the new value of the '<em>Mode</em>' attribute.
* @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.Mode
* @see #getMode()
* @generated
@@ -104,7 +98,6 @@ public interface ValidationRule extends EObject {
* If the meaning of the '<em>Is Enabled By Default</em>' attribute isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- *
* @return the value of the '<em>Is Enabled By Default</em>' attribute.
* @see #setIsEnabledByDefault(boolean)
* @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.PapyrusDSMLValidationRulePackage#getValidationRule_IsEnabledByDefault()
@@ -117,9 +110,7 @@ public interface ValidationRule extends EObject {
* Sets the value of the '{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.ValidationRule#isEnabledByDefault <em>Is Enabled By Default</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Is Enabled By Default</em>' attribute.
+ * @param value the new value of the '<em>Is Enabled By Default</em>' attribute.
* @see #isEnabledByDefault()
* @generated
*/
@@ -132,7 +123,6 @@ public interface ValidationRule extends EObject {
* If the meaning of the '<em>Base Constraint</em>' reference isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- *
* @return the value of the '<em>Base Constraint</em>' reference.
* @see #setBase_Constraint(Constraint)
* @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.PapyrusDSMLValidationRulePackage#getValidationRule_Base_Constraint()
@@ -145,9 +135,7 @@ public interface ValidationRule extends EObject {
* Sets the value of the '{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.ValidationRule#getBase_Constraint <em>Base Constraint</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Base Constraint</em>' reference.
+ * @param value the new value of the '<em>Base Constraint</em>' reference.
* @see #getBase_Constraint()
* @generated
*/
@@ -161,7 +149,6 @@ public interface ValidationRule extends EObject {
* If the meaning of the '<em>Status Code</em>' attribute isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- *
* @return the value of the '<em>Status Code</em>' attribute.
* @see #setStatusCode(int)
* @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.PapyrusDSMLValidationRulePackage#getValidationRule_StatusCode()
@@ -174,9 +161,7 @@ public interface ValidationRule extends EObject {
* Sets the value of the '{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.ValidationRule#getStatusCode <em>Status Code</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Status Code</em>' attribute.
+ * @param value the new value of the '<em>Status Code</em>' attribute.
* @see #getStatusCode()
* @generated
*/
@@ -189,7 +174,6 @@ public interface ValidationRule extends EObject {
* If the meaning of the '<em>Message</em>' attribute isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- *
* @return the value of the '<em>Message</em>' attribute.
* @see #setMessage(String)
* @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.PapyrusDSMLValidationRulePackage#getValidationRule_Message()
@@ -202,9 +186,7 @@ public interface ValidationRule extends EObject {
* Sets the value of the '{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.ValidationRule#getMessage <em>Message</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Message</em>' attribute.
+ * @param value the new value of the '<em>Message</em>' attribute.
* @see #getMessage()
* @generated
*/
@@ -217,7 +199,6 @@ public interface ValidationRule extends EObject {
* If the meaning of the '<em>Description</em>' attribute isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- *
* @return the value of the '<em>Description</em>' attribute.
* @see #setDescription(String)
* @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.PapyrusDSMLValidationRulePackage#getValidationRule_Description()
@@ -230,9 +211,7 @@ public interface ValidationRule extends EObject {
* Sets the value of the '{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.ValidationRule#getDescription <em>Description</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Description</em>' attribute.
+ * @param value the new value of the '<em>Description</em>' attribute.
* @see #getDescription()
* @generated
*/
@@ -246,7 +225,6 @@ public interface ValidationRule extends EObject {
* If the meaning of the '<em>Target</em>' attribute list isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- *
* @return the value of the '<em>Target</em>' attribute list.
* @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.PapyrusDSMLValidationRulePackage#getValidationRule_Target()
* @model dataType="org.eclipse.uml2.types.String" ordered="false"
@@ -261,7 +239,6 @@ public interface ValidationRule extends EObject {
* If the meaning of the '<em>Class</em>' attribute isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- *
* @return the value of the '<em>Class</em>' attribute.
* @see #setClass_(String)
* @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.PapyrusDSMLValidationRulePackage#getValidationRule_Class()
@@ -274,9 +251,7 @@ public interface ValidationRule extends EObject {
* Sets the value of the '{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.ValidationRule#getClass_ <em>Class</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Class</em>' attribute.
+ * @param value the new value of the '<em>Class</em>' attribute.
* @see #getClass_()
* @generated
*/
@@ -289,7 +264,6 @@ public interface ValidationRule extends EObject {
* If the meaning of the '<em>Id</em>' attribute isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- *
* @return the value of the '<em>Id</em>' attribute.
* @see #setId(String)
* @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.PapyrusDSMLValidationRulePackage#getValidationRule_Id()
@@ -302,9 +276,7 @@ public interface ValidationRule extends EObject {
* Sets the value of the '{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.ValidationRule#getId <em>Id</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Id</em>' attribute.
+ * @param value the new value of the '<em>Id</em>' attribute.
* @see #getId()
* @generated
*/
diff --git a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/impl/MessageHandlingImpl.java b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/impl/MessageHandlingImpl.java
new file mode 100644
index 00000000000..3e73cf3d6cf
--- /dev/null
+++ b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/impl/MessageHandlingImpl.java
@@ -0,0 +1,279 @@
+/**
+ */
+package org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
+
+import org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.MessageHandling;
+import org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.NameBasedMsgMode;
+import org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.PapyrusDSMLValidationRulePackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Message Handling</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.impl.MessageHandlingImpl#getMessageMode <em>Message Mode</em>}</li>
+ * <li>{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.impl.MessageHandlingImpl#getBase_Package <em>Base Package</em>}</li>
+ * <li>{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.impl.MessageHandlingImpl#getCustomTemplate <em>Custom Template</em>}</li>
+ * </ul>
+ *
+ * @generated
+ */
+public class MessageHandlingImpl extends MinimalEObjectImpl.Container implements MessageHandling {
+ /**
+ * The default value of the '{@link #getMessageMode() <em>Message Mode</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getMessageMode()
+ * @generated
+ * @ordered
+ */
+ protected static final NameBasedMsgMode MESSAGE_MODE_EDEFAULT = NameBasedMsgMode.DEFAULT;
+
+ /**
+ * The cached value of the '{@link #getMessageMode() <em>Message Mode</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getMessageMode()
+ * @generated
+ * @ordered
+ */
+ protected NameBasedMsgMode messageMode = MESSAGE_MODE_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getBase_Package() <em>Base Package</em>}' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getBase_Package()
+ * @generated
+ * @ordered
+ */
+ protected org.eclipse.uml2.uml.Package base_Package;
+
+ /**
+ * The default value of the '{@link #getCustomTemplate() <em>Custom Template</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getCustomTemplate()
+ * @generated
+ * @ordered
+ */
+ protected static final String CUSTOM_TEMPLATE_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getCustomTemplate() <em>Custom Template</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getCustomTemplate()
+ * @generated
+ * @ordered
+ */
+ protected String customTemplate = CUSTOM_TEMPLATE_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected MessageHandlingImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return PapyrusDSMLValidationRulePackage.Literals.MESSAGE_HANDLING;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NameBasedMsgMode getMessageMode() {
+ return messageMode;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setMessageMode(NameBasedMsgMode newMessageMode) {
+ NameBasedMsgMode oldMessageMode = messageMode;
+ messageMode = newMessageMode == null ? MESSAGE_MODE_EDEFAULT : newMessageMode;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PapyrusDSMLValidationRulePackage.MESSAGE_HANDLING__MESSAGE_MODE, oldMessageMode, messageMode));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public org.eclipse.uml2.uml.Package getBase_Package() {
+ if (base_Package != null && base_Package.eIsProxy()) {
+ InternalEObject oldBase_Package = (InternalEObject)base_Package;
+ base_Package = (org.eclipse.uml2.uml.Package)eResolveProxy(oldBase_Package);
+ if (base_Package != oldBase_Package) {
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, PapyrusDSMLValidationRulePackage.MESSAGE_HANDLING__BASE_PACKAGE, oldBase_Package, base_Package));
+ }
+ }
+ return base_Package;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public org.eclipse.uml2.uml.Package basicGetBase_Package() {
+ return base_Package;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setBase_Package(org.eclipse.uml2.uml.Package newBase_Package) {
+ org.eclipse.uml2.uml.Package oldBase_Package = base_Package;
+ base_Package = newBase_Package;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PapyrusDSMLValidationRulePackage.MESSAGE_HANDLING__BASE_PACKAGE, oldBase_Package, base_Package));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getCustomTemplate() {
+ return customTemplate;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setCustomTemplate(String newCustomTemplate) {
+ String oldCustomTemplate = customTemplate;
+ customTemplate = newCustomTemplate;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PapyrusDSMLValidationRulePackage.MESSAGE_HANDLING__CUSTOM_TEMPLATE, oldCustomTemplate, customTemplate));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case PapyrusDSMLValidationRulePackage.MESSAGE_HANDLING__MESSAGE_MODE:
+ return getMessageMode();
+ case PapyrusDSMLValidationRulePackage.MESSAGE_HANDLING__BASE_PACKAGE:
+ if (resolve) return getBase_Package();
+ return basicGetBase_Package();
+ case PapyrusDSMLValidationRulePackage.MESSAGE_HANDLING__CUSTOM_TEMPLATE:
+ return getCustomTemplate();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case PapyrusDSMLValidationRulePackage.MESSAGE_HANDLING__MESSAGE_MODE:
+ setMessageMode((NameBasedMsgMode)newValue);
+ return;
+ case PapyrusDSMLValidationRulePackage.MESSAGE_HANDLING__BASE_PACKAGE:
+ setBase_Package((org.eclipse.uml2.uml.Package)newValue);
+ return;
+ case PapyrusDSMLValidationRulePackage.MESSAGE_HANDLING__CUSTOM_TEMPLATE:
+ setCustomTemplate((String)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case PapyrusDSMLValidationRulePackage.MESSAGE_HANDLING__MESSAGE_MODE:
+ setMessageMode(MESSAGE_MODE_EDEFAULT);
+ return;
+ case PapyrusDSMLValidationRulePackage.MESSAGE_HANDLING__BASE_PACKAGE:
+ setBase_Package((org.eclipse.uml2.uml.Package)null);
+ return;
+ case PapyrusDSMLValidationRulePackage.MESSAGE_HANDLING__CUSTOM_TEMPLATE:
+ setCustomTemplate(CUSTOM_TEMPLATE_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case PapyrusDSMLValidationRulePackage.MESSAGE_HANDLING__MESSAGE_MODE:
+ return messageMode != MESSAGE_MODE_EDEFAULT;
+ case PapyrusDSMLValidationRulePackage.MESSAGE_HANDLING__BASE_PACKAGE:
+ return base_Package != null;
+ case PapyrusDSMLValidationRulePackage.MESSAGE_HANDLING__CUSTOM_TEMPLATE:
+ return CUSTOM_TEMPLATE_EDEFAULT == null ? customTemplate != null : !CUSTOM_TEMPLATE_EDEFAULT.equals(customTemplate);
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (messageMode: ");
+ result.append(messageMode);
+ result.append(", customTemplate: ");
+ result.append(customTemplate);
+ result.append(')');
+ return result.toString();
+ }
+
+} //MessageHandlingImpl
diff --git a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/impl/PapyrusDSMLValidationRuleFactoryImpl.java b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/impl/PapyrusDSMLValidationRuleFactoryImpl.java
index 922c49e2690..367ab0f7056 100644
--- a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/impl/PapyrusDSMLValidationRuleFactoryImpl.java
+++ b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/impl/PapyrusDSMLValidationRuleFactoryImpl.java
@@ -8,6 +8,7 @@ import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.impl.EFactoryImpl;
import org.eclipse.emf.ecore.plugin.EcorePlugin;
+import org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.*;
import org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.Mode;
import org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.PapyrusDSMLValidationRuleFactory;
import org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.PapyrusDSMLValidationRulePackage;
@@ -18,7 +19,6 @@ import org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.ValidationR
* <!-- begin-user-doc -->
* An implementation of the model <b>Factory</b>.
* <!-- end-user-doc -->
- *
* @generated
*/
public class PapyrusDSMLValidationRuleFactoryImpl extends EFactoryImpl implements PapyrusDSMLValidationRuleFactory {
@@ -26,16 +26,16 @@ public class PapyrusDSMLValidationRuleFactoryImpl extends EFactoryImpl implement
* Creates the default factory implementation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public static PapyrusDSMLValidationRuleFactory init() {
try {
- PapyrusDSMLValidationRuleFactory thePapyrusDSMLValidationRuleFactory = (PapyrusDSMLValidationRuleFactory) EPackage.Registry.INSTANCE.getEFactory(PapyrusDSMLValidationRulePackage.eNS_URI);
+ PapyrusDSMLValidationRuleFactory thePapyrusDSMLValidationRuleFactory = (PapyrusDSMLValidationRuleFactory)EPackage.Registry.INSTANCE.getEFactory(PapyrusDSMLValidationRulePackage.eNS_URI);
if (thePapyrusDSMLValidationRuleFactory != null) {
return thePapyrusDSMLValidationRuleFactory;
}
- } catch (Exception exception) {
+ }
+ catch (Exception exception) {
EcorePlugin.INSTANCE.log(exception);
}
return new PapyrusDSMLValidationRuleFactoryImpl();
@@ -45,7 +45,6 @@ public class PapyrusDSMLValidationRuleFactoryImpl extends EFactoryImpl implement
* Creates an instance of the factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public PapyrusDSMLValidationRuleFactoryImpl() {
@@ -55,59 +54,59 @@ public class PapyrusDSMLValidationRuleFactoryImpl extends EFactoryImpl implement
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public EObject create(EClass eClass) {
switch (eClass.getClassifierID()) {
- case PapyrusDSMLValidationRulePackage.VALIDATION_RULE:
- return createValidationRule();
- default:
- throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
+ case PapyrusDSMLValidationRulePackage.VALIDATION_RULE: return createValidationRule();
+ case PapyrusDSMLValidationRulePackage.MESSAGE_HANDLING: return createMessageHandling();
+ default:
+ throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
}
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public Object createFromString(EDataType eDataType, String initialValue) {
switch (eDataType.getClassifierID()) {
- case PapyrusDSMLValidationRulePackage.SEVERITY:
- return createSeverityFromString(eDataType, initialValue);
- case PapyrusDSMLValidationRulePackage.MODE:
- return createModeFromString(eDataType, initialValue);
- default:
- throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
+ case PapyrusDSMLValidationRulePackage.SEVERITY:
+ return createSeverityFromString(eDataType, initialValue);
+ case PapyrusDSMLValidationRulePackage.MODE:
+ return createModeFromString(eDataType, initialValue);
+ case PapyrusDSMLValidationRulePackage.NAME_BASED_MSG_MODE:
+ return createNameBasedMsgModeFromString(eDataType, initialValue);
+ default:
+ throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
}
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public String convertToString(EDataType eDataType, Object instanceValue) {
switch (eDataType.getClassifierID()) {
- case PapyrusDSMLValidationRulePackage.SEVERITY:
- return convertSeverityToString(eDataType, instanceValue);
- case PapyrusDSMLValidationRulePackage.MODE:
- return convertModeToString(eDataType, instanceValue);
- default:
- throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
+ case PapyrusDSMLValidationRulePackage.SEVERITY:
+ return convertSeverityToString(eDataType, instanceValue);
+ case PapyrusDSMLValidationRulePackage.MODE:
+ return convertModeToString(eDataType, instanceValue);
+ case PapyrusDSMLValidationRulePackage.NAME_BASED_MSG_MODE:
+ return convertNameBasedMsgModeToString(eDataType, instanceValue);
+ default:
+ throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
}
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public ValidationRule createValidationRule() {
@@ -118,21 +117,27 @@ public class PapyrusDSMLValidationRuleFactoryImpl extends EFactoryImpl implement
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ * @generated
+ */
+ public MessageHandling createMessageHandling() {
+ MessageHandlingImpl messageHandling = new MessageHandlingImpl();
+ return messageHandling;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
* @generated
*/
public Severity createSeverityFromString(EDataType eDataType, String initialValue) {
Severity result = Severity.get(initialValue);
- if (result == null) {
- throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
- }
+ if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
return result;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public String convertSeverityToString(EDataType eDataType, Object instanceValue) {
@@ -142,21 +147,17 @@ public class PapyrusDSMLValidationRuleFactoryImpl extends EFactoryImpl implement
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public Mode createModeFromString(EDataType eDataType, String initialValue) {
Mode result = Mode.get(initialValue);
- if (result == null) {
- throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
- }
+ if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
return result;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public String convertModeToString(EDataType eDataType, Object instanceValue) {
@@ -166,17 +167,35 @@ public class PapyrusDSMLValidationRuleFactoryImpl extends EFactoryImpl implement
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ * @generated
+ */
+ public NameBasedMsgMode createNameBasedMsgModeFromString(EDataType eDataType, String initialValue) {
+ NameBasedMsgMode result = NameBasedMsgMode.get(initialValue);
+ if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
+ return result;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String convertNameBasedMsgModeToString(EDataType eDataType, Object instanceValue) {
+ return instanceValue == null ? null : instanceValue.toString();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
* @generated
*/
public PapyrusDSMLValidationRulePackage getPapyrusDSMLValidationRulePackage() {
- return (PapyrusDSMLValidationRulePackage) getEPackage();
+ return (PapyrusDSMLValidationRulePackage)getEPackage();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @deprecated
* @generated
*/
diff --git a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/impl/PapyrusDSMLValidationRulePackageImpl.java b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/impl/PapyrusDSMLValidationRulePackageImpl.java
index ea5d514a1a1..12f6a85d244 100644
--- a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/impl/PapyrusDSMLValidationRulePackageImpl.java
+++ b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/impl/PapyrusDSMLValidationRulePackageImpl.java
@@ -8,7 +8,9 @@ import org.eclipse.emf.ecore.EEnum;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.impl.EPackageImpl;
+import org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.MessageHandling;
import org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.Mode;
+import org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.NameBasedMsgMode;
import org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.PapyrusDSMLValidationRuleFactory;
import org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.PapyrusDSMLValidationRulePackage;
import org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.Severity;
@@ -20,14 +22,12 @@ import org.eclipse.uml2.uml.UMLPackage;
* <!-- begin-user-doc -->
* An implementation of the model <b>Package</b>.
* <!-- end-user-doc -->
- *
* @generated
*/
public class PapyrusDSMLValidationRulePackageImpl extends EPackageImpl implements PapyrusDSMLValidationRulePackage {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
private EClass validationRuleEClass = null;
@@ -35,7 +35,13 @@ public class PapyrusDSMLValidationRulePackageImpl extends EPackageImpl implement
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ * @generated
+ */
+ private EClass messageHandlingEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
* @generated
*/
private EEnum severityEEnum = null;
@@ -43,17 +49,26 @@ public class PapyrusDSMLValidationRulePackageImpl extends EPackageImpl implement
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
private EEnum modeEEnum = null;
/**
- * Creates an instance of the model <b>Package</b>, registered with {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EEnum nameBasedMsgModeEEnum = null;
+
+ /**
+ * Creates an instance of the model <b>Package</b>, registered with
+ * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
* package URI value.
- * <p>
- * Note: the correct way to create the package is via the static factory method {@link #init init()}, which also performs initialization of the package, or returns the registered package, if one already exists. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ * <p>Note: the correct way to create the package is via the static
+ * factory method {@link #init init()}, which also performs
+ * initialization of the package, or returns the registered package,
+ * if one already exists.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
* @see org.eclipse.emf.ecore.EPackage.Registry
* @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.PapyrusDSMLValidationRulePackage#eNS_URI
* @see #init()
@@ -66,31 +81,27 @@ public class PapyrusDSMLValidationRulePackageImpl extends EPackageImpl implement
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
private static boolean isInited = false;
/**
* Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
- *
- * <p>
- * This method is used to initialize {@link PapyrusDSMLValidationRulePackage#eINSTANCE} when that field is accessed. Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. <!-- begin-user-doc --> <!--
+ *
+ * <p>This method is used to initialize {@link PapyrusDSMLValidationRulePackage#eINSTANCE} when that field is accessed.
+ * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
+ * <!-- begin-user-doc --> <!--
* end-user-doc -->
- *
* @see #eNS_URI
* @see #createPackageContents()
* @see #initializePackageContents()
* @generated
*/
public static PapyrusDSMLValidationRulePackage init() {
- if (isInited) {
- return (PapyrusDSMLValidationRulePackage) EPackage.Registry.INSTANCE.getEPackage(PapyrusDSMLValidationRulePackage.eNS_URI);
- }
+ if (isInited) return (PapyrusDSMLValidationRulePackage)EPackage.Registry.INSTANCE.getEPackage(PapyrusDSMLValidationRulePackage.eNS_URI);
// Obtain or create and register package
- PapyrusDSMLValidationRulePackageImpl thePapyrusDSMLValidationRulePackage = (PapyrusDSMLValidationRulePackageImpl) (EPackage.Registry.INSTANCE.get(eNS_URI) instanceof PapyrusDSMLValidationRulePackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI)
- : new PapyrusDSMLValidationRulePackageImpl());
+ PapyrusDSMLValidationRulePackageImpl thePapyrusDSMLValidationRulePackage = (PapyrusDSMLValidationRulePackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof PapyrusDSMLValidationRulePackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new PapyrusDSMLValidationRulePackageImpl());
isInited = true;
@@ -106,7 +117,7 @@ public class PapyrusDSMLValidationRulePackageImpl extends EPackageImpl implement
// Mark meta-data to indicate it can't be changed
thePapyrusDSMLValidationRulePackage.freeze();
-
+
// Update the registry and return the package
EPackage.Registry.INSTANCE.put(PapyrusDSMLValidationRulePackage.eNS_URI, thePapyrusDSMLValidationRulePackage);
return thePapyrusDSMLValidationRulePackage;
@@ -115,7 +126,6 @@ public class PapyrusDSMLValidationRulePackageImpl extends EPackageImpl implement
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public EClass getValidationRule() {
@@ -125,107 +135,132 @@ public class PapyrusDSMLValidationRulePackageImpl extends EPackageImpl implement
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public EAttribute getValidationRule_Severity() {
- return (EAttribute) validationRuleEClass.getEStructuralFeatures().get(0);
+ return (EAttribute)validationRuleEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public EAttribute getValidationRule_Mode() {
- return (EAttribute) validationRuleEClass.getEStructuralFeatures().get(1);
+ return (EAttribute)validationRuleEClass.getEStructuralFeatures().get(1);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public EAttribute getValidationRule_IsEnabledByDefault() {
- return (EAttribute) validationRuleEClass.getEStructuralFeatures().get(2);
+ return (EAttribute)validationRuleEClass.getEStructuralFeatures().get(2);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public EReference getValidationRule_Base_Constraint() {
- return (EReference) validationRuleEClass.getEStructuralFeatures().get(3);
+ return (EReference)validationRuleEClass.getEStructuralFeatures().get(3);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public EAttribute getValidationRule_StatusCode() {
- return (EAttribute) validationRuleEClass.getEStructuralFeatures().get(4);
+ return (EAttribute)validationRuleEClass.getEStructuralFeatures().get(4);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public EAttribute getValidationRule_Message() {
- return (EAttribute) validationRuleEClass.getEStructuralFeatures().get(5);
+ return (EAttribute)validationRuleEClass.getEStructuralFeatures().get(5);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public EAttribute getValidationRule_Description() {
- return (EAttribute) validationRuleEClass.getEStructuralFeatures().get(6);
+ return (EAttribute)validationRuleEClass.getEStructuralFeatures().get(6);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public EAttribute getValidationRule_Target() {
- return (EAttribute) validationRuleEClass.getEStructuralFeatures().get(7);
+ return (EAttribute)validationRuleEClass.getEStructuralFeatures().get(7);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public EAttribute getValidationRule_Class() {
- return (EAttribute) validationRuleEClass.getEStructuralFeatures().get(8);
+ return (EAttribute)validationRuleEClass.getEStructuralFeatures().get(8);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public EAttribute getValidationRule_Id() {
- return (EAttribute) validationRuleEClass.getEStructuralFeatures().get(9);
+ return (EAttribute)validationRuleEClass.getEStructuralFeatures().get(9);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getMessageHandling() {
+ return messageHandlingEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getMessageHandling_MessageMode() {
+ return (EAttribute)messageHandlingEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getMessageHandling_Base_Package() {
+ return (EReference)messageHandlingEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getMessageHandling_CustomTemplate() {
+ return (EAttribute)messageHandlingEClass.getEStructuralFeatures().get(2);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public EEnum getSeverity() {
@@ -235,7 +270,6 @@ public class PapyrusDSMLValidationRulePackageImpl extends EPackageImpl implement
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public EEnum getMode() {
@@ -245,33 +279,37 @@ public class PapyrusDSMLValidationRulePackageImpl extends EPackageImpl implement
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ * @generated
+ */
+ public EEnum getNameBasedMsgMode() {
+ return nameBasedMsgModeEEnum;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
* @generated
*/
public PapyrusDSMLValidationRuleFactory getPapyrusDSMLValidationRuleFactory() {
- return (PapyrusDSMLValidationRuleFactory) getEFactoryInstance();
+ return (PapyrusDSMLValidationRuleFactory)getEFactoryInstance();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
private boolean isCreated = false;
/**
- * Creates the meta-model objects for the package. This method is
+ * Creates the meta-model objects for the package. This method is
* guarded to have no affect on any invocation but its first.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public void createPackageContents() {
- if (isCreated) {
- return;
- }
+ if (isCreated) return;
isCreated = true;
// Create classes and their features
@@ -287,31 +325,33 @@ public class PapyrusDSMLValidationRulePackageImpl extends EPackageImpl implement
createEAttribute(validationRuleEClass, VALIDATION_RULE__CLASS);
createEAttribute(validationRuleEClass, VALIDATION_RULE__ID);
+ messageHandlingEClass = createEClass(MESSAGE_HANDLING);
+ createEAttribute(messageHandlingEClass, MESSAGE_HANDLING__MESSAGE_MODE);
+ createEReference(messageHandlingEClass, MESSAGE_HANDLING__BASE_PACKAGE);
+ createEAttribute(messageHandlingEClass, MESSAGE_HANDLING__CUSTOM_TEMPLATE);
+
// Create enums
severityEEnum = createEEnum(SEVERITY);
modeEEnum = createEEnum(MODE);
+ nameBasedMsgModeEEnum = createEEnum(NAME_BASED_MSG_MODE);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
private boolean isInitialized = false;
/**
- * Complete the initialization of the package and its meta-model. This
+ * Complete the initialization of the package and its meta-model. This
* method is guarded to have no affect on any invocation but its first.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public void initializePackageContents() {
- if (isInitialized) {
- return;
- }
+ if (isInitialized) return;
isInitialized = true;
// Initialize package
@@ -320,8 +360,8 @@ public class PapyrusDSMLValidationRulePackageImpl extends EPackageImpl implement
setNsURI(eNS_URI);
// Obtain other dependent packages
- TypesPackage theTypesPackage = (TypesPackage) EPackage.Registry.INSTANCE.getEPackage(TypesPackage.eNS_URI);
- UMLPackage theUMLPackage = (UMLPackage) EPackage.Registry.INSTANCE.getEPackage(UMLPackage.eNS_URI);
+ TypesPackage theTypesPackage = (TypesPackage)EPackage.Registry.INSTANCE.getEPackage(TypesPackage.eNS_URI);
+ UMLPackage theUMLPackage = (UMLPackage)EPackage.Registry.INSTANCE.getEPackage(UMLPackage.eNS_URI);
// Create type parameters
@@ -334,8 +374,7 @@ public class PapyrusDSMLValidationRulePackageImpl extends EPackageImpl implement
initEAttribute(getValidationRule_Severity(), this.getSeverity(), "severity", "ERROR", 1, 1, ValidationRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
initEAttribute(getValidationRule_Mode(), this.getMode(), "mode", "Batch", 1, 1, ValidationRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
initEAttribute(getValidationRule_IsEnabledByDefault(), theTypesPackage.getBoolean(), "isEnabledByDefault", "true", 1, 1, ValidationRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEReference(getValidationRule_Base_Constraint(), theUMLPackage.getConstraint(), null, "base_Constraint", null, 1, 1, ValidationRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,
- !IS_DERIVED, !IS_ORDERED);
+ initEReference(getValidationRule_Base_Constraint(), theUMLPackage.getConstraint(), null, "base_Constraint", null, 1, 1, ValidationRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
initEAttribute(getValidationRule_StatusCode(), theTypesPackage.getInteger(), "statusCode", "1", 1, 1, ValidationRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
initEAttribute(getValidationRule_Message(), theTypesPackage.getString(), "message", null, 0, 1, ValidationRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
initEAttribute(getValidationRule_Description(), theTypesPackage.getString(), "description", null, 0, 1, ValidationRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
@@ -343,6 +382,11 @@ public class PapyrusDSMLValidationRulePackageImpl extends EPackageImpl implement
initEAttribute(getValidationRule_Class(), theTypesPackage.getString(), "class", null, 0, 1, ValidationRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
initEAttribute(getValidationRule_Id(), theTypesPackage.getString(), "id", null, 0, 1, ValidationRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
+ initEClass(messageHandlingEClass, MessageHandling.class, "MessageHandling", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getMessageHandling_MessageMode(), this.getNameBasedMsgMode(), "messageMode", null, 1, 1, MessageHandling.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
+ initEReference(getMessageHandling_Base_Package(), theUMLPackage.getPackage(), null, "base_Package", null, 1, 1, MessageHandling.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
+ initEAttribute(getMessageHandling_CustomTemplate(), theTypesPackage.getString(), "customTemplate", null, 0, 1, MessageHandling.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
+
// Initialize enums and add enum literals
initEEnum(severityEEnum, Severity.class, "Severity");
addEEnumLiteral(severityEEnum, Severity.ERROR);
@@ -354,6 +398,11 @@ public class PapyrusDSMLValidationRulePackageImpl extends EPackageImpl implement
addEEnumLiteral(modeEEnum, Mode.BATCH);
addEEnumLiteral(modeEEnum, Mode.LIVE);
+ initEEnum(nameBasedMsgModeEEnum, NameBasedMsgMode.class, "NameBasedMsgMode");
+ addEEnumLiteral(nameBasedMsgModeEEnum, NameBasedMsgMode.DEFAULT);
+ addEEnumLiteral(nameBasedMsgModeEEnum, NameBasedMsgMode.NAME_IS_MESSAGE);
+ addEEnumLiteral(nameBasedMsgModeEEnum, NameBasedMsgMode.CUSTOM_TEMPLATE);
+
// Create resource
createResource(eNS_URI);
}
diff --git a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/impl/ValidationRuleImpl.java b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/impl/ValidationRuleImpl.java
index b1e732bfc9d..e5a30fa7e32 100644
--- a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/impl/ValidationRuleImpl.java
+++ b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/impl/ValidationRuleImpl.java
@@ -23,19 +23,19 @@ import org.eclipse.uml2.uml.Constraint;
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
+ * </p>
* <ul>
- * <li>{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.impl.ValidationRuleImpl#getSeverity <em>Severity</em>}</li>
- * <li>{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.impl.ValidationRuleImpl#getMode <em>Mode</em>}</li>
- * <li>{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.impl.ValidationRuleImpl#isEnabledByDefault <em>Is Enabled By Default</em>}</li>
- * <li>{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.impl.ValidationRuleImpl#getBase_Constraint <em>Base Constraint</em>}</li>
- * <li>{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.impl.ValidationRuleImpl#getStatusCode <em>Status Code</em>}</li>
- * <li>{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.impl.ValidationRuleImpl#getMessage <em>Message</em>}</li>
- * <li>{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.impl.ValidationRuleImpl#getDescription <em>Description</em>}</li>
- * <li>{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.impl.ValidationRuleImpl#getTarget <em>Target</em>}</li>
- * <li>{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.impl.ValidationRuleImpl#getClass_ <em>Class</em>}</li>
- * <li>{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.impl.ValidationRuleImpl#getId <em>Id</em>}</li>
+ * <li>{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.impl.ValidationRuleImpl#getSeverity <em>Severity</em>}</li>
+ * <li>{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.impl.ValidationRuleImpl#getMode <em>Mode</em>}</li>
+ * <li>{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.impl.ValidationRuleImpl#isEnabledByDefault <em>Is Enabled By Default</em>}</li>
+ * <li>{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.impl.ValidationRuleImpl#getBase_Constraint <em>Base Constraint</em>}</li>
+ * <li>{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.impl.ValidationRuleImpl#getStatusCode <em>Status Code</em>}</li>
+ * <li>{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.impl.ValidationRuleImpl#getMessage <em>Message</em>}</li>
+ * <li>{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.impl.ValidationRuleImpl#getDescription <em>Description</em>}</li>
+ * <li>{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.impl.ValidationRuleImpl#getTarget <em>Target</em>}</li>
+ * <li>{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.impl.ValidationRuleImpl#getClass_ <em>Class</em>}</li>
+ * <li>{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.impl.ValidationRuleImpl#getId <em>Id</em>}</li>
* </ul>
- * </p>
*
* @generated
*/
@@ -44,7 +44,6 @@ public class ValidationRuleImpl extends MinimalEObjectImpl.Container implements
* The default value of the '{@link #getSeverity() <em>Severity</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getSeverity()
* @generated
* @ordered
@@ -55,7 +54,6 @@ public class ValidationRuleImpl extends MinimalEObjectImpl.Container implements
* The cached value of the '{@link #getSeverity() <em>Severity</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getSeverity()
* @generated
* @ordered
@@ -66,7 +64,6 @@ public class ValidationRuleImpl extends MinimalEObjectImpl.Container implements
* The default value of the '{@link #getMode() <em>Mode</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getMode()
* @generated
* @ordered
@@ -77,7 +74,6 @@ public class ValidationRuleImpl extends MinimalEObjectImpl.Container implements
* The cached value of the '{@link #getMode() <em>Mode</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getMode()
* @generated
* @ordered
@@ -88,7 +84,6 @@ public class ValidationRuleImpl extends MinimalEObjectImpl.Container implements
* The default value of the '{@link #isEnabledByDefault() <em>Is Enabled By Default</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #isEnabledByDefault()
* @generated
* @ordered
@@ -99,7 +94,6 @@ public class ValidationRuleImpl extends MinimalEObjectImpl.Container implements
* The cached value of the '{@link #isEnabledByDefault() <em>Is Enabled By Default</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #isEnabledByDefault()
* @generated
* @ordered
@@ -110,7 +104,6 @@ public class ValidationRuleImpl extends MinimalEObjectImpl.Container implements
* The cached value of the '{@link #getBase_Constraint() <em>Base Constraint</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getBase_Constraint()
* @generated
* @ordered
@@ -121,7 +114,6 @@ public class ValidationRuleImpl extends MinimalEObjectImpl.Container implements
* The default value of the '{@link #getStatusCode() <em>Status Code</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getStatusCode()
* @generated
* @ordered
@@ -132,7 +124,6 @@ public class ValidationRuleImpl extends MinimalEObjectImpl.Container implements
* The cached value of the '{@link #getStatusCode() <em>Status Code</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getStatusCode()
* @generated
* @ordered
@@ -143,7 +134,6 @@ public class ValidationRuleImpl extends MinimalEObjectImpl.Container implements
* The default value of the '{@link #getMessage() <em>Message</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getMessage()
* @generated
* @ordered
@@ -154,7 +144,6 @@ public class ValidationRuleImpl extends MinimalEObjectImpl.Container implements
* The cached value of the '{@link #getMessage() <em>Message</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getMessage()
* @generated
* @ordered
@@ -165,7 +154,6 @@ public class ValidationRuleImpl extends MinimalEObjectImpl.Container implements
* The default value of the '{@link #getDescription() <em>Description</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getDescription()
* @generated
* @ordered
@@ -176,7 +164,6 @@ public class ValidationRuleImpl extends MinimalEObjectImpl.Container implements
* The cached value of the '{@link #getDescription() <em>Description</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getDescription()
* @generated
* @ordered
@@ -187,7 +174,6 @@ public class ValidationRuleImpl extends MinimalEObjectImpl.Container implements
* The cached value of the '{@link #getTarget() <em>Target</em>}' attribute list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getTarget()
* @generated
* @ordered
@@ -198,7 +184,6 @@ public class ValidationRuleImpl extends MinimalEObjectImpl.Container implements
* The default value of the '{@link #getClass_() <em>Class</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getClass_()
* @generated
* @ordered
@@ -209,7 +194,6 @@ public class ValidationRuleImpl extends MinimalEObjectImpl.Container implements
* The cached value of the '{@link #getClass_() <em>Class</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getClass_()
* @generated
* @ordered
@@ -220,7 +204,6 @@ public class ValidationRuleImpl extends MinimalEObjectImpl.Container implements
* The default value of the '{@link #getId() <em>Id</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getId()
* @generated
* @ordered
@@ -231,7 +214,6 @@ public class ValidationRuleImpl extends MinimalEObjectImpl.Container implements
* The cached value of the '{@link #getId() <em>Id</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getId()
* @generated
* @ordered
@@ -241,7 +223,6 @@ public class ValidationRuleImpl extends MinimalEObjectImpl.Container implements
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
protected ValidationRuleImpl() {
@@ -251,7 +232,6 @@ public class ValidationRuleImpl extends MinimalEObjectImpl.Container implements
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
@@ -262,7 +242,6 @@ public class ValidationRuleImpl extends MinimalEObjectImpl.Container implements
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public Severity getSeverity() {
@@ -272,21 +251,18 @@ public class ValidationRuleImpl extends MinimalEObjectImpl.Container implements
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public void setSeverity(Severity newSeverity) {
Severity oldSeverity = severity;
severity = newSeverity == null ? SEVERITY_EDEFAULT : newSeverity;
- if (eNotificationRequired()) {
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, PapyrusDSMLValidationRulePackage.VALIDATION_RULE__SEVERITY, oldSeverity, severity));
- }
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public Mode getMode() {
@@ -296,21 +272,18 @@ public class ValidationRuleImpl extends MinimalEObjectImpl.Container implements
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public void setMode(Mode newMode) {
Mode oldMode = mode;
mode = newMode == null ? MODE_EDEFAULT : newMode;
- if (eNotificationRequired()) {
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, PapyrusDSMLValidationRulePackage.VALIDATION_RULE__MODE, oldMode, mode));
- }
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public boolean isEnabledByDefault() {
@@ -320,31 +293,27 @@ public class ValidationRuleImpl extends MinimalEObjectImpl.Container implements
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public void setIsEnabledByDefault(boolean newIsEnabledByDefault) {
boolean oldIsEnabledByDefault = isEnabledByDefault;
isEnabledByDefault = newIsEnabledByDefault;
- if (eNotificationRequired()) {
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, PapyrusDSMLValidationRulePackage.VALIDATION_RULE__IS_ENABLED_BY_DEFAULT, oldIsEnabledByDefault, isEnabledByDefault));
- }
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public Constraint getBase_Constraint() {
if (base_Constraint != null && base_Constraint.eIsProxy()) {
- InternalEObject oldBase_Constraint = (InternalEObject) base_Constraint;
- base_Constraint = (Constraint) eResolveProxy(oldBase_Constraint);
+ InternalEObject oldBase_Constraint = (InternalEObject)base_Constraint;
+ base_Constraint = (Constraint)eResolveProxy(oldBase_Constraint);
if (base_Constraint != oldBase_Constraint) {
- if (eNotificationRequired()) {
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, PapyrusDSMLValidationRulePackage.VALIDATION_RULE__BASE_CONSTRAINT, oldBase_Constraint, base_Constraint));
- }
}
}
return base_Constraint;
@@ -353,7 +322,6 @@ public class ValidationRuleImpl extends MinimalEObjectImpl.Container implements
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public Constraint basicGetBase_Constraint() {
@@ -363,21 +331,18 @@ public class ValidationRuleImpl extends MinimalEObjectImpl.Container implements
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public void setBase_Constraint(Constraint newBase_Constraint) {
Constraint oldBase_Constraint = base_Constraint;
base_Constraint = newBase_Constraint;
- if (eNotificationRequired()) {
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, PapyrusDSMLValidationRulePackage.VALIDATION_RULE__BASE_CONSTRAINT, oldBase_Constraint, base_Constraint));
- }
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public int getStatusCode() {
@@ -387,21 +352,18 @@ public class ValidationRuleImpl extends MinimalEObjectImpl.Container implements
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public void setStatusCode(int newStatusCode) {
int oldStatusCode = statusCode;
statusCode = newStatusCode;
- if (eNotificationRequired()) {
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, PapyrusDSMLValidationRulePackage.VALIDATION_RULE__STATUS_CODE, oldStatusCode, statusCode));
- }
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public String getMessage() {
@@ -411,21 +373,18 @@ public class ValidationRuleImpl extends MinimalEObjectImpl.Container implements
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public void setMessage(String newMessage) {
String oldMessage = message;
message = newMessage;
- if (eNotificationRequired()) {
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, PapyrusDSMLValidationRulePackage.VALIDATION_RULE__MESSAGE, oldMessage, message));
- }
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public String getDescription() {
@@ -435,21 +394,18 @@ public class ValidationRuleImpl extends MinimalEObjectImpl.Container implements
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public void setDescription(String newDescription) {
String oldDescription = description;
description = newDescription;
- if (eNotificationRequired()) {
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, PapyrusDSMLValidationRulePackage.VALIDATION_RULE__DESCRIPTION, oldDescription, description));
- }
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public EList<String> getTarget() {
@@ -462,7 +418,6 @@ public class ValidationRuleImpl extends MinimalEObjectImpl.Container implements
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public String getClass_() {
@@ -472,21 +427,18 @@ public class ValidationRuleImpl extends MinimalEObjectImpl.Container implements
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public void setClass_(String newClass) {
String oldClass = class_;
class_ = newClass;
- if (eNotificationRequired()) {
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, PapyrusDSMLValidationRulePackage.VALIDATION_RULE__CLASS, oldClass, class_));
- }
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public String getId() {
@@ -496,49 +448,44 @@ public class ValidationRuleImpl extends MinimalEObjectImpl.Container implements
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public void setId(String newId) {
String oldId = id;
id = newId;
- if (eNotificationRequired()) {
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, PapyrusDSMLValidationRulePackage.VALIDATION_RULE__ID, oldId, id));
- }
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__SEVERITY:
- return getSeverity();
- case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__MODE:
- return getMode();
- case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__IS_ENABLED_BY_DEFAULT:
- return isEnabledByDefault();
- case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__BASE_CONSTRAINT:
- if (resolve) {
- return getBase_Constraint();
- }
- return basicGetBase_Constraint();
- case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__STATUS_CODE:
- return getStatusCode();
- case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__MESSAGE:
- return getMessage();
- case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__DESCRIPTION:
- return getDescription();
- case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__TARGET:
- return getTarget();
- case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__CLASS:
- return getClass_();
- case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__ID:
- return getId();
+ case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__SEVERITY:
+ return getSeverity();
+ case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__MODE:
+ return getMode();
+ case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__IS_ENABLED_BY_DEFAULT:
+ return isEnabledByDefault();
+ case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__BASE_CONSTRAINT:
+ if (resolve) return getBase_Constraint();
+ return basicGetBase_Constraint();
+ case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__STATUS_CODE:
+ return getStatusCode();
+ case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__MESSAGE:
+ return getMessage();
+ case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__DESCRIPTION:
+ return getDescription();
+ case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__TARGET:
+ return getTarget();
+ case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__CLASS:
+ return getClass_();
+ case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__ID:
+ return getId();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -546,44 +493,43 @@ public class ValidationRuleImpl extends MinimalEObjectImpl.Container implements
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__SEVERITY:
- setSeverity((Severity) newValue);
- return;
- case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__MODE:
- setMode((Mode) newValue);
- return;
- case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__IS_ENABLED_BY_DEFAULT:
- setIsEnabledByDefault((Boolean) newValue);
- return;
- case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__BASE_CONSTRAINT:
- setBase_Constraint((Constraint) newValue);
- return;
- case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__STATUS_CODE:
- setStatusCode((Integer) newValue);
- return;
- case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__MESSAGE:
- setMessage((String) newValue);
- return;
- case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__DESCRIPTION:
- setDescription((String) newValue);
- return;
- case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__TARGET:
- getTarget().clear();
- getTarget().addAll((Collection<? extends String>) newValue);
- return;
- case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__CLASS:
- setClass_((String) newValue);
- return;
- case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__ID:
- setId((String) newValue);
- return;
+ case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__SEVERITY:
+ setSeverity((Severity)newValue);
+ return;
+ case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__MODE:
+ setMode((Mode)newValue);
+ return;
+ case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__IS_ENABLED_BY_DEFAULT:
+ setIsEnabledByDefault((Boolean)newValue);
+ return;
+ case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__BASE_CONSTRAINT:
+ setBase_Constraint((Constraint)newValue);
+ return;
+ case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__STATUS_CODE:
+ setStatusCode((Integer)newValue);
+ return;
+ case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__MESSAGE:
+ setMessage((String)newValue);
+ return;
+ case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__DESCRIPTION:
+ setDescription((String)newValue);
+ return;
+ case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__TARGET:
+ getTarget().clear();
+ getTarget().addAll((Collection<? extends String>)newValue);
+ return;
+ case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__CLASS:
+ setClass_((String)newValue);
+ return;
+ case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__ID:
+ setId((String)newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -591,42 +537,41 @@ public class ValidationRuleImpl extends MinimalEObjectImpl.Container implements
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
- case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__SEVERITY:
- setSeverity(SEVERITY_EDEFAULT);
- return;
- case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__MODE:
- setMode(MODE_EDEFAULT);
- return;
- case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__IS_ENABLED_BY_DEFAULT:
- setIsEnabledByDefault(IS_ENABLED_BY_DEFAULT_EDEFAULT);
- return;
- case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__BASE_CONSTRAINT:
- setBase_Constraint((Constraint) null);
- return;
- case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__STATUS_CODE:
- setStatusCode(STATUS_CODE_EDEFAULT);
- return;
- case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__MESSAGE:
- setMessage(MESSAGE_EDEFAULT);
- return;
- case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__DESCRIPTION:
- setDescription(DESCRIPTION_EDEFAULT);
- return;
- case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__TARGET:
- getTarget().clear();
- return;
- case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__CLASS:
- setClass_(CLASS_EDEFAULT);
- return;
- case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__ID:
- setId(ID_EDEFAULT);
- return;
+ case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__SEVERITY:
+ setSeverity(SEVERITY_EDEFAULT);
+ return;
+ case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__MODE:
+ setMode(MODE_EDEFAULT);
+ return;
+ case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__IS_ENABLED_BY_DEFAULT:
+ setIsEnabledByDefault(IS_ENABLED_BY_DEFAULT_EDEFAULT);
+ return;
+ case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__BASE_CONSTRAINT:
+ setBase_Constraint((Constraint)null);
+ return;
+ case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__STATUS_CODE:
+ setStatusCode(STATUS_CODE_EDEFAULT);
+ return;
+ case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__MESSAGE:
+ setMessage(MESSAGE_EDEFAULT);
+ return;
+ case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__DESCRIPTION:
+ setDescription(DESCRIPTION_EDEFAULT);
+ return;
+ case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__TARGET:
+ getTarget().clear();
+ return;
+ case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__CLASS:
+ setClass_(CLASS_EDEFAULT);
+ return;
+ case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__ID:
+ setId(ID_EDEFAULT);
+ return;
}
super.eUnset(featureID);
}
@@ -634,32 +579,31 @@ public class ValidationRuleImpl extends MinimalEObjectImpl.Container implements
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
- case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__SEVERITY:
- return severity != SEVERITY_EDEFAULT;
- case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__MODE:
- return mode != MODE_EDEFAULT;
- case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__IS_ENABLED_BY_DEFAULT:
- return isEnabledByDefault != IS_ENABLED_BY_DEFAULT_EDEFAULT;
- case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__BASE_CONSTRAINT:
- return base_Constraint != null;
- case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__STATUS_CODE:
- return statusCode != STATUS_CODE_EDEFAULT;
- case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__MESSAGE:
- return MESSAGE_EDEFAULT == null ? message != null : !MESSAGE_EDEFAULT.equals(message);
- case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__DESCRIPTION:
- return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description);
- case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__TARGET:
- return target != null && !target.isEmpty();
- case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__CLASS:
- return CLASS_EDEFAULT == null ? class_ != null : !CLASS_EDEFAULT.equals(class_);
- case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__ID:
- return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id);
+ case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__SEVERITY:
+ return severity != SEVERITY_EDEFAULT;
+ case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__MODE:
+ return mode != MODE_EDEFAULT;
+ case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__IS_ENABLED_BY_DEFAULT:
+ return isEnabledByDefault != IS_ENABLED_BY_DEFAULT_EDEFAULT;
+ case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__BASE_CONSTRAINT:
+ return base_Constraint != null;
+ case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__STATUS_CODE:
+ return statusCode != STATUS_CODE_EDEFAULT;
+ case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__MESSAGE:
+ return MESSAGE_EDEFAULT == null ? message != null : !MESSAGE_EDEFAULT.equals(message);
+ case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__DESCRIPTION:
+ return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description);
+ case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__TARGET:
+ return target != null && !target.isEmpty();
+ case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__CLASS:
+ return CLASS_EDEFAULT == null ? class_ != null : !CLASS_EDEFAULT.equals(class_);
+ case PapyrusDSMLValidationRulePackage.VALIDATION_RULE__ID:
+ return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id);
}
return super.eIsSet(featureID);
}
@@ -667,14 +611,11 @@ public class ValidationRuleImpl extends MinimalEObjectImpl.Container implements
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public String toString() {
- if (eIsProxy()) {
- return super.toString();
- }
+ if (eIsProxy()) return super.toString();
StringBuffer result = new StringBuffer(super.toString());
result.append(" (severity: ");
diff --git a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/util/PapyrusDSMLValidationRuleAdapterFactory.java b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/util/PapyrusDSMLValidationRuleAdapterFactory.java
index d595730b15e..5b866f6f989 100644
--- a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/util/PapyrusDSMLValidationRuleAdapterFactory.java
+++ b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/util/PapyrusDSMLValidationRuleAdapterFactory.java
@@ -6,6 +6,7 @@ import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.common.notify.Notifier;
import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
import org.eclipse.emf.ecore.EObject;
+import org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.*;
import org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.PapyrusDSMLValidationRulePackage;
import org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.ValidationRule;
@@ -14,7 +15,6 @@ import org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.ValidationR
* The <b>Adapter Factory</b> for the model.
* It provides an adapter <code>createXXX</code> method for each class of the model.
* <!-- end-user-doc -->
- *
* @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.PapyrusDSMLValidationRulePackage
* @generated
*/
@@ -23,7 +23,6 @@ public class PapyrusDSMLValidationRuleAdapterFactory extends AdapterFactoryImpl
* The cached model package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
protected static PapyrusDSMLValidationRulePackage modelPackage;
@@ -32,7 +31,6 @@ public class PapyrusDSMLValidationRuleAdapterFactory extends AdapterFactoryImpl
* Creates an instance of the adapter factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public PapyrusDSMLValidationRuleAdapterFactory() {
@@ -46,7 +44,6 @@ public class PapyrusDSMLValidationRuleAdapterFactory extends AdapterFactoryImpl
* <!-- begin-user-doc -->
* This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
* <!-- end-user-doc -->
- *
* @return whether this factory is applicable for the type of the object.
* @generated
*/
@@ -56,7 +53,7 @@ public class PapyrusDSMLValidationRuleAdapterFactory extends AdapterFactoryImpl
return true;
}
if (object instanceof EObject) {
- return ((EObject) object).eClass().getEPackage() == modelPackage;
+ return ((EObject)object).eClass().getEPackage() == modelPackage;
}
return false;
}
@@ -65,35 +62,35 @@ public class PapyrusDSMLValidationRuleAdapterFactory extends AdapterFactoryImpl
* The switch that delegates to the <code>createXXX</code> methods.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
protected PapyrusDSMLValidationRuleSwitch<Adapter> modelSwitch =
new PapyrusDSMLValidationRuleSwitch<Adapter>() {
- @Override
- public Adapter caseValidationRule(ValidationRule object) {
- return createValidationRuleAdapter();
- }
-
- @Override
- public Adapter defaultCase(EObject object) {
- return createEObjectAdapter();
- }
- };
+ @Override
+ public Adapter caseValidationRule(ValidationRule object) {
+ return createValidationRuleAdapter();
+ }
+ @Override
+ public Adapter caseMessageHandling(MessageHandling object) {
+ return createMessageHandlingAdapter();
+ }
+ @Override
+ public Adapter defaultCase(EObject object) {
+ return createEObjectAdapter();
+ }
+ };
/**
* Creates an adapter for the <code>target</code>.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
- * @param target
- * the object to adapt.
+ * @param target the object to adapt.
* @return the adapter for the <code>target</code>.
* @generated
*/
@Override
public Adapter createAdapter(Notifier target) {
- return modelSwitch.doSwitch((EObject) target);
+ return modelSwitch.doSwitch((EObject)target);
}
@@ -103,7 +100,6 @@ public class PapyrusDSMLValidationRuleAdapterFactory extends AdapterFactoryImpl
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
- *
* @return the new adapter.
* @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.ValidationRule
* @generated
@@ -113,11 +109,24 @@ public class PapyrusDSMLValidationRuleAdapterFactory extends AdapterFactoryImpl
}
/**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.MessageHandling <em>Message Handling</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.MessageHandling
+ * @generated
+ */
+ public Adapter createMessageHandlingAdapter() {
+ return null;
+ }
+
+ /**
* Creates a new adapter for the default case.
* <!-- begin-user-doc -->
* This default implementation returns null.
* <!-- end-user-doc -->
- *
* @return the new adapter.
* @generated
*/
diff --git a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/util/PapyrusDSMLValidationRuleResourceFactoryImpl.java b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/util/PapyrusDSMLValidationRuleResourceFactoryImpl.java
index bc69e477750..073910d8286 100644
--- a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/util/PapyrusDSMLValidationRuleResourceFactoryImpl.java
+++ b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/util/PapyrusDSMLValidationRuleResourceFactoryImpl.java
@@ -11,7 +11,6 @@ import org.eclipse.emf.ecore.xmi.XMLResource;
* <!-- begin-user-doc -->
* The <b>Resource Factory</b> associated with the package.
* <!-- end-user-doc -->
- *
* @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.util.PapyrusDSMLValidationRuleResourceImpl
* @generated
*/
@@ -20,7 +19,6 @@ public class PapyrusDSMLValidationRuleResourceFactoryImpl extends ResourceFactor
* Creates an instance of the resource factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public PapyrusDSMLValidationRuleResourceFactoryImpl() {
@@ -31,21 +29,11 @@ public class PapyrusDSMLValidationRuleResourceFactoryImpl extends ResourceFactor
* Creates an instance of the resource.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public Resource createResource(URI uri) {
XMLResource result = new PapyrusDSMLValidationRuleResourceImpl(uri);
- result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE);
- result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE);
-
- result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE);
-
- result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE);
- result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE);
-
- result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE);
return result;
}
diff --git a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/util/PapyrusDSMLValidationRuleResourceImpl.java b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/util/PapyrusDSMLValidationRuleResourceImpl.java
index b701aceae19..64ba3d44fc9 100644
--- a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/util/PapyrusDSMLValidationRuleResourceImpl.java
+++ b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/util/PapyrusDSMLValidationRuleResourceImpl.java
@@ -9,7 +9,6 @@ import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl;
* <!-- begin-user-doc -->
* The <b>Resource </b> associated with the package.
* <!-- end-user-doc -->
- *
* @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.util.PapyrusDSMLValidationRuleResourceFactoryImpl
* @generated
*/
@@ -18,9 +17,7 @@ public class PapyrusDSMLValidationRuleResourceImpl extends XMLResourceImpl {
* Creates an instance of the resource.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
- * @param uri
- * the URI of the new resource.
+ * @param uri the URI of the new resource.
* @generated
*/
public PapyrusDSMLValidationRuleResourceImpl(URI uri) {
diff --git a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/util/PapyrusDSMLValidationRuleSwitch.java b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/util/PapyrusDSMLValidationRuleSwitch.java
index e84219f5841..ef546f570c7 100644
--- a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/util/PapyrusDSMLValidationRuleSwitch.java
+++ b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/util/PapyrusDSMLValidationRuleSwitch.java
@@ -5,6 +5,7 @@ package org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.util;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.util.Switch;
+import org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.*;
import org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.PapyrusDSMLValidationRulePackage;
import org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.ValidationRule;
@@ -17,7 +18,6 @@ import org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.ValidationR
* until a non-null result is returned,
* which is the result of the switch.
* <!-- end-user-doc -->
- *
* @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.PapyrusDSMLValidationRulePackage
* @generated
*/
@@ -26,7 +26,6 @@ public class PapyrusDSMLValidationRuleSwitch<T> extends Switch<T> {
* The cached model package
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
protected static PapyrusDSMLValidationRulePackage modelPackage;
@@ -35,7 +34,6 @@ public class PapyrusDSMLValidationRuleSwitch<T> extends Switch<T> {
* Creates an instance of the switch.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public PapyrusDSMLValidationRuleSwitch() {
@@ -48,8 +46,7 @@ public class PapyrusDSMLValidationRuleSwitch<T> extends Switch<T> {
* Checks whether this is a switch for the given package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
- * @parameter ePackage the package in question.
+ * @param ePackage the package in question.
* @return whether this is a switch for the given package.
* @generated
*/
@@ -62,23 +59,25 @@ public class PapyrusDSMLValidationRuleSwitch<T> extends Switch<T> {
* Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @return the first non-null result returned by a <code>caseXXX</code> call.
* @generated
*/
@Override
protected T doSwitch(int classifierID, EObject theEObject) {
switch (classifierID) {
- case PapyrusDSMLValidationRulePackage.VALIDATION_RULE: {
- ValidationRule validationRule = (ValidationRule) theEObject;
- T result = caseValidationRule(validationRule);
- if (result == null) {
- result = defaultCase(theEObject);
+ case PapyrusDSMLValidationRulePackage.VALIDATION_RULE: {
+ ValidationRule validationRule = (ValidationRule)theEObject;
+ T result = caseValidationRule(validationRule);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
}
- return result;
- }
- default:
- return defaultCase(theEObject);
+ case PapyrusDSMLValidationRulePackage.MESSAGE_HANDLING: {
+ MessageHandling messageHandling = (MessageHandling)theEObject;
+ T result = caseMessageHandling(messageHandling);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ default: return defaultCase(theEObject);
}
}
@@ -88,9 +87,7 @@ public class PapyrusDSMLValidationRuleSwitch<T> extends Switch<T> {
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
+ * @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Validation Rule</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -100,14 +97,27 @@ public class PapyrusDSMLValidationRuleSwitch<T> extends Switch<T> {
}
/**
+ * Returns the result of interpreting the object as an instance of '<em>Message Handling</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Message Handling</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseMessageHandling(MessageHandling object) {
+ return null;
+ }
+
+ /**
* Returns the result of interpreting the object as an instance of '<em>EObject</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch, but this is the last case anyway.
* <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
+ * @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>EObject</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject)
* @generated
diff --git a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/util/PapyrusDSMLValidationRuleXMLProcessor.java b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/util/PapyrusDSMLValidationRuleXMLProcessor.java
index a072a1d93ae..4b3b6f85a99 100644
--- a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/util/PapyrusDSMLValidationRuleXMLProcessor.java
+++ b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/util/PapyrusDSMLValidationRuleXMLProcessor.java
@@ -13,7 +13,6 @@ import org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.PapyrusDSML
* This class contains helper methods to serialize and deserialize XML documents
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public class PapyrusDSMLValidationRuleXMLProcessor extends XMLProcessor {
@@ -22,7 +21,6 @@ public class PapyrusDSMLValidationRuleXMLProcessor extends XMLProcessor {
* Public constructor to instantiate the helper.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public PapyrusDSMLValidationRuleXMLProcessor() {
@@ -34,7 +32,6 @@ public class PapyrusDSMLValidationRuleXMLProcessor extends XMLProcessor {
* Register for "*" and "xml" file extensions the PapyrusDSMLValidationRuleResourceFactoryImpl factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override

Back to the top