relmdMetadataObjectSelections.xsd 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. IBM Cognos Products: relmd
  5. (C) Copyright IBM Corp. 2008, 2015
  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" xmlns:relmd="http://www.ibm.com/xmlns/prod/cognos/relmd/1/0" targetNamespace="http://www.ibm.com/xmlns/prod/cognos/relmd/1/0" elementFormDefault="qualified" attributeFormDefault="qualified">
  9. <xs:include schemaLocation="../relmdMetadata.xsd"/>
  10. <xs:include schemaLocation="../source/relmdMetadataSource.xsd"/>
  11. <!--Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved.-->
  12. <!--Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated).-->
  13. <!---->
  14. <xs:element name="metadataObjectSelections">
  15. <xs:annotation>
  16. <xs:documentation>Contains user selections indicating which metadata objects to be imported.</xs:documentation>
  17. </xs:annotation>
  18. <xs:complexType>
  19. <xs:choice>
  20. <xs:choice>
  21. <xs:element name="allCatalogsSelection">
  22. <xs:complexType>
  23. <xs:attributeGroup ref="relmd:allSchemaLevelChildrenSelections"/>
  24. </xs:complexType>
  25. </xs:element>
  26. <xs:element name="catalogSelection" maxOccurs="unbounded">
  27. <xs:complexType>
  28. <xs:sequence>
  29. <xs:group ref="relmd:schemaSelections"/>
  30. </xs:sequence>
  31. <xs:attributeGroup ref="relmd:referenceable"/>
  32. </xs:complexType>
  33. <xs:key name="catalogSchemaSelectionsKey">
  34. <xs:selector xpath="relmd:schemaSelection"/>
  35. <xs:field xpath="@relmd:name"/>
  36. </xs:key>
  37. </xs:element>
  38. <xs:element name="catalogSelections"/>
  39. </xs:choice>
  40. <xs:group ref="relmd:schemaSelections"/>
  41. </xs:choice>
  42. </xs:complexType>
  43. <xs:key name="schemaSelectionsKey">
  44. <xs:selector xpath="relmd:schemaSelection"/>
  45. <xs:field xpath="@relmd:name"/>
  46. </xs:key>
  47. </xs:element>
  48. <xs:group name="schemaSelections">
  49. <xs:choice>
  50. <xs:element name="allSchemasSelection">
  51. <xs:complexType>
  52. <xs:attributeGroup ref="relmd:allSchemaLevelChildrenSelections"/>
  53. </xs:complexType>
  54. </xs:element>
  55. <xs:element name="schemaSelection" maxOccurs="unbounded">
  56. <xs:complexType>
  57. <xs:sequence>
  58. <xs:group ref="relmd:objectSelections"/>
  59. </xs:sequence>
  60. <xs:attribute name="importIndexes" type="xs:boolean" use="optional" default="true"/>
  61. <xs:attribute name="importPrimaryKeys" type="xs:boolean" use="optional" default="true"/>
  62. <xs:attribute name="importForeignKeys" type="xs:boolean" use="optional" default="true"/>
  63. <xs:attribute name="importColumns" type="xs:boolean" use="optional" default="true"/>
  64. <xs:attribute name="importForeignKeysUsingGenericMethod" type="xs:boolean" use="optional" default="false"/>
  65. <xs:attributeGroup ref="relmd:referenceable"/>
  66. </xs:complexType>
  67. </xs:element>
  68. </xs:choice>
  69. </xs:group>
  70. <xs:group name="objectSelections">
  71. <xs:sequence>
  72. <xs:choice>
  73. <xs:element name="allTablesSelection">
  74. <xs:complexType>
  75. <xs:attributeGroup ref="relmd:allChildrenSelections"/>
  76. </xs:complexType>
  77. </xs:element>
  78. <xs:element name="tableSelection" minOccurs="0" maxOccurs="unbounded">
  79. <xs:complexType>
  80. <xs:sequence>
  81. <xs:element name="columnSelection" minOccurs="0" maxOccurs="unbounded">
  82. <xs:complexType>
  83. <xs:attributeGroup ref="relmd:referenceable"/>
  84. </xs:complexType>
  85. </xs:element>
  86. </xs:sequence>
  87. <xs:attributeGroup ref="relmd:referenceable"/>
  88. </xs:complexType>
  89. </xs:element>
  90. </xs:choice>
  91. <xs:choice>
  92. <xs:element name="allViewsSelection">
  93. <xs:complexType>
  94. <xs:attributeGroup ref="relmd:allChildrenSelections"/>
  95. </xs:complexType>
  96. </xs:element>
  97. <xs:element name="viewSelection" minOccurs="0" maxOccurs="unbounded">
  98. <xs:complexType>
  99. <xs:sequence>
  100. <xs:element name="columnSelection" minOccurs="0" maxOccurs="unbounded">
  101. <xs:complexType>
  102. <xs:attributeGroup ref="relmd:referenceable"/>
  103. </xs:complexType>
  104. </xs:element>
  105. </xs:sequence>
  106. <xs:attributeGroup ref="relmd:referenceable"/>
  107. </xs:complexType>
  108. </xs:element>
  109. </xs:choice>
  110. <xs:choice>
  111. <xs:element name="allSynonymsSelection">
  112. <xs:complexType>
  113. <xs:attributeGroup ref="relmd:allChildrenSelections"/>
  114. </xs:complexType>
  115. </xs:element>
  116. <xs:element name="synonymSelection" minOccurs="0" maxOccurs="unbounded">
  117. <xs:complexType>
  118. <xs:attributeGroup ref="relmd:referenceable"/>
  119. </xs:complexType>
  120. </xs:element>
  121. </xs:choice>
  122. <xs:choice>
  123. <xs:element name="allProceduresSelection">
  124. <xs:complexType>
  125. <xs:attributeGroup ref="relmd:allChildrenSelections"/>
  126. </xs:complexType>
  127. </xs:element>
  128. <xs:element name="procedureSelection" minOccurs="0" maxOccurs="unbounded">
  129. <xs:complexType>
  130. <xs:attributeGroup ref="relmd:referenceable"/>
  131. </xs:complexType>
  132. </xs:element>
  133. </xs:choice>
  134. <xs:choice>
  135. <xs:element name="allFunctionsSelection">
  136. <xs:complexType>
  137. <xs:attributeGroup ref="relmd:allChildrenSelections"/>
  138. </xs:complexType>
  139. </xs:element>
  140. <xs:element name="functionSelection" minOccurs="0" maxOccurs="unbounded">
  141. <xs:complexType>
  142. <xs:attributeGroup ref="relmd:referenceable"/>
  143. </xs:complexType>
  144. </xs:element>
  145. </xs:choice>
  146. <xs:element name="systemObjectsSelections" minOccurs="0">
  147. <xs:complexType>
  148. <xs:choice>
  149. <xs:group ref="relmd:objectSelections" minOccurs="0"/>
  150. </xs:choice>
  151. </xs:complexType>
  152. </xs:element>
  153. </xs:sequence>
  154. </xs:group>
  155. <xs:group name="metadataSourceSelections">
  156. <xs:sequence>
  157. <xs:element ref="relmd:contentStoreDatabaseConnection"/>
  158. <xs:element ref="relmd:metadataObjectSelections"/>
  159. </xs:sequence>
  160. </xs:group>
  161. <xs:attributeGroup name="allObjectsSelection">
  162. <xs:attribute name="includeAllObjects" type="xs:boolean" use="required"/>
  163. </xs:attributeGroup>
  164. <xs:attributeGroup name="allSchemaLevelChildrenSelections">
  165. <xs:attributeGroup ref="relmd:allChildrenSelections"/>
  166. <xs:attribute name="includeSystemObjects" type="xs:boolean" use="optional" default="false"/>
  167. </xs:attributeGroup>
  168. <xs:attributeGroup name="allChildrenSelections"/>
  169. <xs:attributeGroup name="selectedObject">
  170. <xs:attribute name="name" type="xs:string" use="required"/>
  171. </xs:attributeGroup>
  172. </xs:schema>