uipe.xsd 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. IBM Cognos Products: uipe
  5. (C) Copyright IBM Corp. 2014
  6. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. -->
  8. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
  9. <xs:element name="resources">
  10. <xs:annotation>
  11. <xs:documentation>UIPE Resources</xs:documentation>
  12. </xs:annotation>
  13. <xs:complexType>
  14. <xs:all>
  15. <xs:element ref="toolbars" minOccurs="0">
  16. <xs:annotation>
  17. <xs:documentation>Application level toolbars</xs:documentation>
  18. </xs:annotation>
  19. </xs:element>
  20. <xs:element ref="menubars" minOccurs="0">
  21. <xs:annotation>
  22. <xs:documentation>Application level menubars</xs:documentation>
  23. </xs:annotation>
  24. </xs:element>
  25. <xs:element ref="menuPopups" minOccurs="0">
  26. <xs:annotation>
  27. <xs:documentation>Application level popup menus</xs:documentation>
  28. </xs:annotation>
  29. </xs:element>
  30. <xs:element ref="toolboxes" minOccurs="0">
  31. <xs:annotation>
  32. <xs:documentation>Application level toolboxes</xs:documentation>
  33. </xs:annotation>
  34. </xs:element>
  35. <xs:element ref="listViews" minOccurs="0">
  36. <xs:annotation>
  37. <xs:documentation>Application level list views</xs:documentation>
  38. </xs:annotation>
  39. </xs:element>
  40. <xs:element ref="defaultSettings" minOccurs="0">
  41. <xs:annotation>
  42. <xs:documentation>Application level settings</xs:documentation>
  43. </xs:annotation>
  44. </xs:element>
  45. </xs:all>
  46. </xs:complexType>
  47. </xs:element>
  48. <xs:element name="menuPopups">
  49. <xs:complexType>
  50. <xs:sequence>
  51. <xs:element ref="menuPopup" minOccurs="0" maxOccurs="unbounded"/>
  52. </xs:sequence>
  53. </xs:complexType>
  54. </xs:element>
  55. <xs:element name="menuPopup">
  56. <xs:complexType>
  57. <xs:choice minOccurs="0" maxOccurs="unbounded">
  58. <xs:element ref="menuItem" minOccurs="0" maxOccurs="unbounded"/>
  59. <xs:element name="menuSeparator" minOccurs="0" maxOccurs="unbounded">
  60. <xs:annotation>
  61. <xs:documentation>Separator line between menu items</xs:documentation>
  62. </xs:annotation>
  63. </xs:element>
  64. </xs:choice>
  65. <xs:attributeGroup ref="IDAttributes"/>
  66. <xs:attributeGroup ref="LabelAttributes"/>
  67. </xs:complexType>
  68. </xs:element>
  69. <xs:element name="menuItem">
  70. <xs:annotation>
  71. <xs:documentation>An individual menu entry such as "Open" or "Save".</xs:documentation>
  72. </xs:annotation>
  73. <xs:complexType>
  74. <xs:choice minOccurs="0">
  75. <xs:element ref="menuPopup" minOccurs="0"/>
  76. </xs:choice>
  77. <xs:attributeGroup ref="IDAttributes"/>
  78. <xs:attributeGroup ref="SmallIconAttributes"/>
  79. <xs:attributeGroup ref="LabelAttributes"/>
  80. </xs:complexType>
  81. </xs:element>
  82. <xs:element name="toolboxes">
  83. <xs:complexType>
  84. <xs:sequence>
  85. <xs:element ref="listView" minOccurs="0" maxOccurs="unbounded"/>
  86. </xs:sequence>
  87. </xs:complexType>
  88. </xs:element>
  89. <xs:element name="listViews">
  90. <xs:complexType>
  91. <xs:sequence>
  92. <xs:element ref="listView" minOccurs="0" maxOccurs="unbounded"/>
  93. </xs:sequence>
  94. </xs:complexType>
  95. </xs:element>
  96. <xs:element name="listView">
  97. <xs:complexType>
  98. <xs:sequence>
  99. <xs:sequence>
  100. <xs:element name="listItem" minOccurs="0" maxOccurs="unbounded">
  101. <xs:annotation>
  102. <xs:documentation>item can be idenfitied by one of (in priority) id, value, idsLabel.</xs:documentation>
  103. </xs:annotation>
  104. <xs:complexType>
  105. <xs:attributeGroup ref="IDAttributes"/>
  106. <xs:attributeGroup ref="LabelAttributes"/>
  107. <xs:attributeGroup ref="SmallIconAttributes"/>
  108. </xs:complexType>
  109. </xs:element>
  110. </xs:sequence>
  111. </xs:sequence>
  112. <xs:attributeGroup ref="IDAttributes"/>
  113. <xs:attributeGroup ref="LabelAttributes"/>
  114. </xs:complexType>
  115. </xs:element>
  116. <xs:element name="toolbars">
  117. <xs:complexType>
  118. <xs:sequence minOccurs="0">
  119. <xs:element name="toolbar" maxOccurs="unbounded">
  120. <xs:complexType>
  121. <xs:choice maxOccurs="unbounded">
  122. <xs:element name="toolbarButton" minOccurs="0" maxOccurs="unbounded">
  123. <xs:annotation>
  124. <xs:documentation>A regular toolbar button.</xs:documentation>
  125. </xs:annotation>
  126. <xs:complexType>
  127. <xs:choice minOccurs="0">
  128. <xs:element ref="menuPopup"/>
  129. </xs:choice>
  130. <xs:attributeGroup ref="IDAttributes"/>
  131. <xs:attributeGroup ref="SmallIconAttributes"/>
  132. <xs:attributeGroup ref="LabelAttributes"/>
  133. </xs:complexType>
  134. </xs:element>
  135. <xs:element name="toolbarSeparator" minOccurs="0" maxOccurs="unbounded">
  136. <xs:annotation>
  137. <xs:documentation>Separator line between toolbar buttons</xs:documentation>
  138. </xs:annotation>
  139. </xs:element>
  140. <xs:element name="toolbarComboBox" minOccurs="0" maxOccurs="unbounded">
  141. <xs:annotation>
  142. <xs:documentation>A comboBox that appears on a toolbar.</xs:documentation>
  143. </xs:annotation>
  144. <xs:complexType>
  145. <xs:attributeGroup ref="IDAttributes"/>
  146. <xs:attributeGroup ref="LabelAttributes"/>
  147. </xs:complexType>
  148. </xs:element>
  149. </xs:choice>
  150. <xs:attributeGroup ref="IDAttributes"/>
  151. <xs:attributeGroup ref="LabelAttributes"/>
  152. </xs:complexType>
  153. </xs:element>
  154. </xs:sequence>
  155. </xs:complexType>
  156. </xs:element>
  157. <xs:element name="menubars">
  158. <xs:annotation>
  159. <xs:documentation>menu bars</xs:documentation>
  160. </xs:annotation>
  161. <xs:complexType>
  162. <xs:sequence minOccurs="0">
  163. <xs:element name="menubar" maxOccurs="unbounded">
  164. <xs:annotation>
  165. <xs:documentation>A menubar is a row of menus that usually appear at the top of the application window.</xs:documentation>
  166. </xs:annotation>
  167. <xs:complexType>
  168. <xs:sequence maxOccurs="unbounded">
  169. <xs:element name="menu" minOccurs="0" maxOccurs="unbounded">
  170. <xs:annotation>
  171. <xs:documentation>A typically application menubar contains the menus "File", "Edit", "Help", ...</xs:documentation>
  172. </xs:annotation>
  173. <xs:complexType>
  174. <xs:choice minOccurs="0">
  175. <xs:element ref="menuPopup" minOccurs="0"/>
  176. </xs:choice>
  177. <xs:attributeGroup ref="IDAttributes"/>
  178. <xs:attributeGroup ref="LabelAttributes"/>
  179. </xs:complexType>
  180. </xs:element>
  181. </xs:sequence>
  182. <xs:attributeGroup ref="IDAttributes"/>
  183. <xs:attributeGroup ref="LabelAttributes"/>
  184. </xs:complexType>
  185. </xs:element>
  186. </xs:sequence>
  187. </xs:complexType>
  188. </xs:element>
  189. <xs:element name="defaultSettings">
  190. <xs:complexType>
  191. <xs:sequence minOccurs="0" maxOccurs="unbounded">
  192. <xs:element name="settingsGroup">
  193. <xs:annotation>
  194. <xs:documentation>The setting groups.</xs:documentation>
  195. </xs:annotation>
  196. <xs:complexType>
  197. <xs:sequence>
  198. <xs:element ref="setting" maxOccurs="unbounded"/>
  199. </xs:sequence>
  200. <xs:attribute name="name" type="xs:string" use="required"/>
  201. <xs:attributeGroup ref="LabelAttributes"/>
  202. </xs:complexType>
  203. </xs:element>
  204. </xs:sequence>
  205. </xs:complexType>
  206. </xs:element>
  207. <xs:element name="setting">
  208. <xs:complexType>
  209. <xs:choice minOccurs="0">
  210. <xs:element ref="enumValues"/>
  211. </xs:choice>
  212. <xs:attribute name="name" type="xs:string" use="required"/>
  213. <xs:attributeGroup ref="LabelAttributes"/>
  214. <xs:attribute name="dataType" use="required">
  215. <xs:annotation>
  216. <xs:documentation>The data type of the setting value.</xs:documentation>
  217. </xs:annotation>
  218. <xs:simpleType>
  219. <xs:restriction base="xs:string">
  220. <xs:enumeration value="enum"/>
  221. <xs:enumeration value="string"/>
  222. <xs:enumeration value="boolean"/>
  223. <xs:enumeration value="integer"/>
  224. </xs:restriction>
  225. </xs:simpleType>
  226. </xs:attribute>
  227. </xs:complexType>
  228. </xs:element>
  229. <xs:element name="enumValues">
  230. <xs:annotation>
  231. <xs:documentation>The enum values if dataType is "enum".</xs:documentation>
  232. </xs:annotation>
  233. <xs:complexType>
  234. <xs:sequence>
  235. <xs:element name="enumValue" maxOccurs="unbounded">
  236. <xs:annotation>
  237. <xs:documentation>The enum value.</xs:documentation>
  238. </xs:annotation>
  239. <xs:complexType>
  240. <xs:attribute name="value" use="required"/>
  241. <xs:attributeGroup ref="LabelAttributes"/>
  242. </xs:complexType>
  243. </xs:element>
  244. </xs:sequence>
  245. </xs:complexType>
  246. </xs:element>
  247. <xs:attributeGroup name="IDAttributes">
  248. <xs:attribute name="id" type="xs:ID" use="required">
  249. <xs:annotation>
  250. <xs:documentation>The id uniquely identifies this element. This value must be unique within the entire document.</xs:documentation>
  251. </xs:annotation>
  252. </xs:attribute>
  253. </xs:attributeGroup>
  254. <xs:attributeGroup name="LabelAttributes">
  255. <xs:attribute name="idsLabel" type="xs:string" use="required">
  256. <xs:annotation>
  257. <xs:documentation>The label displayed in the UI. The value is a string resource ID.</xs:documentation>
  258. </xs:annotation>
  259. </xs:attribute>
  260. <xs:attribute name="idsDescription" type="xs:string" use="optional">
  261. <xs:annotation>
  262. <xs:documentation>The description displayed in the UI. The value is a string resource ID.</xs:documentation>
  263. </xs:annotation>
  264. </xs:attribute>
  265. </xs:attributeGroup>
  266. <xs:attributeGroup name="SmallIconAttributes">
  267. <xs:attribute name="smallIcon" type="xs:string" use="optional">
  268. <xs:annotation>
  269. <xs:documentation>The 16x16 image file name.</xs:documentation>
  270. </xs:annotation>
  271. </xs:attribute>
  272. </xs:attributeGroup>
  273. </xs:schema>