class.xsd 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311
  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. <!-- deprecated -->
  103. <xs:attribute type="xs:boolean" name="is_deprecated" use="optional" />
  104. <xs:attribute type="xs:boolean" name="is_experimental" use="optional" />
  105. <!-- /deprecated -->
  106. <xs:attribute type="xs:string" name="deprecated" use="optional" />
  107. <xs:attribute type="xs:string" name="experimental" use="optional" />
  108. <xs:attribute type="xs:string" name="keywords" use="optional" />
  109. </xs:complexType>
  110. </xs:element>
  111. </xs:sequence>
  112. </xs:complexType>
  113. </xs:element>
  114. <xs:element name="members" minOccurs="0">
  115. <xs:complexType>
  116. <xs:choice maxOccurs="unbounded" minOccurs="0">
  117. <xs:element name="member">
  118. <xs:complexType>
  119. <xs:simpleContent>
  120. <xs:extension base="xs:string">
  121. <xs:attribute type="xs:string" name="name" />
  122. <xs:attribute type="xs:string" name="type" />
  123. <xs:attribute type="xs:string" name="setter" />
  124. <xs:attribute type="xs:string" name="getter" />
  125. <xs:attribute type="xs:string" name="overrides" use="optional" />
  126. <xs:attribute type="xs:string" name="enum" use="optional" />
  127. <xs:attribute type="xs:boolean" name="is_bitfield" use="optional" />
  128. <xs:attribute type="xs:string" name="default" use="optional" />
  129. <!-- deprecated -->
  130. <xs:attribute type="xs:boolean" name="is_deprecated" use="optional" />
  131. <xs:attribute type="xs:boolean" name="is_experimental" use="optional" />
  132. <!-- /deprecated -->
  133. <xs:attribute type="xs:string" name="deprecated" use="optional" />
  134. <xs:attribute type="xs:string" name="experimental" use="optional" />
  135. <xs:attribute type="xs:string" name="keywords" use="optional" />
  136. </xs:extension>
  137. </xs:simpleContent>
  138. </xs:complexType>
  139. </xs:element>
  140. </xs:choice>
  141. </xs:complexType>
  142. </xs:element>
  143. <xs:element name="signals" minOccurs="0">
  144. <xs:complexType>
  145. <xs:sequence>
  146. <xs:element name="signal" maxOccurs="unbounded" minOccurs="0">
  147. <xs:complexType>
  148. <xs:sequence>
  149. <xs:element name="param" maxOccurs="unbounded" minOccurs="0">
  150. <xs:complexType>
  151. <xs:sequence>
  152. <xs:sequence />
  153. </xs:sequence>
  154. <xs:attribute type="xs:byte" name="index" />
  155. <xs:attribute type="xs:string" name="name" />
  156. <xs:attribute type="xs:string" name="type" />
  157. <xs:attribute type="xs:string" name="keywords" use="optional" />
  158. </xs:complexType>
  159. </xs:element>
  160. <xs:element type="xs:string" name="description" />
  161. </xs:sequence>
  162. <xs:attribute type="xs:string" name="name" use="optional" />
  163. <!-- deprecated -->
  164. <xs:attribute type="xs:boolean" name="is_deprecated" use="optional" />
  165. <xs:attribute type="xs:boolean" name="is_experimental" use="optional" />
  166. <!-- /deprecated -->
  167. <xs:attribute type="xs:string" name="deprecated" use="optional" />
  168. <xs:attribute type="xs:string" name="experimental" use="optional" />
  169. </xs:complexType>
  170. </xs:element>
  171. </xs:sequence>
  172. </xs:complexType>
  173. </xs:element>
  174. <xs:element name="constants" minOccurs="0">
  175. <xs:complexType>
  176. <xs:sequence>
  177. <xs:element name="constant" maxOccurs="unbounded" minOccurs="0">
  178. <xs:complexType>
  179. <xs:simpleContent>
  180. <xs:extension base="xs:string">
  181. <xs:attribute type="xs:string" name="name" />
  182. <xs:attribute type="xs:string" name="value" />
  183. <xs:attribute type="xs:string" name="enum" use="optional" />
  184. <xs:attribute type="xs:boolean" name="is_bitfield" use="optional" />
  185. <!-- deprecated -->
  186. <xs:attribute type="xs:boolean" name="is_deprecated" use="optional" />
  187. <xs:attribute type="xs:boolean" name="is_experimental" use="optional" />
  188. <!-- /deprecated -->
  189. <xs:attribute type="xs:string" name="deprecated" use="optional" />
  190. <xs:attribute type="xs:string" name="experimental" use="optional" />
  191. <xs:attribute type="xs:string" name="keywords" use="optional" />
  192. </xs:extension>
  193. </xs:simpleContent>
  194. </xs:complexType>
  195. </xs:element>
  196. </xs:sequence>
  197. </xs:complexType>
  198. </xs:element>
  199. <xs:element name="annotations" minOccurs="0">
  200. <xs:complexType>
  201. <xs:sequence>
  202. <xs:element name="annotation" maxOccurs="unbounded" minOccurs="0">
  203. <xs:complexType>
  204. <xs:sequence>
  205. <xs:element name="return" minOccurs="0">
  206. <xs:complexType>
  207. <xs:sequence>
  208. <xs:sequence />
  209. </xs:sequence>
  210. <xs:attribute type="xs:string" name="type" />
  211. <xs:attribute type="xs:string" name="enum" use="optional" />
  212. <xs:attribute type="xs:boolean" name="is_bitfield" use="optional" />
  213. </xs:complexType>
  214. </xs:element>
  215. <xs:element name="param" maxOccurs="unbounded" minOccurs="0">
  216. <xs:complexType>
  217. <xs:sequence>
  218. <xs:sequence />
  219. </xs:sequence>
  220. <xs:attribute type="xs:byte" name="index" />
  221. <xs:attribute type="xs:string" name="name" />
  222. <xs:attribute type="xs:string" name="type" />
  223. <xs:attribute type="xs:string" name="enum" use="optional" />
  224. <xs:attribute type="xs:boolean" name="is_bitfield" use="optional" />
  225. <xs:attribute type="xs:string" name="default" use="optional" />
  226. </xs:complexType>
  227. </xs:element>
  228. <xs:element type="xs:string" name="description" />
  229. </xs:sequence>
  230. <xs:attribute type="xs:string" name="name" use="optional" />
  231. <xs:attribute type="xs:string" name="qualifiers" use="optional" />
  232. <xs:attribute type="xs:string" name="keywords" use="optional" />
  233. </xs:complexType>
  234. </xs:element>
  235. </xs:sequence>
  236. </xs:complexType>
  237. </xs:element>
  238. <xs:element name="theme_items" minOccurs="0">
  239. <xs:complexType>
  240. <xs:sequence>
  241. <xs:element name="theme_item" maxOccurs="unbounded" minOccurs="0">
  242. <xs:complexType>
  243. <xs:simpleContent>
  244. <xs:extension base="xs:string">
  245. <xs:attribute type="xs:string" name="name" />
  246. <xs:attribute type="xs:string" name="data_type" />
  247. <xs:attribute type="xs:string" name="type" />
  248. <xs:attribute type="xs:string" name="default" use="optional" />
  249. <xs:attribute type="xs:string" name="deprecated" use="optional" />
  250. <xs:attribute type="xs:string" name="experimental" use="optional" />
  251. <xs:attribute type="xs:string" name="keywords" use="optional" />
  252. </xs:extension>
  253. </xs:simpleContent>
  254. </xs:complexType>
  255. </xs:element>
  256. </xs:sequence>
  257. </xs:complexType>
  258. </xs:element>
  259. <xs:element name="operators" minOccurs="0">
  260. <xs:complexType>
  261. <xs:sequence>
  262. <xs:element name="operator" maxOccurs="unbounded" minOccurs="0">
  263. <xs:complexType>
  264. <xs:sequence>
  265. <xs:element name="return" minOccurs="0">
  266. <xs:complexType>
  267. <xs:sequence>
  268. <xs:sequence />
  269. </xs:sequence>
  270. <xs:attribute type="xs:string" name="type" />
  271. <xs:attribute type="xs:string" name="enum" use="optional" />
  272. <xs:attribute type="xs:boolean" name="is_bitfield" use="optional" />
  273. </xs:complexType>
  274. </xs:element>
  275. <xs:element name="param" maxOccurs="unbounded" minOccurs="0">
  276. <xs:complexType>
  277. <xs:sequence>
  278. <xs:sequence />
  279. </xs:sequence>
  280. <xs:attribute type="xs:byte" name="index" />
  281. <xs:attribute type="xs:string" name="name" />
  282. <xs:attribute type="xs:string" name="type" />
  283. <xs:attribute type="xs:string" name="enum" use="optional" />
  284. <xs:attribute type="xs:boolean" name="is_bitfield" use="optional" />
  285. <xs:attribute type="xs:string" name="default" use="optional" />
  286. </xs:complexType>
  287. </xs:element>
  288. <xs:element type="xs:string" name="description" />
  289. </xs:sequence>
  290. <xs:attribute type="xs:string" name="name" use="optional" />
  291. <xs:attribute type="xs:string" name="qualifiers" use="optional" />
  292. </xs:complexType>
  293. </xs:element>
  294. </xs:sequence>
  295. </xs:complexType>
  296. </xs:element>
  297. </xs:sequence>
  298. <xs:attribute type="xs:string" name="name" />
  299. <xs:attribute type="xs:string" name="inherits" />
  300. <!-- deprecated -->
  301. <xs:attribute type="xs:float" name="version" use="optional" />
  302. <xs:attribute type="xs:boolean" name="is_deprecated" use="optional" />
  303. <xs:attribute type="xs:boolean" name="is_experimental" use="optional" />
  304. <!-- /deprecated -->
  305. <xs:attribute type="xs:string" name="deprecated" use="optional" />
  306. <xs:attribute type="xs:string" name="experimental" use="optional" />
  307. <xs:attribute type="xs:string" name="keywords" use="optional" />
  308. </xs:complexType>
  309. </xs:element>
  310. </xs:schema>