class.xsd 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  3. <xs:element name="class">
  4. <xs:complexType>
  5. <xs:sequence>
  6. <xs:element type="xs:string" name="brief_description" />
  7. <xs:element type="xs:string" name="description" />
  8. <xs:element name="tutorials">
  9. <xs:complexType>
  10. <xs:sequence>
  11. <xs:element name="link" maxOccurs="unbounded" minOccurs="0">
  12. <xs:complexType>
  13. <xs:simpleContent>
  14. <xs:extension base="xs:string">
  15. <xs:attribute type="xs:string" name="title" use="optional" />
  16. </xs:extension>
  17. </xs:simpleContent>
  18. </xs:complexType>
  19. </xs:element>
  20. </xs:sequence>
  21. </xs:complexType>
  22. </xs:element>
  23. <xs:element name="constructors" minOccurs="0">
  24. <xs:complexType>
  25. <xs:sequence>
  26. <xs:element name="constructor" maxOccurs="unbounded" minOccurs="0">
  27. <xs:complexType>
  28. <xs:sequence>
  29. <xs:element name="return" minOccurs="0">
  30. <xs:complexType>
  31. <xs:sequence>
  32. <xs:sequence />
  33. </xs:sequence>
  34. <xs:attribute type="xs:string" name="type" />
  35. <xs:attribute type="xs:string" name="enum" use="optional" />
  36. <xs:attribute type="xs:boolean" name="is_bitfield" use="optional" />
  37. </xs:complexType>
  38. </xs:element>
  39. <xs:element name="param" maxOccurs="unbounded" minOccurs="0">
  40. <xs:complexType>
  41. <xs:sequence>
  42. <xs:sequence />
  43. </xs:sequence>
  44. <xs:attribute type="xs:byte" name="index" />
  45. <xs:attribute type="xs:string" name="name" />
  46. <xs:attribute type="xs:string" name="type" />
  47. <xs:attribute type="xs:string" name="enum" use="optional" />
  48. <xs:attribute type="xs:boolean" name="is_bitfield" use="optional" />
  49. <xs:attribute type="xs:string" name="default" use="optional" />
  50. </xs:complexType>
  51. </xs:element>
  52. <xs:element type="xs:string" name="description" />
  53. </xs:sequence>
  54. <xs:attribute type="xs:string" name="name" use="optional" />
  55. <xs:attribute type="xs:string" name="qualifiers" use="optional" />
  56. </xs:complexType>
  57. </xs:element>
  58. </xs:sequence>
  59. </xs:complexType>
  60. </xs:element>
  61. <xs:element name="methods" minOccurs="0">
  62. <xs:complexType>
  63. <xs:sequence>
  64. <xs:element name="method" maxOccurs="unbounded" minOccurs="0">
  65. <xs:complexType>
  66. <xs:sequence>
  67. <xs:element name="return" minOccurs="0">
  68. <xs:complexType>
  69. <xs:sequence>
  70. <xs:sequence />
  71. </xs:sequence>
  72. <xs:attribute type="xs:string" name="type" />
  73. <xs:attribute type="xs:string" name="enum" use="optional" />
  74. <xs:attribute type="xs:boolean" name="is_bitfield" use="optional" />
  75. </xs:complexType>
  76. </xs:element>
  77. <xs:element name="returns_error" maxOccurs="unbounded" minOccurs="0">
  78. <xs:complexType>
  79. <xs:sequence>
  80. <xs:sequence />
  81. </xs:sequence>
  82. <xs:attribute type="xs:byte" name="number" />
  83. </xs:complexType>
  84. </xs:element>
  85. <xs:element name="param" maxOccurs="unbounded" minOccurs="0">
  86. <xs:complexType>
  87. <xs:sequence>
  88. <xs:sequence />
  89. </xs:sequence>
  90. <xs:attribute type="xs:byte" name="index" />
  91. <xs:attribute type="xs:string" name="name" />
  92. <xs:attribute type="xs:string" name="type" />
  93. <xs:attribute type="xs:string" name="enum" use="optional" />
  94. <xs:attribute type="xs:boolean" name="is_bitfield" use="optional" />
  95. <xs:attribute type="xs:string" name="default" use="optional" />
  96. </xs:complexType>
  97. </xs:element>
  98. <xs:element type="xs:string" name="description" />
  99. </xs:sequence>
  100. <xs:attribute type="xs:string" name="name" use="optional" />
  101. <xs:attribute type="xs:string" name="qualifiers" use="optional" />
  102. <xs:attribute type="xs:boolean" name="is_deprecated" use="optional" />
  103. <xs:attribute type="xs:boolean" name="is_experimental" use="optional" />
  104. </xs:complexType>
  105. </xs:element>
  106. </xs:sequence>
  107. </xs:complexType>
  108. </xs:element>
  109. <xs:element name="members" minOccurs="0">
  110. <xs:complexType>
  111. <xs:choice maxOccurs="unbounded" minOccurs="0">
  112. <xs:element name="member">
  113. <xs:complexType>
  114. <xs:simpleContent>
  115. <xs:extension base="xs:string">
  116. <xs:attribute type="xs:string" name="name" />
  117. <xs:attribute type="xs:string" name="type" />
  118. <xs:attribute type="xs:string" name="setter" />
  119. <xs:attribute type="xs:string" name="getter" />
  120. <xs:attribute type="xs:string" name="overrides" use="optional" />
  121. <xs:attribute type="xs:string" name="enum" use="optional" />
  122. <xs:attribute type="xs:boolean" name="is_bitfield" use="optional" />
  123. <xs:attribute type="xs:string" name="default" use="optional" />
  124. <xs:attribute type="xs:boolean" name="is_deprecated" use="optional" />
  125. <xs:attribute type="xs:boolean" name="is_experimental" use="optional" />
  126. </xs:extension>
  127. </xs:simpleContent>
  128. </xs:complexType>
  129. </xs:element>
  130. </xs:choice>
  131. </xs:complexType>
  132. </xs:element>
  133. <xs:element name="signals" minOccurs="0">
  134. <xs:complexType>
  135. <xs:sequence>
  136. <xs:element name="signal" maxOccurs="unbounded" minOccurs="0">
  137. <xs:complexType>
  138. <xs:sequence>
  139. <xs:element name="param" maxOccurs="unbounded" minOccurs="0">
  140. <xs:complexType>
  141. <xs:sequence>
  142. <xs:sequence />
  143. </xs:sequence>
  144. <xs:attribute type="xs:byte" name="index" />
  145. <xs:attribute type="xs:string" name="name" />
  146. <xs:attribute type="xs:string" name="type" />
  147. </xs:complexType>
  148. </xs:element>
  149. <xs:element type="xs:string" name="description" />
  150. </xs:sequence>
  151. <xs:attribute type="xs:string" name="name" use="optional" />
  152. </xs:complexType>
  153. </xs:element>
  154. </xs:sequence>
  155. </xs:complexType>
  156. </xs:element>
  157. <xs:element name="constants" minOccurs="0">
  158. <xs:complexType>
  159. <xs:sequence>
  160. <xs:element name="constant" maxOccurs="unbounded" minOccurs="0">
  161. <xs:complexType>
  162. <xs:simpleContent>
  163. <xs:extension base="xs:string">
  164. <xs:attribute type="xs:string" name="name" />
  165. <xs:attribute type="xs:string" name="value" />
  166. <xs:attribute type="xs:string" name="enum" use="optional" />
  167. <xs:attribute type="xs:boolean" name="is_bitfield" use="optional" />
  168. <xs:attribute type="xs:boolean" name="is_deprecated" use="optional" />
  169. <xs:attribute type="xs:boolean" name="is_experimental" use="optional" />
  170. </xs:extension>
  171. </xs:simpleContent>
  172. </xs:complexType>
  173. </xs:element>
  174. </xs:sequence>
  175. </xs:complexType>
  176. </xs:element>
  177. <xs:element name="annotations" minOccurs="0">
  178. <xs:complexType>
  179. <xs:sequence>
  180. <xs:element name="annotation" maxOccurs="unbounded" minOccurs="0">
  181. <xs:complexType>
  182. <xs:sequence>
  183. <xs:element name="return" minOccurs="0">
  184. <xs:complexType>
  185. <xs:sequence>
  186. <xs:sequence />
  187. </xs:sequence>
  188. <xs:attribute type="xs:string" name="type" />
  189. <xs:attribute type="xs:string" name="enum" use="optional" />
  190. <xs:attribute type="xs:boolean" name="is_bitfield" use="optional" />
  191. </xs:complexType>
  192. </xs:element>
  193. <xs:element name="param" maxOccurs="unbounded" minOccurs="0">
  194. <xs:complexType>
  195. <xs:sequence>
  196. <xs:sequence />
  197. </xs:sequence>
  198. <xs:attribute type="xs:byte" name="index" />
  199. <xs:attribute type="xs:string" name="name" />
  200. <xs:attribute type="xs:string" name="type" />
  201. <xs:attribute type="xs:string" name="enum" use="optional" />
  202. <xs:attribute type="xs:boolean" name="is_bitfield" use="optional" />
  203. <xs:attribute type="xs:string" name="default" use="optional" />
  204. </xs:complexType>
  205. </xs:element>
  206. <xs:element type="xs:string" name="description" />
  207. </xs:sequence>
  208. <xs:attribute type="xs:string" name="name" use="optional" />
  209. <xs:attribute type="xs:string" name="qualifiers" use="optional" />
  210. </xs:complexType>
  211. </xs:element>
  212. </xs:sequence>
  213. </xs:complexType>
  214. </xs:element>
  215. <xs:element name="theme_items" minOccurs="0">
  216. <xs:complexType>
  217. <xs:sequence>
  218. <xs:element name="theme_item" maxOccurs="unbounded" minOccurs="0">
  219. <xs:complexType>
  220. <xs:simpleContent>
  221. <xs:extension base="xs:string">
  222. <xs:attribute type="xs:string" name="name" />
  223. <xs:attribute type="xs:string" name="data_type" />
  224. <xs:attribute type="xs:string" name="type" />
  225. <xs:attribute type="xs:string" name="default" use="optional" />
  226. </xs:extension>
  227. </xs:simpleContent>
  228. </xs:complexType>
  229. </xs:element>
  230. </xs:sequence>
  231. </xs:complexType>
  232. </xs:element>
  233. <xs:element name="operators" minOccurs="0">
  234. <xs:complexType>
  235. <xs:sequence>
  236. <xs:element name="operator" maxOccurs="unbounded" minOccurs="0">
  237. <xs:complexType>
  238. <xs:sequence>
  239. <xs:element name="return" minOccurs="0">
  240. <xs:complexType>
  241. <xs:sequence>
  242. <xs:sequence />
  243. </xs:sequence>
  244. <xs:attribute type="xs:string" name="type" />
  245. <xs:attribute type="xs:string" name="enum" use="optional" />
  246. <xs:attribute type="xs:boolean" name="is_bitfield" use="optional" />
  247. </xs:complexType>
  248. </xs:element>
  249. <xs:element name="param" maxOccurs="unbounded" minOccurs="0">
  250. <xs:complexType>
  251. <xs:sequence>
  252. <xs:sequence />
  253. </xs:sequence>
  254. <xs:attribute type="xs:byte" name="index" />
  255. <xs:attribute type="xs:string" name="name" />
  256. <xs:attribute type="xs:string" name="type" />
  257. <xs:attribute type="xs:string" name="enum" use="optional" />
  258. <xs:attribute type="xs:boolean" name="is_bitfield" use="optional" />
  259. <xs:attribute type="xs:string" name="default" use="optional" />
  260. </xs:complexType>
  261. </xs:element>
  262. <xs:element type="xs:string" name="description" />
  263. </xs:sequence>
  264. <xs:attribute type="xs:string" name="name" use="optional" />
  265. <xs:attribute type="xs:string" name="qualifiers" use="optional" />
  266. </xs:complexType>
  267. </xs:element>
  268. </xs:sequence>
  269. </xs:complexType>
  270. </xs:element>
  271. </xs:sequence>
  272. <xs:attribute type="xs:string" name="name" />
  273. <xs:attribute type="xs:string" name="inherits" />
  274. <xs:attribute type="xs:boolean" name="is_deprecated" use="optional" />
  275. <xs:attribute type="xs:boolean" name="is_experimental" use="optional" />
  276. <xs:attribute type="xs:float" name="version" />
  277. </xs:complexType>
  278. </xs:element>
  279. </xs:schema>