moserInfo.xsd 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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, 2016
  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">
  9. <xsd:element name="moserInfo">
  10. <xsd:annotation>
  11. <xsd:documentation>A generic container for a Titan modeling service object's metadata info</xsd:documentation>
  12. </xsd:annotation>
  13. <xsd:complexType>
  14. <xsd:sequence>
  15. <!-- Required elements - PLEASE PRESERVE -->
  16. <xsd:element name="href" type="xsd:string" minOccurs="1"
  17. maxOccurs="1">
  18. <xsd:annotation>
  19. <xsd:documentation>
  20. The href to an object, path to access this
  21. object
  22. </xsd:documentation>
  23. </xsd:annotation>
  24. </xsd:element>
  25. <xsd:element name="id" type="xsd:string" minOccurs="1"
  26. maxOccurs="1">
  27. <xsd:annotation>
  28. <xsd:documentation>
  29. The id of an object, to uniquely identify
  30. this object
  31. </xsd:documentation>
  32. </xsd:annotation>
  33. </xsd:element>
  34. <xsd:element name="state" minOccurs="1" maxOccurs="1"
  35. type="State">
  36. <xsd:annotation>
  37. <xsd:documentation>
  38. The state of an object, to identify it's
  39. current state
  40. </xsd:documentation>
  41. </xsd:annotation>
  42. </xsd:element>
  43. <!-- Optional elements -->
  44. <xsd:element name="label" type="xsd:string"
  45. minOccurs="0" maxOccurs="1">
  46. <xsd:annotation>
  47. <xsd:documentation>
  48. Optional, the pretty label for an object to
  49. be used by the UI to display to user.
  50. </xsd:documentation>
  51. </xsd:annotation>
  52. </xsd:element>
  53. <xsd:element name="lastModified" type="xsd:string"
  54. minOccurs="0" maxOccurs="1">
  55. <xsd:annotation>
  56. <xsd:documentation>
  57. Optional, the last modification time of an
  58. object to know if this object has changed.
  59. </xsd:documentation>
  60. </xsd:annotation>
  61. </xsd:element>
  62. <xsd:element name="model" type="xsd:string"
  63. minOccurs="0" maxOccurs="1">
  64. <xsd:annotation>
  65. <xsd:documentation>
  66. Optional, the string to use as modelPath in
  67. a query against this module.
  68. </xsd:documentation>
  69. </xsd:annotation>
  70. </xsd:element>
  71. <xsd:element name="startTime" type="xsd:string"
  72. maxOccurs="1" minOccurs="0">
  73. </xsd:element>
  74. <xsd:element name="endTime" type="xsd:string"
  75. maxOccurs="1" minOccurs="0">
  76. </xsd:element>
  77. </xsd:sequence>
  78. </xsd:complexType>
  79. </xsd:element>
  80. <xsd:simpleType name="StateType">
  81. <xsd:restriction base="xsd:string">
  82. <xsd:enumeration value="NOTLOADED"></xsd:enumeration>
  83. <xsd:enumeration value="PENDING"></xsd:enumeration>
  84. <xsd:enumeration value="LOADING"></xsd:enumeration>
  85. <xsd:enumeration value="LOADED"></xsd:enumeration>
  86. <xsd:enumeration value="ERROR"></xsd:enumeration>
  87. </xsd:restriction>
  88. </xsd:simpleType>
  89. <xsd:simpleType name="ActionType">
  90. <xsd:restriction base="xsd:string">
  91. <xsd:enumeration value="load"></xsd:enumeration>
  92. <xsd:enumeration value="cancel"></xsd:enumeration>
  93. <xsd:enumeration value="refresh"></xsd:enumeration>
  94. <xsd:enumeration value="clear"></xsd:enumeration>
  95. </xsd:restriction>
  96. </xsd:simpleType>
  97. <xsd:complexType name="State">
  98. <xsd:sequence>
  99. <xsd:element name="type" type="StateType"
  100. maxOccurs="1" minOccurs="1">
  101. </xsd:element>
  102. <xsd:element name="actions" type="ActionType"
  103. maxOccurs="unbounded" minOccurs="1">
  104. </xsd:element>
  105. </xsd:sequence>
  106. </xsd:complexType>
  107. </xsd:schema>