diff options
| author | Andrew Branson <andrew.branson@cern.ch> | 2012-05-30 08:37:45 +0200 |
|---|---|---|
| committer | Andrew Branson <andrew.branson@cern.ch> | 2012-05-30 08:37:45 +0200 |
| commit | b086f57f56bf0eb9dab9cf321a0f69aaaae84347 (patch) | |
| tree | 8e6e26e8b7eed6abad7a17b093bdbb55c5e6b1ba /src/main/resources/boot/OD | |
| parent | 22088ae8d2d5ff390518dbe1c4372325ffb3a647 (diff) | |
Initial Maven Conversion
Diffstat (limited to 'src/main/resources/boot/OD')
| -rw-r--r-- | src/main/resources/boot/OD/CompositeActivityDef.xsd | 186 | ||||
| -rw-r--r-- | src/main/resources/boot/OD/ElementaryActivityDef.xsd | 29 | ||||
| -rw-r--r-- | src/main/resources/boot/OD/Module.xsd | 142 | ||||
| -rw-r--r-- | src/main/resources/boot/OD/NewAgent.xsd | 20 | ||||
| -rw-r--r-- | src/main/resources/boot/OD/NewItem.xsd | 73 | ||||
| -rw-r--r-- | src/main/resources/boot/OD/PredefinedStepOutcome.xsd | 13 | ||||
| -rw-r--r-- | src/main/resources/boot/OD/PropertyDescription.xsd | 36 | ||||
| -rw-r--r-- | src/main/resources/boot/OD/Schema.xsd | 4 | ||||
| -rw-r--r-- | src/main/resources/boot/OD/Script.xsd | 38 |
9 files changed, 541 insertions, 0 deletions
diff --git a/src/main/resources/boot/OD/CompositeActivityDef.xsd b/src/main/resources/boot/OD/CompositeActivityDef.xsd new file mode 100644 index 0000000..e840734 --- /dev/null +++ b/src/main/resources/boot/OD/CompositeActivityDef.xsd @@ -0,0 +1,186 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
+ <xs:element name="CentrePoint">
+ <xs:complexType>
+ <xs:attribute name="x" type="xs:short" use="required"/>
+ <xs:attribute name="y" type="xs:short" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="CompositeActivityDef">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="childrenGraphModel">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="GraphModelCastorData">
+ <xs:complexType>
+ <xs:choice maxOccurs="unbounded">
+ <xs:element name="ActivitySlotDef">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="CentrePoint"/>
+ <xs:element ref="OutlinePoint" minOccurs="4" maxOccurs="4"/>
+ <xs:element ref="InEdgeId" minOccurs="0"/>
+ <xs:element ref="OutEdgeId" minOccurs="0"/>
+ <xs:element ref="Properties"/>
+ <xs:element name="activityDef" type="xs:string"/>
+ </xs:sequence>
+ <xs:attribute name="ID" type="xs:byte" use="required"/>
+ <xs:attribute name="Name" type="xs:string" use="required"/>
+ <xs:attribute name="Height" type="xs:integer" use="required"/>
+ <xs:attribute name="Width" type="xs:integer" use="required"/>
+ <xs:attribute name="IsLayoutable" type="xs:boolean" use="required"/>
+ <xs:attribute name="IsComposite" type="xs:boolean" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="JoinDef">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="CentrePoint"/>
+ <xs:element ref="OutlinePoint" maxOccurs="unbounded"/>
+ <xs:element ref="InEdgeId" maxOccurs="unbounded"/>
+ <xs:element ref="OutEdgeId" minOccurs="0"/>
+ <xs:element ref="Properties"/>
+ </xs:sequence>
+ <xs:attribute name="ID" type="xs:byte" use="required"/>
+ <xs:attribute name="Name" type="xs:string" use="required"/>
+ <xs:attribute name="Height" type="xs:byte" use="required"/>
+ <xs:attribute name="Width" type="xs:byte" use="required"/>
+ <xs:attribute name="IsLayoutable" type="xs:boolean" use="required"/>
+ <xs:attribute name="IsComposite" type="xs:boolean" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="LoopDef">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="CentrePoint"/>
+ <xs:element ref="OutlinePoint" minOccurs="4" maxOccurs="4"/>
+ <xs:element ref="InEdgeId"/>
+ <xs:element ref="OutEdgeId" maxOccurs="unbounded"/>
+ <xs:element ref="Properties"/>
+ </xs:sequence>
+ <xs:attribute name="ID" type="xs:byte" use="required"/>
+ <xs:attribute name="Name" type="xs:string" use="required"/>
+ <xs:attribute name="Height" type="xs:byte" use="required"/>
+ <xs:attribute name="Width" type="xs:byte" use="required"/>
+ <xs:attribute name="IsLayoutable" type="xs:boolean" use="required"/>
+ <xs:attribute name="IsComposite" type="xs:boolean" use="required"/>
+ <xs:attribute name="isNext" type="xs:boolean" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="NextDef">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="OriginPoint">
+ <xs:complexType>
+ <xs:attribute name="x" type="xs:short" use="required"/>
+ <xs:attribute name="y" type="xs:short" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="TerminusPoint">
+ <xs:complexType>
+ <xs:attribute name="x" type="xs:short" use="required"/>
+ <xs:attribute name="y" type="xs:short" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element ref="Properties"/>
+ </xs:sequence>
+ <xs:attribute name="ID" type="xs:byte" use="required"/>
+ <xs:attribute name="OriginVertexId" type="xs:byte" use="required"/>
+ <xs:attribute name="TerminusVertexId" type="xs:byte" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="XOrSplitDef">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="CentrePoint"/>
+ <xs:element ref="OutlinePoint" minOccurs="4" maxOccurs="4"/>
+ <xs:element ref="InEdgeId" minOccurs="0"/>
+ <xs:element ref="OutEdgeId" maxOccurs="unbounded"/>
+ <xs:element ref="Properties"/>
+ </xs:sequence>
+ <xs:attribute name="ID" type="xs:byte" use="required"/>
+ <xs:attribute name="Name" type="xs:string" use="required"/>
+ <xs:attribute name="Height" type="xs:byte" use="required"/>
+ <xs:attribute name="Width" type="xs:byte" use="required"/>
+ <xs:attribute name="IsLayoutable" type="xs:boolean" use="required"/>
+ <xs:attribute name="IsComposite" type="xs:boolean" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="OrSplitDef">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="CentrePoint"/>
+ <xs:element ref="OutlinePoint" minOccurs="4" maxOccurs="4"/>
+ <xs:element ref="InEdgeId" minOccurs="0"/>
+ <xs:element ref="OutEdgeId" maxOccurs="unbounded"/>
+ <xs:element ref="Properties"/>
+ </xs:sequence>
+ <xs:attribute name="ID" type="xs:byte" use="required"/>
+ <xs:attribute name="Name" type="xs:string" use="required"/>
+ <xs:attribute name="Height" type="xs:byte" use="required"/>
+ <xs:attribute name="Width" type="xs:byte" use="required"/>
+ <xs:attribute name="IsLayoutable" type="xs:boolean" use="required"/>
+ <xs:attribute name="IsComposite" type="xs:boolean" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="AndSplitDef">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="CentrePoint"/>
+ <xs:element ref="OutlinePoint" minOccurs="4" maxOccurs="4"/>
+ <xs:element ref="InEdgeId" minOccurs="0"/>
+ <xs:element ref="OutEdgeId" maxOccurs="unbounded"/>
+ <xs:element ref="Properties"/>
+ </xs:sequence>
+ <xs:attribute name="ID" type="xs:byte" use="required"/>
+ <xs:attribute name="Name" type="xs:string" use="required"/>
+ <xs:attribute name="Height" type="xs:byte" use="required"/>
+ <xs:attribute name="Width" type="xs:byte" use="required"/>
+ <xs:attribute name="IsLayoutable" type="xs:boolean" use="required"/>
+ <xs:attribute name="IsComposite" type="xs:boolean" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:choice>
+ <xs:attribute name="ClassNameOfVertexOutlineCreator" type="xs:string" use="required"/>
+ <xs:attribute name="StartVertexId" type="xs:byte" use="required"/>
+ <xs:attribute name="NextId" type="xs:byte" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element ref="Properties"/>
+ <xs:element name="castorNonLayoutableChildren" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
+ </xs:sequence>
+ <xs:attribute name="ID" type="xs:integer" use="required"/>
+ <xs:attribute name="Name" type="xs:string" use="required"/>
+ <xs:attribute name="Height" type="xs:integer" use="required"/>
+ <xs:attribute name="Width" type="xs:integer" use="required"/>
+ <xs:attribute name="IsLayoutable" type="xs:boolean" use="required"/>
+ <xs:attribute name="IsComposite" type="xs:boolean" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="InEdgeId" type="xs:byte"/>
+ <xs:element name="OutEdgeId" type="xs:byte"/>
+ <xs:element name="OutlinePoint">
+ <xs:complexType>
+ <xs:attribute name="x" type="xs:short" use="required"/>
+ <xs:attribute name="y" type="xs:short" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="Properties">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="KeyValuePair" minOccurs="0" maxOccurs="unbounded">
+ <xs:complexType>
+ <xs:attribute name="Key" type="xs:string" use="required"/>
+ <xs:attribute name="String" type="xs:string" use="optional"/>
+ <xs:attribute name="Boolean" type="xs:boolean" use="optional"/>
+ <xs:attribute name="Integer" type="xs:int" use="optional"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+</xs:schema>
diff --git a/src/main/resources/boot/OD/ElementaryActivityDef.xsd b/src/main/resources/boot/OD/ElementaryActivityDef.xsd new file mode 100644 index 0000000..ea637e4 --- /dev/null +++ b/src/main/resources/boot/OD/ElementaryActivityDef.xsd @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
+ <xs:element name="ActivityDef">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="Properties">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="KeyValuePair" maxOccurs="unbounded">
+ <xs:complexType>
+ <xs:attribute name="Key" type="xs:string" use="optional"/>
+ <xs:attribute name="Boolean" type="xs:boolean" use="optional"/>
+ <xs:attribute name="String" type="xs:string" use="optional"/>
+ <xs:attribute name="Integer" type="xs:int" use="optional"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ <xs:attribute name="ID" type="xs:byte" use="required"/>
+ <xs:attribute name="Name" type="xs:string" use="required"/>
+ <xs:attribute name="Height" type="xs:integer" use="optional"/>
+ <xs:attribute name="Width" type="xs:integer" use="optional"/>
+ <xs:attribute name="IsLayoutable" type="xs:boolean" use="required" fixed="false"/>
+ <xs:attribute name="IsComposite" type="xs:boolean" use="required" fixed="false"/>
+ </xs:complexType>
+ </xs:element>
+</xs:schema>
diff --git a/src/main/resources/boot/OD/Module.xsd b/src/main/resources/boot/OD/Module.xsd new file mode 100644 index 0000000..6cd84e0 --- /dev/null +++ b/src/main/resources/boot/OD/Module.xsd @@ -0,0 +1,142 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<!-- edited with XMLSpy v2007 rel. 3 (http://www.altova.com) by Andrew Branson (CERN) -->
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
+ <xs:element name="CristalModule">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="Info">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="Description" type="xs:string"/>
+ <xs:element name="Version" type="xs:string"/>
+ <xs:element name="Dependency" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="ResourceURL" type="xs:string" minOccurs="0"/>
+ <xs:element name="Config" minOccurs="0" maxOccurs="unbounded">
+ <xs:annotation>
+ <xs:documentation>Configuration parameters to add to the Cristal VM on launch. May target either client or server processes.</xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:simpleContent>
+ <xs:extension base="xs:string">
+ <xs:attribute name="name" type="xs:string" use="required"/>
+ <xs:attribute ref="target"/>
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="Script" minOccurs="0" maxOccurs="unbounded">
+ <xs:complexType>
+ <xs:simpleContent>
+ <xs:extension base="xs:string">
+ <xs:attribute ref="event"/>
+ <xs:attribute ref="target"/>
+ <xs:attribute name="lang" type="xs:string"/>
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="Imports" minOccurs="0">
+ <xs:annotation>
+ <xs:documentation>Items to import into or verify within the Cristal server upon launch.</xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="Resource" minOccurs="0" maxOccurs="unbounded">
+ <xs:complexType>
+ <xs:simpleContent>
+ <xs:extension base="xs:string">
+ <xs:attribute name="name" type="xs:string" use="required"/>
+ <xs:attribute name="type" use="required">
+ <xs:simpleType>
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="EA"/>
+ <xs:enumeration value="CA"/>
+ <xs:enumeration value="OD"/>
+ <xs:enumeration value="SC"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="Item" minOccurs="0" maxOccurs="unbounded">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="Property" minOccurs="0" maxOccurs="unbounded">
+ <xs:complexType>
+ <xs:simpleContent>
+ <xs:extension base="xs:string">
+ <xs:attribute name="name" type="xs:string" use="required"/>
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="Outcome" minOccurs="0" maxOccurs="unbounded">
+ <xs:complexType>
+ <xs:simpleContent>
+ <xs:extension base="xs:string">
+ <xs:attribute name="schema" type="xs:string" use="required"/>
+ <xs:attribute name="version" type="xs:string" use="required"/>
+ <xs:attribute name="viewname" type="xs:string" use="required"/>
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="Dependency" minOccurs="0" maxOccurs="unbounded">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="DependencyMember" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
+ </xs:sequence>
+ <xs:attribute name="name" type="xs:string" use="required"/>
+ <xs:attribute name="isDescription" type="xs:boolean" use="optional" default="false"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ <xs:attribute name="name" type="xs:string" use="required"/>
+ <xs:attribute name="workflow" type="xs:string" use="optional"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="Agent" minOccurs="0" maxOccurs="unbounded">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="Role" type="xs:string" maxOccurs="unbounded"/>
+ </xs:sequence>
+ <xs:attribute name="name" type="xs:string" use="required"/>
+ <xs:attribute name="password" type="xs:string" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ <xs:attribute name="name" type="xs:string" use="required"/>
+ <xs:attribute name="ns" type="xs:string" use="required">
+ <xs:annotation>
+ <xs:documentation>Prefix for module components</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:complexType>
+ </xs:element>
+ <xs:attribute name="target">
+ <xs:simpleType>
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="client"/>
+ <xs:enumeration value="server"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="event">
+ <xs:simpleType>
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="startup"/>
+ <xs:enumeration value="shutdown"/>
+ <xs:enumeration value="install"/>
+ <xs:enumeration value="uninstall"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+</xs:schema>
diff --git a/src/main/resources/boot/OD/NewAgent.xsd b/src/main/resources/boot/OD/NewAgent.xsd new file mode 100644 index 0000000..773f4fc --- /dev/null +++ b/src/main/resources/boot/OD/NewAgent.xsd @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<!-- edited with XMLSpy v2005 rel. 3 U (http://www.altova.com) by Andrew Branson (CERN) -->
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
+ <xs:element name="NewAgent">
+ <xs:annotation>
+ <xs:documentation>Complete Structure for new agent</xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="Role" type="xs:string" maxOccurs="unbounded">
+ <xs:annotation>
+ <xs:documentation>The initial roles that this Agent will hold</xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ </xs:sequence>
+ <xs:attribute name="name" type="xs:string" use="required"/>
+ <xs:attribute name="password" type="xs:string" use="required"/>
+ </xs:complexType>
+ </xs:element>
+</xs:schema>
diff --git a/src/main/resources/boot/OD/NewItem.xsd b/src/main/resources/boot/OD/NewItem.xsd new file mode 100644 index 0000000..bcd5298 --- /dev/null +++ b/src/main/resources/boot/OD/NewItem.xsd @@ -0,0 +1,73 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<!-- edited with XMLSpy v2005 rel. 3 U (http://www.altova.com) by Andrew Branson (CERN) -->
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
+ <xs:element name="NewItem">
+ <xs:annotation>
+ <xs:documentation>Complete Structure for new item</xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="Property" minOccurs="0" maxOccurs="unbounded">
+ <xs:annotation>
+ <xs:documentation>New Properties for the item</xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:attribute name="name" type="xs:string" use="required"/>
+ <xs:attribute name="value" type="xs:string" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="Aggregation" minOccurs="0" maxOccurs="unbounded">
+ <xs:annotation>
+ <xs:documentation>A new collection with layout</xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="AggregationMember" maxOccurs="unbounded">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="Geometry">
+ <xs:annotation>
+ <xs:documentation>The position and size of this member slot on the layout</xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:attribute name="x" type="xs:int" use="required"/>
+ <xs:attribute name="y" type="xs:int" use="required"/>
+ <xs:attribute name="width" type="xs:int" use="required"/>
+ <xs:attribute name="height" type="xs:int" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ <xs:attribute name="slotNo" type="xs:int" use="required"/>
+ <xs:attribute name="itemDescriptionPath" type="xs:string" use="optional"/>
+ <xs:attribute name="itemPath" type="xs:string" use="optional"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ <xs:attribute name="name" type="xs:string" use="required"/>
+ <xs:attribute name="isDescription" type="xs:boolean" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="Dependency" minOccurs="0" maxOccurs="unbounded">
+ <xs:annotation>
+ <xs:documentation>A new collection without layout</xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="DependencyMember" maxOccurs="unbounded">
+ <xs:complexType>
+ <xs:attribute name="itemPath" type="xs:string" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ <xs:attribute name="name" type="xs:string" use="required"/>
+ <xs:attribute name="isDescription" type="xs:boolean" use="required"/>
+ <xs:attribute name="itemDescriptionPath" type="xs:string" use="optional"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ <xs:attribute name="name" type="xs:string" use="required"/>
+ <xs:attribute name="initialPath" type="xs:string" use="required"/>
+ <xs:attribute name="workflow" type="xs:string" use="required"/>
+ </xs:complexType>
+ </xs:element>
+</xs:schema>
diff --git a/src/main/resources/boot/OD/PredefinedStepOutcome.xsd b/src/main/resources/boot/OD/PredefinedStepOutcome.xsd new file mode 100644 index 0000000..bc0ac52 --- /dev/null +++ b/src/main/resources/boot/OD/PredefinedStepOutcome.xsd @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
+ <xs:element name="PredefinedStepOutcome">
+ <xs:annotation>
+ <xs:documentation>General holder for predefined step outcomes we can't be bothered to define a proper schema for</xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="param" type="xs:string" maxOccurs="unbounded"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+</xs:schema>
diff --git a/src/main/resources/boot/OD/PropertyDescription.xsd b/src/main/resources/boot/OD/PropertyDescription.xsd new file mode 100644 index 0000000..886092a --- /dev/null +++ b/src/main/resources/boot/OD/PropertyDescription.xsd @@ -0,0 +1,36 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
+ <xs:element name="AllProperties">
+ <xs:annotation>
+ <xs:documentation>Defines the properties that will exist in instances of this description when initially created.</xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="PropertyDescription" maxOccurs="unbounded">
+ <xs:complexType>
+ <xs:attribute name="Name" type="xs:string" use="required">
+ <xs:annotation>
+ <xs:documentation>The name of the new property.</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="IsClassIdentifier" type="xs:boolean" use="required">
+ <xs:annotation>
+ <xs:documentation>Whether this property is used to identify the class of this item. Properties flagged as 'true' here are used to check type when these items are assigned to collections.</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="DefaultValue" type="xs:string" use="optional">
+ <xs:annotation>
+ <xs:documentation>The initial value of the property when it is created.</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="IsMutable" type="xs:boolean" use="optional">
+ <xs:annotation>
+ <xs:documentation>Whether or not the property can have its value changed once it has been created.</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+</xs:schema>
diff --git a/src/main/resources/boot/OD/Schema.xsd b/src/main/resources/boot/OD/Schema.xsd new file mode 100644 index 0000000..fed1949 --- /dev/null +++ b/src/main/resources/boot/OD/Schema.xsd @@ -0,0 +1,4 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
+<!-- empty schema as the real one is too complicated for our validator -->
+</xs:schema>
\ No newline at end of file diff --git a/src/main/resources/boot/OD/Script.xsd b/src/main/resources/boot/OD/Script.xsd new file mode 100644 index 0000000..5726aca --- /dev/null +++ b/src/main/resources/boot/OD/Script.xsd @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<!-- edited with XMLSpy v2005 rel. 3 U (http://www.altova.com) by Andrew Branson (CERN) -->
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
+ <xs:element name="cristalscript">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="include" minOccurs="0" maxOccurs="unbounded">
+ <xs:complexType>
+ <xs:attribute name="name" type="xs:string" use="required"/>
+ <xs:attribute name="version" type="xs:integer" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="param" minOccurs="0" maxOccurs="unbounded">
+ <xs:complexType>
+ <xs:attribute name="name" type="xs:string" use="required"/>
+ <xs:attribute name="type" type="xs:string" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="output" minOccurs="0">
+ <xs:complexType>
+ <xs:attribute name="name" type="xs:string" use="optional"/>
+ <xs:attribute name="type" type="xs:string" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="script">
+ <xs:complexType>
+ <xs:simpleContent>
+ <xs:extension base="xs:string">
+ <xs:attribute name="language" type="xs:string" use="required"/>
+ <xs:attribute name="name" type="xs:string" use="optional"/>
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+</xs:schema>
|
