metadata.xsd 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  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="2.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" maxOccurs="1"/>
  16. <xsd:element name="value" type="xsd:string" minOccurs="0" maxOccurs="1"/>
  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" maxOccurs="1">
  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" minOccurs="1" maxOccurs="1">
  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" maxOccurs="1">
  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:element name="identifier" type="xsd:string">
  65. <xsd:annotation>
  66. <xsd:documentation>The object identifier. (LETTER | "_") (LETTER | DIGIT | "_")* </xsd:documentation>
  67. </xsd:annotation>
  68. </xsd:element>
  69. <xsd:element name="description" type="xsd:string" minOccurs="0">
  70. <xsd:annotation>
  71. <xsd:documentation>The object description. Translatable</xsd:documentation>
  72. </xsd:annotation>
  73. </xsd:element>
  74. <xsd:element name="label" type="xsd:string" minOccurs="0" maxOccurs="1">
  75. <xsd:annotation>
  76. <xsd:documentation>The object label. Translatable</xsd:documentation>
  77. </xsd:annotation>
  78. </xsd:element>
  79. <xsd:element name="comment" type="xsd:string" minOccurs="0" maxOccurs="1">
  80. <xsd:annotation>
  81. <xsd:documentation>Module developer comment. not Translatable</xsd:documentation>
  82. </xsd:annotation>
  83. </xsd:element>
  84. <xsd:element name="screenTip" type="xsd:string" minOccurs="0" maxOccurs="1">
  85. <xsd:annotation>
  86. <xsd:documentation>Defines the text that will be displayed when a user passes the cursor over an interface element. Translatable</xsd:documentation>
  87. </xsd:annotation>
  88. </xsd:element>
  89. <xsd:element name="hidden" type="xsd:boolean" default="false" minOccurs="0">
  90. <xsd:annotation>
  91. <xsd:documentation>If true, the object is hidden in Metadata Tree View.</xsd:documentation>
  92. </xsd:annotation>
  93. </xsd:element>
  94. <xsd:element name="property" type="propertyType" minOccurs="0" maxOccurs="unbounded">
  95. <xsd:annotation>
  96. <xsd:documentation>Generic property container.</xsd:documentation>
  97. </xsd:annotation>
  98. </xsd:element>
  99. </xsd:sequence>
  100. </xsd:extension>
  101. </xsd:complexContent>
  102. </xsd:complexType>
  103. <xsd:simpleType name="instanceType">
  104. <xsd:annotation>
  105. <xsd:documentation>The instance type. Copy is default instance type</xsd:documentation>
  106. </xsd:annotation>
  107. <xsd:restriction base="xsd:NMTOKEN">
  108. <xsd:enumeration value="copy">
  109. <xsd:annotation>
  110. <xsd:documentation>This instance is a copy of another instance.</xsd:documentation>
  111. </xsd:annotation>
  112. </xsd:enumeration>
  113. <xsd:enumeration value="local">
  114. <xsd:annotation>
  115. <xsd:documentation>This instance is defined locally.</xsd:documentation>
  116. </xsd:annotation>
  117. </xsd:enumeration>
  118. <xsd:enumeration value="missing">
  119. <xsd:annotation>
  120. <xsd:documentation>
  121. This instance is a reference of another instance. However, the referenced instance is missing.
  122. This value is a feedback message to client.
  123. Module that has metadata objects with missing instanceType is invalid. Saving an invalid module is not allowed.
  124. </xsd:documentation>
  125. </xsd:annotation>
  126. </xsd:enumeration>
  127. <xsd:enumeration value="reference">
  128. <xsd:annotation>
  129. <xsd:documentation>This instance is a reference of another instance.</xsd:documentation>
  130. </xsd:annotation>
  131. </xsd:enumeration>
  132. </xsd:restriction>
  133. </xsd:simpleType>
  134. </xsd:schema>