epb_view_models 2.2.21 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (119) hide show
  1. checksums.yaml +4 -4
  2. data/api/schemas/data/orchestrate.json +4 -0
  3. data/api/schemas/xml/CEPC-S-7.0/Reports/BaseDataTypes.xsd +296 -296
  4. data/api/schemas/xml/CEPC-S-7.0/Reports/CEPC-Reports.xsd +63 -63
  5. data/api/schemas/xml/CEPC-S-7.0/Reports/Input-Data.xsd +34 -34
  6. data/api/schemas/xml/CEPC-S-7.0/Reports/Performance-Summary.xsd +120 -120
  7. data/api/schemas/xml/CEPC-S-7.0/Reports/Property.xsd +67 -67
  8. data/api/schemas/xml/CEPC-S-7.0/Reports/Report-Header.xsd +178 -178
  9. data/api/schemas/xml/CEPC-S-7.0/Reports/Reported-Data.xsd +391 -391
  10. data/api/schemas/xml/CEPC-S-7.0/Reports/UserManagement.xsd +171 -171
  11. data/api/schemas/xml/CEPC-S-7.1/Reports/BaseDataTypes.xsd +300 -300
  12. data/api/schemas/xml/CEPC-S-7.1/Reports/CEPC-Reports.xsd +66 -66
  13. data/api/schemas/xml/CEPC-S-7.1/Reports/Input-Data.xsd +34 -34
  14. data/api/schemas/xml/CEPC-S-7.1/Reports/Performance-Summary.xsd +125 -125
  15. data/api/schemas/xml/CEPC-S-7.1/Reports/Performance-Summary.xsd.bak +123 -123
  16. data/api/schemas/xml/CEPC-S-7.1/Reports/Property.xsd +67 -67
  17. data/api/schemas/xml/CEPC-S-7.1/Reports/Report-Header.xsd +178 -178
  18. data/api/schemas/xml/CEPC-S-7.1/Reports/Reported-Data.xsd +406 -406
  19. data/api/schemas/xml/CEPC-S-7.1/Reports/UserManagement.xsd +174 -174
  20. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/CommonFiles/CommonStructures.xsd +160 -0
  21. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/CommonFiles/Exceptions.xsd +72 -0
  22. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/ExternalDefinitions.xsd +147 -0
  23. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/ConditionReportChangeAccessRequest_1.xsd +44 -0
  24. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/ConditionReportChangeAccessResponse_1.xsd +47 -0
  25. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/ConditionReportChangeStatusRequest_1.xsd +44 -0
  26. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/ConditionReportChangeStatusResponse_1.xsd +47 -0
  27. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/ConditionReportCreateRequest_1.xsd +41 -0
  28. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/ConditionReportCreateResponse_1.xsd +52 -0
  29. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/ConditionReportRetrieveRequest_1.xsd +52 -0
  30. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/ConditionReportRetrieveResponse_1.xsd +87 -0
  31. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/HomeInspectorRegisterUpdateRequest_1.xsd +44 -0
  32. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/HomeInspectorRegisterUpdateResponse_1.xsd +28 -0
  33. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/HomeInspectorRegisterUpdateStatusRequest_1.xsd +30 -0
  34. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/HomeInspectorRegisterUpdateStatusResponse_1.xsd +52 -0
  35. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/PropertyUPRNValidationRequest_1.xsd +44 -0
  36. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/PropertyUPRNValidationResponse_1.xsd +46 -0
  37. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/SAP-EPC/Templates/EPC-Certificate.xsd +270 -0
  38. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/SAP-EPC/Templates/Property.xsd +68 -0
  39. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/SAP-EPC/Templates/SAP05-CollectedData.xsd +1188 -0
  40. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/SAP-EPC/Templates/SAP05-Report.xsd +195 -0
  41. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/SAP-EPC/Templates/UserManagement.xsd +215 -0
  42. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/SAP-EPC/UDT/BaseDataTypes.xsd +175 -0
  43. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/SAP-EPC/UDT/EPC-Domains.xsd +703 -0
  44. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/SAP-EPC/UDT/SAP05-Domains.xsd +3007 -0
  45. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/SAP-EPC/UDT/SharedDomains.xsd +311 -0
  46. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/EPC-Certificate.xsd +252 -0
  47. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/EPC-CollectedData.xsd +444 -0
  48. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/HCR-FeaturesExternal.xsd +283 -0
  49. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/HCR-FeaturesGrounds.xsd +222 -0
  50. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/HCR-FeaturesInternal.xsd +205 -0
  51. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/HCR-FeaturesServices.xsd +311 -0
  52. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/HCR-PropertyDetails.xsd +380 -0
  53. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/HCR-RiskAssessment.xsd +297 -0
  54. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/HIP-Reports.xsd +220 -0
  55. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/Property.xsd +73 -0
  56. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/UserManagement.xsd +257 -0
  57. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/UDT/BaseDataTypes.xsd +176 -0
  58. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/UDT/EPC-Domains.xsd +743 -0
  59. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/UDT/HCR-Domains.xsd +1773 -0
  60. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/UDT/SAP-Domains.xsd +1134 -0
  61. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/UDT/SharedDomains.xsd +660 -0
  62. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/UDT/TypeDefinitions.xsd +19 -0
  63. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/ExternalDefinitions.xml +1456 -1456
  64. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/ExternalDefinitions.xsd +236 -236
  65. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/AssessorManagement.xsd +16 -16
  66. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/EPC-Certificate.xsd +388 -388
  67. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/EPC-CollectedData.xsd +784 -784
  68. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/HCR-FeaturesExternal.xsd +283 -283
  69. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/HCR-FeaturesGrounds.xsd +222 -222
  70. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/HCR-FeaturesInternal.xsd +205 -205
  71. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/HCR-FeaturesServices.xsd +311 -311
  72. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/HCR-PropertyDetails.xsd +380 -380
  73. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/HCR-RiskAssessment.xsd +298 -298
  74. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/Property.xsd +67 -67
  75. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/SAP-Reports.xsd +201 -201
  76. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/UserManagement.xsd +259 -259
  77. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/UDT/BaseDataTypes.xsd +176 -176
  78. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/UDT/EPC-Domains.xsd +881 -881
  79. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/UDT/HCR-Domains.xsd +1779 -1779
  80. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/UDT/SAP-Domains.xsd +1650 -1650
  81. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/UDT/SharedDomains.xsd +768 -768
  82. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/UDT/TypeDefinitions.xsd +19 -19
  83. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/ExternalDefinitions.xml +1456 -1456
  84. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/ExternalDefinitions.xsd +236 -236
  85. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/Templates/AssessorManagement.xsd +208 -208
  86. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/Templates/EPC-Certificate.xsd +400 -400
  87. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/Templates/EPC-CollectedData.xsd +957 -957
  88. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/Templates/ExceptionList.xsd +18 -18
  89. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/Templates/Property.xsd +66 -66
  90. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/Templates/RdSAP-Report.xsd +180 -180
  91. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/Templates/ReportList.xsd +26 -26
  92. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/UDT/EPC-Domains.xsd +843 -843
  93. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/UDT/SAP-Domains.xsd +2541 -2541
  94. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/ExternalDefinitions.xml +1456 -1456
  95. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/ExternalDefinitions.xsd +236 -236
  96. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/Templates/AssessorManagement.xsd +213 -213
  97. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/Templates/EPC-Certificate.xsd +400 -400
  98. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/Templates/EPC-CollectedData.xsd +966 -966
  99. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/Templates/ExceptionList.xsd +18 -18
  100. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/Templates/Property.xsd +66 -66
  101. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/Templates/RdSAP-Report.xsd +175 -175
  102. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/Templates/ReportList.xsd +26 -26
  103. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/UDT/EPC-Domains.xsd +853 -853
  104. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/UDT/SAP-Domains.xsd +2551 -2551
  105. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/ExternalDefinitions.xsd +261 -261
  106. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/Templates/AssessorManagement.xsd +213 -213
  107. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/Templates/EPC-Certificate.xsd +400 -400
  108. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/Templates/EPC-CollectedData.xsd +1051 -1051
  109. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/Templates/Property.xsd +66 -66
  110. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/Templates/RdSAP-Report.xsd +176 -176
  111. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/Templates/ReportList.xsd +26 -26
  112. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/UDT/EPC-Domains.xsd +858 -858
  113. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/UDT/SAP-Domains.xsd +2684 -2684
  114. data/api/schemas/xml/RdSAP-Schema-S-21.0/RdSAP/Templates/RdSAP-Report.cs +11846 -11846
  115. data/lib/epb_view_models.rb +1 -1
  116. data/lib/view_model/factory.rb +1 -0
  117. data/lib/view_model/rd_sap_schema_s_140/common_schema.rb +550 -0
  118. data/lib/view_model/rd_sap_wrapper.rb +2 -0
  119. metadata +45 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b51e29596b157eeebfc686cd69b4376a928c5ba1942bc32765c749d2fa4cf4d9
