summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorSandro S. Andrade <sandroandrade@kde.org>2013-06-07 18:49:16 +0000
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-06-07 20:49:52 +0200
commit871a5dfccdb3eed4d3164629a1ad3ce38dd6280e (patch)
treee26f0a3903da24498a075d6f0960ba011554085d /scripts
parent4512630787f6acaa3d24ec9f0168670da7d522dd (diff)
Provide initial DuSE design space metamodel implementation
Change-Id: I4cb72c193e314fdad7d1dd30810b9d7a6c0b62ca Reviewed-by: Sandro S. Andrade <sandroandrade@kde.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/normative-xmi/DuSE.qtxmi13
-rw-r--r--scripts/normative-xmi/DuSE.xmi13
-rw-r--r--scripts/normative-xmi/xmi2qt.xq1
3 files changed, 27 insertions, 0 deletions
diff --git a/scripts/normative-xmi/DuSE.qtxmi b/scripts/normative-xmi/DuSE.qtxmi
new file mode 100644
index 00000000..32d8d7a3
--- /dev/null
+++ b/scripts/normative-xmi/DuSE.qtxmi
@@ -0,0 +1,13 @@
+<qtxmi:XMI xmlns:qtxmi="http://www.qt-project.org" xmlns:xmi="http://www.omg.org/spec/XMI/20110701" xmlns:uml="http://www.omg.org/spec/UML/20110701">
+ <namespace path="QtDuse">
+ <class name="QDuseDesignSpace" isAbstract="false">
+ <qtinclude>QtCore/QString</qtinclude>
+ <attribute isDerived="false" isDerivedUnion="false" isReadOnly="false" subsettedProperty="" redefinedProperty="" id="DesignSpace-name" defaultValue="" aggregation="none" subsettedBy="">
+ <accessor return="QString " name="name" constness=" const"/>
+ <accessor return="void " name="setName" constness="">
+ <parameter type="QString " name="name"/>
+ </accessor>
+ </attribute>
+ </class>
+ </namespace>
+</qtxmi:XMI>
diff --git a/scripts/normative-xmi/DuSE.xmi b/scripts/normative-xmi/DuSE.xmi
new file mode 100644
index 00000000..9330ca9f
--- /dev/null
+++ b/scripts/normative-xmi/DuSE.xmi
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xmi:XMI xmlns:xmi="http://www.omg.org/spec/XMI/20110701" xmlns:uml="http://www.omg.org/spec/UML/20110701">
+ <uml:Package name="DuSE" xmi:id="">
+ <packageImport xmi:type="uml:PackageImport" xmi:id="_packageImport.0">
+ <importedPackage href="http://www.omg.org/spec/UML/20110701/PrimitiveTypes.xmi#_0"/>
+ </packageImport>
+ <packagedElement xmi:type="uml:Class" name="DesignSpace" xmi:id="DesignSpace">
+ <ownedAttribute xmi:type="uml:Property" visibility="public" name="name" xmi:id="DesignSpace-name">
+ <type href="http://www.omg.org/spec/UML/20110701/PrimitiveTypes.xmi#String"/>
+ </ownedAttribute>
+ </packagedElement>
+ </uml:Package>
+</xmi:XMI>
diff --git a/scripts/normative-xmi/xmi2qt.xq b/scripts/normative-xmi/xmi2qt.xq
index f2eb7574..c895c3af 100644
--- a/scripts/normative-xmi/xmi2qt.xq
+++ b/scripts/normative-xmi/xmi2qt.xq
@@ -17,6 +17,7 @@ declare function qtxmi:mappedBaseNamespace($xmiFile as xs:string*) as xs:string*
else if ($xmiFile = "UML.xmi") then "QtUml"
else if ($xmiFile = "MOF.xmi") then "QtMof"
else if ($xmiFile = "MOF-merged.xmi") then "QtMof"
+ else if ($xmiFile = "DuSE.xmi") then "QtDuse"
else "QtUnknown"
};