module.xsd 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. IBM Cognos Products: moser
  5. (C) Copyright IBM Corp. 2015, 2019
  6. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. -->
  8. <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified" version="7.0">
  9. <xsd:include schemaLocation="metadata.xsd"/>
  10. <xsd:include schemaLocation="physical.xsd"/>
  11. <xsd:include schemaLocation="business.xsd"/>
  12. <xsd:include schemaLocation="view.xsd"/>
  13. <xsd:include schemaLocation="resource.xsd"/>
  14. <xsd:element name="module">
  15. <xsd:annotation>
  16. <xsd:documentation>The Titan module.</xsd:documentation>
  17. </xsd:annotation>
  18. <xsd:complexType>
  19. <xsd:complexContent>
  20. <xsd:extension base="objectType">
  21. <xsd:sequence>
  22. <!--
  23. History:
  24. 3.0 : Helios R6
  25. 4.0 : Helios R7
  26. 5.0 : Helios R8+
  27. 6.0 : Endor R1
  28. 7.0 : Endor R3
  29. -->
  30. <xsd:element name="version" type="xsd:string" default="7.0">
  31. <xsd:annotation>
  32. <xsd:documentation>An explicit modeling version number, to detect modified definition or software. Note that the directory should change for major version changes, i.e. once per release.</xsd:documentation>
  33. </xsd:annotation>
  34. </xsd:element>
  35. <xsd:element name="container" type="xsd:string">
  36. <xsd:annotation>
  37. <xsd:documentation>Specifies the location where the module resides.</xsd:documentation>
  38. </xsd:annotation>
  39. </xsd:element>
  40. <xsd:sequence>
  41. <xsd:element name="use" type="xsd:string" minOccurs="0" maxOccurs="unbounded">
  42. <xsd:annotation>
  43. <xsd:documentation>Specifies the imported module. The implementation should be able to resolve macros containing session parameters. This will give the ability to dynamically load the resource modules based on the current runLocal session parameter.</xsd:documentation>
  44. </xsd:annotation>
  45. </xsd:element>
  46. </xsd:sequence>
  47. <xsd:sequence>
  48. <xsd:element name="useSpec" minOccurs="0" maxOccurs="unbounded">
  49. <xsd:annotation>
  50. <xsd:documentation>This is the replacement for the use elements that were defined in earlier versions.</xsd:documentation>
  51. </xsd:annotation>
  52. <xsd:complexType>
  53. <xsd:sequence>
  54. <xsd:element name="identifier" type="xsd:string">
  55. <xsd:annotation>
  56. <xsd:documentation>The identifier/alias to use in multi-part identifiers. (LETTER | "_") (LETTER | DIGIT | "_")* </xsd:documentation>
  57. </xsd:annotation>
  58. </xsd:element>
  59. <xsd:element name="type" type="useSpecType" minOccurs="0"/>
  60. <xsd:element name="storeID" type="xsd:string" minOccurs="0"/>
  61. <xsd:element name="searchPath" type="xsd:string" minOccurs="0"/>
  62. <xsd:element name="imports" type="xsd:string" minOccurs="0"/>
  63. <xsd:element name="ancestors" minOccurs="0" maxOccurs="unbounded">
  64. <xsd:annotation>
  65. <xsd:documentation>All ancestors of the useSpec element, ordered from the top most ancestor to the parent. This field is not intended to be persisted.</xsd:documentation>
  66. </xsd:annotation>
  67. <xsd:complexType>
  68. <xsd:sequence>
  69. <xsd:element name="defaultName" type="xsd:string" minOccurs="0">
  70. <xsd:annotation>
  71. <xsd:documentation>The localized name of the ancestor.</xsd:documentation>
  72. </xsd:annotation>
  73. </xsd:element>
  74. <xsd:element name="storeID" type="xsd:string" minOccurs="0">
  75. <xsd:annotation>
  76. <xsd:documentation>The storeId of the ancestor.</xsd:documentation>
  77. </xsd:annotation>
  78. </xsd:element>
  79. </xsd:sequence>
  80. </xsd:complexType>
  81. </xsd:element>
  82. <xsd:element name="dataCacheExpiry" type="xsd:string" minOccurs="0">
  83. <xsd:annotation>
  84. <xsd:documentation>Specifies the data cache expiration time in seconds. A value of 0 signifies a data cache will not be used. The value can also be a macro expression. If the property is missing then automatic is assumed (i.e. computed from other settings)</xsd:documentation>
  85. </xsd:annotation>
  86. </xsd:element>
  87. <xsd:element name="property" type="propertyType" minOccurs="0" maxOccurs="unbounded">
  88. <xsd:annotation>
  89. <xsd:documentation>Generic property container.</xsd:documentation>
  90. </xsd:annotation>
  91. </xsd:element>
  92. </xsd:sequence>
  93. </xsd:complexType>
  94. </xsd:element>
  95. </xsd:sequence>
  96. <xsd:element name="expressionLocale" type="xsd:language" minOccurs="0">
  97. <xsd:annotation>
  98. <xsd:documentation>Specifies the expression locale for the module.</xsd:documentation>
  99. </xsd:annotation>
  100. </xsd:element>
  101. <xsd:element name="fmModel" type="xsd:string" minOccurs="0">
  102. <xsd:annotation>
  103. <xsd:documentation>Specifies the FM modelPath to use when querying this module in a V5 Query.</xsd:documentation>
  104. </xsd:annotation>
  105. </xsd:element>
  106. <xsd:choice>
  107. <xsd:annotation>
  108. <xsd:documentation>
  109. Please note minOccurs="0" maxOccurs="unbounded" is defined on each element, not on "choice".
  110. This ensures the generated JAXB class can marshal / unmarshal the module in XML/JSON format correctly.
  111. </xsd:documentation>
  112. </xsd:annotation>
  113. <!-- physical object -->
  114. <xsd:element ref="dataSource" minOccurs="0" maxOccurs="unbounded"/>
  115. <!-- business objects -->
  116. <xsd:element ref="querySubject" minOccurs="0" maxOccurs="unbounded"/>
  117. <xsd:element ref="filter" minOccurs="0" maxOccurs="unbounded"/>
  118. <xsd:element ref="calculation" minOccurs="0" maxOccurs="unbounded"/>
  119. <xsd:element ref="relationship" minOccurs="0" maxOccurs="unbounded"/>
  120. <xsd:element ref="parameterMap" minOccurs="0" maxOccurs="unbounded"/>
  121. <!-- view objects -->
  122. <xsd:element name="metadataTreeView" type="folderType" minOccurs="0" maxOccurs="unbounded"/>
  123. <xsd:element name="metadataTreeViewFocus" type="focus" minOccurs="0"/>
  124. <!-- text resource objects -->
  125. <xsd:element name="textResource" type="textResource" minOccurs="0" maxOccurs="unbounded"/>
  126. <xsd:element ref="drillGroup" minOccurs="0" maxOccurs="unbounded">
  127. <xsd:annotation>
  128. <xsd:documentation>drill Information.</xsd:documentation>
  129. </xsd:annotation>
  130. </xsd:element>
  131. <xsd:element ref="namedSet" minOccurs="0" maxOccurs="unbounded"/>
  132. </xsd:choice>
  133. <!-- Snapshot feature was deprecated as of 11.0.4 (Helios R4) -->
  134. <xsd:element name="dataRetrievalMode" default="liveConnection" minOccurs="0">
  135. <xsd:simpleType>
  136. <xsd:restriction base="xsd:NMTOKEN">
  137. <xsd:enumeration value="liveConnection"/>
  138. <xsd:enumeration value="snapShot"/>
  139. </xsd:restriction>
  140. </xsd:simpleType>
  141. </xsd:element>
  142. </xsd:sequence>
  143. </xsd:extension>
  144. </xsd:complexContent>
  145. </xsd:complexType>
  146. </xsd:element>
  147. <xsd:simpleType name="useSpecType">
  148. <xsd:restriction base="xsd:string">
  149. <xsd:enumeration value="database"/>
  150. <xsd:enumeration value="file"/>
  151. <xsd:enumeration value="module"/>
  152. <xsd:enumeration value="dataset"/>
  153. <xsd:enumeration value="package"/>
  154. <xsd:enumeration value="wa_data_asset"/>
  155. <xsd:enumeration value="lwOLAP"/>
  156. <xsd:enumeration value="url"/>
  157. </xsd:restriction>
  158. </xsd:simpleType>
  159. </xsd:schema>