4
- data.tar.gz: 784b5e44bade9144169fb83ff1d2b5306f2760306a7771701db0bee110fab0fb
3
+ metadata.gz: fd8197c49c85bbd4021c3ed7de879a39e384487045f458d5fabe1e2cbb277299
4
+ data.tar.gz: d5d06e72be91e7f565e6eeed197c4ba9eb8d31b37ad16dc766b6d00d31d8f977
5
5
  SHA512:
6
- metadata.gz: d1321d628ac3a2be04fbbc7662ebe31cbc4448cbafba89f19815d526d41a4d465ffe93af77cf520bcf31315aa508820113653b6b95d3c107390e86e4cd312fb1
7
- data.tar.gz: 506a4862857dc92e36d9218160c7ada2637b6d57a7f9e167d8318f97fd60a3b9c29d4f0edbcef0a63bca287eb7ea9bba366f63d5a5393863250fdcd91858d000
6
+ metadata.gz: e074c824fdc8e4b9ac2eb55a91269af924a09f6ef6088336324d272d6c7ae9dbef45a1e54134fd9ffe6638c05336d5349f2dfb0ba56c4831709c319c18ba8242
7
+ data.tar.gz: 8e63ed4516a7bd12ea77b1ff37a183836486852d38b6580aba671e0e773c6b5fc6f1b31a0dd5b7a15d796fdd77e4959751e1629086970422bf8948d76ab3bd8d
@@ -215,6 +215,10 @@
215
215
  "schema_path":
216
216
  "api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/SAP-Reports.xsd"
217
217
  },
218
+ "RdSAP-Schema-S-14.0": {
219
+ "schema_path":
220
+ "api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/ConditionReportCreateRequest_1.xsd"
221
+ },
218
222
  "CEPC-8.0.0": {
219
223
  "schema_path": "api/schemas/xml/CEPC-8.0.0/Reports/CEPC-Reports.xsd"
220
224
  },
