@itwin/ecschema-metadata 4.0.0-dev.22 → 4.0.0-dev.23

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 (140) hide show
  1. package/lib/cjs/Constants.d.ts +23 -23
  2. package/lib/cjs/Constants.js +33 -33
  3. package/lib/cjs/Constants.js.map +1 -1
  4. package/lib/cjs/Context.d.ts +139 -139
  5. package/lib/cjs/Context.js +204 -204
  6. package/lib/cjs/DelayedPromise.d.ts +88 -88
  7. package/lib/cjs/DelayedPromise.js +91 -91
  8. package/lib/cjs/DelayedPromise.js.map +1 -1
  9. package/lib/cjs/Deserialization/AbstractParser.d.ts +45 -45
  10. package/lib/cjs/Deserialization/AbstractParser.js +11 -11
  11. package/lib/cjs/Deserialization/AbstractParser.js.map +1 -1
  12. package/lib/cjs/Deserialization/Helper.d.ts +251 -251
  13. package/lib/cjs/Deserialization/Helper.js +843 -843
  14. package/lib/cjs/Deserialization/Helper.js.map +1 -1
  15. package/lib/cjs/Deserialization/JsonParser.d.ts +165 -165
  16. package/lib/cjs/Deserialization/JsonParser.js +680 -680
  17. package/lib/cjs/Deserialization/JsonParser.js.map +1 -1
  18. package/lib/cjs/Deserialization/JsonProps.d.ts +282 -282
  19. package/lib/cjs/Deserialization/JsonProps.js +9 -9
  20. package/lib/cjs/Deserialization/JsonProps.js.map +1 -1
  21. package/lib/cjs/Deserialization/SchemaGraphUtil.d.ts +34 -34
  22. package/lib/cjs/Deserialization/SchemaGraphUtil.js +77 -77
  23. package/lib/cjs/Deserialization/SchemaGraphUtil.js.map +1 -1
  24. package/lib/cjs/Deserialization/XmlParser.d.ts +85 -85
  25. package/lib/cjs/Deserialization/XmlParser.js +973 -973
  26. package/lib/cjs/Deserialization/XmlParser.js.map +1 -1
  27. package/lib/cjs/Deserialization/XmlSerializationUtils.d.ts +54 -54
  28. package/lib/cjs/Deserialization/XmlSerializationUtils.js +174 -174
  29. package/lib/cjs/Deserialization/XmlSerializationUtils.js.map +1 -1
  30. package/lib/cjs/ECName.d.ts +30 -30
  31. package/lib/cjs/ECName.js +85 -85
  32. package/lib/cjs/ECName.js.map +1 -1
  33. package/lib/cjs/ECObjects.d.ts +162 -162
  34. package/lib/cjs/ECObjects.js +453 -453
  35. package/lib/cjs/ECObjects.js.map +1 -1
  36. package/lib/cjs/Exception.d.ts +43 -43
  37. package/lib/cjs/Exception.js +84 -84
  38. package/lib/cjs/Exception.js.map +1 -1
  39. package/lib/cjs/Interfaces.d.ts +66 -66
  40. package/lib/cjs/Interfaces.js +9 -9
  41. package/lib/cjs/Interfaces.js.map +1 -1
  42. package/lib/cjs/Metadata/Class.d.ts +243 -243
  43. package/lib/cjs/Metadata/Class.js +558 -558
  44. package/lib/cjs/Metadata/Class.js.map +1 -1
  45. package/lib/cjs/Metadata/Constant.d.ts +64 -64
  46. package/lib/cjs/Metadata/Constant.js +123 -123
  47. package/lib/cjs/Metadata/Constant.js.map +1 -1
  48. package/lib/cjs/Metadata/CustomAttribute.d.ts +23 -23
  49. package/lib/cjs/Metadata/CustomAttribute.js +27 -27
  50. package/lib/cjs/Metadata/CustomAttribute.js.map +1 -1
  51. package/lib/cjs/Metadata/CustomAttributeClass.d.ts +39 -39
  52. package/lib/cjs/Metadata/CustomAttributeClass.js +68 -68
  53. package/lib/cjs/Metadata/CustomAttributeClass.js.map +1 -1
  54. package/lib/cjs/Metadata/EntityClass.d.ts +77 -77
  55. package/lib/cjs/Metadata/EntityClass.js +230 -230
  56. package/lib/cjs/Metadata/EntityClass.js.map +1 -1
  57. package/lib/cjs/Metadata/Enumeration.d.ts +86 -86
  58. package/lib/cjs/Metadata/Enumeration.js +159 -159
  59. package/lib/cjs/Metadata/Enumeration.js.map +1 -1
  60. package/lib/cjs/Metadata/Format.d.ts +98 -98
  61. package/lib/cjs/Metadata/Format.js +242 -242
  62. package/lib/cjs/Metadata/Format.js.map +1 -1
  63. package/lib/cjs/Metadata/InvertedUnit.d.ts +49 -49
  64. package/lib/cjs/Metadata/InvertedUnit.js +97 -97
  65. package/lib/cjs/Metadata/InvertedUnit.js.map +1 -1
  66. package/lib/cjs/Metadata/KindOfQuantity.d.ts +65 -65
  67. package/lib/cjs/Metadata/KindOfQuantity.js +225 -225
  68. package/lib/cjs/Metadata/KindOfQuantity.js.map +1 -1
  69. package/lib/cjs/Metadata/Mixin.d.ts +54 -54
  70. package/lib/cjs/Metadata/Mixin.js +113 -113
  71. package/lib/cjs/Metadata/Mixin.js.map +1 -1
  72. package/lib/cjs/Metadata/OverrideFormat.d.ts +55 -55
  73. package/lib/cjs/Metadata/OverrideFormat.js +88 -88
  74. package/lib/cjs/Metadata/OverrideFormat.js.map +1 -1
  75. package/lib/cjs/Metadata/Phenomenon.d.ts +33 -33
  76. package/lib/cjs/Metadata/Phenomenon.js +59 -59
  77. package/lib/cjs/Metadata/Phenomenon.js.map +1 -1
  78. package/lib/cjs/Metadata/Property.d.ts +197 -197
  79. package/lib/cjs/Metadata/Property.js +491 -491
  80. package/lib/cjs/Metadata/Property.js.map +1 -1
  81. package/lib/cjs/Metadata/PropertyCategory.d.ts +39 -39
  82. package/lib/cjs/Metadata/PropertyCategory.js +61 -61
  83. package/lib/cjs/Metadata/PropertyCategory.js.map +1 -1
  84. package/lib/cjs/Metadata/RelationshipClass.d.ts +152 -152
  85. package/lib/cjs/Metadata/RelationshipClass.js +349 -349
  86. package/lib/cjs/Metadata/RelationshipClass.js.map +1 -1
  87. package/lib/cjs/Metadata/Schema.d.ts +291 -291
  88. package/lib/cjs/Metadata/Schema.js +520 -520
  89. package/lib/cjs/Metadata/Schema.js.map +1 -1
  90. package/lib/cjs/Metadata/SchemaItem.d.ts +61 -61
  91. package/lib/cjs/Metadata/SchemaItem.js +136 -136
  92. package/lib/cjs/Metadata/SchemaItem.js.map +1 -1
  93. package/lib/cjs/Metadata/Unit.d.ts +76 -76
  94. package/lib/cjs/Metadata/Unit.js +162 -162
  95. package/lib/cjs/Metadata/UnitSystem.d.ts +20 -20
  96. package/lib/cjs/Metadata/UnitSystem.js +29 -29
  97. package/lib/cjs/Metadata/UnitSystem.js.map +1 -1
  98. package/lib/cjs/PropertyTypes.d.ts +49 -49
  99. package/lib/cjs/PropertyTypes.js +91 -91
  100. package/lib/cjs/PropertyTypes.js.map +1 -1
  101. package/lib/cjs/SchemaJsonLocater.d.ts +34 -34
  102. package/lib/cjs/SchemaJsonLocater.js +42 -42
  103. package/lib/cjs/SchemaJsonLocater.js.map +1 -1
  104. package/lib/cjs/SchemaKey.d.ts +110 -110
  105. package/lib/cjs/SchemaKey.js +219 -219
  106. package/lib/cjs/SchemaKey.js.map +1 -1
  107. package/lib/cjs/SchemaLoader.d.ts +23 -23
  108. package/lib/cjs/SchemaLoader.js +47 -47
  109. package/lib/cjs/SchemaLoader.js.map +1 -1
  110. package/lib/cjs/SchemaPartVisitorDelegate.d.ts +274 -274
  111. package/lib/cjs/SchemaPartVisitorDelegate.js +212 -212
  112. package/lib/cjs/SchemaPartVisitorDelegate.js.map +1 -1
  113. package/lib/cjs/UnitConversion/Graph.d.ts +34 -34
  114. package/lib/cjs/UnitConversion/Graph.js +83 -83
  115. package/lib/cjs/UnitConversion/Graph.js.map +1 -1
  116. package/lib/cjs/UnitConversion/Parser.d.ts +8 -8
  117. package/lib/cjs/UnitConversion/Parser.js +42 -42
  118. package/lib/cjs/UnitConversion/Parser.js.map +1 -1
  119. package/lib/cjs/UnitConversion/UnitConversion.d.ts +45 -45
  120. package/lib/cjs/UnitConversion/UnitConversion.js +77 -77
  121. package/lib/cjs/UnitConversion/UnitConversion.js.map +1 -1
  122. package/lib/cjs/UnitConversion/UnitConverter.d.ts +39 -39
  123. package/lib/cjs/UnitConversion/UnitConverter.js +116 -116
  124. package/lib/cjs/UnitConversion/UnitConverter.js.map +1 -1
  125. package/lib/cjs/UnitConversion/UnitTree.d.ts +43 -43
  126. package/lib/cjs/UnitConversion/UnitTree.js +169 -169
  127. package/lib/cjs/UnitConversion/UnitTree.js.map +1 -1
  128. package/lib/cjs/UnitProvider/SchemaUnitProvider.d.ts +77 -77
  129. package/lib/cjs/UnitProvider/SchemaUnitProvider.js +236 -236
  130. package/lib/cjs/UnitProvider/SchemaUnitProvider.js.map +1 -1
  131. package/lib/cjs/Validation/SchemaWalker.d.ts +23 -23
  132. package/lib/cjs/Validation/SchemaWalker.js +53 -53
  133. package/lib/cjs/Validation/SchemaWalker.js.map +1 -1
  134. package/lib/cjs/ecschema-metadata.d.ts +51 -51
  135. package/lib/cjs/ecschema-metadata.js +96 -96
  136. package/lib/cjs/ecschema-metadata.js.map +1 -1
  137. package/lib/cjs/utils/SchemaGraph.d.ts +25 -25
  138. package/lib/cjs/utils/SchemaGraph.js +65 -65
  139. package/lib/cjs/utils/SchemaGraph.js.map +1 -1
  140. package/package.json +7 -7
