diff options
| author | Andrew Branson <andrew.branson@cern.ch> | 2013-08-02 15:01:39 +0200 |
|---|---|---|
| committer | Andrew Branson <andrew.branson@cern.ch> | 2013-08-02 15:01:39 +0200 |
| commit | 602488edc547279a5137e4db1dd0f6daeaa7e20c (patch) | |
| tree | b18ab66a2efb15d301b23aadcae7e588c566f055 /src/main/resources | |
| parent | a7e90e86fa912ccb438d74f7def87e1bded9b7c4 (diff) | |
Module resources can specify version number, which overrides the default
version viewpoint of '0'.
Diffstat (limited to 'src/main/resources')
| -rw-r--r-- | src/main/resources/boot/OD/Module.xsd | 9 | ||||
| -rw-r--r-- | src/main/resources/mapFiles/ModuleMap.xml | 3 |
2 files changed, 8 insertions, 4 deletions
diff --git a/src/main/resources/boot/OD/Module.xsd b/src/main/resources/boot/OD/Module.xsd index 1b54ac5..98220fd 100644 --- a/src/main/resources/boot/OD/Module.xsd +++ b/src/main/resources/boot/OD/Module.xsd @@ -55,6 +55,7 @@ <xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="name" type="xs:string" use="required" />
+ <xs:attribute name="version" type="xs:integer" use="optional" />
<xs:attribute name="type" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
@@ -116,10 +117,7 @@ <xs:element name="Aggregation" minOccurs="0"
maxOccurs="unbounded">
<xs:annotation>
- <xs:documentation>
- A new collection
- with layout
- </xs:documentation>
+ <xs:documentation> A new collection with layout</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
@@ -129,6 +127,9 @@ <xs:sequence>
<xs:element name="Geometry" minOccurs="1"
maxOccurs="1">
+ <xs:annotation>
+ <xs:documentation>X,Y specify centre point</xs:documentation>
+ </xs:annotation>
<xs:complexType>
<xs:attribute name="x" type="xs:int" use="required" />
<xs:attribute name="y" type="xs:int" use="required" />
diff --git a/src/main/resources/mapFiles/ModuleMap.xml b/src/main/resources/mapFiles/ModuleMap.xml index d858123..541b393 100644 --- a/src/main/resources/mapFiles/ModuleMap.xml +++ b/src/main/resources/mapFiles/ModuleMap.xml @@ -48,6 +48,9 @@ <field name="name" direct="true" type="string">
<bind-xml name="name" node="attribute" />
</field>
+ <field name="version" direct="true" type="integer">
+ <bind-xml name="version" node="attribute" />
+ </field>
<field name="resourceType" direct="true" type="string">
<bind-xml name="type" node="attribute" />
</field>
|