@@ -1,296 +1,296 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!--xs:schema xmlns="http://www.est.org.uk/epc/estcrV1/DCLG-CEPC" xmlns:UDT="http://www.est.org.uk/epc/estcrV1/DCLG-CEPC" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.est.org.uk/epc/estcrV1/DCLG-CEPC" version="LIG-CEPC-7.0"-->
3
- <xs:schema xmlns="http://www.est.org.uk/epc/estcrV1/DCLG-CEPC" xmlns:CEPC="http://www.est.org.uk/epc/estcrV1/DCLG-CEPC" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.est.org.uk/epc/estcrV1/DCLG-CEPC" elementFormDefault="qualified" version="LIG-CEPC-7.0">
4
- <xs:annotation>
5
- <xs:documentation>The purpose of Base Data Type declarations is to provide a point of declaration of all the primitive datatypes that are in use within the domain and can be used to describe the contents of the Business Information Model.
6
-
7
- A significant problem with the XML Schema Definition standard is that it is designed to solve a large number of software implementation problems and so provides an equally large number of datatypes with each datatype describing a variation on a theme.
8
-
9
- For example as well as "number" we also have "short" (with a range of values corresponding to that which may be stored a 16 bit computer word), "long", "int", "integer", "decimal", "double", "byte" and quite a few other number variations. However many of these datatypes are highly-specialized computer-focused definitions that have little or no relevance to the Business stakeholders.
10
-
11
- Most likely the business stakeholders would only recognise a limited number of datatypes - such as String, Date, Time, Integer, Decimal - and some domain-specific ones - such as Money (amount + currency attribute) - and will prefer the model to be restricted to that small set.
12
-
13
- The advantages of defining a set of base data types and gathering them together in a single file are:
14
- * It allows documented controls to be placed on the primitive types that are used in any schema.
15
- * It will improve consistency of use of primitive types (e.g. consistent use of "integer" rather than "int", "long" etc.) that must be handled by applications
16
- * It will improve code reuse.
17
- * It allows standard attributes to be added to all elements whilst hiding the detail in a non business definition layer.
18
-
19
- The principle is something like the way datayping is implemented in Java (as well as other programming languages) where every primitive datatype, such as "string", is wrapped by an equivalent complex class such as "String".The Java developer could declare object attributes using the "string" primitive but this isn't regarded as good practice. By using the "pfdt:string" class instead they are protected from physical changes to the implementation of "string" and also gain an extension point where additional behaviour not supported by the primitive datatype can be defined.
20
-
21
- The declarations in this file underpin the User Defined Types, Message Infrastructure and Business Entity Template declarations. </xs:documentation>
22
- </xs:annotation>
23
- <xs:simpleType name="Percentage">
24
- <xs:restriction base="xs:decimal">
25
- <xs:maxInclusive value="100"/>
26
- <xs:minInclusive value="0"/>
27
- </xs:restriction>
28
- </xs:simpleType>
29
- <xs:element name="Money" type="Money"/>
30
- <xs:complexType name="Money">
31
- <xs:annotation>
32
- <xs:documentation>Extension of a Decimal value for use with monetary values where a currency code needs to
33
- be specified.
34
-
35
- The currency code is actually metadata about the value so, in line with good XML practice, the Currency Code is declared as an XML-Attribute of the Money datatype rather than as a separate XML-Element.
36
-
37
- The currency attribute should then include a list of valid currencies codes that are supported.</xs:documentation>
38
- </xs:annotation>
39
- <xs:simpleContent>
40
- <xs:extension base="xs:decimal">
41
- <xs:attribute name="currency" type="xs:string" use="optional"/>
42
- </xs:extension>
43
- </xs:simpleContent>
44
- </xs:complexType>
45
- <xs:simpleType name="Count">
46
- <xs:annotation>
47
- <xs:documentation>A count of the number of occurrences of something - must therefore be &gt;=0. This is the functional equivalent of the XML nonNegativeInteger datatype.</xs:documentation>
48
- </xs:annotation>
49
- <xs:restriction base="xs:integer"/>
50
- </xs:simpleType>
51
- <xs:element name="Classifier" type="Classifier"/>
52
- <xs:complexType name="Classifier">
53
- <xs:annotation>
54
- <xs:documentation>A Classifier is an extended datatype used as the basis for a data-item whose allowed values are restricted to a pre-defined set of Classifiers or Enumerated Codes.
55
-
56
- Classifier should never actually be used as the datatype for any data-item in a finished data model because a specific Enumerated Domain should be declared for defining the specific values in the domain. However it is acceptable in an incomplete model where definition of the domain has yet to be completed.</xs:documentation>
57
- </xs:annotation>
58
- <xs:all/>
59
- <xs:attribute name="pid" type="xs:string" use="required"/>
60
- </xs:complexType>
61
- <xs:element name="Reference" type="Reference"/>
62
- <xs:complexType name="Reference">
63
- <xs:annotation>
64
- <xs:documentation>The Reference Data Type is any association between two Business Entities (or their sub-
65
- components). In order to be consistent across the entire dataset all references contain the ID of the thing being referenced and the value actually assigned to the element is the 'display value'. The type of reference is derived from the underlying data model
66
-
67
- This has a shortcoming in that we can't support multi-value keys using this datatype. However
68
- I'm reluctant to extend the datatype to include the ID as a nested element because it becomes very cumbersome to use. Instead, in all likelihood, the Primary Key to any entity in a data processing application is likely to be a single-value, system-generated key so we're imposing that restriction here as well.</xs:documentation>
69
- </xs:annotation>
70
- <xs:all/>
71
- </xs:complexType>
72
- <xs:simpleType name="Measurement">
73
- <xs:annotation>
74
- <xs:documentation>A measurement of something such as a length or area. All measurements are to 2 decimal places and must be positive.</xs:documentation>
75
- </xs:annotation>
76
- <xs:restriction base="xs:decimal"/>
77
- </xs:simpleType>
78
- <xs:element name="IDString" type="IDString"/>
79
- <xs:complexType name="IDString">
80
- <xs:annotation>
81
- <xs:documentation>A string containing a unique identifier for something.
82
-
83
- The underlying assumption is that each instance of a class or entity will have a unique identifier assigned to it which can then be assigned to any referencing entity as a reference to the entity instance.
84
-
85
- This is a very similar concept to XML ID datatype but is locally defined because of the need to extend the datatype with domain specific attributes.</xs:documentation>
86
- </xs:annotation>
87
- <xs:simpleContent>
88
- <xs:extension base="xs:string"/>
89
- </xs:simpleContent>
90
- </xs:complexType>
91
- <xs:simpleType name="NumericString">
92
- <xs:annotation>
93
- <xs:documentation>A Numeric String is a string based datatype for representing strings, such as telephone numbers and IP addresses, that are limited to the numeric character-set.
94
- </xs:documentation>
95
- </xs:annotation>
96
- <xs:restriction base="xs:string">
97
- <xs:pattern value="[0-9\-\.\+]+"/>
98
- </xs:restriction>
99
- </xs:simpleType>
100
- <xs:simpleType name="Flag">
101
- <xs:annotation>
102
- <xs:documentation>The Boolean datatype is a redefinition of the XML Schema defined "Boolean". The XSD version is a logical True / False datatype whereas from a data processing perspective it is more likely to be a string based Y/N value. This could be seen as an Enumerated Domain but "Boolean" is so common that it makes more sense to be a base datatype.
103
- </xs:documentation>
104
- </xs:annotation>
105
- <xs:restriction base="xs:string">
106
- <xs:enumeration value="Y">
107
- <xs:annotation>
108
- <xs:documentation>Yes</xs:documentation>
109
- </xs:annotation>
110
- </xs:enumeration>
111
- <xs:enumeration value="N">
112
- <xs:annotation>
113
- <xs:documentation>No</xs:documentation>
114
- </xs:annotation>
115
- </xs:enumeration>
116
- </xs:restriction>
117
- </xs:simpleType>
118
- <xs:simpleType name="LanguageCode">
119
- <xs:restriction base="xs:string">
120
- <xs:enumeration value="1">
121
- <xs:annotation>
122
- <xs:documentation>English</xs:documentation>
123
- </xs:annotation>
124
- </xs:enumeration>
125
- <xs:enumeration value="2">
126
- <xs:annotation>
127
- <xs:documentation>Welsh</xs:documentation>
128
- </xs:annotation>
129
- </xs:enumeration>
130
- </xs:restriction>
131
- </xs:simpleType>
132
- <xs:element name="Sentence" type="Sentence"/>
133
- <xs:complexType name="Sentence">
134
- <xs:annotation>
135
- <xs:documentation>String value with a language code for natural-language text.</xs:documentation>
136
- </xs:annotation>
137
- <xs:simpleContent>
138
- <xs:extension base="xs:string">
139
- <xs:attribute name="language" type="LanguageCode" use="optional">
140
- <xs:annotation>
141
- <xs:documentation>Identifies the language that the sentence is recorded in.</xs:documentation>
142
- </xs:annotation>
143
- </xs:attribute>
144
- </xs:extension>
145
- </xs:simpleContent>
146
- </xs:complexType>
147
- <xs:simpleType name="ExtendedBoolean">
148
- <xs:annotation>
149
- <xs:documentation>An extended boolean type that also allows 'unknown' as a value.</xs:documentation>
150
- </xs:annotation>
151
- <xs:restriction base="xs:token">
152
- <xs:enumeration value="false"/>
153
- <xs:enumeration value="true"/>
154
- <xs:enumeration value="unknown"/>
155
- </xs:restriction>
156
- </xs:simpleType>
157
- <xs:simpleType name="YN_Flag">
158
- <xs:restriction base="xs:string">
159
- <xs:enumeration value="Yes"/>
160
- <xs:enumeration value="No"/>
161
- </xs:restriction>
162
- </xs:simpleType>
163
- <xs:simpleType name="ACI-RecommendationCode">
164
- <xs:restriction base="xs:string">
165
- <xs:enumeration value="OTHER">
166
- <xs:annotation>
167
- <xs:documentation>OTHER</xs:documentation>
168
- </xs:annotation>
169
- </xs:enumeration>
170
- </xs:restriction>
171
- </xs:simpleType>
172
- <xs:element name="Flag_With_Note" type="Flag_With_Note"/>
173
- <xs:complexType name="Flag_With_Note">
174
- <xs:sequence>
175
- <xs:element name="Note" type="xs:string" minOccurs="0"/>
176
- <xs:element name="Flag" type="YN_Flag"/>
177
- <xs:element name="Guidance" type="ACI-Recommendations-List" minOccurs="0"/>
178
- </xs:sequence>
179
- </xs:complexType>
180
- <xs:simpleType name="RRNType">
181
- <xs:annotation>
182
- <xs:documentation>The Report Reference Number is a 20-digit unique identifier assigned to each Report.
183
-
184
- It is formatted as five blocks of four digits i.e. 9999-9999-9999-9999-9999 and generated by an algorithm described in Appendix A "Report ID Generation" of Section 18 "Transformation Rules" of the Technical Standards.</xs:documentation>
185
- </xs:annotation>
186
- <xs:restriction base="xs:string">
187
- <xs:pattern value="[0-9]{4}-[0-9]{4}-[0-9]{4}-[0-9]{4}-[0-9]{4}"/>
188
- </xs:restriction>
189
- </xs:simpleType>
190
- <xs:element name="ACI-Recommendations-List" type="ACI-Recommendations-List"/>
191
- <xs:complexType name="ACI-Recommendations-List">
192
- <xs:sequence>
193
- <xs:element name="ACI-Recommendation" type="ACI-Recommendation" maxOccurs="unbounded"/>
194
- </xs:sequence>
195
- </xs:complexType>
196
- <xs:element name="ForeignKey" type="ForeignKey"/>
197
- <xs:complexType name="ForeignKey">
198
- <xs:sequence/>
199
- <xs:attribute name="EntityName" type="xs:string" use="required"/>
200
- <xs:attribute name="KeyName" type="xs:string" use="optional"/>
201
- <xs:attribute name="DomainName" type="xs:string" use="optional"/>
202
- </xs:complexType>
203
- <xs:element name="ACI-Recommendation" type="ACI-Recommendation"/>
204
- <xs:complexType name="ACI-Recommendation">
205
- <xs:sequence>
206
- <xs:element name="Seq-Number" type="xs:int"/>
207
- <xs:element name="Code" type="ACI-RecommendationCode"/>
208
- <xs:element name="Text" type="xs:string"/>
209
- </xs:sequence>
210
- </xs:complexType>
211
- <xs:element name="Note" type="Note"/>
212
- <xs:complexType name="Note">
213
- <xs:sequence>
214
- <xs:element name="Note" type="xs:string"/>
215
- <xs:element name="Guidance" type="ACI-Recommendations-List" minOccurs="0"/>
216
- </xs:sequence>
217
- </xs:complexType>
218
- <xs:element name="ACRatedOuput" type="ACRatedOuput"/>
219
- <xs:complexType name="ACRatedOuput">
220
- <xs:choice>
221
- <xs:element name="AC-kW-Rating" type="xs:positiveInteger">
222
- <xs:annotation>
223
- <xs:documentation>Rating in kW</xs:documentation>
224
- </xs:annotation>
225
- </xs:element>
226
- <xs:element name="AC-Rating-Unknown-Flag" type="xs:boolean"/>
227
- </xs:choice>
228
- </xs:complexType>
229
- <xs:simpleType name="ACEstimatedOutput">
230
- <xs:restriction base="xs:int">
231
- <xs:enumeration value="1">
232
- <xs:annotation>
233
- <xs:documentation>Below 12kW</xs:documentation>
234
- </xs:annotation>
235
- </xs:enumeration>
236
- <xs:enumeration value="2">
237
- <xs:annotation>
238
- <xs:documentation>Between 12kW and 250kW</xs:documentation>
239
- </xs:annotation>
240
- </xs:enumeration>
241
- <xs:enumeration value="3">
242
- <xs:annotation>
243
- <xs:documentation>Greater than 250kW</xs:documentation>
244
- </xs:annotation>
245
- </xs:enumeration>
246
- </xs:restriction>
247
- </xs:simpleType>
248
- <xs:simpleType name="ACInspectionCommissioned">
249
- <xs:restriction base="xs:int">
250
- <xs:enumeration value="1">
251
- <xs:annotation>
252
- <xs:documentation>Yes, inspection completed</xs:documentation>
253
- </xs:annotation>
254
- </xs:enumeration>
255
- <xs:enumeration value="2">
256
- <xs:annotation>
257
- <xs:documentation>Yes, inspection commissioned</xs:documentation>
258
- </xs:annotation>
259
- </xs:enumeration>
260
- <xs:enumeration value="3">
261
- <xs:annotation>
262
- <xs:documentation>No inspection completed or commissioned</xs:documentation>
263
- </xs:annotation>
264
- </xs:enumeration>
265
- <xs:enumeration value="4">
266
- <xs:annotation>
267
- <xs:documentation>Not relevant</xs:documentation>
268
- </xs:annotation>
269
- </xs:enumeration>
270
- <xs:enumeration value="5">
271
- <xs:annotation>
272
- <xs:documentation>Don't know</xs:documentation>
273
- </xs:annotation>
274
- </xs:enumeration>
275
- </xs:restriction>
276
- </xs:simpleType>
277
- <xs:simpleType name="DECStatusCode">
278
- <xs:restriction base="xs:int">
279
- <xs:enumeration value="0">
280
- <xs:annotation>
281
- <xs:documentation>Standard DEC</xs:documentation>
282
- </xs:annotation>
283
- </xs:enumeration>
284
- <xs:enumeration value="1">
285
- <xs:annotation>
286
- <xs:documentation>Default DEC</xs:documentation>
287
- </xs:annotation>
288
- </xs:enumeration>
289
- <xs:enumeration value="2">
290
- <xs:annotation>
291
- <xs:documentation>Asset Rating Only DEC</xs:documentation>
292
- </xs:annotation>
293
- </xs:enumeration>
294
- </xs:restriction>
295
- </xs:simpleType>
296
- </xs:schema>
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--xs:schema xmlns="http://www.est.org.uk/epc/estcrV1/DCLG-CEPC" xmlns:UDT="http://www.est.org.uk/epc/estcrV1/DCLG-CEPC" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.est.org.uk/epc/estcrV1/DCLG-CEPC" version="LIG-CEPC-7.0"-->
3
+ <xs:schema xmlns="http://www.est.org.uk/epc/estcrV1/DCLG-CEPC" xmlns:CEPC="http://www.est.org.uk/epc/estcrV1/DCLG-CEPC" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.est.org.uk/epc/estcrV1/DCLG-CEPC" elementFormDefault="qualified" version="LIG-CEPC-7.0">
4
+ <xs:annotation>
5
+ <xs:documentation>The purpose of Base Data Type declarations is to provide a point of declaration of all the primitive datatypes that are in use within the domain and can be used to describe the contents of the Business Information Model.
6
+
7
+ A significant problem with the XML Schema Definition standard is that it is designed to solve a large number of software implementation problems and so provides an equally large number of datatypes with each datatype describing a variation on a theme.
8
+
9
+ For example as well as "number" we also have "short" (with a range of values corresponding to that which may be stored a 16 bit computer word), "long", "int", "integer", "decimal", "double", "byte" and quite a few other number variations. However many of these datatypes are highly-specialized computer-focused definitions that have little or no relevance to the Business stakeholders.
10
+
11
+ Most likely the business stakeholders would only recognise a limited number of datatypes - such as String, Date, Time, Integer, Decimal - and some domain-specific ones - such as Money (amount + currency attribute) - and will prefer the model to be restricted to that small set.
12
+
13
+ The advantages of defining a set of base data types and gathering them together in a single file are:
14
+ * It allows documented controls to be placed on the primitive types that are used in any schema.
15
+ * It will improve consistency of use of primitive types (e.g. consistent use of "integer" rather than "int", "long" etc.) that must be handled by applications
16
+ * It will improve code reuse.
17
+ * It allows standard attributes to be added to all elements whilst hiding the detail in a non business definition layer.
18
+
19
+ The principle is something like the way datayping is implemented in Java (as well as other programming languages) where every primitive datatype, such as "string", is wrapped by an equivalent complex class such as "String".The Java developer could declare object attributes using the "string" primitive but this isn't regarded as good practice. By using the "pfdt:string" class instead they are protected from physical changes to the implementation of "string" and also gain an extension point where additional behaviour not supported by the primitive datatype can be defined.
20
+
21
+ The declarations in this file underpin the User Defined Types, Message Infrastructure and Business Entity Template declarations. </xs:documentation>
22
+ </xs:annotation>
23
+ <xs:simpleType name="Percentage">
24
+ <xs:restriction base="xs:decimal">
25
+ <xs:maxInclusive value="100"/>
26
+ <xs:minInclusive value="0"/>
27
+ </xs:restriction>
28
+ </xs:simpleType>
29
+ <xs:element name="Money" type="Money"/>
30
+ <xs:complexType name="Money">
31
+ <xs:annotation>
32
+ <xs:documentation>Extension of a Decimal value for use with monetary values where a currency code needs to
33
+ be specified.
34
+
35
+ The currency code is actually metadata about the value so, in line with good XML practice, the Currency Code is declared as an XML-Attribute of the Money datatype rather than as a separate XML-Element.
36
+
37
+ The currency attribute should then include a list of valid currencies codes that are supported.</xs:documentation>
38
+ </xs:annotation>
39
+ <xs:simpleContent>
40
+ <xs:extension base="xs:decimal">
41
+ <xs:attribute name="currency" type="xs:string" use="optional"/>
42
+ </xs:extension>
43
+ </xs:simpleContent>
44
+ </xs:complexType>
45
+ <xs:simpleType name="Count">
46
+ <xs:annotation>
47
+ <xs:documentation>A count of the number of occurrences of something - must therefore be &gt;=0. This is the functional equivalent of the XML nonNegativeInteger datatype.</xs:documentation>
48
+ </xs:annotation>
49
+ <xs:restriction base="xs:integer"/>
50
+ </xs:simpleType>
51
+ <xs:element name="Classifier" type="Classifier"/>
52
+ <xs:complexType name="Classifier">
53
+ <xs:annotation>
54
+ <xs:documentation>A Classifier is an extended datatype used as the basis for a data-item whose allowed values are restricted to a pre-defined set of Classifiers or Enumerated Codes.
55
+
56
+ Classifier should never actually be used as the datatype for any data-item in a finished data model because a specific Enumerated Domain should be declared for defining the specific values in the domain. However it is acceptable in an incomplete model where definition of the domain has yet to be completed.</xs:documentation>
57
+ </xs:annotation>
58
+ <xs:all/>
59
+ <xs:attribute name="pid" type="xs:string" use="required"/>
60
+ </xs:complexType>
61
+ <xs:element name="Reference" type="Reference"/>
62
+ <xs:complexType name="Reference">
63
+ <xs:annotation>
64
+ <xs:documentation>The Reference Data Type is any association between two Business Entities (or their sub-
65
+ components). In order to be consistent across the entire dataset all references contain the ID of the thing being referenced and the value actually assigned to the element is the 'display value'. The type of reference is derived from the underlying data model
66
+
67
+ This has a shortcoming in that we can't support multi-value keys using this datatype. However
68
+ I'm reluctant to extend the datatype to include the ID as a nested element because it becomes very cumbersome to use. Instead, in all likelihood, the Primary Key to any entity in a data processing application is likely to be a single-value, system-generated key so we're imposing that restriction here as well.</xs:documentation>
69
+ </xs:annotation>
70
+ <xs:all/>
71
+ </xs:complexType>
72
+ <xs:simpleType name="Measurement">
73
+ <xs:annotation>
74
+ <xs:documentation>A measurement of something such as a length or area. All measurements are to 2 decimal places and must be positive.</xs:documentation>
75
+ </xs:annotation>
76
+ <xs:restriction base="xs:decimal"/>
77
+ </xs:simpleType>
78
+ <xs:element name="IDString" type="IDString"/>
79
+ <xs:complexType name="IDString">
80
+ <xs:annotation>
81
+ <xs:documentation>A string containing a unique identifier for something.
82
+
83
+ The underlying assumption is that each instance of a class or entity will have a unique identifier assigned to it which can then be assigned to any referencing entity as a reference to the entity instance.
84
+
85
+ This is a very similar concept to XML ID datatype but is locally defined because of the need to extend the datatype with domain specific attributes.</xs:documentation>
86
+ </xs:annotation>
87
+ <xs:simpleContent>
88
+ <xs:extension base="xs:string"/>
89
+ </xs:simpleContent>
90
+ </xs:complexType>
91
+ <xs:simpleType name="NumericString">
92
+ <xs:annotation>
93
+ <xs:documentation>A Numeric String is a string based datatype for representing strings, such as telephone numbers and IP addresses, that are limited to the numeric character-set.
94
+ </xs:documentation>
95
+ </xs:annotation>
96
+ <xs:restriction base="xs:string">
97
+ <xs:pattern value="[0-9\-\.\+]+"/>
98
+ </xs:restriction>
99
+ </xs:simpleType>
100
+ <xs:simpleType name="Flag">
101
+ <xs:annotation>
102
+ <xs:documentation>The Boolean datatype is a redefinition of the XML Schema defined "Boolean". The XSD version is a logical True / False datatype whereas from a data processing perspective it is more likely to be a string based Y/N value. This could be seen as an Enumerated Domain but "Boolean" is so common that it makes more sense to be a base datatype.
103
+ </xs:documentation>
104
+ </xs:annotation>
105
+ <xs:restriction base="xs:string">
106
+ <xs:enumeration value="Y">
107
+ <xs:annotation>
108
+ <xs:documentation>Yes</xs:documentation>
109
+ </xs:annotation>
110
+ </xs:enumeration>
111
+ <xs:enumeration value="N">
112
+ <xs:annotation>
113
+ <xs:documentation>No</xs:documentation>
114
+ </xs:annotation>
115
+ </xs:enumeration>
116
+ </xs:restriction>
117
+ </xs:simpleType>
118
+ <xs:simpleType name="LanguageCode">
119
+ <xs:restriction base="xs:string">
120
+ <xs:enumeration value="1">
121
+ <xs:annotation>
122
+ <xs:documentation>English</xs:documentation>
123
+ </xs:annotation>
124
+ </xs:enumeration>
125
+ <xs:enumeration value="2">
126
+ <xs:annotation>
127
+ <xs:documentation>Welsh</xs:documentation>
128
+ </xs:annotation>
129
+ </xs:enumeration>
130
+ </xs:restriction>
131
+ </xs:simpleType>
132
+ <xs:element name="Sentence" type="Sentence"/>
133
+ <xs:complexType name="Sentence">
134
+ <xs:annotation>
135
+ <xs:documentation>String value with a language code for natural-language text.</xs:documentation>
136
+ </xs:annotation>
137
+ <xs:simpleContent>
138
+ <xs:extension base="xs:string">
139
+ <xs:attribute name="language" type="LanguageCode" use="optional">
140
+ <xs:annotation>
141
+ <xs:documentation>Identifies the language that the sentence is recorded in.</xs:documentation>
142
+ </xs:annotation>
143
+ </xs:attribute>
144
+ </xs:extension>
145
+ </xs:simpleContent>
146
+ </xs:complexType>
147
+ <xs:simpleType name="ExtendedBoolean">
148
+ <xs:annotation>
149
+ <xs:documentation>An extended boolean type that also allows 'unknown' as a value.</xs:documentation>
150
+ </xs:annotation>
151
+ <xs:restriction base="xs:token">
152
+ <xs:enumeration value="false"/>
153
+ <xs:enumeration value="true"/>
154
+ <xs:enumeration value="unknown"/>
155
+ </xs:restriction>
156
+ </xs:simpleType>
157
+ <xs:simpleType name="YN_Flag">
158
+ <xs:restriction base="xs:string">
159
+ <xs:enumeration value="Yes"/>
160
+ <xs:enumeration value="No"/>
161
+ </xs:restriction>
162
+ </xs:simpleType>
163
+ <xs:simpleType name="ACI-RecommendationCode">
164
+ <xs:restriction base="xs:string">
165
+ <xs:enumeration value="OTHER">
166
+ <xs:annotation>
167
+ <xs:documentation>OTHER</xs:documentation>
168
+ </xs:annotation>
169
+ </xs:enumeration>
170
+ </xs:restriction>
171
+ </xs:simpleType>
172
+ <xs:element name="Flag_With_Note" type="Flag_With_Note"/>
173
+ <xs:complexType name="Flag_With_Note">
174
+ <xs:sequence>
175
+ <xs:element name="Note" type="xs:string" minOccurs="0"/>
176
+ <xs:element name="Flag" type="YN_Flag"/>
177
+ <xs:element name="Guidance" type="ACI-Recommendations-List" minOccurs="0"/>
178
+ </xs:sequence>
179
+ </xs:complexType>
180
+ <xs:simpleType name="RRNType">
181
+ <xs:annotation>
182
+ <xs:documentation>The Report Reference Number is a 20-digit unique identifier assigned to each Report.
183
+
184
+ It is formatted as five blocks of four digits i.e. 9999-9999-9999-9999-9999 and generated by an algorithm described in Appendix A "Report ID Generation" of Section 18 "Transformation Rules" of the Technical Standards.</xs:documentation>
185
+ </xs:annotation>
186
+ <xs:restriction base="xs:string">
187
+ <xs:pattern value="[0-9]{4}-[0-9]{4}-[0-9]{4}-[0-9]{4}-[0-9]{4}"/>
188
+ </xs:restriction>
189
+ </xs:simpleType>
190
+ <xs:element name="ACI-Recommendations-List" type="ACI-Recommendations-List"/>
191
+ <xs:complexType name="ACI-Recommendations-List">
192
+ <xs:sequence>
193
+ <xs:element name="ACI-Recommendation" type="ACI-Recommendation" maxOccurs="unbounded"/>
194
+ </xs:sequence>
195
+ </xs:complexType>
196
+ <xs:element name="ForeignKey" type="ForeignKey"/>
197
+ <xs:complexType name="ForeignKey">
198
+ <xs:sequence/>
199
+ <xs:attribute name="EntityName" type="xs:string" use="required"/>
200
+ <xs:attribute name="KeyName" type="xs:string" use="optional"/>
201
+ <xs:attribute name="DomainName" type="xs:string" use="optional"/>
202
+ </xs:complexType>
203
+ <xs:element name="ACI-Recommendation" type="ACI-Recommendation"/>
204
+ <xs:complexType name="ACI-Recommendation">
205
+ <xs:sequence>
206
+ <xs:element name="Seq-Number" type="xs:int"/>
207
+ <xs:element name="Code" type="ACI-RecommendationCode"/>
208
+ <xs:element name="Text" type="xs:string"/>
209
+ </xs:sequence>
210
+ </xs:complexType>
211
+ <xs:element name="Note" type="Note"/>
212
+ <xs:complexType name="Note">
213
+ <xs:sequence>
214
+ <xs:element name="Note" type="xs:string"/>
215
+ <xs:element name="Guidance" type="ACI-Recommendations-List" minOccurs="0"/>
216
+ </xs:sequence>
217
+ </xs:complexType>
218
+ <xs:element name="ACRatedOuput" type="ACRatedOuput"/>
219
+ <xs:complexType name="ACRatedOuput">
220
+ <xs:choice>
221
+ <xs:element name="AC-kW-Rating" type="xs:positiveInteger">
222
+ <xs:annotation>
223
+ <xs:documentation>Rating in kW</xs:documentation>
224
+ </xs:annotation>
225
+ </xs:element>
226
+ <xs:element name="AC-Rating-Unknown-Flag" type="xs:boolean"/>
227
+ </xs:choice>
228
+ </xs:complexType>
229
+ <xs:simpleType name="ACEstimatedOutput">
230
+ <xs:restriction base="xs:int">
231
+ <xs:enumeration value="1">
232
+ <xs:annotation>
233
+ <xs:documentation>Below 12kW</xs:documentation>
234
+ </xs:annotation>
235
+ </xs:enumeration>
236
+ <xs:enumeration value="2">
237
+ <xs:annotation>
238
+ <xs:documentation>Between 12kW and 250kW</xs:documentation>
239
+ </xs:annotation>
240
+ </xs:enumeration>
241
+ <xs:enumeration value="3">
242
+ <xs:annotation>
243
+ <xs:documentation>Greater than 250kW</xs:documentation>
244
+ </xs:annotation>
245
+ </xs:enumeration>
246
+ </xs:restriction>
247
+ </xs:simpleType>
248
+ <xs:simpleType name="ACInspectionCommissioned">
249
+ <xs:restriction base="xs:int">
250
+ <xs:enumeration value="1">
251
+ <xs:annotation>
252
+ <xs:documentation>Yes, inspection completed</xs:documentation>
253
+ </xs:annotation>
254
+ </xs:enumeration>
255
+ <xs:enumeration value="2">
256
+ <xs:annotation>
257
+ <xs:documentation>Yes, inspection commissioned</xs:documentation>
258
+ </xs:annotation>
259
+ </xs:enumeration>
260
+ <xs:enumeration value="3">
261
+ <xs:annotation>
262
+ <xs:documentation>No inspection completed or commissioned</xs:documentation>
263
+ </xs:annotation>
264
+ </xs:enumeration>
265
+ <xs:enumeration value="4">
266
+ <xs:annotation>
267
+ <xs:documentation>Not relevant</xs:documentation>
268
+ </xs:annotation>
269
+ </xs:enumeration>
270
+ <xs:enumeration value="5">
271
+ <xs:annotation>
272
+ <xs:documentation>Don't know</xs:documentation>
273
+ </xs:annotation>
274
+ </xs:enumeration>
275
+ </xs:restriction>
276
+ </xs:simpleType>
277
+ <xs:simpleType name="DECStatusCode">
278
+ <xs:restriction base="xs:int">
279
+ <xs:enumeration value="0">
280
+ <xs:annotation>
281
+ <xs:documentation>Standard DEC</xs:documentation>
282
+ </xs:annotation>
283
+ </xs:enumeration>
284
+ <xs:enumeration value="1">
285
+ <xs:annotation>
286
+ <xs:documentation>Default DEC</xs:documentation>
287
+ </xs:annotation>
288
+ </xs:enumeration>
289
+ <xs:enumeration value="2">
290
+ <xs:annotation>
291
+ <xs:documentation>Asset Rating Only DEC</xs:documentation>
292
+ </xs:annotation>
293
+ </xs:enumeration>
294
+ </xs:restriction>
295
+ </xs:simpleType>
296
+ </xs:schema>