Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCamille Letavernier2014-04-11 09:02:39 +0000
committerCamille Letavernier2014-04-11 09:04:24 +0000
commita41df620b22b64842114808781c2f16ee4b38b0c (patch)
tree2df180910ad394f0569f348318e16c77f3f431e8 /extraplugins
parentb17bd6b9496e67793d3194c9571f68fb134bf99f (diff)
downloadorg.eclipse.papyrus-a41df620b22b64842114808781c2f16ee4b38b0c.tar.gz
org.eclipse.papyrus-a41df620b22b64842114808781c2f16ee4b38b0c.tar.xz
org.eclipse.papyrus-a41df620b22b64842114808781c2f16ee4b38b0c.zip
432599: [Papyrus Profiles] Provide static profile implementations
https://bugs.eclipse.org/bugs/show_bug.cgi?id=432599
Diffstat (limited to 'extraplugins')
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.properties/plugin.xml6
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/.classpath1
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/META-INF/MANIFEST.MF15
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/build.properties3
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/plugin.properties1
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/plugin.xml33
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/resource/PapyrusDSMLValidationRule.ecore38
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/resource/PapyrusValidationRuleDSML.genmodel61
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/resource/PapyrusValidationRuleDSML.uml238
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/resource/properties/dsmlvalidationproperties.ctx39
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/resource/properties/ui/MultipleValidationRule.xwt25
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/resource/properties/ui/SingleValidationRule.xwt34
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/Mode.java208
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/PapyrusDSMLValidationRuleFactory.java42
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/PapyrusDSMLValidationRulePackage.java474
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/Severity.java262
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/ValidationRule.java297
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/impl/PapyrusDSMLValidationRuleFactoryImpl.java170
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/impl/PapyrusDSMLValidationRulePackageImpl.java338
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/impl/ValidationRuleImpl.java649
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/util/PapyrusDSMLValidationRuleAdapterFactory.java120
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/util/PapyrusDSMLValidationRuleResourceFactoryImpl.java52
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/util/PapyrusDSMLValidationRuleResourceImpl.java28
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/util/PapyrusDSMLValidationRuleSwitch.java110
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/util/PapyrusDSMLValidationRuleXMLProcessor.java50
25 files changed, 2954 insertions, 340 deletions
diff --git a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.properties/plugin.xml b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.properties/plugin.xml
index 379295bbab9..f980c228c58 100644
--- a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.properties/plugin.xml
+++ b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.properties/plugin.xml
@@ -1,3 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?><?eclipse version="3.4"?>
<plugin>
-<extension point="org.eclipse.papyrus.views.properties.context"><context contextModel="/propertyView/dsmlvalidationproperties/dsmlvalidationproperties.ctx"/></extension></plugin> \ No newline at end of file
+<extension point="org.eclipse.papyrus.views.properties.context">
+ <context
+ contextModel="/propertyView/dsmlvalidationproperties/dsmlvalidationproperties.ctx"
+ isCustomizable="true"/></extension>
+</plugin>
diff --git a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/.classpath b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/.classpath
index 2d1a4302f04..2734480ce07 100644
--- a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/.classpath
+++ b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/.classpath
@@ -2,6 +2,7 @@
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src-gen"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="output" path="bin"/>
</classpath>
diff --git a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/META-INF/MANIFEST.MF b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/META-INF/MANIFEST.MF
index e6657944925..6448046776b 100644
--- a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/META-INF/MANIFEST.MF
+++ b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/META-INF/MANIFEST.MF
@@ -1,16 +1,23 @@
Manifest-Version: 1.0
-Export-Package: org.eclipse.papyrus.dsml.validation
+Export-Package: org.eclipse.papyrus.dsml.validation,
+ org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule,
+ org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.impl,
+ org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.util
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,
- org.eclipse.uml2.uml;bundle-version="5.0.0"
+ org.eclipse.emf.ecore;visibility:=reexport,
+ org.eclipse.emf.ecore.xmi;visibility:=reexport,
+ org.eclipse.uml2.types;visibility:=reexport,
+ org.eclipse.uml2.uml;bundle-version="5.0.0",
+ org.eclipse.papyrus.uml.extensionpoints;bundle-version="1.0.0"
Bundle-Vendor: %pluginProvider
Bundle-ActivationPolicy: lazy
Bundle-Version: 1.0.0.qualifier
+Bundle-ClassPath: .
Bundle-Localization: plugin
Bundle-Name: %pluginName
Bundle-Activator: org.eclipse.papyrus.dsml.validation.Activator
Bundle-ManifestVersion: 2
-Bundle-SymbolicName: org.eclipse.papyrus.dsml.validation;singleton:=tr
- ue
+Bundle-SymbolicName: org.eclipse.papyrus.dsml.validation;singleton:=true
Bundle-RequiredExecutionEnvironment: J2SE-1.5
diff --git a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/build.properties b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/build.properties
index a98ba1a06a9..ee2f2451059 100644
--- a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/build.properties
+++ b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/build.properties
@@ -1,4 +1,5 @@
-source.. = src/
+source.. = src/,\
+ src-gen/
output.. = bin/
bin.includes = META-INF/,\
.,\
diff --git a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/plugin.properties b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/plugin.properties
index d53a6e0c053..15e199c3b24 100644
--- a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/plugin.properties
+++ b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/plugin.properties
@@ -10,3 +10,4 @@
###############################################################################
pluginName=Papyrus DSML Validation (Incubation)
pluginProvider=Eclipse Modeling Project
+providerName = www.example.org
diff --git a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/plugin.xml b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/plugin.xml
index 6096a87449d..c50f482a286 100644
--- a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/plugin.xml
+++ b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/plugin.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
- <extension
+<extension
point="org.eclipse.emf.ecore.uri_mapping">
<mapping
@@ -9,7 +9,21 @@
target="platform:/plugin/org.eclipse.papyrus.dsml.validation/resource/">
</mapping>
</extension>
- <extension
+ <extension point="org.eclipse.emf.ecore.generated_package">
+ <!-- @generated PapyrusValidationRuleDSML -->
+ <package
+ uri="http://www.eclipse.org/papyrus/dsmlvalidation"
+ class="org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.PapyrusDSMLValidationRulePackage"
+ genModel="resource/PapyrusValidationRuleDSML.genmodel"/>
+ </extension>
+ <extension
+ point="org.eclipse.uml2.uml.generated_package">
+ <profile
+ location="pathmap://DSMLValidation_PROFILES/PapyrusValidationRuleDSML.uml#__sUW0OhNEeCjcc2EgK3Uwg"
+ uri="http://www.eclipse.org/papyrus/dsmlvalidation">
+ </profile>
+ </extension>
+ <extension
point="org.eclipse.papyrus.uml.extensionpoints.UMLProfile">
<profile
description="Profile to execute DSML validation"
@@ -18,18 +32,5 @@
provider="Eclipse Modeling Project">
</profile>
</extension>
- <extension
- point="org.eclipse.uml2.uml.dynamic_package">
- <profile
- location="pathmap://DSMLValidation_PROFILES/PapyrusValidationRuleDSML.uml#_0"
- uri="pathmap://DSMLValidation_PROFILES/PapyrusValidationRuleDSML">
- </profile>
- </extension>
- <extension
- point="org.eclipse.emf.ecore.dynamic_package">
- <resource
- location="pathmap://DSMLValidation_PROFILES/PapyrusValidationRuleDSML.uml#_0"
- uri="pathmap://DSMLValidation_PROFILES/PapyrusValidationRuleDSML">
- </resource>
- </extension>
+
</plugin>
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
new file mode 100644
index 00000000000..155d3970414
--- /dev/null
+++ b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/resource/PapyrusDSMLValidationRule.ecore
@@ -0,0 +1,38 @@
+<?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>
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
new file mode 100644
index 00000000000..131212d0b66
--- /dev/null
+++ b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/resource/PapyrusValidationRuleDSML.genmodel
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<genmodel:GenModel xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:genmodel="http://www.eclipse.org/uml2/2.2.0/GenModel"
+ 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"
+ 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">
+ <details key="ECORE_TAGGED_VALUES" value="PROCESS"/>
+ <details key="UNION_PROPERTIES" value="REPORT"/>
+ <details key="UNTYPED_PROPERTIES" value="REPORT"/>
+ <details key="DUPLICATE_FEATURES" value="DISCARD"/>
+ <details key="SUBSETTING_PROPERTIES" value="REPORT"/>
+ <details key="VALIDATION_DELEGATES" value="IGNORE"/>
+ <details key="OPPOSITE_ROLE_NAMES" value="IGNORE"/>
+ <details key="COMMENTS" value="PROCESS"/>
+ <details key="DUPLICATE_FEATURE_INHERITANCE" value="DISCARD"/>
+ <details key="DUPLICATE_OPERATIONS" value="DISCARD"/>
+ <details key="PROPERTY_DEFAULT_EXPRESSIONS" value="IGNORE"/>
+ <details key="INVARIANT_CONSTRAINTS" value="PROCESS"/>
+ <details key="REDEFINING_PROPERTIES" value="REPORT"/>
+ <details key="ANNOTATION_DETAILS" value="PROCESS"/>
+ <details key="NON_API_INVARIANTS" value="IGNORE"/>
+ <details key="DUPLICATE_OPERATION_INHERITANCE" value="DISCARD"/>
+ <details key="REDEFINING_OPERATIONS" value="REPORT"/>
+ <details key="INVOCATION_DELEGATES" value="IGNORE"/>
+ <details key="DERIVED_FEATURES" value="PROCESS"/>
+ <details key="OPERATION_BODIES" value="IGNORE"/>
+ <details key="CAMEL_CASE_NAMES" value="IGNORE"/>
+ <details key="SUPER_CLASS_ORDER" value="PROCESS"/>
+ </genAnnotations>
+ <foreignModel>PapyrusValidationRuleDSML.uml</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">
+ <genEnumLiterals xsi:type="genmodel:GenEnumLiteral" ecoreEnumLiteral="PapyrusDSMLValidationRule.ecore#//Severity/ERROR"/>
+ <genEnumLiterals xsi:type="genmodel:GenEnumLiteral" ecoreEnumLiteral="PapyrusDSMLValidationRule.ecore#//Severity/WARNING"/>
+ <genEnumLiterals xsi:type="genmodel:GenEnumLiteral" ecoreEnumLiteral="PapyrusDSMLValidationRule.ecore#//Severity/INFO"/>
+ <genEnumLiterals xsi:type="genmodel:GenEnumLiteral" ecoreEnumLiteral="PapyrusDSMLValidationRule.ecore#//Severity/CANCEL"/>
+ </genEnums>
+ <genEnums xsi:type="genmodel:GenEnum" typeSafeEnumCompatible="false" ecoreEnum="PapyrusDSMLValidationRule.ecore#//Mode">
+ <genEnumLiterals xsi:type="genmodel:GenEnumLiteral" ecoreEnumLiteral="PapyrusDSMLValidationRule.ecore#//Mode/Batch"/>
+ <genEnumLiterals xsi:type="genmodel:GenEnumLiteral" ecoreEnumLiteral="PapyrusDSMLValidationRule.ecore#//Mode/Live"/>
+ </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"/>
+ <genFeatures xsi:type="genmodel:GenFeature" createChild="false" ecoreFeature="ecore:EAttribute PapyrusDSMLValidationRule.ecore#//ValidationRule/isEnabledByDefault"/>
+ <genFeatures xsi:type="genmodel:GenFeature" notify="false" createChild="false"
+ propertySortChoices="true" ecoreFeature="ecore:EReference PapyrusDSMLValidationRule.ecore#//ValidationRule/base_Constraint"/>
+ <genFeatures xsi:type="genmodel:GenFeature" createChild="false" ecoreFeature="ecore:EAttribute PapyrusDSMLValidationRule.ecore#//ValidationRule/statusCode"/>
+ <genFeatures xsi:type="genmodel:GenFeature" createChild="false" ecoreFeature="ecore:EAttribute PapyrusDSMLValidationRule.ecore#//ValidationRule/message"/>
+ <genFeatures xsi:type="genmodel:GenFeature" createChild="false" ecoreFeature="ecore:EAttribute PapyrusDSMLValidationRule.ecore#//ValidationRule/description"/>
+ <genFeatures xsi:type="genmodel:GenFeature" createChild="false" ecoreFeature="ecore:EAttribute PapyrusDSMLValidationRule.ecore#//ValidationRule/target"/>
+ <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>
+ </genPackages>
+</genmodel:GenModel>
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 2f1b7f2c888..40c30f3bd54 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,271 +1,69 @@
<?xml version="1.0" encoding="UTF-8"?>
-<uml:Profile xmi:version="2.1" xmlns:xmi="http://schema.omg.org/spec/XMI/2.1" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:uml="http://www.eclipse.org/uml2/4.0.0/UML" xmi:id="__sUW0OhNEeCjcc2EgK3Uwg" name="PapyrusDSMLValidationRule" metaclassReference="_wrBFYOhOEeCjcc2EgK3Uwg">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_OC7vsOhREeCjcc2EgK3Uwg" source="http://www.eclipse.org/uml2/2.0.0/UML">
- <contents xmi:type="ecore:EPackage" xmi:id="_cSI-kNgnEeKOqNIXy22Xwg" name="PapyrusDSMLValidationRule" nsURI="http:///schemas/PapyrusDSMLValidationRule/_cSIXgNgnEeKOqNIXy22Xwg/3" nsPrefix="PapyrusDSMLValidationRule">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_cSY2MNgnEeKOqNIXy22Xwg" source="PapyrusVersion">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_cSY2MdgnEeKOqNIXy22Xwg" key="Version" value="0.0.4"/>
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_cSY2MtgnEeKOqNIXy22Xwg" key="Comment" value=""/>
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_cSY2M9gnEeKOqNIXy22Xwg" key="Copyright" value=""/>
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_cSY2NNgnEeKOqNIXy22Xwg" key="Date" value="2013-06-18"/>
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_cSY2NdgnEeKOqNIXy22Xwg" key="Author" value=""/>
- </eAnnotations>
- <eClassifiers xmi:type="ecore:EClass" xmi:id="_cSI-kdgnEeKOqNIXy22Xwg" name="ValidationRule">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_cSI-ktgnEeKOqNIXy22Xwg" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_xu6yYOhOEeCjcc2EgK3Uwg"/>
- <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_cSI-k9gnEeKOqNIXy22Xwg" name="severity" ordered="false" lowerBound="1" eType="_cSI-p9gnEeKOqNIXy22Xwg" defaultValueLiteral="ERROR"/>
- <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_cSI-ldgnEeKOqNIXy22Xwg" name="mode" ordered="false" lowerBound="1" eType="_cSI-rdgnEeKOqNIXy22Xwg" defaultValueLiteral="Batch"/>
- <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_cSI-l9gnEeKOqNIXy22Xwg" name="isEnabledByDefault" ordered="false" lowerBound="1" defaultValueLiteral="true">
- <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/4.0.0/Types#//Boolean"/>
- </eStructuralFeatures>
- <eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_cSI-mdgnEeKOqNIXy22Xwg" name="base_Constraint" ordered="false" lowerBound="1">
- <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/4.0.0/UML#//Constraint"/>
- </eStructuralFeatures>
- <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_cSI-m9gnEeKOqNIXy22Xwg" name="statusCode" ordered="false" lowerBound="1" defaultValueLiteral="1">
- <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/4.0.0/Types#//Integer"/>
- </eStructuralFeatures>
- <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_cSI-ndgnEeKOqNIXy22Xwg" name="message" ordered="false">
- <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/4.0.0/Types#//String"/>
- </eStructuralFeatures>
- <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_cSI-n9gnEeKOqNIXy22Xwg" name="description" ordered="false">
- <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/4.0.0/Types#//String"/>
- </eStructuralFeatures>
- <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_cSI-odgnEeKOqNIXy22Xwg" name="target" ordered="false" upperBound="-1">
- <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/4.0.0/Types#//String"/>
- </eStructuralFeatures>
- <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_cSI-o9gnEeKOqNIXy22Xwg" name="class" ordered="false">
- <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/4.0.0/Types#//String"/>
- </eStructuralFeatures>
- <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_cSI-pdgnEeKOqNIXy22Xwg" name="id" ordered="false">
- <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/4.0.0/Types#//String"/>
- </eStructuralFeatures>
- </eClassifiers>
- <eClassifiers xmi:type="ecore:EEnum" xmi:id="_cSI-p9gnEeKOqNIXy22Xwg" name="Severity">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_cSI-qNgnEeKOqNIXy22Xwg" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_1CpM8OhOEeCjcc2EgK3Uwg"/>
- <eLiterals xmi:type="ecore:EEnumLiteral" xmi:id="_cSI-qdgnEeKOqNIXy22Xwg" name="ERROR"/>
- <eLiterals xmi:type="ecore:EEnumLiteral" xmi:id="_cSI-qtgnEeKOqNIXy22Xwg" name="WARNING" value="1"/>
- <eLiterals xmi:type="ecore:EEnumLiteral" xmi:id="_cSI-q9gnEeKOqNIXy22Xwg" name="INFO" value="2"/>
- <eLiterals xmi:type="ecore:EEnumLiteral" xmi:id="_cSI-rNgnEeKOqNIXy22Xwg" name="CANCEL" value="3"/>
- </eClassifiers>
- <eClassifiers xmi:type="ecore:EEnum" xmi:id="_cSI-rdgnEeKOqNIXy22Xwg" name="Mode">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_cSI-rtgnEeKOqNIXy22Xwg" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_97I3oOhOEeCjcc2EgK3Uwg"/>
- <eLiterals xmi:type="ecore:EEnumLiteral" xmi:id="_cSI-r9gnEeKOqNIXy22Xwg" name="Batch"/>
- <eLiterals xmi:type="ecore:EEnumLiteral" xmi:id="_cSI-sNgnEeKOqNIXy22Xwg" name="Live" value="1"/>
- </eClassifiers>
- </contents>
- <contents xmi:type="ecore:EPackage" xmi:id="_Ag9WoNgnEeKOqNIXy22Xwg" name="PapyrusDSMLValidationRule" nsURI="http:///schemas/PapyrusDSMLValidationRule/_Ag7hcNgnEeKOqNIXy22Xwg/2" nsPrefix="PapyrusDSMLValidationRule">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_AhPqgNgnEeKOqNIXy22Xwg" source="PapyrusVersion">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_AhPqgdgnEeKOqNIXy22Xwg" key="Version" value="0.0.3"/>
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_AhPqgtgnEeKOqNIXy22Xwg" key="Comment" value=""/>
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_AhPqg9gnEeKOqNIXy22Xwg" key="Copyright" value=""/>
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_AhPqhNgnEeKOqNIXy22Xwg" key="Date" value="2013-06-18"/>
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_AhPqhdgnEeKOqNIXy22Xwg" key="Author" value=""/>
- </eAnnotations>
- <eClassifiers xmi:type="ecore:EClass" xmi:id="_Ag9WodgnEeKOqNIXy22Xwg" name="ValidationRule">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_Ag9WotgnEeKOqNIXy22Xwg" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_xu6yYOhOEeCjcc2EgK3Uwg"/>
- <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_Ag9Wo9gnEeKOqNIXy22Xwg" name="severity" ordered="false" lowerBound="1" eType="_Ag9Wt9gnEeKOqNIXy22Xwg" defaultValueLiteral="ERROR"/>
- <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_Ag9WpdgnEeKOqNIXy22Xwg" name="mode" ordered="false" lowerBound="1" eType="_Ag9WvdgnEeKOqNIXy22Xwg" defaultValueLiteral="Batch"/>
- <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_Ag9Wp9gnEeKOqNIXy22Xwg" name="isEnabledByDefault" ordered="false" lowerBound="1" defaultValueLiteral="true">
- <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/4.0.0/Types#//Boolean"/>
- </eStructuralFeatures>
- <eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_Ag9WqdgnEeKOqNIXy22Xwg" name="base_Constraint" ordered="false" lowerBound="1">
- <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/4.0.0/UML#//Constraint"/>
- </eStructuralFeatures>
- <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_Ag9Wq9gnEeKOqNIXy22Xwg" name="statusCode" ordered="false">
- <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/4.0.0/Types#//Integer"/>
- </eStructuralFeatures>
- <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_Ag9WrdgnEeKOqNIXy22Xwg" name="message" ordered="false">
- <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/4.0.0/Types#//String"/>
- </eStructuralFeatures>
- <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_Ag9Wr9gnEeKOqNIXy22Xwg" name="description" ordered="false">
- <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/4.0.0/Types#//String"/>
- </eStructuralFeatures>
- <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_Ag9WsdgnEeKOqNIXy22Xwg" name="target" ordered="false" upperBound="-1">
- <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/4.0.0/Types#//String"/>
- </eStructuralFeatures>
- <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_Ag9Ws9gnEeKOqNIXy22Xwg" name="class" ordered="false">
- <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/4.0.0/Types#//String"/>
- </eStructuralFeatures>
- <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_Ag9WtdgnEeKOqNIXy22Xwg" name="id" ordered="false">
- <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/4.0.0/Types#//String"/>
- </eStructuralFeatures>
- </eClassifiers>
- <eClassifiers xmi:type="ecore:EEnum" xmi:id="_Ag9Wt9gnEeKOqNIXy22Xwg" name="Severity">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_Ag9WuNgnEeKOqNIXy22Xwg" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_1CpM8OhOEeCjcc2EgK3Uwg"/>
- <eLiterals xmi:type="ecore:EEnumLiteral" xmi:id="_Ag9WudgnEeKOqNIXy22Xwg" name="ERROR"/>
- <eLiterals xmi:type="ecore:EEnumLiteral" xmi:id="_Ag9WutgnEeKOqNIXy22Xwg" name="WARNING" value="1"/>
- <eLiterals xmi:type="ecore:EEnumLiteral" xmi:id="_Ag9Wu9gnEeKOqNIXy22Xwg" name="INFO" value="2"/>
- <eLiterals xmi:type="ecore:EEnumLiteral" xmi:id="_Ag9WvNgnEeKOqNIXy22Xwg" name="CANCEL" value="3"/>
- </eClassifiers>
- <eClassifiers xmi:type="ecore:EEnum" xmi:id="_Ag9WvdgnEeKOqNIXy22Xwg" name="Mode">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_Ag9WvtgnEeKOqNIXy22Xwg" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_97I3oOhOEeCjcc2EgK3Uwg"/>
- <eLiterals xmi:type="ecore:EEnumLiteral" xmi:id="_Ag9Wv9gnEeKOqNIXy22Xwg" name="Batch"/>
- <eLiterals xmi:type="ecore:EEnumLiteral" xmi:id="_Ag9WwNgnEeKOqNIXy22Xwg" name="Live" value="1"/>
- </eClassifiers>
- </contents>
- <contents xmi:type="ecore:EPackage" xmi:id="__0tqwNgdEeKgsd1mLVpBNQ" name="PapyrusDSMLValidationRule" nsURI="http:///schemas/PapyrusDSMLValidationRule/__0rOgNgdEeKgsd1mLVpBNQ/1" nsPrefix="PapyrusDSMLValidationRule">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="__07tMNgdEeKgsd1mLVpBNQ" source="PapyrusVersion">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="__07tMdgdEeKgsd1mLVpBNQ" key="Version" value="0.0.2"/>
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="__07tMtgdEeKgsd1mLVpBNQ" key="Comment" value="some attribute are not mandatory"/>
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="__07tM9gdEeKgsd1mLVpBNQ" key="Copyright" value="CEA LIST"/>
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="__07tNNgdEeKgsd1mLVpBNQ" key="Date" value="2013-06-18"/>
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="__07tNdgdEeKgsd1mLVpBNQ" key="Author" value=""/>
- </eAnnotations>
- <eClassifiers xmi:type="ecore:EClass" xmi:id="__0tqwdgdEeKgsd1mLVpBNQ" name="ValidationRule">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="__0tqwtgdEeKgsd1mLVpBNQ" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_xu6yYOhOEeCjcc2EgK3Uwg"/>
- <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="__0tqw9gdEeKgsd1mLVpBNQ" name="severity" ordered="false" lowerBound="1" eType="__0tq19gdEeKgsd1mLVpBNQ"/>
- <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="__0tqxdgdEeKgsd1mLVpBNQ" name="mode" ordered="false" lowerBound="1" eType="__0tq3dgdEeKgsd1mLVpBNQ"/>
- <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="__0tqx9gdEeKgsd1mLVpBNQ" name="isEnabledByDefault" ordered="false" lowerBound="1">
- <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/4.0.0/Types#//Boolean"/>
- </eStructuralFeatures>
- <eStructuralFeatures xmi:type="ecore:EReference" xmi:id="__0tqydgdEeKgsd1mLVpBNQ" name="base_Constraint" ordered="false" lowerBound="1">
- <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/4.0.0/UML#//Constraint"/>
- </eStructuralFeatures>
- <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="__0tqy9gdEeKgsd1mLVpBNQ" name="statusCode" ordered="false" defaultValueLiteral="">
- <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/4.0.0/Types#//Integer"/>
- </eStructuralFeatures>
- <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="__0tqzdgdEeKgsd1mLVpBNQ" name="message" ordered="false">
- <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/4.0.0/Types#//String"/>
- </eStructuralFeatures>
- <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="__0tqz9gdEeKgsd1mLVpBNQ" name="description" ordered="false">
- <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/4.0.0/Types#//String"/>
- </eStructuralFeatures>
- <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="__0tq0dgdEeKgsd1mLVpBNQ" name="target" ordered="false" upperBound="-1">
- <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/4.0.0/Types#//String"/>
- </eStructuralFeatures>
- <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="__0tq09gdEeKgsd1mLVpBNQ" name="class" ordered="false" lowerBound="1">
- <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/4.0.0/Types#//String"/>
- </eStructuralFeatures>
- <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="__0tq1dgdEeKgsd1mLVpBNQ" name="id" ordered="false">
- <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/4.0.0/Types#//String"/>
- </eStructuralFeatures>
- </eClassifiers>
- <eClassifiers xmi:type="ecore:EEnum" xmi:id="__0tq19gdEeKgsd1mLVpBNQ" name="Severity">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="__0tq2NgdEeKgsd1mLVpBNQ" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_1CpM8OhOEeCjcc2EgK3Uwg"/>
- <eLiterals xmi:type="ecore:EEnumLiteral" xmi:id="__0tq2dgdEeKgsd1mLVpBNQ" name="ERROR"/>
- <eLiterals xmi:type="ecore:EEnumLiteral" xmi:id="__0tq2tgdEeKgsd1mLVpBNQ" name="WARNING" value="1"/>
- <eLiterals xmi:type="ecore:EEnumLiteral" xmi:id="__0tq29gdEeKgsd1mLVpBNQ" name="INFO" value="2"/>
- <eLiterals xmi:type="ecore:EEnumLiteral" xmi:id="__0tq3NgdEeKgsd1mLVpBNQ" name="CANCEL" value="3"/>
- </eClassifiers>
- <eClassifiers xmi:type="ecore:EEnum" xmi:id="__0tq3dgdEeKgsd1mLVpBNQ" name="Mode">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="__0tq3tgdEeKgsd1mLVpBNQ" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_97I3oOhOEeCjcc2EgK3Uwg"/>
- <eLiterals xmi:type="ecore:EEnumLiteral" xmi:id="__0tq39gdEeKgsd1mLVpBNQ" name="Batch"/>
- <eLiterals xmi:type="ecore:EEnumLiteral" xmi:id="__0tq4NgdEeKgsd1mLVpBNQ" name="Live" value="1"/>
- </eClassifiers>
- </contents>
- <contents xmi:type="ecore:EPackage" xmi:id="_dBgSwbSfEeGdbeha-ghHsQ" name="PapyrusDSMLValidationRule" nsURI="http:///schemas/PapyrusDSMLValidationRule/_dBgSwLSfEeGdbeha-ghHsQ/0" nsPrefix="PapyrusDSMLValidationRule">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_dBpcsbSfEeGdbeha-ghHsQ" source="PapyrusVersion">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_dBpcsrSfEeGdbeha-ghHsQ" key="Version" value="0.0.1"/>
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_dBpcs7SfEeGdbeha-ghHsQ" key="Comment" value="proffile to execute validation on a DSML"/>
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_dBpctLSfEeGdbeha-ghHsQ" key="Copyright" value="Eclipse.org"/>
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_dBpctbSfEeGdbeha-ghHsQ" key="Date" value="2012-06-12"/>
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_dBpctrSfEeGdbeha-ghHsQ" key="Author" value="Eclipse.org"/>
- </eAnnotations>
- <eClassifiers xmi:type="ecore:EClass" xmi:id="_dBgSwrSfEeGdbeha-ghHsQ" name="ValidationRule">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_dBgSw7SfEeGdbeha-ghHsQ" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_xu6yYOhOEeCjcc2EgK3Uwg"/>
- <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_dBgSxLSfEeGdbeha-ghHsQ" name="severity" ordered="false" lowerBound="1" eType="_dBgS2LSfEeGdbeha-ghHsQ"/>
- <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_dBgSxrSfEeGdbeha-ghHsQ" name="mode" ordered="false" lowerBound="1" eType="_dBgS3rSfEeGdbeha-ghHsQ"/>
- <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_dBgSyLSfEeGdbeha-ghHsQ" name="isEnabledByDefault" ordered="false" lowerBound="1">
- <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/4.0.0/Types#//Boolean"/>
- </eStructuralFeatures>
- <eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_dBgSyrSfEeGdbeha-ghHsQ" name="base_Constraint" ordered="false" lowerBound="1">
- <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/4.0.0/UML#//Constraint"/>
- </eStructuralFeatures>
- <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_dBgSzLSfEeGdbeha-ghHsQ" name="statusCode" ordered="false" lowerBound="1" defaultValueLiteral="">
- <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/4.0.0/Types#//Integer"/>
- </eStructuralFeatures>
- <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_dBgSzrSfEeGdbeha-ghHsQ" name="message" ordered="false">
- <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/4.0.0/Types#//String"/>
- </eStructuralFeatures>
- <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_dBgS0LSfEeGdbeha-ghHsQ" name="description" ordered="false">
- <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/4.0.0/Types#//String"/>
- </eStructuralFeatures>
- <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_dBgS0rSfEeGdbeha-ghHsQ" name="target" ordered="false" upperBound="-1">
- <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/4.0.0/Types#//String"/>
- </eStructuralFeatures>
- <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_dBgS1LSfEeGdbeha-ghHsQ" name="class" ordered="false" lowerBound="1">
- <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/4.0.0/Types#//String"/>
- </eStructuralFeatures>
- <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_dBgS1rSfEeGdbeha-ghHsQ" name="id" ordered="false" lowerBound="1">
- <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/4.0.0/Types#//String"/>
- </eStructuralFeatures>
- </eClassifiers>
- <eClassifiers xmi:type="ecore:EEnum" xmi:id="_dBgS2LSfEeGdbeha-ghHsQ" name="Severity">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_dBgS2bSfEeGdbeha-ghHsQ" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_1CpM8OhOEeCjcc2EgK3Uwg"/>
- <eLiterals xmi:type="ecore:EEnumLiteral" xmi:id="_dBgS2rSfEeGdbeha-ghHsQ" name="ERROR"/>
- <eLiterals xmi:type="ecore:EEnumLiteral" xmi:id="_dBgS27SfEeGdbeha-ghHsQ" name="WARNING" value="1"/>
- <eLiterals xmi:type="ecore:EEnumLiteral" xmi:id="_dBgS3LSfEeGdbeha-ghHsQ" name="INFO" value="2"/>
- <eLiterals xmi:type="ecore:EEnumLiteral" xmi:id="_dBgS3bSfEeGdbeha-ghHsQ" name="CANCEL" value="3"/>
- </eClassifiers>
- <eClassifiers xmi:type="ecore:EEnum" xmi:id="_dBgS3rSfEeGdbeha-ghHsQ" name="Mode">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_dBgS37SfEeGdbeha-ghHsQ" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_97I3oOhOEeCjcc2EgK3Uwg"/>
- <eLiterals xmi:type="ecore:EEnumLiteral" xmi:id="_dBgS4LSfEeGdbeha-ghHsQ" name="Batch"/>
- <eLiterals xmi:type="ecore:EEnumLiteral" xmi:id="_dBgS4bSfEeGdbeha-ghHsQ" name="Live" value="1"/>
- </eClassifiers>
- </contents>
- </eAnnotations>
- <elementImport xmi:type="uml:ElementImport" xmi:id="_wrBFYOhOEeCjcc2EgK3Uwg" alias="Constraint">
+<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:type="uml:Property" xmi:id="_5xSbcOhQEeCjcc2EgK3Uwg" name="severity" visibility="public" type="_1CpM8OhOEeCjcc2EgK3Uwg">
+ <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:type="uml:Property" xmi:id="_8gPVAOhQEeCjcc2EgK3Uwg" name="mode" visibility="public" type="_97I3oOhOEeCjcc2EgK3Uwg">
+ <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:type="uml:Property" xmi:id="_GkavsOhREeCjcc2EgK3Uwg" name="isEnabledByDefault" visibility="public">
+ <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:type="uml:Property" xmi:id="_I_ec4OhREeCjcc2EgK3Uwg" name="base_Constraint" association="_I_fD8OhREeCjcc2EgK3Uwg">
+ <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:type="uml:Property" xmi:id="_vXrlUOqrEeCnkfBG0tzRQg" name="statusCode">
+ <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:type="uml:Property" xmi:id="_ClVF8OqsEeCnkfBG0tzRQg" name="message">
+ <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:type="uml:Property" xmi:id="_JFLeQOqsEeCnkfBG0tzRQg" name="description">
+ <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:type="uml:Property" xmi:id="_gvm1wOq4EeCnkfBG0tzRQg" name="target">
+ <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:type="uml:Property" xmi:id="_a1vCoOtYEeCnkfBG0tzRQg" name="class">
+ <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:type="uml:Property" xmi:id="_gGxYQOt1EeCnkfBG0tzRQg" name="id">
+ <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: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"/>
+ <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:type="uml:EnumerationLiteral" xmi:id="_-4BWoOhOEeCjcc2EgK3Uwg" name="Batch"/>
- <ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="_43Xw4OhQEeCjcc2EgK3Uwg" name="Live"/>
+ <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"/>
diff --git a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/resource/properties/dsmlvalidationproperties.ctx b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/resource/properties/dsmlvalidationproperties.ctx
deleted file mode 100644
index ea9c6b73fae..00000000000
--- a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/resource/properties/dsmlvalidationproperties.ctx
+++ /dev/null
@@ -1,39 +0,0 @@
-<?xml version="1.0" encoding="ASCII"?>
-<contexts:Context xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:constraints="http://www.eclipse.org/papyrus/constraints/0.9" xmlns:contexts="http://www.eclipse.org/papyrus/properties/contexts/0.9" name="PapyrusDSMLValidationRule">
- <dependencies href="ppe:/context/org.eclipse.papyrus.uml.properties/Model/UML/UML.ctx#/"/>
- <tabs label="Validation Rules Definition" id="papyrusdsmlvalidationrule" priority="100">
- <sections name="Single ValidationRule" sectionFile="ui/SingleValidationRule.xwt">
- <widget href="ui/SingleValidationRule.xwt#/"/>
- </sections>
- <sections name="Multiple ValidationRule" sectionFile="ui/MultipleValidationRule.xwt">
- <widget href="ui/MultipleValidationRule.xwt#/"/>
- </sections>
- </tabs>
- <views name="Single ValidationRule" sections="//@tabs.0/@sections.0" automaticContext="true" datacontexts="//@dataContexts.0/@elements.0">
- <constraints xsi:type="constraints:SimpleConstraint" name="isSingleValidationRule">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.uml.properties/Model/Environment.xmi#//@constraintTypes.1"/>
- <properties xsi:type="constraints:ValueProperty" name="stereotypeName" value="PapyrusDSMLValidationRule::ValidationRule"/>
- </constraints>
- </views>
- <views elementMultiplicity="-1" name="Multiple ValidationRule" sections="//@tabs.0/@sections.1" automaticContext="true" datacontexts="//@dataContexts.0/@elements.0">
- <constraints xsi:type="constraints:SimpleConstraint" name="isMultipleValidationRule">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.uml.properties/Model/Environment.xmi#//@constraintTypes.1"/>
- <properties xsi:type="constraints:ValueProperty" name="stereotypeName" value="PapyrusDSMLValidationRule::ValidationRule"/>
- </constraints>
- </views>
- <dataContexts name="PapyrusDSMLValidationRule">
- <elements name="ValidationRule">
- <properties name="severity" type="Enumeration"/>
- <properties name="class"/>
- <properties name="id"/>
- <properties name="isEnabledByDefault" type="Boolean"/>
- <properties name="mode" type="Enumeration"/>
- <properties name="target"/>
- <properties name="message"/>
- <properties name="description"/>
- <properties name="statusCode" type="Integer"/>
- <supertypes href="ppe:/context/org.eclipse.papyrus.uml.properties/Model/UML/UML.ctx#//@dataContexts.0/@elements.11"/>
- </elements>
- <modelElementFactory href="ppe:/environment/org.eclipse.papyrus.uml.properties/Model/Environment.xmi#//@modelElementFactories.2"/>
- </dataContexts>
-</contexts:Context>
diff --git a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/resource/properties/ui/MultipleValidationRule.xwt b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/resource/properties/ui/MultipleValidationRule.xwt
deleted file mode 100644
index ec177345ea4..00000000000
--- a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/resource/properties/ui/MultipleValidationRule.xwt
+++ /dev/null
@@ -1,25 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns="http://www.eclipse.org/xwt/presentation"
- xmlns:j="clr-namespace:java.lang" xmlns:x="http://www.eclipse.org/xwt"
- xmlns:ppe="clr-namespace:org.eclipse.papyrus.views.properties.widgets"
- xmlns:ppel="clr-namespace:org.eclipse.papyrus.views.properties.widgets.layout">
- <Composite.layout>
- <ppel:PropertiesLayout></ppel:PropertiesLayout>
- </Composite.layout>
- <Composite>
- <Composite.layout>
- <ppel:PropertiesLayout numColumns="2"></ppel:PropertiesLayout>
- </Composite.layout>
- <ppe:BooleanRadio input="{Binding}"
- property="PapyrusDSMLValidationRule:ValidationRule:isEnabledByDefault"></ppe:BooleanRadio>
- </Composite>
- <Composite>
- <Composite.layout>
- <ppel:PropertiesLayout numColumns="1"></ppel:PropertiesLayout>
- </Composite.layout>
- <ppe:EnumCombo input="{Binding}"
- property="PapyrusDSMLValidationRule:ValidationRule:severity"></ppe:EnumCombo>
- <ppe:EnumCombo input="{Binding}"
- property="PapyrusDSMLValidationRule:ValidationRule:mode"></ppe:EnumCombo>
- </Composite>
-</Composite> \ No newline at end of file
diff --git a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/resource/properties/ui/SingleValidationRule.xwt b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/resource/properties/ui/SingleValidationRule.xwt
deleted file mode 100644
index bf78e906d27..00000000000
--- a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/resource/properties/ui/SingleValidationRule.xwt
+++ /dev/null
@@ -1,34 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite
- xmlns:ppel="clr-namespace:org.eclipse.papyrus.views.properties.widgets.layout"
- xmlns:j="clr-namespace:java.lang" xmlns:ppe="clr-namespace:org.eclipse.papyrus.views.properties.widgets"
- xmlns="http://www.eclipse.org/xwt/presentation" xmlns:x="http://www.eclipse.org/xwt">
- <Composite.layout>
- <ppel:PropertiesLayout></ppel:PropertiesLayout>
- </Composite.layout>
- <Composite>
- <Composite.layout>
- <ppel:PropertiesLayout numColumns="1"></ppel:PropertiesLayout>
- </Composite.layout>
- <ppe:StringEditor input="{Binding}"
- property="PapyrusDSMLValidationRule:ValidationRule:message"></ppe:StringEditor>
- <ppe:StringEditor input="{Binding}"
- property="PapyrusDSMLValidationRule:ValidationRule:description"></ppe:StringEditor>
- </Composite>
- <Composite>
- <Composite.layout>
- <ppel:PropertiesLayout numColumns="2"></ppel:PropertiesLayout>
- </Composite.layout>
- <ppe:BooleanRadio input="{Binding}"
- property="PapyrusDSMLValidationRule:ValidationRule:isEnabledByDefault"></ppe:BooleanRadio>
- </Composite>
- <Composite>
- <Composite.layout>
- <ppel:PropertiesLayout numColumns="1"></ppel:PropertiesLayout>
- </Composite.layout>
- <ppe:EnumCombo input="{Binding}"
- property="PapyrusDSMLValidationRule:ValidationRule:severity"></ppe:EnumCombo>
- <ppe:EnumCombo input="{Binding}"
- property="PapyrusDSMLValidationRule:ValidationRule:mode"></ppe:EnumCombo>
- </Composite>
-</Composite> \ No newline at end of file
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
new file mode 100644
index 00000000000..55faa38fa4f
--- /dev/null
+++ b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/Mode.java
@@ -0,0 +1,208 @@
+/**
+ */
+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>Mode</b></em>',
+ * and utility methods for working with them.
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.PapyrusDSMLValidationRulePackage#getMode()
+ * @model
+ * @generated
+ */
+public enum Mode implements Enumerator {
+ /**
+ * The '<em><b>Batch</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #BATCH_VALUE
+ * @generated
+ * @ordered
+ */
+ BATCH(0, "Batch", "Batch"),
+
+ /**
+ * The '<em><b>Live</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #LIVE_VALUE
+ * @generated
+ * @ordered
+ */
+ LIVE(1, "Live", "Live");
+
+ /**
+ * The '<em><b>Batch</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * 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
+ * @ordered
+ */
+ public static final int BATCH_VALUE = 0;
+
+ /**
+ * The '<em><b>Live</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * 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
+ * @ordered
+ */
+ public static final int LIVE_VALUE = 1;
+
+ /**
+ * 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,
+ };
+
+ /**
+ * 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));
+
+ /**
+ * Returns the '<em><b>Mode</b></em>' literal with the specified literal value.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static Mode get(String literal) {
+ for (int i = 0; i < VALUES_ARRAY.length; ++i) {
+ Mode result = VALUES_ARRAY[i];
+ if (result.toString().equals(literal)) {
+ return result;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * Returns the '<em><b>Mode</b></em>' literal with the specified name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static Mode getByName(String name) {
+ for (int i = 0; i < VALUES_ARRAY.length; ++i) {
+ Mode result = VALUES_ARRAY[i];
+ if (result.getName().equals(name)) {
+ return result;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * Returns the '<em><b>Mode</b></em>' literal with the specified integer value.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static Mode get(int value) {
+ switch (value) {
+ case BATCH_VALUE: return BATCH;
+ case LIVE_VALUE: return LIVE;
+ }
+ 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 Mode(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;
+ }
+
+} //Mode
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
new file mode 100644
index 00000000000..838e8866b1e
--- /dev/null
+++ b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/PapyrusDSMLValidationRuleFactory.java
@@ -0,0 +1,42 @@
+/**
+ */
+package org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule;
+
+import org.eclipse.emf.ecore.EFactory;
+
+/**
+ * <!-- begin-user-doc -->
+ * 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
+ */
+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();
+
+ /**
+ * 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 the package supported by this factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the package supported by this factory.
+ * @generated
+ */
+ PapyrusDSMLValidationRulePackage getPapyrusDSMLValidationRulePackage();
+
+} //PapyrusDSMLValidationRuleFactory
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
new file mode 100644
index 00000000000..1d0537572ee
--- /dev/null
+++ b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/PapyrusDSMLValidationRulePackage.java
@@ -0,0 +1,474 @@
+/**
+ */
+package org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EEnum;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.emf.ecore.EReference;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Package</b> for the model.
+ * It contains accessors for the meta objects to represent
+ * <ul>
+ * <li>each class,</li>
+ * <li>each feature of each class,</li>
+ * <li>each operation of each class,</li>
+ * <li>each enum,</li>
+ * <li>and each data type</li>
+ * </ul>
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.PapyrusDSMLValidationRuleFactory
+ * @model kind="package"
+ * @generated
+ */
+public interface PapyrusDSMLValidationRulePackage extends EPackage {
+ /**
+ * The package name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ String eNAME = "PapyrusDSMLValidationRule";
+
+ /**
+ * The package namespace URI.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ String eNS_URI = "http://www.eclipse.org/papyrus/dsmlvalidation";
+
+ /**
+ * The package namespace name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ String eNS_PREFIX = "PapyrusDSMLValidationRule";
+
+ /**
+ * The singleton instance of the package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ PapyrusDSMLValidationRulePackage eINSTANCE = org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.impl.PapyrusDSMLValidationRulePackageImpl.init();
+
+ /**
+ * 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
+ */
+ int VALIDATION_RULE = 0;
+
+ /**
+ * The feature id for the '<em><b>Severity</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int VALIDATION_RULE__SEVERITY = 0;
+
+ /**
+ * The feature id for the '<em><b>Mode</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int VALIDATION_RULE__MODE = 1;
+
+ /**
+ * The feature id for the '<em><b>Is Enabled By Default</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int VALIDATION_RULE__IS_ENABLED_BY_DEFAULT = 2;
+
+ /**
+ * The feature id for the '<em><b>Base Constraint</b></em>' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int VALIDATION_RULE__BASE_CONSTRAINT = 3;
+
+ /**
+ * The feature id for the '<em><b>Status Code</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int VALIDATION_RULE__STATUS_CODE = 4;
+
+ /**
+ * The feature id for the '<em><b>Message</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int VALIDATION_RULE__MESSAGE = 5;
+
+ /**
+ * The feature id for the '<em><b>Description</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int VALIDATION_RULE__DESCRIPTION = 6;
+
+ /**
+ * The feature id for the '<em><b>Target</b></em>' attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int VALIDATION_RULE__TARGET = 7;
+
+ /**
+ * The feature id for the '<em><b>Class</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int VALIDATION_RULE__CLASS = 8;
+
+ /**
+ * The feature id for the '<em><b>Id</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int VALIDATION_RULE__ID = 9;
+
+ /**
+ * The number of structural features of the '<em>Validation Rule</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int VALIDATION_RULE_FEATURE_COUNT = 10;
+
+ /**
+ * 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.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;
+
+ /**
+ * 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;
+
+
+ /**
+ * 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
+ */
+ EClass getValidationRule();
+
+ /**
+ * 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()
+ * @generated
+ */
+ EAttribute getValidationRule_Severity();
+
+ /**
+ * 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()
+ * @generated
+ */
+ EAttribute getValidationRule_Mode();
+
+ /**
+ * 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()
+ * @generated
+ */
+ EAttribute getValidationRule_IsEnabledByDefault();
+
+ /**
+ * 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()
+ * @generated
+ */
+ EReference getValidationRule_Base_Constraint();
+
+ /**
+ * 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()
+ * @generated
+ */
+ EAttribute getValidationRule_StatusCode();
+
+ /**
+ * 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()
+ * @generated
+ */
+ EAttribute getValidationRule_Message();
+
+ /**
+ * 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()
+ * @generated
+ */
+ EAttribute getValidationRule_Description();
+
+ /**
+ * 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()
+ * @generated
+ */
+ EAttribute getValidationRule_Target();
+
+ /**
+ * 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()
+ * @generated
+ */
+ EAttribute getValidationRule_Class();
+
+ /**
+ * 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()
+ * @generated
+ */
+ EAttribute getValidationRule_Id();
+
+ /**
+ * 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
+ */
+ EEnum getSeverity();
+
+ /**
+ * 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
+ */
+ EEnum getMode();
+
+ /**
+ * 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
+ */
+ PapyrusDSMLValidationRuleFactory getPapyrusDSMLValidationRuleFactory();
+
+ /**
+ * <!-- begin-user-doc -->
+ * Defines literals for the meta objects that represent
+ * <ul>
+ * <li>each class,</li>
+ * <li>each feature of each class,</li>
+ * <li>each operation of each class,</li>
+ * <li>each enum,</li>
+ * <li>and each data type</li>
+ * </ul>
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ interface Literals {
+ /**
+ * 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
+ */
+ EClass VALIDATION_RULE = eINSTANCE.getValidationRule();
+
+ /**
+ * 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();
+
+ /**
+ * 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();
+
+ /**
+ * 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();
+
+ /**
+ * 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();
+
+ /**
+ * 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();
+
+ /**
+ * 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();
+
+ /**
+ * 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();
+
+ /**
+ * 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();
+
+ /**
+ * 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();
+
+ /**
+ * 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.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
+ */
+ EEnum SEVERITY = eINSTANCE.getSeverity();
+
+ /**
+ * 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();
+
+ }
+
+} //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
new file mode 100644
index 00000000000..b1af4dc4f21
--- /dev/null
+++ b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/Severity.java
@@ -0,0 +1,262 @@
+/**
+ */
+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>Severity</b></em>',
+ * and utility methods for working with them.
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.PapyrusDSMLValidationRulePackage#getSeverity()
+ * @model
+ * @generated
+ */
+public enum Severity implements Enumerator {
+ /**
+ * The '<em><b>ERROR</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #ERROR_VALUE
+ * @generated
+ * @ordered
+ */
+ ERROR(0, "ERROR", "ERROR"),
+
+ /**
+ * The '<em><b>WARNING</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #WARNING_VALUE
+ * @generated
+ * @ordered
+ */
+ WARNING(1, "WARNING", "WARNING"),
+
+ /**
+ * The '<em><b>INFO</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #INFO_VALUE
+ * @generated
+ * @ordered
+ */
+ INFO(2, "INFO", "INFO"),
+
+ /**
+ * The '<em><b>CANCEL</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #CANCEL_VALUE
+ * @generated
+ * @ordered
+ */
+ CANCEL(3, "CANCEL", "CANCEL");
+
+ /**
+ * The '<em><b>ERROR</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * 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
+ * @ordered
+ */
+ public static final int ERROR_VALUE = 0;
+
+ /**
+ * The '<em><b>WARNING</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * 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
+ * @ordered
+ */
+ public static final int WARNING_VALUE = 1;
+
+ /**
+ * The '<em><b>INFO</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * 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
+ * @ordered
+ */
+ public static final int INFO_VALUE = 2;
+
+ /**
+ * The '<em><b>CANCEL</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * 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
+ * @ordered
+ */
+ public static final int CANCEL_VALUE = 3;
+
+ /**
+ * 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,
+ };
+
+ /**
+ * 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));
+
+ /**
+ * Returns the '<em><b>Severity</b></em>' literal with the specified literal value.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static Severity get(String literal) {
+ for (int i = 0; i < VALUES_ARRAY.length; ++i) {
+ Severity result = VALUES_ARRAY[i];
+ if (result.toString().equals(literal)) {
+ return result;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * Returns the '<em><b>Severity</b></em>' literal with the specified name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static Severity getByName(String name) {
+ for (int i = 0; i < VALUES_ARRAY.length; ++i) {
+ Severity result = VALUES_ARRAY[i];
+ if (result.getName().equals(name)) {
+ return result;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * Returns the '<em><b>Severity</b></em>' literal with the specified integer value.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @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;
+ }
+ 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 Severity(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;
+ }
+
+} //Severity
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
new file mode 100644
index 00000000000..1b268213fbf
--- /dev/null
+++ b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/ValidationRule.java
@@ -0,0 +1,297 @@
+/**
+ */
+package org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.emf.ecore.EObject;
+
+import org.eclipse.uml2.uml.Constraint;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Validation Rule</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <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>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.PapyrusDSMLValidationRulePackage#getValidationRule()
+ * @model
+ * @generated
+ */
+public interface ValidationRule extends EObject {
+ /**
+ * Returns the value of the '<em><b>Severity</b></em>' attribute.
+ * The default value is <code>"ERROR"</code>.
+ * The literals are from the enumeration {@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.Severity}.
+ * <!-- begin-user-doc -->
+ * <p>
+ * 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)
+ * @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.PapyrusDSMLValidationRulePackage#getValidationRule_Severity()
+ * @model default="ERROR" required="true" ordered="false"
+ * @generated
+ */
+ Severity getSeverity();
+
+ /**
+ * 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.
+ * @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.Severity
+ * @see #getSeverity()
+ * @generated
+ */
+ void setSeverity(Severity value);
+
+ /**
+ * Returns the value of the '<em><b>Mode</b></em>' attribute.
+ * The default value is <code>"Batch"</code>.
+ * The literals are from the enumeration {@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.Mode}.
+ * <!-- begin-user-doc -->
+ * <p>
+ * 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)
+ * @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.PapyrusDSMLValidationRulePackage#getValidationRule_Mode()
+ * @model default="Batch" required="true" ordered="false"
+ * @generated
+ */
+ Mode getMode();
+
+ /**
+ * 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.
+ * @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.Mode
+ * @see #getMode()
+ * @generated
+ */
+ void setMode(Mode value);
+
+ /**
+ * Returns the value of the '<em><b>Is Enabled By Default</b></em>' attribute.
+ * The default value is <code>"true"</code>.
+ * <!-- begin-user-doc -->
+ * <p>
+ * 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()
+ * @model default="true" dataType="org.eclipse.uml2.types.Boolean" required="true" ordered="false"
+ * @generated
+ */
+ boolean isEnabledByDefault();
+
+ /**
+ * 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.
+ * @see #isEnabledByDefault()
+ * @generated
+ */
+ void setIsEnabledByDefault(boolean value);
+
+ /**
+ * Returns the value of the '<em><b>Base Constraint</b></em>' reference.
+ * <!-- begin-user-doc -->
+ * <p>
+ * 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()
+ * @model required="true" ordered="false"
+ * @generated
+ */
+ Constraint getBase_Constraint();
+
+ /**
+ * 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.
+ * @see #getBase_Constraint()
+ * @generated
+ */
+ void setBase_Constraint(Constraint value);
+
+ /**
+ * Returns the value of the '<em><b>Status Code</b></em>' attribute.
+ * The default value is <code>"1"</code>.
+ * <!-- begin-user-doc -->
+ * <p>
+ * 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()
+ * @model default="1" dataType="org.eclipse.uml2.types.Integer" required="true" ordered="false"
+ * @generated
+ */
+ int getStatusCode();
+
+ /**
+ * 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.
+ * @see #getStatusCode()
+ * @generated
+ */
+ void setStatusCode(int value);
+
+ /**
+ * Returns the value of the '<em><b>Message</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * 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()
+ * @model dataType="org.eclipse.uml2.types.String" ordered="false"
+ * @generated
+ */
+ String getMessage();
+
+ /**
+ * 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.
+ * @see #getMessage()
+ * @generated
+ */
+ void setMessage(String value);
+
+ /**
+ * Returns the value of the '<em><b>Description</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * 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()
+ * @model dataType="org.eclipse.uml2.types.String" ordered="false"
+ * @generated
+ */
+ String getDescription();
+
+ /**
+ * 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.
+ * @see #getDescription()
+ * @generated
+ */
+ void setDescription(String value);
+
+ /**
+ * Returns the value of the '<em><b>Target</b></em>' attribute list.
+ * The list contents are of type {@link java.lang.String}.
+ * <!-- begin-user-doc -->
+ * <p>
+ * 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"
+ * @generated
+ */
+ EList<String> getTarget();
+
+ /**
+ * Returns the value of the '<em><b>Class</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * 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()
+ * @model dataType="org.eclipse.uml2.types.String" ordered="false"
+ * @generated
+ */
+ String getClass_();
+
+ /**
+ * 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.
+ * @see #getClass_()
+ * @generated
+ */
+ void setClass_(String value);
+
+ /**
+ * Returns the value of the '<em><b>Id</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * 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()
+ * @model dataType="org.eclipse.uml2.types.String" ordered="false"
+ * @generated
+ */
+ String getId();
+
+ /**
+ * 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.
+ * @see #getId()
+ * @generated
+ */
+ void setId(String value);
+
+} // ValidationRule
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
new file mode 100644
index 00000000000..7c44847f369
--- /dev/null
+++ b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/impl/PapyrusDSMLValidationRuleFactoryImpl.java
@@ -0,0 +1,170 @@
+/**
+ */
+package org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.impl;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EDataType;
+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.*;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model <b>Factory</b>.
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class PapyrusDSMLValidationRuleFactoryImpl extends EFactoryImpl implements PapyrusDSMLValidationRuleFactory {
+ /**
+ * 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);
+ if (thePapyrusDSMLValidationRuleFactory != null) {
+ return thePapyrusDSMLValidationRuleFactory;
+ }
+ }
+ catch (Exception exception) {
+ EcorePlugin.INSTANCE.log(exception);
+ }
+ return new PapyrusDSMLValidationRuleFactoryImpl();
+ }
+
+ /**
+ * Creates an instance of the factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public PapyrusDSMLValidationRuleFactoryImpl() {
+ super();
+ }
+
+ /**
+ * <!-- 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");
+ }
+ }
+
+ /**
+ * <!-- 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");
+ }
+ }
+
+ /**
+ * <!-- 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");
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ValidationRule createValidationRule() {
+ ValidationRuleImpl validationRule = new ValidationRuleImpl();
+ return validationRule;
+ }
+
+ /**
+ * <!-- 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() + "'");
+ return result;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String convertSeverityToString(EDataType eDataType, Object instanceValue) {
+ return instanceValue == null ? null : instanceValue.toString();
+ }
+
+ /**
+ * <!-- 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() + "'");
+ return result;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String convertModeToString(EDataType eDataType, Object instanceValue) {
+ return instanceValue == null ? null : instanceValue.toString();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public PapyrusDSMLValidationRulePackage getPapyrusDSMLValidationRulePackage() {
+ return (PapyrusDSMLValidationRulePackage)getEPackage();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @deprecated
+ * @generated
+ */
+ @Deprecated
+ public static PapyrusDSMLValidationRulePackage getPackage() {
+ return PapyrusDSMLValidationRulePackage.eINSTANCE;
+ }
+
+} //PapyrusDSMLValidationRuleFactoryImpl
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
new file mode 100644
index 00000000000..cf4b839f6db
--- /dev/null
+++ b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/impl/PapyrusDSMLValidationRulePackageImpl.java
@@ -0,0 +1,338 @@
+/**
+ */
+package org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.impl;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EEnum;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.emf.ecore.EReference;
+
+import org.eclipse.emf.ecore.impl.EPackageImpl;
+
+import org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.Mode;
+import org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.PapyrusDSMLValidationRuleFactory;
+import org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.PapyrusDSMLValidationRulePackage;
+import org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.Severity;
+import org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.ValidationRule;
+
+import org.eclipse.uml2.types.TypesPackage;
+
+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;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EEnum severityEEnum = null;
+
+ /**
+ * <!-- 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
+ * 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 -->
+ * @see org.eclipse.emf.ecore.EPackage.Registry
+ * @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.PapyrusDSMLValidationRulePackage#eNS_URI
+ * @see #init()
+ * @generated
+ */
+ private PapyrusDSMLValidationRulePackageImpl() {
+ super(eNS_URI, PapyrusDSMLValidationRuleFactory.eINSTANCE);
+ }
+
+ /**
+ * <!-- 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 -->
+ * <!-- 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);
+
+ // 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());
+
+ isInited = true;
+
+ // Initialize simple dependencies
+ UMLPackage.eINSTANCE.eClass();
+
+ // Create package meta-data objects
+ thePapyrusDSMLValidationRulePackage.createPackageContents();
+
+ // Initialize created meta-data
+ thePapyrusDSMLValidationRulePackage.initializePackageContents();
+
+ // 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;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getValidationRule() {
+ return validationRuleEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getValidationRule_Severity() {
+ return (EAttribute)validationRuleEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getValidationRule_Mode() {
+ return (EAttribute)validationRuleEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getValidationRule_IsEnabledByDefault() {
+ return (EAttribute)validationRuleEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getValidationRule_Base_Constraint() {
+ return (EReference)validationRuleEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getValidationRule_StatusCode() {
+ return (EAttribute)validationRuleEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getValidationRule_Message() {
+ return (EAttribute)validationRuleEClass.getEStructuralFeatures().get(5);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getValidationRule_Description() {
+ return (EAttribute)validationRuleEClass.getEStructuralFeatures().get(6);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getValidationRule_Target() {
+ return (EAttribute)validationRuleEClass.getEStructuralFeatures().get(7);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getValidationRule_Class() {
+ return (EAttribute)validationRuleEClass.getEStructuralFeatures().get(8);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getValidationRule_Id() {
+ return (EAttribute)validationRuleEClass.getEStructuralFeatures().get(9);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EEnum getSeverity() {
+ return severityEEnum;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EEnum getMode() {
+ return modeEEnum;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public PapyrusDSMLValidationRuleFactory getPapyrusDSMLValidationRuleFactory() {
+ 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
+ * guarded to have no affect on any invocation but its first.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void createPackageContents() {
+ if (isCreated) return;
+ isCreated = true;
+
+ // Create classes and their features
+ validationRuleEClass = createEClass(VALIDATION_RULE);
+ createEAttribute(validationRuleEClass, VALIDATION_RULE__SEVERITY);
+ createEAttribute(validationRuleEClass, VALIDATION_RULE__MODE);
+ createEAttribute(validationRuleEClass, VALIDATION_RULE__IS_ENABLED_BY_DEFAULT);
+ createEReference(validationRuleEClass, VALIDATION_RULE__BASE_CONSTRAINT);
+ createEAttribute(validationRuleEClass, VALIDATION_RULE__STATUS_CODE);
+ createEAttribute(validationRuleEClass, VALIDATION_RULE__MESSAGE);
+ createEAttribute(validationRuleEClass, VALIDATION_RULE__DESCRIPTION);
+ createEAttribute(validationRuleEClass, VALIDATION_RULE__TARGET);
+ createEAttribute(validationRuleEClass, VALIDATION_RULE__CLASS);
+ createEAttribute(validationRuleEClass, VALIDATION_RULE__ID);
+
+ // Create enums
+ severityEEnum = createEEnum(SEVERITY);
+ modeEEnum = createEEnum(MODE);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private boolean isInitialized = false;
+
+ /**
+ * Complete the initialization of the package and its meta-model. This
+ * method is guarded to have no affect on any invocation but its first.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void initializePackageContents() {
+ if (isInitialized) return;
+ isInitialized = true;
+
+ // Initialize package
+ setName(eNAME);
+ setNsPrefix(eNS_PREFIX);
+ 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);
+
+ // Create type parameters
+
+ // Set bounds for type parameters
+
+ // Add supertypes to classes
+
+ // Initialize classes, features, and operations; add parameters
+ initEClass(validationRuleEClass, ValidationRule.class, "ValidationRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ 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);
+ 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);
+ initEAttribute(getValidationRule_Target(), theTypesPackage.getString(), "target", null, 0, -1, ValidationRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
+ 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);
+
+ // Initialize enums and add enum literals
+ initEEnum(severityEEnum, Severity.class, "Severity");
+ addEEnumLiteral(severityEEnum, Severity.ERROR);
+ addEEnumLiteral(severityEEnum, Severity.WARNING);
+ addEEnumLiteral(severityEEnum, Severity.INFO);
+ addEEnumLiteral(severityEEnum, Severity.CANCEL);
+
+ initEEnum(modeEEnum, Mode.class, "Mode");
+ addEEnumLiteral(modeEEnum, Mode.BATCH);
+ addEEnumLiteral(modeEEnum, Mode.LIVE);
+
+ // Create resource
+ createResource(eNS_URI);
+ }
+
+} //PapyrusDSMLValidationRulePackageImpl
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
new file mode 100644
index 00000000000..d0a5ce70f12
--- /dev/null
+++ b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/impl/ValidationRuleImpl.java
@@ -0,0 +1,649 @@
+/**
+ */
+package org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.impl;
+
+import java.util.Collection;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.common.util.EList;
+
+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.emf.ecore.util.EDataTypeUniqueEList;
+
+import org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.Mode;
+import org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.PapyrusDSMLValidationRulePackage;
+import org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.Severity;
+import org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.ValidationRule;
+
+import org.eclipse.uml2.uml.Constraint;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Validation Rule</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <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>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class ValidationRuleImpl extends MinimalEObjectImpl.Container implements ValidationRule {
+ /**
+ * The default value of the '{@link #getSeverity() <em>Severity</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getSeverity()
+ * @generated
+ * @ordered
+ */
+ protected static final Severity SEVERITY_EDEFAULT = Severity.ERROR;
+
+ /**
+ * The cached value of the '{@link #getSeverity() <em>Severity</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getSeverity()
+ * @generated
+ * @ordered
+ */
+ protected Severity severity = SEVERITY_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getMode() <em>Mode</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getMode()
+ * @generated
+ * @ordered
+ */
+ protected static final Mode MODE_EDEFAULT = Mode.BATCH;
+
+ /**
+ * The cached value of the '{@link #getMode() <em>Mode</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getMode()
+ * @generated
+ * @ordered
+ */
+ protected Mode mode = MODE_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #isEnabledByDefault() <em>Is Enabled By Default</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isEnabledByDefault()
+ * @generated
+ * @ordered
+ */
+ protected static final boolean IS_ENABLED_BY_DEFAULT_EDEFAULT = true;
+
+ /**
+ * The cached value of the '{@link #isEnabledByDefault() <em>Is Enabled By Default</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isEnabledByDefault()
+ * @generated
+ * @ordered
+ */
+ protected boolean isEnabledByDefault = IS_ENABLED_BY_DEFAULT_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getBase_Constraint() <em>Base Constraint</em>}' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getBase_Constraint()
+ * @generated
+ * @ordered
+ */
+ protected Constraint base_Constraint;
+
+ /**
+ * The default value of the '{@link #getStatusCode() <em>Status Code</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getStatusCode()
+ * @generated
+ * @ordered
+ */
+ protected static final int STATUS_CODE_EDEFAULT = 1;
+
+ /**
+ * The cached value of the '{@link #getStatusCode() <em>Status Code</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getStatusCode()
+ * @generated
+ * @ordered
+ */
+ protected int statusCode = STATUS_CODE_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getMessage() <em>Message</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getMessage()
+ * @generated
+ * @ordered
+ */
+ protected static final String MESSAGE_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getMessage() <em>Message</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getMessage()
+ * @generated
+ * @ordered
+ */
+ protected String message = MESSAGE_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getDescription() <em>Description</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getDescription()
+ * @generated
+ * @ordered
+ */
+ protected static final String DESCRIPTION_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getDescription() <em>Description</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getDescription()
+ * @generated
+ * @ordered
+ */
+ protected String description = DESCRIPTION_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getTarget() <em>Target</em>}' attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getTarget()
+ * @generated
+ * @ordered
+ */
+ protected EList<String> target;
+
+ /**
+ * The default value of the '{@link #getClass_() <em>Class</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getClass_()
+ * @generated
+ * @ordered
+ */
+ protected static final String CLASS_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getClass_() <em>Class</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getClass_()
+ * @generated
+ * @ordered
+ */
+ protected String class_ = CLASS_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getId() <em>Id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getId()
+ * @generated
+ * @ordered
+ */
+ protected static final String ID_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getId() <em>Id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getId()
+ * @generated
+ * @ordered
+ */
+ protected String id = ID_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected ValidationRuleImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return PapyrusDSMLValidationRulePackage.Literals.VALIDATION_RULE;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Severity getSeverity() {
+ return severity;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setSeverity(Severity newSeverity) {
+ Severity oldSeverity = severity;
+ severity = newSeverity == null ? SEVERITY_EDEFAULT : newSeverity;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PapyrusDSMLValidationRulePackage.VALIDATION_RULE__SEVERITY, oldSeverity, severity));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Mode getMode() {
+ return mode;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setMode(Mode newMode) {
+ Mode oldMode = mode;
+ mode = newMode == null ? MODE_EDEFAULT : newMode;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PapyrusDSMLValidationRulePackage.VALIDATION_RULE__MODE, oldMode, mode));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean isEnabledByDefault() {
+ return isEnabledByDefault;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setIsEnabledByDefault(boolean newIsEnabledByDefault) {
+ boolean oldIsEnabledByDefault = isEnabledByDefault;
+ isEnabledByDefault = newIsEnabledByDefault;
+ 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);
+ if (base_Constraint != oldBase_Constraint) {
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, PapyrusDSMLValidationRulePackage.VALIDATION_RULE__BASE_CONSTRAINT, oldBase_Constraint, base_Constraint));
+ }
+ }
+ return base_Constraint;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Constraint basicGetBase_Constraint() {
+ return base_Constraint;
+ }
+
+ /**
+ * <!-- 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())
+ 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() {
+ return statusCode;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setStatusCode(int newStatusCode) {
+ int oldStatusCode = statusCode;
+ statusCode = newStatusCode;
+ 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() {
+ return message;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setMessage(String newMessage) {
+ String oldMessage = message;
+ message = newMessage;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PapyrusDSMLValidationRulePackage.VALIDATION_RULE__MESSAGE, oldMessage, message));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getDescription() {
+ return description;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setDescription(String newDescription) {
+ String oldDescription = description;
+ description = newDescription;
+ 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() {
+ if (target == null) {
+ target = new EDataTypeUniqueEList<String>(String.class, this, PapyrusDSMLValidationRulePackage.VALIDATION_RULE__TARGET);
+ }
+ return target;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getClass_() {
+ return class_;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setClass_(String newClass) {
+ String oldClass = class_;
+ class_ = newClass;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PapyrusDSMLValidationRulePackage.VALIDATION_RULE__CLASS, oldClass, class_));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getId() {
+ return id;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setId(String newId) {
+ String oldId = id;
+ id = newId;
+ 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();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- 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;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- 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;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- 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);
+ }
+ 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(" (severity: ");
+ result.append(severity);
+ result.append(", mode: ");
+ result.append(mode);
+ result.append(", isEnabledByDefault: ");
+ result.append(isEnabledByDefault);
+ result.append(", statusCode: ");
+ result.append(statusCode);
+ result.append(", message: ");
+ result.append(message);
+ result.append(", description: ");
+ result.append(description);
+ result.append(", target: ");
+ result.append(target);
+ result.append(", class: ");
+ result.append(class_);
+ result.append(", id: ");
+ result.append(id);
+ result.append(')');
+ return result.toString();
+ }
+
+} //ValidationRuleImpl
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
new file mode 100644
index 00000000000..ef97b91dc9f
--- /dev/null
+++ b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/util/PapyrusDSMLValidationRuleAdapterFactory.java
@@ -0,0 +1,120 @@
+/**
+ */
+package org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.util;
+
+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.*;
+
+/**
+ * <!-- begin-user-doc -->
+ * 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
+ */
+public class PapyrusDSMLValidationRuleAdapterFactory extends AdapterFactoryImpl {
+ /**
+ * The cached model package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected static PapyrusDSMLValidationRulePackage modelPackage;
+
+ /**
+ * Creates an instance of the adapter factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public PapyrusDSMLValidationRuleAdapterFactory() {
+ if (modelPackage == null) {
+ modelPackage = PapyrusDSMLValidationRulePackage.eINSTANCE;
+ }
+ }
+
+ /**
+ * Returns whether this factory is applicable for the type of the object.
+ * <!-- 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
+ */
+ @Override
+ public boolean isFactoryForType(Object object) {
+ if (object == modelPackage) {
+ return true;
+ }
+ if (object instanceof EObject) {
+ return ((EObject)object).eClass().getEPackage() == modelPackage;
+ }
+ return false;
+ }
+
+ /**
+ * 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();
+ }
+ };
+
+ /**
+ * Creates an adapter for the <code>target</code>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @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);
+ }
+
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.ValidationRule <em>Validation Rule</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.ValidationRule
+ * @generated
+ */
+ public Adapter createValidationRuleAdapter() {
+ 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
+ */
+ public Adapter createEObjectAdapter() {
+ return null;
+ }
+
+} //PapyrusDSMLValidationRuleAdapterFactory
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
new file mode 100644
index 00000000000..e77c9be04d0
--- /dev/null
+++ b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/util/PapyrusDSMLValidationRuleResourceFactoryImpl.java
@@ -0,0 +1,52 @@
+/**
+ */
+package org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.util;
+
+import org.eclipse.emf.common.util.URI;
+
+import org.eclipse.emf.ecore.resource.Resource;
+
+import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl;
+
+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
+ */
+public class PapyrusDSMLValidationRuleResourceFactoryImpl extends ResourceFactoryImpl {
+ /**
+ * Creates an instance of the resource factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public PapyrusDSMLValidationRuleResourceFactoryImpl() {
+ super();
+ }
+
+ /**
+ * 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;
+ }
+
+} //PapyrusDSMLValidationRuleResourceFactoryImpl
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
new file mode 100644
index 00000000000..27d10baad7e
--- /dev/null
+++ b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/util/PapyrusDSMLValidationRuleResourceImpl.java
@@ -0,0 +1,28 @@
+/**
+ */
+package org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.util;
+
+import org.eclipse.emf.common.util.URI;
+
+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
+ */
+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.
+ * @generated
+ */
+ public PapyrusDSMLValidationRuleResourceImpl(URI uri) {
+ super(uri);
+ }
+
+} //PapyrusDSMLValidationRuleResourceImpl
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
new file mode 100644
index 00000000000..80e09a31a18
--- /dev/null
+++ b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/util/PapyrusDSMLValidationRuleSwitch.java
@@ -0,0 +1,110 @@
+/**
+ */
+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.*;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Switch</b> for the model's inheritance hierarchy.
+ * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
+ * to invoke the <code>caseXXX</code> method for each class of the model,
+ * starting with the actual class of the object
+ * and proceeding up the inheritance hierarchy
+ * 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
+ */
+public class PapyrusDSMLValidationRuleSwitch<T> extends Switch<T> {
+ /**
+ * The cached model package
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected static PapyrusDSMLValidationRulePackage modelPackage;
+
+ /**
+ * Creates an instance of the switch.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public PapyrusDSMLValidationRuleSwitch() {
+ if (modelPackage == null) {
+ modelPackage = PapyrusDSMLValidationRulePackage.eINSTANCE;
+ }
+ }
+
+ /**
+ * Checks whether this is a switch for the given package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @parameter ePackage the package in question.
+ * @return whether this is a switch for the given package.
+ * @generated
+ */
+ @Override
+ protected boolean isSwitchFor(EPackage ePackage) {
+ return ePackage == modelPackage;
+ }
+
+ /**
+ * 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);
+ return result;
+ }
+ default: return defaultCase(theEObject);
+ }
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Validation Rule</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>Validation Rule</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseValidationRule(ValidationRule 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.
+ * @return the result of interpreting the object as an instance of '<em>EObject</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject)
+ * @generated
+ */
+ @Override
+ public T defaultCase(EObject object) {
+ return null;
+ }
+
+} //PapyrusDSMLValidationRuleSwitch
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
new file mode 100644
index 00000000000..37c022b074c
--- /dev/null
+++ b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/util/PapyrusDSMLValidationRuleXMLProcessor.java
@@ -0,0 +1,50 @@
+/**
+ */
+package org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.util;
+
+import java.util.Map;
+
+import org.eclipse.emf.ecore.EPackage;
+
+import org.eclipse.emf.ecore.resource.Resource;
+
+import org.eclipse.emf.ecore.xmi.util.XMLProcessor;
+
+import org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.PapyrusDSMLValidationRulePackage;
+
+/**
+ * This class contains helper methods to serialize and deserialize XML documents
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class PapyrusDSMLValidationRuleXMLProcessor extends XMLProcessor {
+
+ /**
+ * Public constructor to instantiate the helper.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public PapyrusDSMLValidationRuleXMLProcessor() {
+ super((EPackage.Registry.INSTANCE));
+ PapyrusDSMLValidationRulePackage.eINSTANCE.eClass();
+ }
+
+ /**
+ * Register for "*" and "xml" file extensions the PapyrusDSMLValidationRuleResourceFactoryImpl factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected Map<String, Resource.Factory> getRegistrations() {
+ if (registrations == null) {
+ super.getRegistrations();
+ registrations.put(XML_EXTENSION, new PapyrusDSMLValidationRuleResourceFactoryImpl());
+ registrations.put(STAR_EXTENSION, new PapyrusDSMLValidationRuleResourceFactoryImpl());
+ }
+ return registrations;
+ }
+
+} //PapyrusDSMLValidationRuleXMLProcessor

Back to the top