@@ -1,252 +1,252 @@
1
- import { SchemaContext } from "../Context";
2
- import { Schema } from "../Metadata/Schema";
3
- import { ISchemaPartVisitor } from "../SchemaPartVisitorDelegate";
4
- import { AbstractParserConstructor } from "./AbstractParser";
5
- /**
6
- * This class properly handles the order the deserialization of ECSchemas and SchemaItems from serialized formats.
7
- * For example, when deserializing an ECClass most times all base class should be de-serialized before the given class.
8
- * @internal
9
- */
10
- export declare class SchemaReadHelper<T = unknown> {
11
- private _context;
12
- private _visitorHelper?;
13
- private _parserType;
14
- private _parser;
15
- private _schema?;
16
- constructor(parserType: AbstractParserConstructor<T>, context?: SchemaContext, visitor?: ISchemaPartVisitor);
17
- /**
18
- * Populates the given Schema from a serialized representation.
19
- * @param schema The Schema to populate
20
- * @param rawSchema The serialized data to use to populate the Schema.
21
- */
22
- readSchema<U extends Schema>(schema: U, rawSchema: T): Promise<U>;
23
- /**
24
- * Populates the given Schema from a serialized representation.
25
- * @param schema The Schema to populate
26
- * @param rawSchema The serialized data to use to populate the Schema.
27
- */
28
- readSchemaSync<U extends Schema>(schema: U, rawSchema: T): U;
29
- /**
30
- * Ensures that the schema references can be located and adds them to the schema.
31
- * @param ref The object to read the SchemaReference's props from.
32
- */
33
- private loadSchemaReference;
34
- /**
35
- * Ensures that the schema references can be located and adds them to the schema.
36
- * @param ref The object to read the SchemaReference's props from.
37
- */
38
- private loadSchemaReferenceSync;
39
- /**
40
- * Validates schema references against multiple EC rules.
41
- * @param schema The schema to validate.
42
- */
43
- private validateSchemaReferences;
44
- /**
45
- * Given the schema item object, the anticipated type and the name a schema item is created and loaded into the schema provided.
46
- * @param schema The Schema the SchemaItem to.
47
- * @param name The name of the schema item to be loaded.
48
- * @param itemType The SchemaItemType of the item to load.
49
- * @param schemaItemObject The Object to populate the SchemaItem with.
50
- */
51
- private loadSchemaItem;
52
- /**
53
- * Given the schema item object, the anticipated type and the name a schema item is created and loaded into the schema provided.
54
- * @param schema The Schema the SchemaItem to.
55
- * @param name The name of the schema item to be loaded.
56
- * @param itemType The SchemaItemType of the item to load.
57
- * @param schemaItemObject The Object to populate the SchemaItem with.
58
- */
59
- private loadSchemaItemSync;
60
- /**
61
- * Given the full (Schema.ItemName) or qualified (alias:ItemName) item name, returns
62
- * a tuple of strings in the format ["SchemaName", "ItemName"]. The schema name may be
63
- * empty if the item comes from the schema being parsed.
64
- * @param fullOrQualifiedName The full or qualified name of the schema item.
65
- * @param schema The schema that will be used to lookup the schema name by alias, if necessary.
66
- */
67
- private static resolveSchemaAndItemName;
68
- /**
69
- * Finds the a SchemaItem matching the name first by checking the schema that is being deserialized. If it does
70
- * not exist within the schema, the SchemaContext will be searched.
71
- * @param name The full (Schema.ItemName) or qualified (alias:ItemName) name of the SchemaItem to search for.
72
- * @param skipVisitor Used to break Mixin -appliesTo-> Entity -extends-> Mixin cycle.
73
- * @param loadCallBack Only called if the SchemaItem had to be loaded.
74
- * @return The SchemaItem if it had to be loaded, otherwise undefined.
75
- */
76
- private findSchemaItem;
77
- /**
78
- * Finds the a SchemaItem matching the name first by checking the schema that is being deserialized. If it does
79
- * not exist within the schema, the SchemaContext will be searched.
80
- * @param name The full (Schema.ItemName) or qualified (alias:ItemName) name of the SchemaItem to search for.
81
- * @param skipVisitor Used to break Mixin -appliesTo-> Entity -extends-> Mixin cycle.
82
- * @param loadCallBack Only called if the SchemaItem had to be loaded.
83
- * @return The SchemaItem if it had to be loaded, otherwise undefined.
84
- */
85
- private findSchemaItemSync;
86
- /**
87
- * Load dependencies on phenomenon and unitSystem for a Unit object and load the Unit from its serialized format.
88
- * @param unit The Unit object that we are loading dependencies for and "deserializing into".
89
- * @param rawUnit The serialized unit data
90
- */
91
- private loadUnit;
92
- /**
93
- * Load dependencies on phenomenon and unitSystem for a Unit object and load the Unit from its serialized format.
94
- * @param unit The Unit object that we are loading dependencies for and "deserializing into".
95
- * @param rawUnit The serialized unit data
96
- */
97
- private loadUnitSync;
98
- /**
99
- * Load the persistence unit and presentation unit dependencies for a KindOfQuantity object and load the KoQ from its serialized format.
100
- * @param koq The KindOfQuantity object that we are loading dependencies for and "deserializing into".
101
- * @param rawKoQ The serialized kind of quantity data
102
- */
103
- private loadKindOfQuantity;
104
- /**
105
- * Load the persistence unit and presentation unit dependencies for a KindOfQuantity object and load the KoQ from its serialized format.
106
- * @param koq The KindOfQuantity object that we are loading dependencies for and "deserializing into".
107
- * @param rawKoQ The serialized kind of quantity data
108
- */
109
- private loadKindOfQuantitySync;
110
- /**
111
- * Load the phenomenon dependency for a Constant object and load the Constant from its serialized format.
112
- * @param constant The Constant object that we are loading the phenomenon dependency for
113
- * @param rawConstant The serialized constant data
114
- */
115
- private loadConstant;
116
- /**
117
- * Load the phenomenon dependency for a Constant object and load the Constant from its serialized format.
118
- * @param constant The Constant object that we are loading dependencies for and "deserializing into".
119
- * @param rawConstant The serialized constant data
120
- */
121
- private loadConstantSync;
122
- /**
123
- * Load the unit system and invertsUnit dependencies for an Inverted Unit object and load the Inverted Unit from its serialized format.
124
- * @param invertedUnit The InvertedUnit object that we are loading dependencies for and "deserializing into".
125
- * @param rawInvertedUnit The serialized inverted unit data.
126
- */
127
- private loadInvertedUnit;
128
- /**
129
- * Load the unit system and invertsUnit dependencies for an Inverted Unit object and load the Inverted Unit from its serialized format.
130
- * @param invertedUnit The InvertedUnit object that we are loading dependencies for and "deserializing into".
131
- * @param rawInvertedUnit The serialized inverted unit data.
132
- */
133
- private loadInvertedUnitSync;
134
- /**
135
- * Load the unit dependencies for a Format object and load the Format from its serialized format.
136
- * @param format The Format object that we are loading dependencies for and "deserializing into".
137
- * @param rawFormat The serialized format data.
138
- */
139
- private loadFormat;
140
- /**
141
- * Load the unit dependencies for a Format object and load the Format from its serialized format.
142
- * @param format The Format object that we are loading dependencies for and "deserializing into".
143
- * @param rawFormat The serialized format data.
144
- */
145
- private loadFormatSync;
146
- /**
147
- * Load the base class and property type dependencies for an ECClass object and load the ECClass (and its properties) from its serialized format.
148
- * @param classObj The ECClass object that we are loading dependencies for and "deserializing into".
149
- * @param classProps The parsed class props object.
150
- * @param rawClass The serialized class data.
151
- */
152
- private loadClass;
153
- /**
154
- * Load the base class and property type dependencies for an ECClass object and load the ECClass (and its properties) from its serialized format.
155
- * @param classObj The ECClass object that we are loading dependencies for and "deserializing into".
156
- * @param classProps The parsed class props object.
157
- * @param rawClass The serialized class data.
158
- */
159
- private loadClassSync;
160
- /**
161
- * Load the mixin, base class, and property type dependencies for an EntityClass object and load the EntityClass (and properties) from its serialized format.
162
- * @param entity The EntityClass that we are loading dependencies for and "deserializing into".
163
- * @param rawEntity The serialized entity class data.
164
- */
165
- private loadEntityClass;
166
- /**
167
- * Load the mixin, base class, and property type dependencies for an EntityClass object and load the EntityClass (and properties) from its serialized format.
168
- * @param entity The EntityClass that we are loading dependencies for and "deserializing into".
169
- * @param rawEntity The serialized entity class data.
170
- */
171
- private loadEntityClassSync;
172
- /**
173
- * Load the appliesTo class, base class, and property type dependencies for a Mixin object and load the Mixin (and properties) from its serialized format.
174
- * @param mixin The Mixin that we are loading dependencies for and "deserializing into".
175
- * @param rawMixin The serialized mixin data.
176
- */
177
- private loadMixin;
178
- /**
179
- * Load the appliesTo class, base class, and property type dependencies for a Mixin object and load the Mixin (and properties) from its serialized format.
180
- * @param mixin The Mixin that we are loading dependencies for and "deserializing into".
181
- * @param rawMixin The serialized mixin data.
182
- */
183
- private loadMixinSync;
184
- /**
185
- * Load the relationship constraint, base class, and property type dependencies for a RelationshipClass object and load the RelationshipClass (and properties) from its serialized format.
186
- * @param rel The RelationshipClass that we are loading dependencies for and "deserializing into".
187
- * @param rawRel The serialized relationship class data.
188
- */
189
- private loadRelationshipClass;
190
- /**
191
- * Load the relationship constraint, base class, and property type dependencies for a RelationshipClass object and load the RelationshipClass (and properties) from its serialized format.
192
- * @param rel The RelationshipClass that we are loading dependencies for and "deserializing into".
193
- * @param rawRel The serialized relationship class data.
194
- */
195
- private loadRelationshipClassSync;
196
- /**
197
- * Load the abstract constraint and constraint class dependencies for a RelationshipConstraint object and load the RelationshipConstraint from its parsed props.
198
- * @param relConstraint The RelationshipConstraint that we are loading dependencies for and "deserializing into".
199
- * @param props The parsed relationship constraint props.
200
- */
201
- private loadRelationshipConstraint;
202
- /**
203
- * Load the abstract constraint and constraint class dependencies for a RelationshipConstraint object and load the RelationshipConstraint from its parsed props.
204
- * @param relConstraint The RelationshipConstraint that we are loading dependencies for and "deserializing into".
205
- * @param props The parsed relationship constraint props.
206
- */
207
- private loadRelationshipConstraintSync;
208
- /**
209
- * Load the type dependencies for a serialized property, then creates and deserialized the Property object in the given ECClass.
210
- * @param classObj The ECClass that the Property should be created in.
211
- * @param propName The name of the Property.
212
- * @param propType The (serialized string) kind of property to create.
213
- * @param rawProperty The serialized property data.
214
- */
215
- private loadPropertyTypes;
216
- /**
217
- * Load the type dependencies for a serialized property, then creates and deserialized the Property object in the given ECClass.
218
- * @param classObj The ECClass that the Property should be created in.
219
- * @param propName The name of the Property.
220
- * @param propType The (serialized string) kind of property to create.
221
- * @param rawProperty The serialized property data.
222
- */
223
- private loadPropertyTypesSync;
224
- /**
225
- * Load the propertyCategory, kindOfQuantity, and customAttribute dependencies for a Property object and load the Property from its parsed props.
226
- * @param propertyObj The Property that we are loading dependencies for and "deserializing into".
227
- * @param props The parsed property props.
228
- * @param rawProperty The serialized property data.
229
- */
230
- private loadProperty;
231
- /**
232
- * Load the propertyCategory, kindOfQuantity, and customAttribute dependencies for a Property object and load the Property from its parsed props.
233
- * @param propertyObj The Property that we are loading dependencies for and "deserializing into".
234
- * @param props The parsed property props.
235
- * @param rawProperty The serialized property data.
236
- */
237
- private loadPropertySync;
238
- /**
239
- * Load the customAttribute class dependencies for a set of CustomAttribute objects and add
240
- * them to a given custom attribute container.
241
- * @param container The CustomAttributeContainer that each CustomAttribute will be added to.
242
- * @param customAttributes An iterable set of parsed CustomAttribute objects.
243
- */
244
- private loadCustomAttributes;
245
- /**
246
- * Load the customAttribute class dependencies for a set of CustomAttribute objects and add them to a given custom attribute container.
247
- * @param container The CustomAttributeContainer that each CustomAttribute will be added to.
248
- * @param customAttributes An iterable set of parsed CustomAttribute objects.
249
- */
250
- private loadCustomAttributesSync;
251
- }
1
+ import { SchemaContext } from "../Context";
2
+ import { Schema } from "../Metadata/Schema";
3
+ import { ISchemaPartVisitor } from "../SchemaPartVisitorDelegate";
4
+ import { AbstractParserConstructor } from "./AbstractParser";
5
+ /**
6
+ * This class properly handles the order the deserialization of ECSchemas and SchemaItems from serialized formats.
7
+ * For example, when deserializing an ECClass most times all base class should be de-serialized before the given class.
8
+ * @internal
9
+ */
10
+ export declare class SchemaReadHelper<T = unknown> {
11
+ private _context;
12
+ private _visitorHelper?;
13
+ private _parserType;
14
+ private _parser;
15
+ private _schema?;
16
+ constructor(parserType: AbstractParserConstructor<T>, context?: SchemaContext, visitor?: ISchemaPartVisitor);
17
+ /**
18
+ * Populates the given Schema from a serialized representation.
19
+ * @param schema The Schema to populate
20
+ * @param rawSchema The serialized data to use to populate the Schema.
21
+ */
22
+ readSchema<U extends Schema>(schema: U, rawSchema: T): Promise<U>;
23
+ /**
24
+ * Populates the given Schema from a serialized representation.
25
+ * @param schema The Schema to populate
26
+ * @param rawSchema The serialized data to use to populate the Schema.
27
+ */
28
+ readSchemaSync<U extends Schema>(schema: U, rawSchema: T): U;
29
+ /**
30
+ * Ensures that the schema references can be located and adds them to the schema.
31
+ * @param ref The object to read the SchemaReference's props from.
32
+ */
33
+ private loadSchemaReference;
34
+ /**
35
+ * Ensures that the schema references can be located and adds them to the schema.
36
+ * @param ref The object to read the SchemaReference's props from.
37
+ */
38
+ private loadSchemaReferenceSync;
39
+ /**
40
+ * Validates schema references against multiple EC rules.
41
+ * @param schema The schema to validate.
42
+ */
43
+ private validateSchemaReferences;
44
+ /**
45
+ * Given the schema item object, the anticipated type and the name a schema item is created and loaded into the schema provided.
46
+ * @param schema The Schema the SchemaItem to.
47
+ * @param name The name of the schema item to be loaded.
48
+ * @param itemType The SchemaItemType of the item to load.
49
+ * @param schemaItemObject The Object to populate the SchemaItem with.
50
+ */
51
+ private loadSchemaItem;
52
+ /**
53
+ * Given the schema item object, the anticipated type and the name a schema item is created and loaded into the schema provided.
54
+ * @param schema The Schema the SchemaItem to.
55
+ * @param name The name of the schema item to be loaded.
56
+ * @param itemType The SchemaItemType of the item to load.
57
+ * @param schemaItemObject The Object to populate the SchemaItem with.
58
+ */
59
+ private loadSchemaItemSync;
60
+ /**
61
+ * Given the full (Schema.ItemName) or qualified (alias:ItemName) item name, returns
62
+ * a tuple of strings in the format ["SchemaName", "ItemName"]. The schema name may be
63
+ * empty if the item comes from the schema being parsed.
64
+ * @param fullOrQualifiedName The full or qualified name of the schema item.
65
+ * @param schema The schema that will be used to lookup the schema name by alias, if necessary.
66
+ */
67
+ private static resolveSchemaAndItemName;
68
+ /**
69
+ * Finds the a SchemaItem matching the name first by checking the schema that is being deserialized. If it does
70
+ * not exist within the schema, the SchemaContext will be searched.
71
+ * @param name The full (Schema.ItemName) or qualified (alias:ItemName) name of the SchemaItem to search for.
72
+ * @param skipVisitor Used to break Mixin -appliesTo-> Entity -extends-> Mixin cycle.
73
+ * @param loadCallBack Only called if the SchemaItem had to be loaded.
74
+ * @return The SchemaItem if it had to be loaded, otherwise undefined.
75
+ */
76
+ private findSchemaItem;
77
+ /**
78
+ * Finds the a SchemaItem matching the name first by checking the schema that is being deserialized. If it does
79
+ * not exist within the schema, the SchemaContext will be searched.
80
+ * @param name The full (Schema.ItemName) or qualified (alias:ItemName) name of the SchemaItem to search for.
81
+ * @param skipVisitor Used to break Mixin -appliesTo-> Entity -extends-> Mixin cycle.
82
+ * @param loadCallBack Only called if the SchemaItem had to be loaded.
83
+ * @return The SchemaItem if it had to be loaded, otherwise undefined.
84
+ */
85
+ private findSchemaItemSync;
86
+ /**
87
+ * Load dependencies on phenomenon and unitSystem for a Unit object and load the Unit from its serialized format.
88
+ * @param unit The Unit object that we are loading dependencies for and "deserializing into".
89
+ * @param rawUnit The serialized unit data
90
+ */
91
+ private loadUnit;
92
+ /**
93
+ * Load dependencies on phenomenon and unitSystem for a Unit object and load the Unit from its serialized format.
94
+ * @param unit The Unit object that we are loading dependencies for and "deserializing into".
95
+ * @param rawUnit The serialized unit data
96
+ */
97
+ private loadUnitSync;
98
+ /**
99
+ * Load the persistence unit and presentation unit dependencies for a KindOfQuantity object and load the KoQ from its serialized format.
100
+ * @param koq The KindOfQuantity object that we are loading dependencies for and "deserializing into".
101
+ * @param rawKoQ The serialized kind of quantity data
102
+ */
103
+ private loadKindOfQuantity;
104
+ /**
105
+ * Load the persistence unit and presentation unit dependencies for a KindOfQuantity object and load the KoQ from its serialized format.
106
+ * @param koq The KindOfQuantity object that we are loading dependencies for and "deserializing into".
107
+ * @param rawKoQ The serialized kind of quantity data
108
+ */
109
+ private loadKindOfQuantitySync;
110
+ /**
111
+ * Load the phenomenon dependency for a Constant object and load the Constant from its serialized format.
112
+ * @param constant The Constant object that we are loading the phenomenon dependency for
113
+ * @param rawConstant The serialized constant data
114
+ */
115
+ private loadConstant;
116
+ /**
117
+ * Load the phenomenon dependency for a Constant object and load the Constant from its serialized format.
118
+ * @param constant The Constant object that we are loading dependencies for and "deserializing into".
119
+ * @param rawConstant The serialized constant data
120
+ */
121
+ private loadConstantSync;
122
+ /**
123
+ * Load the unit system and invertsUnit dependencies for an Inverted Unit object and load the Inverted Unit from its serialized format.
124
+ * @param invertedUnit The InvertedUnit object that we are loading dependencies for and "deserializing into".
125
+ * @param rawInvertedUnit The serialized inverted unit data.
126
+ */
127
+ private loadInvertedUnit;
128
+ /**
129
+ * Load the unit system and invertsUnit dependencies for an Inverted Unit object and load the Inverted Unit from its serialized format.
130
+ * @param invertedUnit The InvertedUnit object that we are loading dependencies for and "deserializing into".
131
+ * @param rawInvertedUnit The serialized inverted unit data.
132
+ */
133
+ private loadInvertedUnitSync;
134
+ /**
135
+ * Load the unit dependencies for a Format object and load the Format from its serialized format.
136
+ * @param format The Format object that we are loading dependencies for and "deserializing into".
137
+ * @param rawFormat The serialized format data.
138
+ */
139
+ private loadFormat;
140
+ /**
141
+ * Load the unit dependencies for a Format object and load the Format from its serialized format.
142
+ * @param format The Format object that we are loading dependencies for and "deserializing into".
143
+ * @param rawFormat The serialized format data.
144
+ */
145
+ private loadFormatSync;
146
+ /**
147
+ * Load the base class and property type dependencies for an ECClass object and load the ECClass (and its properties) from its serialized format.
148
+ * @param classObj The ECClass object that we are loading dependencies for and "deserializing into".
149
+ * @param classProps The parsed class props object.
150
+ * @param rawClass The serialized class data.
151
+ */
152
+ private loadClass;
153
+ /**
154
+ * Load the base class and property type dependencies for an ECClass object and load the ECClass (and its properties) from its serialized format.
155
+ * @param classObj The ECClass object that we are loading dependencies for and "deserializing into".
156
+ * @param classProps The parsed class props object.
157
+ * @param rawClass The serialized class data.
158
+ */
159
+ private loadClassSync;
160
+ /**
161
+ * Load the mixin, base class, and property type dependencies for an EntityClass object and load the EntityClass (and properties) from its serialized format.
162
+ * @param entity The EntityClass that we are loading dependencies for and "deserializing into".
163
+ * @param rawEntity The serialized entity class data.
164
+ */
165
+ private loadEntityClass;
166
+ /**
167
+ * Load the mixin, base class, and property type dependencies for an EntityClass object and load the EntityClass (and properties) from its serialized format.
168
+ * @param entity The EntityClass that we are loading dependencies for and "deserializing into".
169
+ * @param rawEntity The serialized entity class data.
170
+ */
171
+ private loadEntityClassSync;
172
+ /**
173
+ * Load the appliesTo class, base class, and property type dependencies for a Mixin object and load the Mixin (and properties) from its serialized format.
174
+ * @param mixin The Mixin that we are loading dependencies for and "deserializing into".
175
+ * @param rawMixin The serialized mixin data.
176
+ */
177
+ private loadMixin;
178
+ /**
179
+ * Load the appliesTo class, base class, and property type dependencies for a Mixin object and load the Mixin (and properties) from its serialized format.
180
+ * @param mixin The Mixin that we are loading dependencies for and "deserializing into".
181
+ * @param rawMixin The serialized mixin data.
182
+ */
183
+ private loadMixinSync;
184
+ /**
185
+ * Load the relationship constraint, base class, and property type dependencies for a RelationshipClass object and load the RelationshipClass (and properties) from its serialized format.
186
+ * @param rel The RelationshipClass that we are loading dependencies for and "deserializing into".
187
+ * @param rawRel The serialized relationship class data.
188
+ */
189
+ private loadRelationshipClass;
190
+ /**
191
+ * Load the relationship constraint, base class, and property type dependencies for a RelationshipClass object and load the RelationshipClass (and properties) from its serialized format.
192
+ * @param rel The RelationshipClass that we are loading dependencies for and "deserializing into".
193
+ * @param rawRel The serialized relationship class data.
194
+ */
195
+ private loadRelationshipClassSync;
196
+ /**
197
+ * Load the abstract constraint and constraint class dependencies for a RelationshipConstraint object and load the RelationshipConstraint from its parsed props.
198
+ * @param relConstraint The RelationshipConstraint that we are loading dependencies for and "deserializing into".
199
+ * @param props The parsed relationship constraint props.
200
+ */
201
+ private loadRelationshipConstraint;
202
+ /**
203
+ * Load the abstract constraint and constraint class dependencies for a RelationshipConstraint object and load the RelationshipConstraint from its parsed props.
204
+ * @param relConstraint The RelationshipConstraint that we are loading dependencies for and "deserializing into".
205
+ * @param props The parsed relationship constraint props.
206
+ */
207
+ private loadRelationshipConstraintSync;
208
+ /**
209
+ * Load the type dependencies for a serialized property, then creates and deserialized the Property object in the given ECClass.
210
+ * @param classObj The ECClass that the Property should be created in.
211
+ * @param propName The name of the Property.
212
+ * @param propType The (serialized string) kind of property to create.
213
+ * @param rawProperty The serialized property data.
214
+ */
215
+ private loadPropertyTypes;
216
+ /**
217
+ * Load the type dependencies for a serialized property, then creates and deserialized the Property object in the given ECClass.
218
+ * @param classObj The ECClass that the Property should be created in.
219
+ * @param propName The name of the Property.
220
+ * @param propType The (serialized string) kind of property to create.
221
+ * @param rawProperty The serialized property data.
222
+ */
223
+ private loadPropertyTypesSync;
224
+ /**
225
+ * Load the propertyCategory, kindOfQuantity, and customAttribute dependencies for a Property object and load the Property from its parsed props.
226
+ * @param propertyObj The Property that we are loading dependencies for and "deserializing into".
227
+ * @param props The parsed property props.
228
+ * @param rawProperty The serialized property data.
229
+ */
230
+ private loadProperty;
231
+ /**
232
+ * Load the propertyCategory, kindOfQuantity, and customAttribute dependencies for a Property object and load the Property from its parsed props.
233
+ * @param propertyObj The Property that we are loading dependencies for and "deserializing into".
234
+ * @param props The parsed property props.
235
+ * @param rawProperty The serialized property data.
236
+ */
237
+ private loadPropertySync;
238
+ /**
239
+ * Load the customAttribute class dependencies for a set of CustomAttribute objects and add
240
+ * them to a given custom attribute container.
241
+ * @param container The CustomAttributeContainer that each CustomAttribute will be added to.
242
+ * @param customAttributes An iterable set of parsed CustomAttribute objects.
243
+ */
244
+ private loadCustomAttributes;
245
+ /**
246
+ * Load the customAttribute class dependencies for a set of CustomAttribute objects and add them to a given custom attribute container.
247
+ * @param container The CustomAttributeContainer that each CustomAttribute will be added to.
248
+ * @param customAttributes An iterable set of parsed CustomAttribute objects.
249
+ */
250
+ private loadCustomAttributesSync;
251
+ }
252
252
  //# sourceMappingURL=Helper.d.ts.map