metadata.xsd 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- edited with XMLSpy v2010 rel. 3 sp1 (x64) (http://www.altova.com) by IBM SWG CANADA (IBM SWG CANADA) -->
  3. <!--
  4. Licensed Materials - Property of IBM
  5. IBM Cognos Products: moser
  6. (C) Copyright IBM Corp. 2015, 2016
  7. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  8. -->
  9. <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified" version="4.0">
  10. <xsd:complexType name="propertyType">
  11. <xsd:annotation>
  12. <xsd:documentation>generic properties.</xsd:documentation>
  13. </xsd:annotation>
  14. <xsd:sequence>
  15. <xsd:element name="name" type="xsd:string" minOccurs="0"/>
  16. <xsd:element name="value" type="xsd:string" minOccurs="0"/>
  17. </xsd:sequence>
  18. </xsd:complexType>
  19. <xsd:complexType name="baseObjectType">
  20. <xsd:annotation>
  21. <xsd:documentation>The base metadata object. used as base object class in JAVA code for tree walking.</xsd:documentation>
  22. </xsd:annotation>
  23. <xsd:sequence>
  24. <xsd:element name="idForExpression" type="xsd:string" minOccurs="0">
  25. <xsd:annotation>
  26. <xsd:documentation>fully qualified object identifier generated for expression definition.</xsd:documentation>
  27. </xsd:annotation>
  28. </xsd:element>
  29. </xsd:sequence>
  30. </xsd:complexType>
  31. <xsd:complexType name="physicalObjectType">
  32. <xsd:annotation>
  33. <xsd:documentation>The physical metadata object.</xsd:documentation>
  34. </xsd:annotation>
  35. <xsd:complexContent>
  36. <xsd:extension base="baseObjectType">
  37. <xsd:sequence>
  38. <xsd:element name="name" type="xsd:string">
  39. <xsd:annotation>
  40. <xsd:documentation>The object name as it is known by the underlying data source.</xsd:documentation>
  41. </xsd:annotation>
  42. </xsd:element>
  43. <xsd:element name="description" type="xsd:string" minOccurs="0">
  44. <xsd:annotation>
  45. <xsd:documentation>The object description.</xsd:documentation>
  46. </xsd:annotation>
  47. </xsd:element>
  48. <xsd:element name="hidden" type="xsd:boolean" default="false" minOccurs="0">
  49. <xsd:annotation>
  50. <xsd:documentation>If true, the object is hidden in database.</xsd:documentation>
  51. </xsd:annotation>
  52. </xsd:element>
  53. </xsd:sequence>
  54. </xsd:extension>
  55. </xsd:complexContent>
  56. </xsd:complexType>
  57. <xsd:complexType name="objectType">
  58. <xsd:annotation>
  59. <xsd:documentation>The base metadata object.</xsd:documentation>
  60. </xsd:annotation>
  61. <xsd:complexContent>
  62. <xsd:extension base="baseObjectType">
  63. <xsd:sequence>
  64. <xsd:annotation>
  65. <xsd:documentation>identification and description</xsd:documentation>
  66. </xsd:annotation>
  67. <xsd:element name="identifier" type="xsd:string">
  68. <xsd:annotation>
  69. <xsd:documentation>The object identifier. (LETTER | "_") (LETTER | DIGIT | "_")* </xsd:documentation>
  70. </xsd:annotation>
  71. </xsd:element>
  72. <xsd:element name="description" type="xsd:string" minOccurs="0">
  73. <xsd:annotation>
  74. <xsd:documentation>The object description. Translatable</xsd:documentation>
  75. </xsd:annotation>
  76. </xsd:element>
  77. <xsd:element name="label" type="xsd:string" minOccurs="0">
  78. <xsd:annotation>
  79. <xsd:documentation>The object label. Translatable</xsd:documentation>
  80. </xsd:annotation>
  81. </xsd:element>
  82. <xsd:element name="comment" type="xsd:string" minOccurs="0">
  83. <xsd:annotation>
  84. <xsd:documentation>Module developer comment. not Translatable</xsd:documentation>
  85. </xsd:annotation>
  86. </xsd:element>
  87. <xsd:element name="screenTip" type="xsd:string" minOccurs="0">
  88. <xsd:annotation>
  89. <xsd:documentation>Defines the text that will be displayed when a user passes the cursor over an interface element. Translatable</xsd:documentation>
  90. </xsd:annotation>
  91. </xsd:element>
  92. <xsd:element name="hidden" type="xsd:boolean" default="false" minOccurs="0">
  93. <xsd:annotation>
  94. <xsd:documentation>If true, the object is hidden in Metadata Tree View.</xsd:documentation>
  95. </xsd:annotation>
  96. </xsd:element>
  97. <xsd:element name="property" type="propertyType" minOccurs="0" maxOccurs="unbounded">
  98. <xsd:annotation>
  99. <xsd:documentation>Generic property container.</xsd:documentation>
  100. </xsd:annotation>
  101. </xsd:element>
  102. <xsd:element name="propertyOverride" type="xsd:string" minOccurs="0" maxOccurs="unbounded">
  103. <xsd:annotation>
  104. <xsd:documentation>List of properties name that this object override. Only valid if the object is not copy.</xsd:documentation>
  105. </xsd:annotation>
  106. </xsd:element>
  107. </xsd:sequence>
  108. </xsd:extension>
  109. </xsd:complexContent>
  110. </xsd:complexType>
  111. <xsd:simpleType name="instanceType">
  112. <xsd:annotation>
  113. <xsd:documentation>The instance type. Copy is default instance type</xsd:documentation>
  114. </xsd:annotation>
  115. <xsd:restriction base="xsd:NMTOKEN">
  116. <xsd:enumeration value="copy">
  117. <xsd:annotation>
  118. <xsd:documentation>This instance is a copy of another instance.</xsd:documentation>
  119. </xsd:annotation>
  120. </xsd:enumeration>
  121. <xsd:enumeration value="local">
  122. <xsd:annotation>
  123. <xsd:documentation>This instance is defined locally.</xsd:documentation>
  124. </xsd:annotation>
  125. </xsd:enumeration>
  126. <xsd:enumeration value="missing">
  127. <xsd:annotation>
  128. <xsd:documentation>
  129. This instance is a reference of another instance. However, the referenced instance is missing.
  130. This value is a feedback message to client.
  131. Module that has metadata objects with missing instanceType is invalid. Saving an invalid module is not allowed.
  132. </xsd:documentation>
  133. </xsd:annotation>
  134. </xsd:enumeration>
  135. <xsd:enumeration value="reference">
  136. <xsd:annotation>
  137. <xsd:documentation>This instance is a reference of another instance.</xsd:documentation>
  138. </xsd:annotation>
  139. </xsd:enumeration>
  140. </xsd:restriction>
  141. </xsd:simpleType>
  142. </xsd:schema>