Catch exceptions
[jalview.git] / schemas / jalview.xsd
1 <?xml version="1.0" encoding="UTF-8"?>\r
2 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" \r
3                         xmlns:vamsas="www.vamsas.org" \r
4                         xmlns:jalview="www.jalview.org/colours" \r
5                         targetNamespace="www.jalview.org" \r
6                         elementFormDefault="qualified" \r
7                         attributeFormDefault="unqualified">\r
8 \r
9 <xs:import schemaLocation="vamsas.xsd" namespace="www.vamsas.org" />\r
10 <xs:import schemaLocation="jalviewUserColours.xsd" namespace="www.jalview.org/colours"/>\r
11 \r
12 <xs:complexType name="JalviewModel">\r
13 \r
14     <xs:sequence>\r
15 \r
16             <xs:element name="creationDate" type="xs:dateTime"/>\r
17             \r
18             <xs:element name="version" type="xs:string"/>\r
19 \r
20         <xs:element name="vamsasModel" type="vamsas:VAMSAS"/>\r
21 \r
22         <xs:sequence>\r
23 \r
24             <xs:element name="JSeq" maxOccurs="unbounded">\r
25 \r
26                 <xs:complexType>\r
27                     \r
28                                         <xs:attribute name="colour" type="xs:int" use="optional"/>\r
29                                         \r
30                     <xs:attribute name="start" type="xs:int" use="required"/>\r
31 \r
32                     <xs:attribute name="end" type="xs:int" use="required"/>\r
33 \r
34                     <xs:attribute name="id" type="xs:int" use="required"/>\r
35 \r
36                 </xs:complexType>\r
37 \r
38             </xs:element>\r
39 \r
40             <xs:element name="JGroup" minOccurs="0" maxOccurs="unbounded">\r
41 \r
42                 <xs:complexType>\r
43 \r
44                     <xs:sequence minOccurs="1">\r
45 \r
46                         <xs:element name="seq" maxOccurs="unbounded" type="xs:int"/>\r
47                                         \r
48                     </xs:sequence>\r
49 \r
50                         <xs:attribute name="start" type="xs:int"/>\r
51 \r
52                         <xs:attribute name="end" type="xs:int"/>\r
53 \r
54                         <xs:attribute name="name" type="xs:string"/>\r
55 \r
56                         <xs:attribute name="colour" type="xs:string"/>\r
57 \r
58                                                 <xs:attribute name="consThreshold" type="xs:int"/>\r
59 \r
60                                                 <xs:attribute name="pidThreshold" type="xs:int"/>\r
61 \r
62                         <xs:attribute name="outlineColour" type="xs:int"/>\r
63 \r
64                         <xs:attribute name="displayBoxes" type="xs:boolean"/>\r
65 \r
66                         <xs:attribute name="displayText" type="xs:boolean"/>\r
67 \r
68                         <xs:attribute name="colourText" type="xs:boolean"/>\r
69 \r
70                 </xs:complexType>\r
71 \r
72             </xs:element>\r
73 \r
74             <xs:element name="Viewport" maxOccurs="unbounded">\r
75 \r
76                 <xs:complexType>\r
77                                         <xs:attribute name="conservationSelected" type="xs:boolean"/>\r
78 \r
79                                                 <xs:attribute name="pidSelected" type="xs:boolean"/>\r
80 \r
81                         <xs:attribute name="bgColour" type="xs:string"/>\r
82 \r
83                                                 <xs:attribute name="consThreshold" type="xs:int"/>\r
84 \r
85                                                 <xs:attribute name="pidThreshold" type="xs:int"/>\r
86 \r
87                         <xs:attribute name="title" type="xs:string"/>\r
88 \r
89                         <xs:attribute name="showFullId" type="xs:boolean"/>\r
90 \r
91                         <xs:attribute name="showText" type="xs:boolean"/>\r
92 \r
93                         <xs:attribute name="showColourText" type="xs:boolean"/>\r
94 \r
95                         <xs:attribute name="showBoxes" type="xs:boolean"/>\r
96 \r
97                         <xs:attribute name="wrapAlignment" type="xs:boolean"/>\r
98 \r
99                         <xs:attribute name="renderGaps" type="xs:boolean"/>\r
100 \r
101                         <xs:attribute name="showSequenceFeatures" type="xs:boolean"/>\r
102 \r
103                                                 <xs:attribute name="showAnnotation" type="xs:boolean"/>\r
104 \r
105                         <xs:attribute name="showConservation" type="xs:boolean"/>\r
106 \r
107                         <xs:attribute name="showQuality" type="xs:boolean"/>\r
108 \r
109                                                 <xs:attribute name="showIdentity" type="xs:boolean"/>\r
110 \r
111                     <xs:attribute name="xpos" type="xs:int"/>\r
112 \r
113                     <xs:attribute name="ypos" type="xs:int"/>\r
114 \r
115                     <xs:attribute name="width" type="xs:int"/>\r
116 \r
117                     <xs:attribute name="height" type="xs:int"/>\r
118 \r
119                                     <xs:attribute name="startRes" type="xs:int"/>\r
120                                         <xs:attribute name="startSeq" type="xs:int"/>\r
121                                         <xs:attribute name="fontName" type="xs:string"/>\r
122                                         <xs:attribute name="fontSize" type="xs:int"/>\r
123                                         <xs:attribute name="fontStyle" type="xs:int"/>\r
124                                 \r
125 \r
126                 </xs:complexType>\r
127 \r
128             </xs:element>        \r
129             \r
130 \r
131                         <xs:element name="UserColours" minOccurs="0" maxOccurs="unbounded">\r
132                 <xs:complexType>  \r
133                                          <xs:sequence minOccurs="1">\r
134                                                 <xs:element name="UserColourScheme" type="jalview:JalviewUserColours"/>\r
135                                          </xs:sequence>\r
136                                          <xs:attribute name="id" type="xs:string"/>\r
137                  </xs:complexType>\r
138             </xs:element>\r
139             \r
140                                 <xs:element name="tree" minOccurs="0" maxOccurs="unbounded">\r
141                 <xs:complexType>  \r
142                                          <xs:sequence minOccurs="0" maxOccurs="1">\r
143                                             <xs:element name="title" type="xs:string"/>\r
144                                                 <xs:element name="newick" type="xs:string"/>\r
145                                          </xs:sequence>\r
146                                          <xs:attribute name="width" type="xs:int"/>\r
147                                           <xs:attribute name="height" type="xs:int"/>\r
148                                            <xs:attribute name="xpos" type="xs:int"/>\r
149                                             <xs:attribute name="ypos" type="xs:int"/>\r
150                                         <xs:attribute name="fontName" type="xs:string"/>\r
151                                         <xs:attribute name="fontSize" type="xs:int"/>\r
152                                         <xs:attribute name="fontStyle" type="xs:int"/>\r
153                                           <xs:attribute name="threshold" type="xs:float"/>\r
154                                          <xs:attribute name="showBootstrap" type="xs:boolean"/>\r
155                                          <xs:attribute name="showDistances" type="xs:boolean"/>\r
156                                          <xs:attribute name="markUnlinked" type="xs:boolean"/>\r
157                                          <xs:attribute name="fitToWindow" type="xs:boolean"/>\r
158                                          <xs:attribute name="currentTree" type="xs:boolean"/>\r
159                  </xs:complexType>\r
160             </xs:element>     \r
161 \r
162         </xs:sequence>\r
163 \r
164     </xs:sequence>\r
165 \r
166 </xs:complexType>\r
167 \r
168 \r
169 \r
170 \r
171 </xs:schema>\r