class.xsd 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  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="methods" minOccurs="0">
  24. <xs:complexType>
  25. <xs:sequence>
  26. <xs:element name="method" 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:complexType>
  37. </xs:element>
  38. <xs:element name="returns_error" maxOccurs="unbounded" minOccurs="0">
  39. <xs:complexType>
  40. <xs:sequence>
  41. <xs:sequence />
  42. </xs:sequence>
  43. <xs:attribute type="xs:byte" name="number" />
  44. </xs:complexType>
  45. </xs:element>
  46. <xs:element name="argument" maxOccurs="unbounded" minOccurs="0">
  47. <xs:complexType>
  48. <xs:sequence>
  49. <xs:sequence />
  50. </xs:sequence>
  51. <xs:attribute type="xs:byte" name="index" />
  52. <xs:attribute type="xs:string" name="name" />
  53. <xs:attribute type="xs:string" name="type" />
  54. <xs:attribute type="xs:string" name="enum" use="optional" />
  55. <xs:attribute type="xs:string" name="default" use="optional" />
  56. </xs:complexType>
  57. </xs:element>
  58. <xs:element type="xs:string" name="description" />
  59. </xs:sequence>
  60. <xs:attribute type="xs:string" name="name" use="optional" />
  61. <xs:attribute type="xs:string" name="qualifiers" use="optional" />
  62. </xs:complexType>
  63. </xs:element>
  64. </xs:sequence>
  65. </xs:complexType>
  66. </xs:element>
  67. <xs:element name="members" minOccurs="0">
  68. <xs:complexType>
  69. <xs:choice maxOccurs="unbounded" minOccurs="0">
  70. <xs:element name="member">
  71. <xs:complexType>
  72. <xs:simpleContent>
  73. <xs:extension base="xs:string">
  74. <xs:attribute type="xs:string" name="name" />
  75. <xs:attribute type="xs:string" name="type" />
  76. <xs:attribute type="xs:string" name="setter" />
  77. <xs:attribute type="xs:string" name="getter" />
  78. <xs:attribute type="xs:string" name="overrides" use="optional" />
  79. <xs:attribute type="xs:string" name="enum" use="optional" />
  80. <xs:attribute type="xs:string" name="default" use="optional" />
  81. </xs:extension>
  82. </xs:simpleContent>
  83. </xs:complexType>
  84. </xs:element>
  85. </xs:choice>
  86. </xs:complexType>
  87. </xs:element>
  88. <xs:element name="signals" minOccurs="0">
  89. <xs:complexType>
  90. <xs:sequence>
  91. <xs:element name="signal" maxOccurs="unbounded" minOccurs="0">
  92. <xs:complexType>
  93. <xs:sequence>
  94. <xs:element name="argument" maxOccurs="unbounded" minOccurs="0">
  95. <xs:complexType>
  96. <xs:sequence>
  97. <xs:sequence />
  98. </xs:sequence>
  99. <xs:attribute type="xs:byte" name="index" />
  100. <xs:attribute type="xs:string" name="name" />
  101. <xs:attribute type="xs:string" name="type" />
  102. </xs:complexType>
  103. </xs:element>
  104. <xs:element type="xs:string" name="description" />
  105. </xs:sequence>
  106. <xs:attribute type="xs:string" name="name" use="optional" />
  107. </xs:complexType>
  108. </xs:element>
  109. </xs:sequence>
  110. </xs:complexType>
  111. </xs:element>
  112. <xs:element name="constants" minOccurs="0">
  113. <xs:complexType>
  114. <xs:sequence>
  115. <xs:element name="constant" maxOccurs="unbounded" minOccurs="0">
  116. <xs:complexType>
  117. <xs:simpleContent>
  118. <xs:extension base="xs:string">
  119. <xs:attribute type="xs:string" name="name" />
  120. <xs:attribute type="xs:string" name="value" />
  121. <xs:attribute type="xs:string" name="enum" use="optional" />
  122. </xs:extension>
  123. </xs:simpleContent>
  124. </xs:complexType>
  125. </xs:element>
  126. </xs:sequence>
  127. </xs:complexType>
  128. </xs:element>
  129. <xs:element name="theme_items" minOccurs="0">
  130. <xs:complexType>
  131. <xs:sequence>
  132. <xs:element name="theme_item" maxOccurs="unbounded" minOccurs="0">
  133. <xs:complexType>
  134. <xs:simpleContent>
  135. <xs:extension base="xs:string">
  136. <xs:attribute type="xs:string" name="name" />
  137. <xs:attribute type="xs:string" name="data_type" />
  138. <xs:attribute type="xs:string" name="type" />
  139. <xs:attribute type="xs:string" name="default" use="optional" />
  140. </xs:extension>
  141. </xs:simpleContent>
  142. </xs:complexType>
  143. </xs:element>
  144. </xs:sequence>
  145. </xs:complexType>
  146. </xs:element>
  147. </xs:sequence>
  148. <xs:attribute type="xs:string" name="name" />
  149. <xs:attribute type="xs:string" name="inherits" />
  150. <xs:attribute type="xs:string" name="category" />
  151. <xs:attribute type="xs:float" name="version" />
  152. </xs:complexType>
  153. </xs:element>
  154. </xs:schema>