Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: ea9c6b73fae77dc46a04b0032e0c4d5ca6956243 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?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>

Back to the top