Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStéphane Bégaudeau2015-11-20 08:09:11 -0500
committerStéphane Bégaudeau2015-11-20 08:48:56 -0500
commit04f3f4568da96ac7ff89c75428abfb39dfe66f26 (patch)
tree7e85a9741b03c3ae4cc894cf1a41aa21e1289910 /prototypes/org.eclipse.sirius.validation
parent1f11ccc494779a9b17e61acaaf1f9cdc734b1acf (diff)
downloadorg.eclipse.eef-04f3f4568da96ac7ff89c75428abfb39dfe66f26.tar.gz
org.eclipse.eef-04f3f4568da96ac7ff89c75428abfb39dfe66f26.tar.xz
org.eclipse.eef-04f3f4568da96ac7ff89c75428abfb39dfe66f26.zip
Contribute the first version of the build for EEF NG
1) A build has been contributed for all the org.eclipse.eef.* projects 2) All the plugins that will not be used now have been moved to the prototypes directory. Change-Id: I4477be42b519df975a426fb8016ea5b5276cc729 Signed-off-by: Stéphane Bégaudeau <stephane.begaudeau@obeo.fr>
Diffstat (limited to 'prototypes/org.eclipse.sirius.validation')
-rw-r--r--prototypes/org.eclipse.sirius.validation/.classpath7
-rw-r--r--prototypes/org.eclipse.sirius.validation/.project29
-rw-r--r--prototypes/org.eclipse.sirius.validation/.settings/org.eclipse.jdt.core.prefs7
-rw-r--r--prototypes/org.eclipse.sirius.validation/META-INF/MANIFEST.MF15
-rw-r--r--prototypes/org.eclipse.sirius.validation/about.html28
-rw-r--r--prototypes/org.eclipse.sirius.validation/build.properties15
-rw-r--r--prototypes/org.eclipse.sirius.validation/model/validation.aird223
-rw-r--r--prototypes/org.eclipse.sirius.validation/model/validation.ecore19
-rw-r--r--prototypes/org.eclipse.sirius.validation/model/validation.genmodel25
-rw-r--r--prototypes/org.eclipse.sirius.validation/plugin.properties9
-rw-r--r--prototypes/org.eclipse.sirius.validation/plugin.xml23
-rw-r--r--prototypes/org.eclipse.sirius.validation/src-gen/org/eclipse/sirius/validation/Severity.java274
-rw-r--r--prototypes/org.eclipse.sirius.validation/src-gen/org/eclipse/sirius/validation/SiriusStatus.java113
-rw-r--r--prototypes/org.eclipse.sirius.validation/src-gen/org/eclipse/sirius/validation/ValidationFactory.java48
-rw-r--r--prototypes/org.eclipse.sirius.validation/src-gen/org/eclipse/sirius/validation/ValidationPackage.java285
-rw-r--r--prototypes/org.eclipse.sirius.validation/src-gen/org/eclipse/sirius/validation/impl/SiriusStatusImpl.java268
-rw-r--r--prototypes/org.eclipse.sirius.validation/src-gen/org/eclipse/sirius/validation/impl/ValidationFactoryImpl.java174
-rw-r--r--prototypes/org.eclipse.sirius.validation/src-gen/org/eclipse/sirius/validation/impl/ValidationPackageImpl.java256
-rw-r--r--prototypes/org.eclipse.sirius.validation/src-gen/org/eclipse/sirius/validation/util/ValidationAdapterFactory.java126
-rw-r--r--prototypes/org.eclipse.sirius.validation/src-gen/org/eclipse/sirius/validation/util/ValidationSwitch.java116
20 files changed, 2060 insertions, 0 deletions
diff --git a/prototypes/org.eclipse.sirius.validation/.classpath b/prototypes/org.eclipse.sirius.validation/.classpath
new file mode 100644
index 000000000..e4dad7e73
--- /dev/null
+++ b/prototypes/org.eclipse.sirius.validation/.classpath
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src-gen"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/prototypes/org.eclipse.sirius.validation/.project b/prototypes/org.eclipse.sirius.validation/.project
new file mode 100644
index 000000000..c608d966d
--- /dev/null
+++ b/prototypes/org.eclipse.sirius.validation/.project
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.sirius.validation</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.sirius.nature.modelingproject</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ </natures>
+</projectDescription>
diff --git a/prototypes/org.eclipse.sirius.validation/.settings/org.eclipse.jdt.core.prefs b/prototypes/org.eclipse.sirius.validation/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 000000000..c537b6306
--- /dev/null
+++ b/prototypes/org.eclipse.sirius.validation/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,7 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
+org.eclipse.jdt.core.compiler.compliance=1.6
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.6
diff --git a/prototypes/org.eclipse.sirius.validation/META-INF/MANIFEST.MF b/prototypes/org.eclipse.sirius.validation/META-INF/MANIFEST.MF
new file mode 100644
index 000000000..b8eda7112
--- /dev/null
+++ b/prototypes/org.eclipse.sirius.validation/META-INF/MANIFEST.MF
@@ -0,0 +1,15 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: %pluginName
+Bundle-SymbolicName: org.eclipse.sirius.validation;singleton:=true
+Bundle-Version: 0.1.0.qualifier
+Bundle-ClassPath: .
+Bundle-Vendor: %providerName
+Bundle-Localization: plugin
+Bundle-RequiredExecutionEnvironment: JavaSE-1.6
+Export-Package: org.eclipse.sirius.validation,
+ org.eclipse.sirius.validation.impl,
+ org.eclipse.sirius.validation.util
+Require-Bundle: org.eclipse.core.runtime,
+ org.eclipse.emf.ecore;visibility:=reexport
+Bundle-ActivationPolicy: lazy
diff --git a/prototypes/org.eclipse.sirius.validation/about.html b/prototypes/org.eclipse.sirius.validation/about.html
new file mode 100644
index 000000000..f3a55ce5f
--- /dev/null
+++ b/prototypes/org.eclipse.sirius.validation/about.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
+<title>About</title>
+</head>
+<body lang="EN-US">
+<h2>About This Content</h2>
+
+<p>June 15, 2010</p>
+<h3>License</h3>
+
+<p>The Eclipse Foundation makes available all content in this plug-in (&quot;Content&quot;). Unless otherwise
+indicated below, the Content is provided to you under the terms and conditions of the
+Eclipse Public License Version 1.0 (&quot;EPL&quot;). A copy of the EPL is available
+at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
+For purposes of the EPL, &quot;Program&quot; will mean the Content.</p>
+
+<p>If you did not receive this Content directly from the Eclipse Foundation, the Content is
+being redistributed by another party (&quot;Redistributor&quot;) and different terms and conditions may
+apply to your use of any object code in the Content. Check the Redistributor's license that was
+provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
+indicated below, the terms and conditions of the EPL still apply to any source code in the Content
+and such source code may be obtained at <a href="http://www.eclipse.org/">http://www.eclipse.org</a>.</p>
+
+</body>
+</html> \ No newline at end of file
diff --git a/prototypes/org.eclipse.sirius.validation/build.properties b/prototypes/org.eclipse.sirius.validation/build.properties
new file mode 100644
index 000000000..7d34bdaed
--- /dev/null
+++ b/prototypes/org.eclipse.sirius.validation/build.properties
@@ -0,0 +1,15 @@
+# Copyright (c) 2015 Obeo.
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/epl-v10.htm
+# Contributors: Obeo - initial API and implementation
+
+bin.includes = .,\
+ model/,\
+ META-INF/,\
+ plugin.xml,\
+ plugin.properties
+jars.compile.order = .
+source.. = src-gen/
+output.. = bin/
diff --git a/prototypes/org.eclipse.sirius.validation/model/validation.aird b/prototypes/org.eclipse.sirius.validation/model/validation.aird
new file mode 100644
index 000000000..297210e95
--- /dev/null
+++ b/prototypes/org.eclipse.sirius.validation/model/validation.aird
@@ -0,0 +1,223 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<viewpoint:DAnalysis xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:description="http://www.eclipse.org/sirius/description/1.1.0" xmlns:description_1="http://www.eclipse.org/sirius/diagram/description/1.1.0" xmlns:diagram="http://www.eclipse.org/sirius/diagram/1.1.0" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.2/notation" xmlns:style="http://www.eclipse.org/sirius/diagram/description/style/1.1.0" xmlns:viewpoint="http://www.eclipse.org/sirius/1.1.0" xsi:schemaLocation="http://www.eclipse.org/sirius/description/1.1.0 http://www.eclipse.org/sirius/1.1.0#//description http://www.eclipse.org/sirius/diagram/description/1.1.0 http://www.eclipse.org/sirius/diagram/1.1.0#//description http://www.eclipse.org/sirius/diagram/description/style/1.1.0 http://www.eclipse.org/sirius/diagram/1.1.0#//description/style" xmi:id="_F_59MHZ6EeWNw9dm3R5WbA" selectedViews="_GCVmIHZ6EeWNw9dm3R5WbA _GC8DEHZ6EeWNw9dm3R5WbA" version="10.0.0.201505222000">
+ <semanticResources>validation.ecore</semanticResources>
+ <semanticResources>validation.genmodel</semanticResources>
+ <ownedViews xmi:type="viewpoint:DRepresentationContainer" xmi:id="_GCVmIHZ6EeWNw9dm3R5WbA">
+ <ownedRepresentations xmi:type="diagram:DSemanticDiagram" xmi:id="_GDkVMHZ6EeWNw9dm3R5WbA" name="validation">
+ <ownedAnnotationEntries xmi:type="description:AnnotationEntry" xmi:id="_GDkVMXZ6EeWNw9dm3R5WbA" source="DANNOTATION_CUSTOMIZATION_KEY">
+ <data xmi:type="diagram:ComputedStyleDescriptionRegistry" xmi:id="_GDkVMnZ6EeWNw9dm3R5WbA">
+ <computedStyleDescriptions xmi:type="style:EdgeStyleDescription" xmi:id="_7c78YHc3EeW-z8ier_HMeQ" sourceArrow="FillDiamond" routingStyle="manhattan">
+ <strokeColor xmi:type="description:SystemColor" href="environment:/viewpoint#//@systemColors/@entries[name='black']"/>
+ <centerLabelStyleDescription xmi:type="style:CenterLabelStyleDescription" xmi:id="_7c78YXc3EeW-z8ier_HMeQ" showIcon="false" labelExpression="service:render">
+ <labelColor xmi:type="description:SystemColor" href="environment:/viewpoint#//@systemColors/@entries[name='black']"/>
+ </centerLabelStyleDescription>
+ <endLabelStyleDescription xmi:type="style:EndLabelStyleDescription" xmi:id="_7c78Ync3EeW-z8ier_HMeQ" labelSize="6" showIcon="false" labelExpression="service:eKeysLabel">
+ <labelColor xmi:type="description:SystemColor" href="environment:/viewpoint#//@systemColors/@entries[name='dark_blue']"/>
+ </endLabelStyleDescription>
+ </computedStyleDescriptions>
+ </data>
+ </ownedAnnotationEntries>
+ <ownedAnnotationEntries xmi:type="description:AnnotationEntry" xmi:id="_GDk8QHZ6EeWNw9dm3R5WbA" source="GMF_DIAGRAMS">
+ <data xmi:type="notation:Diagram" xmi:id="_GDk8QXZ6EeWNw9dm3R5WbA" type="Sirius" element="_GDkVMHZ6EeWNw9dm3R5WbA" measurementUnit="Pixel">
+ <children xmi:type="notation:Node" xmi:id="_GyB9sHZ6EeWNw9dm3R5WbA" type="2003" element="_Gx6o8HZ6EeWNw9dm3R5WbA">
+ <children xmi:type="notation:Node" xmi:id="_GyDy4HZ6EeWNw9dm3R5WbA" type="5007"/>
+ <children xmi:type="notation:Node" xmi:id="_GyDy4XZ6EeWNw9dm3R5WbA" type="7004">
+ <children xmi:type="notation:Node" xmi:id="_PvfA4HZ6EeWNw9dm3R5WbA" type="3010" element="_PvavcHZ6EeWNw9dm3R5WbA">
+ <styles xmi:type="notation:FontStyle" xmi:id="_PvfA4XZ6EeWNw9dm3R5WbA" fontColor="2697711" fontName="Droid Sans" fontHeight="8"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_PvfA4nZ6EeWNw9dm3R5WbA"/>
+ </children>
+ <children xmi:type="notation:Node" xmi:id="_SfBJQHZ6EeWNw9dm3R5WbA" type="3010" element="_Se2xMHZ6EeWNw9dm3R5WbA">
+ <styles xmi:type="notation:FontStyle" xmi:id="_SfBJQXZ6EeWNw9dm3R5WbA" fontColor="2697711" fontName="Droid Sans" fontHeight="8"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_SfBJQnZ6EeWNw9dm3R5WbA"/>
+ </children>
+ <children xmi:type="notation:Node" xmi:id="_Tj0OIHZ6EeWNw9dm3R5WbA" type="3010" element="_TjmLsHZ6EeWNw9dm3R5WbA">
+ <styles xmi:type="notation:FontStyle" xmi:id="_Tj0OIXZ6EeWNw9dm3R5WbA" fontColor="2697711" fontName="Droid Sans" fontHeight="8"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_Tj0OInZ6EeWNw9dm3R5WbA"/>
+ </children>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_GyDy4nZ6EeWNw9dm3R5WbA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_GyDy43Z6EeWNw9dm3R5WbA"/>
+ </children>
+ <styles xmi:type="notation:ShapeStyle" xmi:id="_GyB9sXZ6EeWNw9dm3R5WbA" fontName="Droid Sans" fontHeight="8"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_GyCkwHZ6EeWNw9dm3R5WbA" x="675" y="125" width="120" height="100"/>
+ </children>
+ <children xmi:type="notation:Node" xmi:id="_NEsOkHZ6EeWNw9dm3R5WbA" type="2003" element="_NEk50HZ6EeWNw9dm3R5WbA">
+ <children xmi:type="notation:Node" xmi:id="_NEs1oHZ6EeWNw9dm3R5WbA" type="5007"/>
+ <children xmi:type="notation:Node" xmi:id="_NEs1oXZ6EeWNw9dm3R5WbA" type="7004">
+ <children xmi:type="notation:Node" xmi:id="_fgI2MHZ6EeWNw9dm3R5WbA" type="3010" element="_fgCvkHZ6EeWNw9dm3R5WbA">
+ <styles xmi:type="notation:FontStyle" xmi:id="_fgI2MXZ6EeWNw9dm3R5WbA" fontName="Droid Sans" fontHeight="8"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_fgI2MnZ6EeWNw9dm3R5WbA"/>
+ </children>
+ <children xmi:type="notation:Node" xmi:id="_gn2FIHZ6EeWNw9dm3R5WbA" type="3010" element="_gnuJUHZ6EeWNw9dm3R5WbA">
+ <styles xmi:type="notation:FontStyle" xmi:id="_gn2FIXZ6EeWNw9dm3R5WbA" fontName="Droid Sans" fontHeight="8"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_gn2FInZ6EeWNw9dm3R5WbA"/>
+ </children>
+ <children xmi:type="notation:Node" xmi:id="_hc6E4HZ6EeWNw9dm3R5WbA" type="3010" element="_hcyJEHZ6EeWNw9dm3R5WbA">
+ <styles xmi:type="notation:FontStyle" xmi:id="_hc6E4XZ6EeWNw9dm3R5WbA" fontName="Droid Sans" fontHeight="8"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_hc6E4nZ6EeWNw9dm3R5WbA"/>
+ </children>
+ <children xmi:type="notation:Node" xmi:id="_ifhYcHZ6EeWNw9dm3R5WbA" type="3010" element="_ifY1kHZ6EeWNw9dm3R5WbA">
+ <styles xmi:type="notation:FontStyle" xmi:id="_ifhYcXZ6EeWNw9dm3R5WbA" fontName="Droid Sans" fontHeight="8"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_ifhYcnZ6EeWNw9dm3R5WbA"/>
+ </children>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_NEs1onZ6EeWNw9dm3R5WbA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_NEs1o3Z6EeWNw9dm3R5WbA"/>
+ </children>
+ <styles xmi:type="notation:ShapeStyle" xmi:id="_NEsOkXZ6EeWNw9dm3R5WbA" fontName="Droid Sans" fontHeight="8"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_NEsOknZ6EeWNw9dm3R5WbA" x="980" y="135" width="120" height="100"/>
+ </children>
+ <children xmi:type="notation:Node" xmi:id="_Yh4DkHZ6EeWNw9dm3R5WbA" type="2003" element="_YhykAHZ6EeWNw9dm3R5WbA">
+ <children xmi:type="notation:Node" xmi:id="_Yh4Dk3Z6EeWNw9dm3R5WbA" type="5007"/>
+ <children xmi:type="notation:Node" xmi:id="_Yh4qoHZ6EeWNw9dm3R5WbA" type="7004">
+ <children xmi:type="notation:Node" xmi:id="_Yh4qo3Z6EeWNw9dm3R5WbA" type="3010" element="_Yh21cHZ6EeWNw9dm3R5WbA">
+ <styles xmi:type="notation:FontStyle" xmi:id="_Yh4qpHZ6EeWNw9dm3R5WbA" fontName="Droid Sans" fontHeight="8" italic="true"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_Yh4qpXZ6EeWNw9dm3R5WbA"/>
+ </children>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_Yh4qoXZ6EeWNw9dm3R5WbA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_Yh4qonZ6EeWNw9dm3R5WbA"/>
+ </children>
+ <styles xmi:type="notation:ShapeStyle" xmi:id="_Yh4DkXZ6EeWNw9dm3R5WbA" fontName="Droid Sans" fontHeight="8"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Yh4DknZ6EeWNw9dm3R5WbA" x="980" y="70" width="140" height="50"/>
+ </children>
+ <styles xmi:type="notation:DiagramStyle" xmi:id="_GDk8QnZ6EeWNw9dm3R5WbA"/>
+ <edges xmi:type="notation:Edge" xmi:id="_7dQFcHc3EeW-z8ier_HMeQ" type="4001" element="_7c6HMHc3EeW-z8ier_HMeQ" source="_GyB9sHZ6EeWNw9dm3R5WbA" target="_GyB9sHZ6EeWNw9dm3R5WbA">
+ <children xmi:type="notation:Node" xmi:id="_7djAYHc3EeW-z8ier_HMeQ" type="6001">
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_7djAYXc3EeW-z8ier_HMeQ" y="-10"/>
+ </children>
+ <children xmi:type="notation:Node" xmi:id="_7dnR0Hc3EeW-z8ier_HMeQ" type="6002">
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_7dnR0Xc3EeW-z8ier_HMeQ" y="10"/>
+ </children>
+ <children xmi:type="notation:Node" xmi:id="_7dqVIHc3EeW-z8ier_HMeQ" type="6003">
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_7dqVIXc3EeW-z8ier_HMeQ" y="10"/>
+ </children>
+ <styles xmi:type="notation:ConnectorStyle" xmi:id="_7dQsgHc3EeW-z8ier_HMeQ" routing="Rectilinear"/>
+ <styles xmi:type="notation:FontStyle" xmi:id="_7dQsgXc3EeW-z8ier_HMeQ" fontColor="7490599" fontName="Droid Sans" fontHeight="8"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_7dQsgnc3EeW-z8ier_HMeQ" points="[2, 41, 2, 41]$[2, 41, 2, 41]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_7dumkHc3EeW-z8ier_HMeQ" id="(0.975,0.59)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_7dvNoHc3EeW-z8ier_HMeQ" id="(0.975,0.59)"/>
+ </edges>
+ </data>
+ </ownedAnnotationEntries>
+ <ownedDiagramElements xmi:type="diagram:DNodeList" xmi:id="_Gx6o8HZ6EeWNw9dm3R5WbA" name="SiriusStatus" tooltipText="" outgoingEdges="_7c6HMHc3EeW-z8ier_HMeQ" incomingEdges="_7c6HMHc3EeW-z8ier_HMeQ" width="12" height="10">
+ <target xmi:type="ecore:EClass" href="validation.ecore#//SiriusStatus"/>
+ <semanticElements xmi:type="ecore:EClass" href="validation.ecore#//SiriusStatus"/>
+ <arrangeConstraints>KEEP_LOCATION</arrangeConstraints>
+ <arrangeConstraints>KEEP_SIZE</arrangeConstraints>
+ <arrangeConstraints>KEEP_RATIO</arrangeConstraints>
+ <ownedStyle xmi:type="diagram:FlatContainerStyle" xmi:id="_eoYHwHZ6EeWNw9dm3R5WbA" backgroundStyle="Liquid" foregroundColor="255,252,216">
+ <description xmi:type="style:FlatContainerStyleDescription" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@containerMappings[name='EC%20EClass']/@style"/>
+ </ownedStyle>
+ <actualMapping xmi:type="description_1:ContainerMapping" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@containerMappings[name='EC%20EClass']"/>
+ <ownedElements xmi:type="diagram:DNodeListElement" xmi:id="_PvavcHZ6EeWNw9dm3R5WbA" name="message : EString" tooltipText="">
+ <target xmi:type="ecore:EAttribute" href="validation.ecore#//SiriusStatus/message"/>
+ <semanticElements xmi:type="ecore:EAttribute" href="validation.ecore#//SiriusStatus/message"/>
+ <ownedStyle xmi:type="diagram:BundledImage" xmi:id="_Qec_sHZ6EeWNw9dm3R5WbA" labelAlignment="LEFT">
+ <description xmi:type="style:BundledImageDescription" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@containerMappings[name='EC%20EClass']/@subNodeMappings[name='EC%20EAttribute']/@style"/>
+ </ownedStyle>
+ <actualMapping xmi:type="description_1:NodeMapping" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@containerMappings[name='EC%20EClass']/@subNodeMappings[name='EC%20EAttribute']"/>
+ </ownedElements>
+ <ownedElements xmi:type="diagram:DNodeListElement" xmi:id="_Se2xMHZ6EeWNw9dm3R5WbA" name="Invalid feature as name" tooltipText="">
+ <target xmi:type="ecore:EAttribute" href="validation.ecore#//SiriusStatus/severity"/>
+ <semanticElements xmi:type="ecore:EAttribute" href="validation.ecore#//SiriusStatus/severity"/>
+ <ownedStyle xmi:type="diagram:BundledImage" xmi:id="_XsNm4HZ6EeWNw9dm3R5WbA" labelAlignment="LEFT">
+ <description xmi:type="style:BundledImageDescription" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@containerMappings[name='EC%20EClass']/@subNodeMappings[name='EC%20EAttribute']/@style"/>
+ </ownedStyle>
+ <actualMapping xmi:type="description_1:NodeMapping" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@containerMappings[name='EC%20EClass']/@subNodeMappings[name='EC%20EAttribute']"/>
+ </ownedElements>
+ <ownedElements xmi:type="diagram:DNodeListElement" xmi:id="_TjmLsHZ6EeWNw9dm3R5WbA" name="exception : SiriusException" tooltipText="">
+ <target xmi:type="ecore:EAttribute" href="validation.ecore#//SiriusStatus/exception"/>
+ <semanticElements xmi:type="ecore:EAttribute" href="validation.ecore#//SiriusStatus/exception"/>
+ <ownedStyle xmi:type="diagram:BundledImage" xmi:id="_eoYu0HZ6EeWNw9dm3R5WbA" labelAlignment="LEFT">
+ <description xmi:type="style:BundledImageDescription" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@containerMappings[name='EC%20EClass']/@subNodeMappings[name='EC%20EAttribute']/@style"/>
+ </ownedStyle>
+ <actualMapping xmi:type="description_1:NodeMapping" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@containerMappings[name='EC%20EClass']/@subNodeMappings[name='EC%20EAttribute']"/>
+ </ownedElements>
+ </ownedDiagramElements>
+ <ownedDiagramElements xmi:type="diagram:DNodeList" xmi:id="_NEk50HZ6EeWNw9dm3R5WbA" name="Severity" tooltipText="" width="12" height="10">
+ <target xmi:type="ecore:EEnum" href="validation.ecore#//Severity"/>
+ <semanticElements xmi:type="ecore:EEnum" href="validation.ecore#//Severity"/>
+ <ownedStyle xmi:type="diagram:FlatContainerStyle" xmi:id="_NEk50XZ6EeWNw9dm3R5WbA" borderColor="125,125,125" backgroundStyle="Liquid" foregroundColor="221,236,202">
+ <description xmi:type="style:FlatContainerStyleDescription" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@containerMappings[name='EC%20EEnum']/@style"/>
+ </ownedStyle>
+ <actualMapping xmi:type="description_1:ContainerMapping" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@containerMappings[name='EC%20EEnum']"/>
+ <ownedElements xmi:type="diagram:DNodeListElement" xmi:id="_fgCvkHZ6EeWNw9dm3R5WbA" name="INFO" tooltipText="">
+ <target xmi:type="ecore:EEnumLiteral" href="validation.ecore#//Severity/INFO"/>
+ <semanticElements xmi:type="ecore:EEnumLiteral" href="validation.ecore#//Severity/INFO"/>
+ <ownedStyle xmi:type="diagram:BundledImage" xmi:id="_fgDWoHZ6EeWNw9dm3R5WbA" labelAlignment="LEFT">
+ <description xmi:type="style:BundledImageDescription" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@containerMappings[name='EC%20EEnum']/@subNodeMappings[name='EC%20EEnumLiteral']/@style"/>
+ </ownedStyle>
+ <actualMapping xmi:type="description_1:NodeMapping" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@containerMappings[name='EC%20EEnum']/@subNodeMappings[name='EC%20EEnumLiteral']"/>
+ </ownedElements>
+ <ownedElements xmi:type="diagram:DNodeListElement" xmi:id="_gnuJUHZ6EeWNw9dm3R5WbA" name="WARNING" tooltipText="">
+ <target xmi:type="ecore:EEnumLiteral" href="validation.ecore#//Severity/WARNING"/>
+ <semanticElements xmi:type="ecore:EEnumLiteral" href="validation.ecore#//Severity/WARNING"/>
+ <ownedStyle xmi:type="diagram:BundledImage" xmi:id="_gnuwYHZ6EeWNw9dm3R5WbA" labelAlignment="LEFT">
+ <description xmi:type="style:BundledImageDescription" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@containerMappings[name='EC%20EEnum']/@subNodeMappings[name='EC%20EEnumLiteral']/@style"/>
+ </ownedStyle>
+ <actualMapping xmi:type="description_1:NodeMapping" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@containerMappings[name='EC%20EEnum']/@subNodeMappings[name='EC%20EEnumLiteral']"/>
+ </ownedElements>
+ <ownedElements xmi:type="diagram:DNodeListElement" xmi:id="_hcyJEHZ6EeWNw9dm3R5WbA" name="ERROR" tooltipText="">
+ <target xmi:type="ecore:EEnumLiteral" href="validation.ecore#//Severity/ERROR"/>
+ <semanticElements xmi:type="ecore:EEnumLiteral" href="validation.ecore#//Severity/ERROR"/>
+ <ownedStyle xmi:type="diagram:BundledImage" xmi:id="_hcywIHZ6EeWNw9dm3R5WbA" labelAlignment="LEFT">
+ <description xmi:type="style:BundledImageDescription" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@containerMappings[name='EC%20EEnum']/@subNodeMappings[name='EC%20EEnumLiteral']/@style"/>
+ </ownedStyle>
+ <actualMapping xmi:type="description_1:NodeMapping" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@containerMappings[name='EC%20EEnum']/@subNodeMappings[name='EC%20EEnumLiteral']"/>
+ </ownedElements>
+ <ownedElements xmi:type="diagram:DNodeListElement" xmi:id="_ifY1kHZ6EeWNw9dm3R5WbA" name="CANCEL" tooltipText="">
+ <target xmi:type="ecore:EEnumLiteral" href="validation.ecore#//Severity/CANCEL"/>
+ <semanticElements xmi:type="ecore:EEnumLiteral" href="validation.ecore#//Severity/CANCEL"/>
+ <ownedStyle xmi:type="diagram:BundledImage" xmi:id="_ifZcoHZ6EeWNw9dm3R5WbA" labelAlignment="LEFT">
+ <description xmi:type="style:BundledImageDescription" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@containerMappings[name='EC%20EEnum']/@subNodeMappings[name='EC%20EEnumLiteral']/@style"/>
+ </ownedStyle>
+ <actualMapping xmi:type="description_1:NodeMapping" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@containerMappings[name='EC%20EEnum']/@subNodeMappings[name='EC%20EEnumLiteral']"/>
+ </ownedElements>
+ </ownedDiagramElements>
+ <ownedDiagramElements xmi:type="diagram:DNodeList" xmi:id="_YhykAHZ6EeWNw9dm3R5WbA" name="SiriusException" tooltipText="" width="14" height="5">
+ <target xmi:type="ecore:EDataType" href="validation.ecore#//SiriusException"/>
+ <semanticElements xmi:type="ecore:EDataType" href="validation.ecore#//SiriusException"/>
+ <arrangeConstraints>KEEP_LOCATION</arrangeConstraints>
+ <arrangeConstraints>KEEP_SIZE</arrangeConstraints>
+ <arrangeConstraints>KEEP_RATIO</arrangeConstraints>
+ <ownedStyle xmi:type="diagram:FlatContainerStyle" xmi:id="_YhzLEHZ6EeWNw9dm3R5WbA" borderColor="125,125,125" backgroundStyle="Liquid" foregroundColor="255,250,191">
+ <description xmi:type="style:FlatContainerStyleDescription" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@containerMappings[name='EC%20EDataType']/@style"/>
+ </ownedStyle>
+ <actualMapping xmi:type="description_1:ContainerMapping" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@containerMappings[name='EC%20EDataType']"/>
+ <ownedElements xmi:type="diagram:DNodeListElement" xmi:id="_Yh21cHZ6EeWNw9dm3R5WbA" name="java.lang.Object" tooltipText="">
+ <target xmi:type="ecore:EDataType" href="validation.ecore#//SiriusException"/>
+ <semanticElements xmi:type="ecore:EDataType" href="validation.ecore#//SiriusException"/>
+ <decorations xmi:type="viewpoint:Decoration" xmi:id="_Yh3cgHZ6EeWNw9dm3R5WbA">
+ <description xmi:type="description:SemanticBasedDecoration" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@decorationDescriptionsSet/@decorationDescriptions[name='External']"/>
+ </decorations>
+ <ownedStyle xmi:type="diagram:BundledImage" xmi:id="_Yh21cXZ6EeWNw9dm3R5WbA" showIcon="false">
+ <labelFormat>italic</labelFormat>
+ <description xmi:type="style:BundledImageDescription" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@containerMappings[name='EC%20EDataType']/@subNodeMappings[name='EC_DataType_InstanceClassName']/@style"/>
+ </ownedStyle>
+ <actualMapping xmi:type="description_1:NodeMapping" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@containerMappings[name='EC%20EDataType']/@subNodeMappings[name='EC_DataType_InstanceClassName']"/>
+ </ownedElements>
+ </ownedDiagramElements>
+ <ownedDiagramElements xmi:type="diagram:DEdge" xmi:id="_7c6HMHc3EeW-z8ier_HMeQ" name="[0..*] substatus" sourceNode="_Gx6o8HZ6EeWNw9dm3R5WbA" targetNode="_Gx6o8HZ6EeWNw9dm3R5WbA">
+ <target xmi:type="ecore:EReference" href="validation.ecore#//SiriusStatus/substatus"/>
+ <semanticElements xmi:type="ecore:EReference" href="validation.ecore#//SiriusStatus/substatus"/>
+ <ownedStyle xmi:type="diagram:EdgeStyle" xmi:id="_7c8jcHc3EeW-z8ier_HMeQ" description="_7c78YHc3EeW-z8ier_HMeQ" sourceArrow="FillDiamond" routingStyle="manhattan" strokeColor="0,0,0">
+ <centerLabelStyle xmi:type="diagram:CenterLabelStyle" xmi:id="_7c8jcXc3EeW-z8ier_HMeQ" showIcon="false">
+ <customFeatures>labelSize</customFeatures>
+ </centerLabelStyle>
+ <endLabelStyle xmi:type="diagram:EndLabelStyle" xmi:id="_7c8jcnc3EeW-z8ier_HMeQ" showIcon="false" labelColor="39,76,114">
+ <customFeatures>labelSize</customFeatures>
+ </endLabelStyle>
+ </ownedStyle>
+ <actualMapping xmi:type="description_1:EdgeMapping" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@edgeMappings[name='EC_EReference']"/>
+ </ownedDiagramElements>
+ <description xmi:type="description_1:DiagramDescription" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']"/>
+ <filterVariableHistory xmi:type="diagram:FilterVariableHistory" xmi:id="_GDkVNXZ6EeWNw9dm3R5WbA"/>
+ <activatedLayers xmi:type="description_1:Layer" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer"/>
+ <activatedLayers xmi:type="description_1:AdditionalLayer" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@additionalLayers[name='Package']"/>
+ <activatedLayers xmi:type="description_1:AdditionalLayer" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@additionalLayers[name='Validation']"/>
+ <target xmi:type="ecore:EPackage" href="validation.ecore#/"/>
+ </ownedRepresentations>
+ <viewpoint xmi:type="description:Viewpoint" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']"/>
+ </ownedViews>
+ <ownedViews xmi:type="viewpoint:DRepresentationContainer" xmi:id="_GC8DEHZ6EeWNw9dm3R5WbA">
+ <viewpoint xmi:type="description:Viewpoint" href="platform:/resource/org.eclipse.sirius.expression.design/description/expression.odesign#//@ownedViewpoints[name='Design']"/>
+ </ownedViews>
+</viewpoint:DAnalysis>
diff --git a/prototypes/org.eclipse.sirius.validation/model/validation.ecore b/prototypes/org.eclipse.sirius.validation/model/validation.ecore
new file mode 100644
index 000000000..b5b5a53db
--- /dev/null
+++ b/prototypes/org.eclipse.sirius.validation/model/validation.ecore
@@ -0,0 +1,19 @@
+<?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="validation" nsURI="http://www.eclipse.org/sirius/validation"
+ nsPrefix="validation">
+ <eClassifiers xsi:type="ecore:EClass" name="SiriusStatus">
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="message" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="severity" eType="#//Severity"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="exception" eType="#//SiriusException"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="substatus" upperBound="-1"
+ eType="#//SiriusStatus" containment="true"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EEnum" name="Severity">
+ <eLiterals name="INFO"/>
+ <eLiterals name="WARNING" value="1"/>
+ <eLiterals name="ERROR" value="2"/>
+ <eLiterals name="CANCEL" value="3"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EDataType" name="SiriusException" instanceTypeName="newDataType2"/>
+</ecore:EPackage>
diff --git a/prototypes/org.eclipse.sirius.validation/model/validation.genmodel b/prototypes/org.eclipse.sirius.validation/model/validation.genmodel
new file mode 100644
index 000000000..1e273a95a
--- /dev/null
+++ b/prototypes/org.eclipse.sirius.validation/model/validation.genmodel
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<genmodel:GenModel xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
+ xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" copyrightText="Copyright (c) 2015 Obeo.&#xA;All rights reserved. This program and the accompanying materials &#xA;are made available under the terms of the Eclipse Public License v1.0&#xA;which accompanies this distribution, and is available at&#xA;http://www.eclipse.org/legal/epl-v10.htm&#xA;Contributors: Obeo - initial API and implementation"
+ modelDirectory="/org.eclipse.sirius.validation/src-gen" modelPluginID="org.eclipse.sirius.validation"
+ modelName="Validation" rootExtendsClass="org.eclipse.emf.ecore.impl.MinimalEObjectImpl$Container"
+ importerID="org.eclipse.emf.importer.ecore" complianceLevel="6.0" copyrightFields="false"
+ operationReflection="true" importOrganizing="true">
+ <foreignModel>validation.ecore</foreignModel>
+ <genPackages prefix="Validation" basePackage="org.eclipse.sirius" disposableProviderFactory="true"
+ ecorePackage="validation.ecore#/">
+ <genEnums typeSafeEnumCompatible="false" ecoreEnum="validation.ecore#//Severity">
+ <genEnumLiterals ecoreEnumLiteral="validation.ecore#//Severity/INFO"/>
+ <genEnumLiterals ecoreEnumLiteral="validation.ecore#//Severity/WARNING"/>
+ <genEnumLiterals ecoreEnumLiteral="validation.ecore#//Severity/ERROR"/>
+ <genEnumLiterals ecoreEnumLiteral="validation.ecore#//Severity/CANCEL"/>
+ </genEnums>
+ <genDataTypes ecoreDataType="validation.ecore#//SiriusException"/>
+ <genClasses ecoreClass="validation.ecore#//SiriusStatus">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute validation.ecore#//SiriusStatus/message"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute validation.ecore#//SiriusStatus/severity"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute validation.ecore#//SiriusStatus/exception"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference validation.ecore#//SiriusStatus/substatus"/>
+ </genClasses>
+ </genPackages>
+</genmodel:GenModel>
diff --git a/prototypes/org.eclipse.sirius.validation/plugin.properties b/prototypes/org.eclipse.sirius.validation/plugin.properties
new file mode 100644
index 000000000..b0b3da23c
--- /dev/null
+++ b/prototypes/org.eclipse.sirius.validation/plugin.properties
@@ -0,0 +1,9 @@
+# Copyright (c) 2015 Obeo.
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/epl-v10.htm
+# Contributors: Obeo - initial API and implementation
+
+pluginName = Validation Model
+providerName = www.example.org
diff --git a/prototypes/org.eclipse.sirius.validation/plugin.xml b/prototypes/org.eclipse.sirius.validation/plugin.xml
new file mode 100644
index 000000000..3dd09b1f9
--- /dev/null
+++ b/prototypes/org.eclipse.sirius.validation/plugin.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.0"?>
+
+<!--
+ Copyright (c) 2015 Obeo.
+ All rights reserved. This program and the accompanying materials
+ are made available under the terms of the Eclipse Public License v1.0
+ which accompanies this distribution, and is available at
+ http://www.eclipse.org/legal/epl-v10.htm
+ Contributors: Obeo - initial API and implementation
+-->
+
+<plugin>
+
+ <extension point="org.eclipse.emf.ecore.generated_package">
+ <!-- @generated validation -->
+ <package
+ uri="http://www.eclipse.org/sirius/validation"
+ class="org.eclipse.sirius.validation.ValidationPackage"
+ genModel="model/validation.genmodel"/>
+ </extension>
+
+</plugin>
diff --git a/prototypes/org.eclipse.sirius.validation/src-gen/org/eclipse/sirius/validation/Severity.java b/prototypes/org.eclipse.sirius.validation/src-gen/org/eclipse/sirius/validation/Severity.java
new file mode 100644
index 000000000..e71f44a3d
--- /dev/null
+++ b/prototypes/org.eclipse.sirius.validation/src-gen/org/eclipse/sirius/validation/Severity.java
@@ -0,0 +1,274 @@
+/**
+ * Copyright (c) 2015 Obeo.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.htm
+ * Contributors: Obeo - initial API and implementation
+ */
+package org.eclipse.sirius.validation;
+
+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.sirius.validation.ValidationPackage#getSeverity()
+ * @model
+ * @generated
+ */
+public enum Severity implements Enumerator {
+ /**
+ * The '<em><b>INFO</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #INFO_VALUE
+ * @generated
+ * @ordered
+ */
+ INFO(0, "INFO", "INFO"),
+
+ /**
+ * 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>ERROR</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #ERROR_VALUE
+ * @generated
+ * @ordered
+ */
+ ERROR(2, "ERROR", "ERROR"),
+
+ /**
+ * 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>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 = 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>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 = 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[] {
+ INFO,
+ WARNING,
+ ERROR,
+ 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 -->
+ * @param literal the literal.
+ * @return the matching enumerator or <code>null</code>.
+ * @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 -->
+ * @param name the name.
+ * @return the matching enumerator or <code>null</code>.
+ * @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 -->
+ * @param value the integer value.
+ * @return the matching enumerator or <code>null</code>.
+ * @generated
+ */
+ public static Severity get(int value) {
+ switch (value) {
+ case INFO_VALUE: return INFO;
+ case WARNING_VALUE: return WARNING;
+ case ERROR_VALUE: return ERROR;
+ 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/prototypes/org.eclipse.sirius.validation/src-gen/org/eclipse/sirius/validation/SiriusStatus.java b/prototypes/org.eclipse.sirius.validation/src-gen/org/eclipse/sirius/validation/SiriusStatus.java
new file mode 100644
index 000000000..2efac426b
--- /dev/null
+++ b/prototypes/org.eclipse.sirius.validation/src-gen/org/eclipse/sirius/validation/SiriusStatus.java
@@ -0,0 +1,113 @@
+/**
+ * Copyright (c) 2015 Obeo.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.htm
+ * Contributors: Obeo - initial API and implementation
+ */
+package org.eclipse.sirius.validation;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Sirius Status</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.sirius.validation.SiriusStatus#getMessage <em>Message</em>}</li>
+ * <li>{@link org.eclipse.sirius.validation.SiriusStatus#getSeverity <em>Severity</em>}</li>
+ * <li>{@link org.eclipse.sirius.validation.SiriusStatus#getException <em>Exception</em>}</li>
+ * </ul>
+ *
+ * @see org.eclipse.sirius.validation.ValidationPackage#getSiriusStatus()
+ * @model
+ * @generated
+ */
+public interface SiriusStatus extends EObject {
+ /**
+ * 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.sirius.validation.ValidationPackage#getSiriusStatus_Message()
+ * @model
+ * @generated
+ */
+ String getMessage();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.sirius.validation.SiriusStatus#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>Severity</b></em>' attribute.
+ * The literals are from the enumeration {@link org.eclipse.sirius.validation.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.sirius.validation.Severity
+ * @see #setSeverity(Severity)
+ * @see org.eclipse.sirius.validation.ValidationPackage#getSiriusStatus_Severity()
+ * @model
+ * @generated
+ */
+ Severity getSeverity();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.sirius.validation.SiriusStatus#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.sirius.validation.Severity
+ * @see #getSeverity()
+ * @generated
+ */
+ void setSeverity(Severity value);
+
+ /**
+ * Returns the value of the '<em><b>Exception</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Exception</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Exception</em>' attribute.
+ * @see #setException(Object)
+ * @see org.eclipse.sirius.validation.ValidationPackage#getSiriusStatus_Exception()
+ * @model dataType="org.eclipse.sirius.validation.SiriusException"
+ * @generated
+ */
+ Object getException();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.sirius.validation.SiriusStatus#getException <em>Exception</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Exception</em>' attribute.
+ * @see #getException()
+ * @generated
+ */
+ void setException(Object value);
+
+} // SiriusStatus
diff --git a/prototypes/org.eclipse.sirius.validation/src-gen/org/eclipse/sirius/validation/ValidationFactory.java b/prototypes/org.eclipse.sirius.validation/src-gen/org/eclipse/sirius/validation/ValidationFactory.java
new file mode 100644
index 000000000..f893788e1
--- /dev/null
+++ b/prototypes/org.eclipse.sirius.validation/src-gen/org/eclipse/sirius/validation/ValidationFactory.java
@@ -0,0 +1,48 @@
+/**
+ * Copyright (c) 2015 Obeo.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.htm
+ * Contributors: Obeo - initial API and implementation
+ */
+package org.eclipse.sirius.validation;
+
+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.sirius.validation.ValidationPackage
+ * @generated
+ */
+public interface ValidationFactory extends EFactory {
+ /**
+ * The singleton instance of the factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ ValidationFactory eINSTANCE = org.eclipse.sirius.validation.impl.ValidationFactoryImpl.init();
+
+ /**
+ * Returns a new object of class '<em>Sirius Status</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Sirius Status</em>'.
+ * @generated
+ */
+ SiriusStatus createSiriusStatus();
+
+ /**
+ * Returns the package supported by this factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the package supported by this factory.
+ * @generated
+ */
+ ValidationPackage getValidationPackage();
+
+} //ValidationFactory
diff --git a/prototypes/org.eclipse.sirius.validation/src-gen/org/eclipse/sirius/validation/ValidationPackage.java b/prototypes/org.eclipse.sirius.validation/src-gen/org/eclipse/sirius/validation/ValidationPackage.java
new file mode 100644
index 000000000..fe3b275c8
--- /dev/null
+++ b/prototypes/org.eclipse.sirius.validation/src-gen/org/eclipse/sirius/validation/ValidationPackage.java
@@ -0,0 +1,285 @@
+/**
+ * Copyright (c) 2015 Obeo.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.htm
+ * Contributors: Obeo - initial API and implementation
+ */
+package org.eclipse.sirius.validation;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EDataType;
+import org.eclipse.emf.ecore.EEnum;
+import org.eclipse.emf.ecore.EPackage;
+
+/**
+ * <!-- 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.sirius.validation.ValidationFactory
+ * @model kind="package"
+ * @generated
+ */
+public interface ValidationPackage extends EPackage {
+ /**
+ * The package name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ String eNAME = "validation";
+
+ /**
+ * The package namespace URI.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ String eNS_URI = "http://www.eclipse.org/sirius/validation";
+
+ /**
+ * The package namespace name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ String eNS_PREFIX = "validation";
+
+ /**
+ * The singleton instance of the package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ ValidationPackage eINSTANCE = org.eclipse.sirius.validation.impl.ValidationPackageImpl.init();
+
+ /**
+ * The meta object id for the '{@link org.eclipse.sirius.validation.impl.SiriusStatusImpl <em>Sirius Status</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.sirius.validation.impl.SiriusStatusImpl
+ * @see org.eclipse.sirius.validation.impl.ValidationPackageImpl#getSiriusStatus()
+ * @generated
+ */
+ int SIRIUS_STATUS = 0;
+
+ /**
+ * The feature id for the '<em><b>Message</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int SIRIUS_STATUS__MESSAGE = 0;
+
+ /**
+ * The feature id for the '<em><b>Severity</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int SIRIUS_STATUS__SEVERITY = 1;
+
+ /**
+ * The feature id for the '<em><b>Exception</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int SIRIUS_STATUS__EXCEPTION = 2;
+
+ /**
+ * The number of structural features of the '<em>Sirius Status</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int SIRIUS_STATUS_FEATURE_COUNT = 3;
+
+ /**
+ * The number of operations of the '<em>Sirius Status</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int SIRIUS_STATUS_OPERATION_COUNT = 0;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.sirius.validation.Severity <em>Severity</em>}' enum.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.sirius.validation.Severity
+ * @see org.eclipse.sirius.validation.impl.ValidationPackageImpl#getSeverity()
+ * @generated
+ */
+ int SEVERITY = 1;
+
+ /**
+ * The meta object id for the '<em>Sirius Exception</em>' data type.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see java.lang.Object
+ * @see org.eclipse.sirius.validation.impl.ValidationPackageImpl#getSiriusException()
+ * @generated
+ */
+ int SIRIUS_EXCEPTION = 2;
+
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.sirius.validation.SiriusStatus <em>Sirius Status</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Sirius Status</em>'.
+ * @see org.eclipse.sirius.validation.SiriusStatus
+ * @generated
+ */
+ EClass getSiriusStatus();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.sirius.validation.SiriusStatus#getMessage <em>Message</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Message</em>'.
+ * @see org.eclipse.sirius.validation.SiriusStatus#getMessage()
+ * @see #getSiriusStatus()
+ * @generated
+ */
+ EAttribute getSiriusStatus_Message();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.sirius.validation.SiriusStatus#getSeverity <em>Severity</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Severity</em>'.
+ * @see org.eclipse.sirius.validation.SiriusStatus#getSeverity()
+ * @see #getSiriusStatus()
+ * @generated
+ */
+ EAttribute getSiriusStatus_Severity();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.sirius.validation.SiriusStatus#getException <em>Exception</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Exception</em>'.
+ * @see org.eclipse.sirius.validation.SiriusStatus#getException()
+ * @see #getSiriusStatus()
+ * @generated
+ */
+ EAttribute getSiriusStatus_Exception();
+
+ /**
+ * Returns the meta object for enum '{@link org.eclipse.sirius.validation.Severity <em>Severity</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for enum '<em>Severity</em>'.
+ * @see org.eclipse.sirius.validation.Severity
+ * @generated
+ */
+ EEnum getSeverity();
+
+ /**
+ * Returns the meta object for data type '{@link java.lang.Object <em>Sirius Exception</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for data type '<em>Sirius Exception</em>'.
+ * @see java.lang.Object
+ * @model instanceClass="java.lang.Object"
+ * @generated
+ */
+ EDataType getSiriusException();
+
+ /**
+ * 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
+ */
+ ValidationFactory getValidationFactory();
+
+ /**
+ * <!-- 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.sirius.validation.impl.SiriusStatusImpl <em>Sirius Status</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.sirius.validation.impl.SiriusStatusImpl
+ * @see org.eclipse.sirius.validation.impl.ValidationPackageImpl#getSiriusStatus()
+ * @generated
+ */
+ EClass SIRIUS_STATUS = eINSTANCE.getSiriusStatus();
+
+ /**
+ * The meta object literal for the '<em><b>Message</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute SIRIUS_STATUS__MESSAGE = eINSTANCE.getSiriusStatus_Message();
+
+ /**
+ * The meta object literal for the '<em><b>Severity</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute SIRIUS_STATUS__SEVERITY = eINSTANCE.getSiriusStatus_Severity();
+
+ /**
+ * The meta object literal for the '<em><b>Exception</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute SIRIUS_STATUS__EXCEPTION = eINSTANCE.getSiriusStatus_Exception();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.sirius.validation.Severity <em>Severity</em>}' enum.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.sirius.validation.Severity
+ * @see org.eclipse.sirius.validation.impl.ValidationPackageImpl#getSeverity()
+ * @generated
+ */
+ EEnum SEVERITY = eINSTANCE.getSeverity();
+
+ /**
+ * The meta object literal for the '<em>Sirius Exception</em>' data type.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see java.lang.Object
+ * @see org.eclipse.sirius.validation.impl.ValidationPackageImpl#getSiriusException()
+ * @generated
+ */
+ EDataType SIRIUS_EXCEPTION = eINSTANCE.getSiriusException();
+
+ }
+
+} //ValidationPackage
diff --git a/prototypes/org.eclipse.sirius.validation/src-gen/org/eclipse/sirius/validation/impl/SiriusStatusImpl.java b/prototypes/org.eclipse.sirius.validation/src-gen/org/eclipse/sirius/validation/impl/SiriusStatusImpl.java
new file mode 100644
index 000000000..8ff32c20b
--- /dev/null
+++ b/prototypes/org.eclipse.sirius.validation/src-gen/org/eclipse/sirius/validation/impl/SiriusStatusImpl.java
@@ -0,0 +1,268 @@
+/**
+ * Copyright (c) 2015 Obeo.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.htm
+ * Contributors: Obeo - initial API and implementation
+ */
+package org.eclipse.sirius.validation.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
+
+import org.eclipse.sirius.validation.Severity;
+import org.eclipse.sirius.validation.SiriusStatus;
+import org.eclipse.sirius.validation.ValidationPackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Sirius Status</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.sirius.validation.impl.SiriusStatusImpl#getMessage <em>Message</em>}</li>
+ * <li>{@link org.eclipse.sirius.validation.impl.SiriusStatusImpl#getSeverity <em>Severity</em>}</li>
+ * <li>{@link org.eclipse.sirius.validation.impl.SiriusStatusImpl#getException <em>Exception</em>}</li>
+ * </ul>
+ *
+ * @generated
+ */
+public class SiriusStatusImpl extends MinimalEObjectImpl.Container implements SiriusStatus {
+ /**
+ * 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 #getSeverity() <em>Severity</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getSeverity()
+ * @generated
+ * @ordered
+ */
+ protected static final Severity SEVERITY_EDEFAULT = Severity.INFO;
+
+ /**
+ * 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 cached value of the '{@link #getException() <em>Exception</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getException()
+ * @generated
+ * @ordered
+ */
+ protected Object exception;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected SiriusStatusImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return ValidationPackage.Literals.SIRIUS_STATUS;
+ }
+
+ /**
+ * <!-- 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, ValidationPackage.SIRIUS_STATUS__MESSAGE, oldMessage, message));
+ }
+
+ /**
+ * <!-- 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, ValidationPackage.SIRIUS_STATUS__SEVERITY, oldSeverity, severity));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Object getException() {
+ return exception;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setException(Object newException) {
+ Object oldException = exception;
+ exception = newException;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, ValidationPackage.SIRIUS_STATUS__EXCEPTION, oldException, exception));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case ValidationPackage.SIRIUS_STATUS__MESSAGE:
+ return getMessage();
+ case ValidationPackage.SIRIUS_STATUS__SEVERITY:
+ return getSeverity();
+ case ValidationPackage.SIRIUS_STATUS__EXCEPTION:
+ return getException();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case ValidationPackage.SIRIUS_STATUS__MESSAGE:
+ setMessage((String)newValue);
+ return;
+ case ValidationPackage.SIRIUS_STATUS__SEVERITY:
+ setSeverity((Severity)newValue);
+ return;
+ case ValidationPackage.SIRIUS_STATUS__EXCEPTION:
+ setException(newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case ValidationPackage.SIRIUS_STATUS__MESSAGE:
+ setMessage(MESSAGE_EDEFAULT);
+ return;
+ case ValidationPackage.SIRIUS_STATUS__SEVERITY:
+ setSeverity(SEVERITY_EDEFAULT);
+ return;
+ case ValidationPackage.SIRIUS_STATUS__EXCEPTION:
+ setException((Object)null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case ValidationPackage.SIRIUS_STATUS__MESSAGE:
+ return MESSAGE_EDEFAULT == null ? message != null : !MESSAGE_EDEFAULT.equals(message);
+ case ValidationPackage.SIRIUS_STATUS__SEVERITY:
+ return severity != SEVERITY_EDEFAULT;
+ case ValidationPackage.SIRIUS_STATUS__EXCEPTION:
+ return exception != null;
+ }
+ 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(" (message: ");
+ result.append(message);
+ result.append(", severity: ");
+ result.append(severity);
+ result.append(", exception: ");
+ result.append(exception);
+ result.append(')');
+ return result.toString();
+ }
+
+} //SiriusStatusImpl
diff --git a/prototypes/org.eclipse.sirius.validation/src-gen/org/eclipse/sirius/validation/impl/ValidationFactoryImpl.java b/prototypes/org.eclipse.sirius.validation/src-gen/org/eclipse/sirius/validation/impl/ValidationFactoryImpl.java
new file mode 100644
index 000000000..0954398b5
--- /dev/null
+++ b/prototypes/org.eclipse.sirius.validation/src-gen/org/eclipse/sirius/validation/impl/ValidationFactoryImpl.java
@@ -0,0 +1,174 @@
+/**
+ * Copyright (c) 2015 Obeo.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.htm
+ * Contributors: Obeo - initial API and implementation
+ */
+package org.eclipse.sirius.validation.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.sirius.validation.*;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model <b>Factory</b>.
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class ValidationFactoryImpl extends EFactoryImpl implements ValidationFactory {
+ /**
+ * Creates the default factory implementation.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static ValidationFactory init() {
+ try {
+ ValidationFactory theValidationFactory = (ValidationFactory)EPackage.Registry.INSTANCE.getEFactory(ValidationPackage.eNS_URI);
+ if (theValidationFactory != null) {
+ return theValidationFactory;
+ }
+ }
+ catch (Exception exception) {
+ EcorePlugin.INSTANCE.log(exception);
+ }
+ return new ValidationFactoryImpl();
+ }
+
+ /**
+ * Creates an instance of the factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ValidationFactoryImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public EObject create(EClass eClass) {
+ switch (eClass.getClassifierID()) {
+ case ValidationPackage.SIRIUS_STATUS: return createSiriusStatus();
+ 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 ValidationPackage.SEVERITY:
+ return createSeverityFromString(eDataType, initialValue);
+ case ValidationPackage.SIRIUS_EXCEPTION:
+ return createSiriusExceptionFromString(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 ValidationPackage.SEVERITY:
+ return convertSeverityToString(eDataType, instanceValue);
+ case ValidationPackage.SIRIUS_EXCEPTION:
+ return convertSiriusExceptionToString(eDataType, instanceValue);
+ default:
+ throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public SiriusStatus createSiriusStatus() {
+ SiriusStatusImpl siriusStatus = new SiriusStatusImpl();
+ return siriusStatus;
+ }
+
+ /**
+ * <!-- 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 Object createSiriusExceptionFromString(EDataType eDataType, String initialValue) {
+ return super.createFromString(eDataType, initialValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String convertSiriusExceptionToString(EDataType eDataType, Object instanceValue) {
+ return super.convertToString(eDataType, instanceValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ValidationPackage getValidationPackage() {
+ return (ValidationPackage)getEPackage();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @deprecated
+ * @generated
+ */
+ @Deprecated
+ public static ValidationPackage getPackage() {
+ return ValidationPackage.eINSTANCE;
+ }
+
+} //ValidationFactoryImpl
diff --git a/prototypes/org.eclipse.sirius.validation/src-gen/org/eclipse/sirius/validation/impl/ValidationPackageImpl.java b/prototypes/org.eclipse.sirius.validation/src-gen/org/eclipse/sirius/validation/impl/ValidationPackageImpl.java
new file mode 100644
index 000000000..57bee22f9
--- /dev/null
+++ b/prototypes/org.eclipse.sirius.validation/src-gen/org/eclipse/sirius/validation/impl/ValidationPackageImpl.java
@@ -0,0 +1,256 @@
+/**
+ * Copyright (c) 2015 Obeo.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.htm
+ * Contributors: Obeo - initial API and implementation
+ */
+package org.eclipse.sirius.validation.impl;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EDataType;
+import org.eclipse.emf.ecore.EEnum;
+import org.eclipse.emf.ecore.EPackage;
+
+import org.eclipse.emf.ecore.impl.EPackageImpl;
+
+import org.eclipse.sirius.validation.Severity;
+import org.eclipse.sirius.validation.SiriusStatus;
+import org.eclipse.sirius.validation.ValidationFactory;
+import org.eclipse.sirius.validation.ValidationPackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model <b>Package</b>.
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class ValidationPackageImpl extends EPackageImpl implements ValidationPackage {
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass siriusStatusEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EEnum severityEEnum = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EDataType siriusExceptionEDataType = 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.sirius.validation.ValidationPackage#eNS_URI
+ * @see #init()
+ * @generated
+ */
+ private ValidationPackageImpl() {
+ super(eNS_URI, ValidationFactory.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 ValidationPackage#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 ValidationPackage init() {
+ if (isInited) return (ValidationPackage)EPackage.Registry.INSTANCE.getEPackage(ValidationPackage.eNS_URI);
+
+ // Obtain or create and register package
+ ValidationPackageImpl theValidationPackage = (ValidationPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof ValidationPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new ValidationPackageImpl());
+
+ isInited = true;
+
+ // Create package meta-data objects
+ theValidationPackage.createPackageContents();
+
+ // Initialize created meta-data
+ theValidationPackage.initializePackageContents();
+
+ // Mark meta-data to indicate it can't be changed
+ theValidationPackage.freeze();
+
+
+ // Update the registry and return the package
+ EPackage.Registry.INSTANCE.put(ValidationPackage.eNS_URI, theValidationPackage);
+ return theValidationPackage;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getSiriusStatus() {
+ return siriusStatusEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getSiriusStatus_Message() {
+ return (EAttribute)siriusStatusEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getSiriusStatus_Severity() {
+ return (EAttribute)siriusStatusEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getSiriusStatus_Exception() {
+ return (EAttribute)siriusStatusEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EEnum getSeverity() {
+ return severityEEnum;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EDataType getSiriusException() {
+ return siriusExceptionEDataType;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ValidationFactory getValidationFactory() {
+ return (ValidationFactory)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
+ siriusStatusEClass = createEClass(SIRIUS_STATUS);
+ createEAttribute(siriusStatusEClass, SIRIUS_STATUS__MESSAGE);
+ createEAttribute(siriusStatusEClass, SIRIUS_STATUS__SEVERITY);
+ createEAttribute(siriusStatusEClass, SIRIUS_STATUS__EXCEPTION);
+
+ // Create enums
+ severityEEnum = createEEnum(SEVERITY);
+
+ // Create data types
+ siriusExceptionEDataType = createEDataType(SIRIUS_EXCEPTION);
+ }
+
+ /**
+ * <!-- 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);
+
+ // Create type parameters
+
+ // Set bounds for type parameters
+
+ // Add supertypes to classes
+
+ // Initialize classes, features, and operations; add parameters
+ initEClass(siriusStatusEClass, SiriusStatus.class, "SiriusStatus", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getSiriusStatus_Message(), ecorePackage.getEString(), "message", null, 0, 1, SiriusStatus.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getSiriusStatus_Severity(), this.getSeverity(), "severity", null, 0, 1, SiriusStatus.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getSiriusStatus_Exception(), this.getSiriusException(), "exception", null, 0, 1, SiriusStatus.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.INFO);
+ addEEnumLiteral(severityEEnum, Severity.WARNING);
+ addEEnumLiteral(severityEEnum, Severity.ERROR);
+ addEEnumLiteral(severityEEnum, Severity.CANCEL);
+
+ // Initialize data types
+ initEDataType(siriusExceptionEDataType, Object.class, "SiriusException", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);
+
+ // Create resource
+ createResource(eNS_URI);
+ }
+
+} //ValidationPackageImpl
diff --git a/prototypes/org.eclipse.sirius.validation/src-gen/org/eclipse/sirius/validation/util/ValidationAdapterFactory.java b/prototypes/org.eclipse.sirius.validation/src-gen/org/eclipse/sirius/validation/util/ValidationAdapterFactory.java
new file mode 100644
index 000000000..6d8d9bdc8
--- /dev/null
+++ b/prototypes/org.eclipse.sirius.validation/src-gen/org/eclipse/sirius/validation/util/ValidationAdapterFactory.java
@@ -0,0 +1,126 @@
+/**
+ * Copyright (c) 2015 Obeo.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.htm
+ * Contributors: Obeo - initial API and implementation
+ */
+package org.eclipse.sirius.validation.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.sirius.validation.*;
+
+/**
+ * <!-- 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.sirius.validation.ValidationPackage
+ * @generated
+ */
+public class ValidationAdapterFactory extends AdapterFactoryImpl {
+ /**
+ * The cached model package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected static ValidationPackage modelPackage;
+
+ /**
+ * Creates an instance of the adapter factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ValidationAdapterFactory() {
+ if (modelPackage == null) {
+ modelPackage = ValidationPackage.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 ValidationSwitch<Adapter> modelSwitch =
+ new ValidationSwitch<Adapter>() {
+ @Override
+ public Adapter caseSiriusStatus(SiriusStatus object) {
+ return createSiriusStatusAdapter();
+ }
+ @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.sirius.validation.SiriusStatus <em>Sirius Status</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.sirius.validation.SiriusStatus
+ * @generated
+ */
+ public Adapter createSiriusStatusAdapter() {
+ 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;
+ }
+
+} //ValidationAdapterFactory
diff --git a/prototypes/org.eclipse.sirius.validation/src-gen/org/eclipse/sirius/validation/util/ValidationSwitch.java b/prototypes/org.eclipse.sirius.validation/src-gen/org/eclipse/sirius/validation/util/ValidationSwitch.java
new file mode 100644
index 000000000..88a23b342
--- /dev/null
+++ b/prototypes/org.eclipse.sirius.validation/src-gen/org/eclipse/sirius/validation/util/ValidationSwitch.java
@@ -0,0 +1,116 @@
+/**
+ * Copyright (c) 2015 Obeo.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.htm
+ * Contributors: Obeo - initial API and implementation
+ */
+package org.eclipse.sirius.validation.util;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EPackage;
+
+import org.eclipse.emf.ecore.util.Switch;
+
+import org.eclipse.sirius.validation.*;
+
+/**
+ * <!-- 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.sirius.validation.ValidationPackage
+ * @generated
+ */
+public class ValidationSwitch<T> extends Switch<T> {
+ /**
+ * The cached model package
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected static ValidationPackage modelPackage;
+
+ /**
+ * Creates an instance of the switch.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ValidationSwitch() {
+ if (modelPackage == null) {
+ modelPackage = ValidationPackage.eINSTANCE;
+ }
+ }
+
+ /**
+ * Checks whether this is a switch for the given package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param 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 ValidationPackage.SIRIUS_STATUS: {
+ SiriusStatus siriusStatus = (SiriusStatus)theEObject;
+ T result = caseSiriusStatus(siriusStatus);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ default: return defaultCase(theEObject);
+ }
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Sirius Status</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>Sirius Status</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseSiriusStatus(SiriusStatus 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;
+ }
+
+} //ValidationSwitch

Back to the top