xml schemas
[jalview.git] / schemas / jalview.xsd
diff --git a/schemas/jalview.xsd b/schemas/jalview.xsd
new file mode 100755 (executable)
index 0000000..77d701c
--- /dev/null
@@ -0,0 +1,136 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" \r
+                       xmlns:vamsas="www.vamsas.org" \r
+                       xmlns:jalview="www.jalview.org" \r
+                       targetNamespace="www.jalview.org" \r
+                       elementFormDefault="qualified" \r
+                       attributeFormDefault="unqualified">\r
+\r
+<xs:import schemaLocation="vamsas.xsd" namespace="www.vamsas.org" />\r
+\r
+<xs:complexType name="JalviewModel">\r
+\r
+    <xs:sequence>\r
+\r
+           <xs:element name="creationDate" type="xs:dateTime"/>\r
+\r
+        <xs:element name="vamsasModel" type="vamsas:VAMSAS"/>\r
+\r
+        <xs:sequence>\r
+\r
+            <xs:element name="JSeq" maxOccurs="unbounded">\r
+\r
+                <xs:complexType>\r
+                    \r
+                                       <xs:attribute name="colour" type="xs:int" use="optional"/>\r
+                                       \r
+                    <xs:attribute name="start" type="xs:int" use="required"/>\r
+\r
+                    <xs:attribute name="end" type="xs:int" use="required"/>\r
+\r
+                    <xs:attribute name="id" type="xs:int" use="required"/>\r
+\r
+                </xs:complexType>\r
+\r
+            </xs:element>\r
+\r
+            <xs:element name="JGroup" maxOccurs="unbounded">\r
+\r
+                <xs:complexType>\r
+\r
+                    <xs:sequence minOccurs="1">\r
+\r
+                        <xs:element name="seq" maxOccurs="unbounded" type="xs:int"/>\r
+                                       \r
+                    </xs:sequence>\r
+\r
+                        <xs:attribute name="start" type="xs:int"/>\r
+\r
+                        <xs:attribute name="end" type="xs:int"/>\r
+\r
+                        <xs:attribute name="name" type="xs:string"/>\r
+\r
+                        <xs:attribute name="colour" type="xs:string"/>\r
+\r
+                                               <xs:attribute name="consThreshold" type="xs:int"/>\r
+\r
+                                               <xs:attribute name="pidThreshold" type="xs:int"/>\r
+\r
+                        <xs:attribute name="outlineColour" type="xs:int"/>\r
+\r
+                        <xs:attribute name="displayBoxes" type="xs:boolean"/>\r
+\r
+                        <xs:attribute name="displayText" type="xs:boolean"/>\r
+\r
+                        <xs:attribute name="colourText" type="xs:boolean"/>\r
+\r
+                </xs:complexType>\r
+\r
+            </xs:element>\r
+\r
+            <xs:element name="Viewport" maxOccurs="unbounded">\r
+\r
+                <xs:complexType>\r
+                                       <xs:attribute name="conservationSelected" type="xs:boolean"/>\r
+\r
+                                               <xs:attribute name="pidSelected" type="xs:boolean"/>\r
+\r
+                        <xs:attribute name="bgColour" type="xs:string"/>\r
+\r
+                                               <xs:attribute name="consThreshold" type="xs:int"/>\r
+\r
+                                               <xs:attribute name="pidThreshold" type="xs:int"/>\r
+\r
+                        <xs:attribute name="title" type="xs:string"/>\r
+\r
+                        <xs:attribute name="showFullId" type="xs:boolean"/>\r
+\r
+                        <xs:attribute name="showText" type="xs:boolean"/>\r
+\r
+                        <xs:attribute name="showColourText" type="xs:boolean"/>\r
+\r
+                        <xs:attribute name="showBoxes" type="xs:boolean"/>\r
+\r
+                        <xs:attribute name="wrapAlignment" type="xs:boolean"/>\r
+\r
+                        <xs:attribute name="renderGaps" type="xs:boolean"/>\r
+\r
+                        <xs:attribute name="showSequenceFeatures" type="xs:boolean"/>\r
+\r
+                                               <xs:attribute name="showAnnotation" type="xs:boolean"/>\r
+\r
+                        <xs:attribute name="showConservation" type="xs:boolean"/>\r
+\r
+                        <xs:attribute name="showQuality" type="xs:boolean"/>\r
+\r
+                                               <xs:attribute name="showIdentity" type="xs:boolean"/>\r
+\r
+                    <xs:attribute name="xpos" type="xs:int"/>\r
+\r
+                    <xs:attribute name="ypos" type="xs:int"/>\r
+\r
+                    <xs:attribute name="width" type="xs:int"/>\r
+\r
+                    <xs:attribute name="height" type="xs:int"/>\r
+\r
+                                   <xs:attribute name="startRes" type="xs:int"/>\r
+                                       <xs:attribute name="startSeq" type="xs:int"/>\r
+                                       <xs:attribute name="fontName" type="xs:string"/>\r
+                                       <xs:attribute name="fontSize" type="xs:int"/>\r
+                                       <xs:attribute name="fontStyle" type="xs:int"/>\r
+                               \r
+\r
+                </xs:complexType>\r
+\r
+            </xs:element>\r
+\r
+        </xs:sequence>\r
+\r
+    </xs:sequence>\r
+\r
+</xs:complexType>\r
+\r
+\r
+\r
+\r
+</xs:schema>\r