@itwin/ecschema-metadata 3.5.0-dev.65 → 3.5.0-dev.66
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.
- package/lib/cjs/Constants.d.ts +23 -23
- package/lib/cjs/Constants.js +33 -33
- package/lib/cjs/Constants.js.map +1 -1
- package/lib/cjs/Context.d.ts +139 -139
- package/lib/cjs/Context.js +204 -204
- package/lib/cjs/DelayedPromise.d.ts +88 -88
- package/lib/cjs/DelayedPromise.js +91 -91
- package/lib/cjs/DelayedPromise.js.map +1 -1
- package/lib/cjs/Deserialization/AbstractParser.d.ts +45 -45
- package/lib/cjs/Deserialization/AbstractParser.js +11 -11
- package/lib/cjs/Deserialization/AbstractParser.js.map +1 -1
- package/lib/cjs/Deserialization/Helper.d.ts +251 -251
- package/lib/cjs/Deserialization/Helper.js +843 -843
- package/lib/cjs/Deserialization/Helper.js.map +1 -1
- package/lib/cjs/Deserialization/JsonParser.d.ts +165 -165
- package/lib/cjs/Deserialization/JsonParser.js +680 -680
- package/lib/cjs/Deserialization/JsonParser.js.map +1 -1
- package/lib/cjs/Deserialization/JsonProps.d.ts +282 -282
- package/lib/cjs/Deserialization/JsonProps.js +9 -9
- package/lib/cjs/Deserialization/JsonProps.js.map +1 -1
- package/lib/cjs/Deserialization/SchemaGraphUtil.d.ts +34 -34
- package/lib/cjs/Deserialization/SchemaGraphUtil.js +77 -77
- package/lib/cjs/Deserialization/SchemaGraphUtil.js.map +1 -1
- package/lib/cjs/Deserialization/XmlParser.d.ts +85 -85
- package/lib/cjs/Deserialization/XmlParser.js +973 -973
- package/lib/cjs/Deserialization/XmlParser.js.map +1 -1
- package/lib/cjs/Deserialization/XmlSerializationUtils.d.ts +54 -54
- package/lib/cjs/Deserialization/XmlSerializationUtils.js +174 -174
- package/lib/cjs/Deserialization/XmlSerializationUtils.js.map +1 -1
- package/lib/cjs/ECName.d.ts +30 -30
- package/lib/cjs/ECName.js +85 -85
- package/lib/cjs/ECName.js.map +1 -1
- package/lib/cjs/ECObjects.d.ts +162 -162
- package/lib/cjs/ECObjects.js +453 -453
- package/lib/cjs/ECObjects.js.map +1 -1
- package/lib/cjs/Exception.d.ts +43 -43
- package/lib/cjs/Exception.js +86 -86
- package/lib/cjs/Exception.js.map +1 -1
- package/lib/cjs/Interfaces.d.ts +66 -66
- package/lib/cjs/Interfaces.js +9 -9
- package/lib/cjs/Interfaces.js.map +1 -1
- package/lib/cjs/Metadata/Class.d.ts +243 -243
- package/lib/cjs/Metadata/Class.js +558 -558
- package/lib/cjs/Metadata/Class.js.map +1 -1
- package/lib/cjs/Metadata/Constant.d.ts +64 -64
- package/lib/cjs/Metadata/Constant.js +123 -123
- package/lib/cjs/Metadata/Constant.js.map +1 -1
- package/lib/cjs/Metadata/CustomAttribute.d.ts +23 -23
- package/lib/cjs/Metadata/CustomAttribute.js +27 -27
- package/lib/cjs/Metadata/CustomAttribute.js.map +1 -1
- package/lib/cjs/Metadata/CustomAttributeClass.d.ts +39 -39
- package/lib/cjs/Metadata/CustomAttributeClass.js +68 -68
- package/lib/cjs/Metadata/CustomAttributeClass.js.map +1 -1
- package/lib/cjs/Metadata/EntityClass.d.ts +77 -77
- package/lib/cjs/Metadata/EntityClass.js +230 -230
- package/lib/cjs/Metadata/EntityClass.js.map +1 -1
- package/lib/cjs/Metadata/Enumeration.d.ts +86 -86
- package/lib/cjs/Metadata/Enumeration.js +159 -159
- package/lib/cjs/Metadata/Enumeration.js.map +1 -1
- package/lib/cjs/Metadata/Format.d.ts +98 -98
- package/lib/cjs/Metadata/Format.js +242 -242
- package/lib/cjs/Metadata/Format.js.map +1 -1
- package/lib/cjs/Metadata/InvertedUnit.d.ts +49 -49
- package/lib/cjs/Metadata/InvertedUnit.js +97 -97
- package/lib/cjs/Metadata/InvertedUnit.js.map +1 -1
- package/lib/cjs/Metadata/KindOfQuantity.d.ts +65 -65
- package/lib/cjs/Metadata/KindOfQuantity.js +225 -225
- package/lib/cjs/Metadata/KindOfQuantity.js.map +1 -1
- package/lib/cjs/Metadata/Mixin.d.ts +54 -54
- package/lib/cjs/Metadata/Mixin.js +113 -113
- package/lib/cjs/Metadata/Mixin.js.map +1 -1
- package/lib/cjs/Metadata/OverrideFormat.d.ts +55 -55
- package/lib/cjs/Metadata/OverrideFormat.js +88 -88
- package/lib/cjs/Metadata/OverrideFormat.js.map +1 -1
- package/lib/cjs/Metadata/Phenomenon.d.ts +33 -33
- package/lib/cjs/Metadata/Phenomenon.js +59 -59
- package/lib/cjs/Metadata/Phenomenon.js.map +1 -1
- package/lib/cjs/Metadata/Property.d.ts +197 -197
- package/lib/cjs/Metadata/Property.js +491 -491
- package/lib/cjs/Metadata/Property.js.map +1 -1
- package/lib/cjs/Metadata/PropertyCategory.d.ts +39 -39
- package/lib/cjs/Metadata/PropertyCategory.js +61 -61
- package/lib/cjs/Metadata/PropertyCategory.js.map +1 -1
- package/lib/cjs/Metadata/RelationshipClass.d.ts +152 -152
- package/lib/cjs/Metadata/RelationshipClass.js +349 -349
- package/lib/cjs/Metadata/RelationshipClass.js.map +1 -1
- package/lib/cjs/Metadata/Schema.d.ts +291 -291
- package/lib/cjs/Metadata/Schema.js +520 -520
- package/lib/cjs/Metadata/Schema.js.map +1 -1
- package/lib/cjs/Metadata/SchemaItem.d.ts +61 -61
- package/lib/cjs/Metadata/SchemaItem.js +136 -136
- package/lib/cjs/Metadata/SchemaItem.js.map +1 -1
- package/lib/cjs/Metadata/Unit.d.ts +76 -76
- package/lib/cjs/Metadata/Unit.js +162 -162
- package/lib/cjs/Metadata/UnitSystem.d.ts +20 -20
- package/lib/cjs/Metadata/UnitSystem.js +29 -29
- package/lib/cjs/Metadata/UnitSystem.js.map +1 -1
- package/lib/cjs/PropertyTypes.d.ts +49 -49
- package/lib/cjs/PropertyTypes.js +91 -91
- package/lib/cjs/PropertyTypes.js.map +1 -1
- package/lib/cjs/SchemaJsonLocater.d.ts +34 -34
- package/lib/cjs/SchemaJsonLocater.js +42 -42
- package/lib/cjs/SchemaJsonLocater.js.map +1 -1
- package/lib/cjs/SchemaKey.d.ts +110 -110
- package/lib/cjs/SchemaKey.js +219 -219
- package/lib/cjs/SchemaKey.js.map +1 -1
- package/lib/cjs/SchemaLoader.d.ts +23 -23
- package/lib/cjs/SchemaLoader.js +47 -47
- package/lib/cjs/SchemaLoader.js.map +1 -1
- package/lib/cjs/SchemaPartVisitorDelegate.d.ts +274 -274
- package/lib/cjs/SchemaPartVisitorDelegate.js +212 -212
- package/lib/cjs/SchemaPartVisitorDelegate.js.map +1 -1
- package/lib/cjs/UnitConversion/Graph.d.ts +34 -34
- package/lib/cjs/UnitConversion/Graph.js +83 -83
- package/lib/cjs/UnitConversion/Graph.js.map +1 -1
- package/lib/cjs/UnitConversion/Parser.d.ts +8 -8
- package/lib/cjs/UnitConversion/Parser.js +42 -42
- package/lib/cjs/UnitConversion/Parser.js.map +1 -1
- package/lib/cjs/UnitConversion/UnitConversion.d.ts +45 -45
- package/lib/cjs/UnitConversion/UnitConversion.js +77 -77
- package/lib/cjs/UnitConversion/UnitConversion.js.map +1 -1
- package/lib/cjs/UnitConversion/UnitConverter.d.ts +39 -39
- package/lib/cjs/UnitConversion/UnitConverter.js +116 -116
- package/lib/cjs/UnitConversion/UnitConverter.js.map +1 -1
- package/lib/cjs/UnitConversion/UnitTree.d.ts +43 -43
- package/lib/cjs/UnitConversion/UnitTree.js +169 -169
- package/lib/cjs/UnitConversion/UnitTree.js.map +1 -1
- package/lib/cjs/UnitProvider/SchemaUnitProvider.d.ts +77 -77
- package/lib/cjs/UnitProvider/SchemaUnitProvider.js +236 -236
- package/lib/cjs/UnitProvider/SchemaUnitProvider.js.map +1 -1
- package/lib/cjs/Validation/SchemaWalker.d.ts +23 -23
- package/lib/cjs/Validation/SchemaWalker.js +53 -53
- package/lib/cjs/Validation/SchemaWalker.js.map +1 -1
- package/lib/cjs/ecschema-metadata.d.ts +51 -51
- package/lib/cjs/ecschema-metadata.js +96 -96
- package/lib/cjs/ecschema-metadata.js.map +1 -1
- package/lib/cjs/utils/SchemaGraph.d.ts +25 -25
- package/lib/cjs/utils/SchemaGraph.js +65 -65
- package/lib/cjs/utils/SchemaGraph.js.map +1 -1
- package/package.json +7 -7
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*---------------------------------------------------------------------------------------------
|
|
3
|
-
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
4
|
-
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
5
|
-
*--------------------------------------------------------------------------------------------*/
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.SchemaWalker = void 0;
|
|
8
|
-
const ECObjects_1 = require("../ECObjects");
|
|
9
|
-
const Class_1 = require("../Metadata/Class");
|
|
10
|
-
const SchemaPartVisitorDelegate_1 = require("../SchemaPartVisitorDelegate");
|
|
11
|
-
/**
|
|
12
|
-
* The purpose of this class is to traverse a given schema, allowing clients to hook into
|
|
13
|
-
* the traversal process via Visitors to allow for custom processing of the schema elements.
|
|
14
|
-
* @internal
|
|
15
|
-
*/
|
|
16
|
-
class SchemaWalker {
|
|
17
|
-
/**
|
|
18
|
-
* Initializes a new SchemaWalker instance.
|
|
19
|
-
* @param visitor An ISchemaWalkerVisitor implementation whose methods will be called during schema traversal.
|
|
20
|
-
*/
|
|
21
|
-
constructor(visitor) {
|
|
22
|
-
this._visitorHelper = new SchemaPartVisitorDelegate_1.SchemaPartVisitorDelegate(visitor);
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Traverses the given Schema, calling ISchemaWalkerVisitor methods along the way.
|
|
26
|
-
* @param schema The Schema to traverse.
|
|
27
|
-
*/
|
|
28
|
-
async traverseSchema(schema) {
|
|
29
|
-
this._schema = schema;
|
|
30
|
-
await this._visitorHelper.visitSchema(schema);
|
|
31
|
-
await this._visitorHelper.visitSchemaPart(schema);
|
|
32
|
-
for (const item of this._schema.getItems())
|
|
33
|
-
await this.traverseSchemaItem(item);
|
|
34
|
-
return schema;
|
|
35
|
-
}
|
|
36
|
-
async traverseSchemaItem(schemaItem) {
|
|
37
|
-
await this._visitorHelper.visitSchemaPart(schemaItem);
|
|
38
|
-
if (Class_1.ECClass.isECClass(schemaItem))
|
|
39
|
-
await this.traverseClass(schemaItem);
|
|
40
|
-
}
|
|
41
|
-
async traverseClass(ecClass) {
|
|
42
|
-
if (ecClass.properties) {
|
|
43
|
-
for (const property of ecClass.properties) {
|
|
44
|
-
await this._visitorHelper.visitSchemaPart(property);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
if (ecClass.schemaItemType === ECObjects_1.SchemaItemType.RelationshipClass) {
|
|
48
|
-
await this._visitorHelper.visitSchemaPart(ecClass.source);
|
|
49
|
-
await this._visitorHelper.visitSchemaPart(ecClass.target);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
exports.SchemaWalker = SchemaWalker;
|
|
1
|
+
"use strict";
|
|
2
|
+
/*---------------------------------------------------------------------------------------------
|
|
3
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
4
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
5
|
+
*--------------------------------------------------------------------------------------------*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.SchemaWalker = void 0;
|
|
8
|
+
const ECObjects_1 = require("../ECObjects");
|
|
9
|
+
const Class_1 = require("../Metadata/Class");
|
|
10
|
+
const SchemaPartVisitorDelegate_1 = require("../SchemaPartVisitorDelegate");
|
|
11
|
+
/**
|
|
12
|
+
* The purpose of this class is to traverse a given schema, allowing clients to hook into
|
|
13
|
+
* the traversal process via Visitors to allow for custom processing of the schema elements.
|
|
14
|
+
* @internal
|
|
15
|
+
*/
|
|
16
|
+
class SchemaWalker {
|
|
17
|
+
/**
|
|
18
|
+
* Initializes a new SchemaWalker instance.
|
|
19
|
+
* @param visitor An ISchemaWalkerVisitor implementation whose methods will be called during schema traversal.
|
|
20
|
+
*/
|
|
21
|
+
constructor(visitor) {
|
|
22
|
+
this._visitorHelper = new SchemaPartVisitorDelegate_1.SchemaPartVisitorDelegate(visitor);
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Traverses the given Schema, calling ISchemaWalkerVisitor methods along the way.
|
|
26
|
+
* @param schema The Schema to traverse.
|
|
27
|
+
*/
|
|
28
|
+
async traverseSchema(schema) {
|
|
29
|
+
this._schema = schema;
|
|
30
|
+
await this._visitorHelper.visitSchema(schema);
|
|
31
|
+
await this._visitorHelper.visitSchemaPart(schema);
|
|
32
|
+
for (const item of this._schema.getItems())
|
|
33
|
+
await this.traverseSchemaItem(item);
|
|
34
|
+
return schema;
|
|
35
|
+
}
|
|
36
|
+
async traverseSchemaItem(schemaItem) {
|
|
37
|
+
await this._visitorHelper.visitSchemaPart(schemaItem);
|
|
38
|
+
if (Class_1.ECClass.isECClass(schemaItem))
|
|
39
|
+
await this.traverseClass(schemaItem);
|
|
40
|
+
}
|
|
41
|
+
async traverseClass(ecClass) {
|
|
42
|
+
if (ecClass.properties) {
|
|
43
|
+
for (const property of ecClass.properties) {
|
|
44
|
+
await this._visitorHelper.visitSchemaPart(property);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
if (ecClass.schemaItemType === ECObjects_1.SchemaItemType.RelationshipClass) {
|
|
48
|
+
await this._visitorHelper.visitSchemaPart(ecClass.source);
|
|
49
|
+
await this._visitorHelper.visitSchemaPart(ecClass.target);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
exports.SchemaWalker = SchemaWalker;
|
|
54
54
|
//# sourceMappingURL=SchemaWalker.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaWalker.js","sourceRoot":"","sources":["../../../src/Validation/SchemaWalker.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;AAE/F,4CAA8C;AAC9C,6CAA4C;AAI5C,4EAA6F;AAE7F;;;;GAIG;AACH,MAAa,YAAY;IAOvB;;;OAGG;IACH,YAAY,OAA2B;QACrC,IAAI,CAAC,cAAc,GAAG,IAAI,qDAAyB,CAAC,OAAO,CAAC,CAAC;IAC/D,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,cAAc,CAAmB,MAAS;QACrD,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QAEtB,MAAM,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;QAC9C,MAAM,IAAI,CAAC,cAAc,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;QAElD,KAAK,MAAM,IAAI,IAAI,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE;YACxC,MAAM,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC;QACtC,OAAO,MAAM,CAAC;IAChB,CAAC;IAEO,KAAK,CAAC,kBAAkB,CAAC,UAAsB;QACrD,MAAM,IAAI,CAAC,cAAc,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC;QAEtD,IAAI,eAAO,CAAC,SAAS,CAAC,UAAU,CAAC;YAC/B,MAAM,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;IACzC,CAAC;IAEO,KAAK,CAAC,aAAa,CAAC,OAAgB;QAC1C,IAAI,OAAO,CAAC,UAAU,EAAE;YACtB,KAAK,MAAM,QAAQ,IAAI,OAAO,CAAC,UAAU,EAAE;gBACzC,MAAM,IAAI,CAAC,cAAc,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;aACrD;SACF;QAED,IAAI,OAAO,CAAC,cAAc,KAAK,0BAAc,CAAC,iBAAiB,EAAE;YAC/D,MAAM,IAAI,CAAC,cAAc,CAAC,eAAe,CAAE,OAA6B,CAAC,MAAM,CAAC,CAAC;YACjF,MAAM,IAAI,CAAC,cAAc,CAAC,eAAe,CAAE,OAA6B,CAAC,MAAM,CAAC,CAAC;SAClF;IACH,CAAC;CACF;AAjDD,oCAiDC","sourcesContent":["/*---------------------------------------------------------------------------------------------\
|
|
1
|
+
{"version":3,"file":"SchemaWalker.js","sourceRoot":"","sources":["../../../src/Validation/SchemaWalker.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;AAE/F,4CAA8C;AAC9C,6CAA4C;AAI5C,4EAA6F;AAE7F;;;;GAIG;AACH,MAAa,YAAY;IAOvB;;;OAGG;IACH,YAAY,OAA2B;QACrC,IAAI,CAAC,cAAc,GAAG,IAAI,qDAAyB,CAAC,OAAO,CAAC,CAAC;IAC/D,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,cAAc,CAAmB,MAAS;QACrD,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QAEtB,MAAM,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;QAC9C,MAAM,IAAI,CAAC,cAAc,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;QAElD,KAAK,MAAM,IAAI,IAAI,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE;YACxC,MAAM,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC;QACtC,OAAO,MAAM,CAAC;IAChB,CAAC;IAEO,KAAK,CAAC,kBAAkB,CAAC,UAAsB;QACrD,MAAM,IAAI,CAAC,cAAc,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC;QAEtD,IAAI,eAAO,CAAC,SAAS,CAAC,UAAU,CAAC;YAC/B,MAAM,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;IACzC,CAAC;IAEO,KAAK,CAAC,aAAa,CAAC,OAAgB;QAC1C,IAAI,OAAO,CAAC,UAAU,EAAE;YACtB,KAAK,MAAM,QAAQ,IAAI,OAAO,CAAC,UAAU,EAAE;gBACzC,MAAM,IAAI,CAAC,cAAc,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;aACrD;SACF;QAED,IAAI,OAAO,CAAC,cAAc,KAAK,0BAAc,CAAC,iBAAiB,EAAE;YAC/D,MAAM,IAAI,CAAC,cAAc,CAAC,eAAe,CAAE,OAA6B,CAAC,MAAM,CAAC,CAAC;YACjF,MAAM,IAAI,CAAC,cAAc,CAAC,eAAe,CAAE,OAA6B,CAAC,MAAM,CAAC,CAAC;SAClF;IACH,CAAC;CACF;AAjDD,oCAiDC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n\nimport { SchemaItemType } from \"../ECObjects\";\nimport { ECClass } from \"../Metadata/Class\";\nimport { RelationshipClass } from \"../Metadata/RelationshipClass\";\nimport { Schema } from \"../Metadata/Schema\";\nimport { SchemaItem } from \"../Metadata/SchemaItem\";\nimport { ISchemaPartVisitor, SchemaPartVisitorDelegate } from \"../SchemaPartVisitorDelegate\";\n\n/**\n * The purpose of this class is to traverse a given schema, allowing clients to hook into\n * the traversal process via Visitors to allow for custom processing of the schema elements.\n * @internal\n */\nexport class SchemaWalker {\n private _visitorHelper: SchemaPartVisitorDelegate;\n\n // This is a cache of the schema we are traversing. The schema also exists within the _context but in order\n // to not have to go back to the context every time we use this cache.\n private _schema?: Schema;\n\n /**\n * Initializes a new SchemaWalker instance.\n * @param visitor An ISchemaWalkerVisitor implementation whose methods will be called during schema traversal.\n */\n constructor(visitor: ISchemaPartVisitor) {\n this._visitorHelper = new SchemaPartVisitorDelegate(visitor);\n }\n\n /**\n * Traverses the given Schema, calling ISchemaWalkerVisitor methods along the way.\n * @param schema The Schema to traverse.\n */\n public async traverseSchema<T extends Schema>(schema: T): Promise<T> {\n this._schema = schema;\n\n await this._visitorHelper.visitSchema(schema);\n await this._visitorHelper.visitSchemaPart(schema);\n\n for (const item of this._schema.getItems())\n await this.traverseSchemaItem(item);\n return schema;\n }\n\n private async traverseSchemaItem(schemaItem: SchemaItem): Promise<void> {\n await this._visitorHelper.visitSchemaPart(schemaItem);\n\n if (ECClass.isECClass(schemaItem))\n await this.traverseClass(schemaItem);\n }\n\n private async traverseClass(ecClass: ECClass): Promise<void> {\n if (ecClass.properties) {\n for (const property of ecClass.properties) {\n await this._visitorHelper.visitSchemaPart(property);\n }\n }\n\n if (ecClass.schemaItemType === SchemaItemType.RelationshipClass) {\n await this._visitorHelper.visitSchemaPart((ecClass as RelationshipClass).source);\n await this._visitorHelper.visitSchemaPart((ecClass as RelationshipClass).target);\n }\n }\n}\n"]}
|
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
export * from "./Constants";
|
|
2
|
-
export * from "./Context";
|
|
3
|
-
export * from "./DelayedPromise";
|
|
4
|
-
export * from "./Deserialization/SchemaGraphUtil";
|
|
5
|
-
export * from "./Deserialization/JsonProps";
|
|
6
|
-
export * from "./Deserialization/Helper";
|
|
7
|
-
export * from "./Deserialization/XmlParser";
|
|
8
|
-
export * from "./ECName";
|
|
9
|
-
export * from "./ECObjects";
|
|
10
|
-
export * from "./Exception";
|
|
11
|
-
export * from "./Interfaces";
|
|
12
|
-
export { ECClass, StructClass } from "./Metadata/Class";
|
|
13
|
-
export { Constant } from "./Metadata/Constant";
|
|
14
|
-
export { CustomAttributeClass } from "./Metadata/CustomAttributeClass";
|
|
15
|
-
export { EntityClass } from "./Metadata/EntityClass";
|
|
16
|
-
export { AnyEnumerator, Enumeration, Enumerator } from "./Metadata/Enumeration";
|
|
17
|
-
export { Format } from "./Metadata/Format";
|
|
18
|
-
export { InvertedUnit } from "./Metadata/InvertedUnit";
|
|
19
|
-
export { KindOfQuantity } from "./Metadata/KindOfQuantity";
|
|
20
|
-
export { Mixin } from "./Metadata/Mixin";
|
|
21
|
-
export * from "./Metadata/OverrideFormat";
|
|
22
|
-
export { Phenomenon } from "./Metadata/Phenomenon";
|
|
23
|
-
export { Property, PrimitiveProperty, PrimitiveArrayProperty, EnumerationProperty, StructProperty, StructArrayProperty, EnumerationArrayProperty, NavigationProperty, AnyArrayProperty, AnyEnumerationProperty, AnyPrimitiveProperty, AnyProperty, AnyStructProperty, ArrayProperty, PrimitiveOrEnumPropertyBase, } from "./Metadata/Property";
|
|
24
|
-
export { PropertyCategory } from "./Metadata/PropertyCategory";
|
|
25
|
-
export { RelationshipClass, RelationshipConstraint, RelationshipMultiplicity } from "./Metadata/RelationshipClass";
|
|
26
|
-
export { Schema } from "./Metadata/Schema";
|
|
27
|
-
export * from "./Metadata/SchemaItem";
|
|
28
|
-
export { Unit } from "./Metadata/Unit";
|
|
29
|
-
export { UnitSystem } from "./Metadata/UnitSystem";
|
|
30
|
-
export * from "./PropertyTypes";
|
|
31
|
-
export * from "./SchemaJsonLocater";
|
|
32
|
-
export * from "./SchemaKey";
|
|
33
|
-
export * from "./SchemaLoader";
|
|
34
|
-
export * from "./UnitConversion/UnitConversion";
|
|
35
|
-
export * from "./UnitConversion/UnitConverter";
|
|
36
|
-
export * from "./UnitProvider/SchemaUnitProvider";
|
|
37
|
-
export * from "./Validation/SchemaWalker";
|
|
38
|
-
export * from "./SchemaPartVisitorDelegate";
|
|
39
|
-
export { CustomAttribute, CustomAttributeContainerProps } from "./Metadata/CustomAttribute";
|
|
40
|
-
export { SchemaGraph } from "./utils/SchemaGraph";
|
|
41
|
-
/** @docs-package-description
|
|
42
|
-
* The ecschema-metadata package contains classes for working with ECSchemas that can be used in both [frontend]($docs/learning/frontend/index.md) and [backend]($docs/learning/backend/index.md).
|
|
43
|
-
*/
|
|
44
|
-
/**
|
|
45
|
-
* @docs-group-description Metadata
|
|
46
|
-
* Definitions of classes and interfaces that represent all [EC elements]($docs/bis/ec/index.md).
|
|
47
|
-
*/
|
|
48
|
-
/**
|
|
49
|
-
* @docs-group-description Utils
|
|
50
|
-
* A set of utility classes used throughout the package.
|
|
51
|
-
*/
|
|
1
|
+
export * from "./Constants";
|
|
2
|
+
export * from "./Context";
|
|
3
|
+
export * from "./DelayedPromise";
|
|
4
|
+
export * from "./Deserialization/SchemaGraphUtil";
|
|
5
|
+
export * from "./Deserialization/JsonProps";
|
|
6
|
+
export * from "./Deserialization/Helper";
|
|
7
|
+
export * from "./Deserialization/XmlParser";
|
|
8
|
+
export * from "./ECName";
|
|
9
|
+
export * from "./ECObjects";
|
|
10
|
+
export * from "./Exception";
|
|
11
|
+
export * from "./Interfaces";
|
|
12
|
+
export { ECClass, StructClass } from "./Metadata/Class";
|
|
13
|
+
export { Constant } from "./Metadata/Constant";
|
|
14
|
+
export { CustomAttributeClass } from "./Metadata/CustomAttributeClass";
|
|
15
|
+
export { EntityClass } from "./Metadata/EntityClass";
|
|
16
|
+
export { AnyEnumerator, Enumeration, Enumerator } from "./Metadata/Enumeration";
|
|
17
|
+
export { Format } from "./Metadata/Format";
|
|
18
|
+
export { InvertedUnit } from "./Metadata/InvertedUnit";
|
|
19
|
+
export { KindOfQuantity } from "./Metadata/KindOfQuantity";
|
|
20
|
+
export { Mixin } from "./Metadata/Mixin";
|
|
21
|
+
export * from "./Metadata/OverrideFormat";
|
|
22
|
+
export { Phenomenon } from "./Metadata/Phenomenon";
|
|
23
|
+
export { Property, PrimitiveProperty, PrimitiveArrayProperty, EnumerationProperty, StructProperty, StructArrayProperty, EnumerationArrayProperty, NavigationProperty, AnyArrayProperty, AnyEnumerationProperty, AnyPrimitiveProperty, AnyProperty, AnyStructProperty, ArrayProperty, PrimitiveOrEnumPropertyBase, } from "./Metadata/Property";
|
|
24
|
+
export { PropertyCategory } from "./Metadata/PropertyCategory";
|
|
25
|
+
export { RelationshipClass, RelationshipConstraint, RelationshipMultiplicity } from "./Metadata/RelationshipClass";
|
|
26
|
+
export { Schema } from "./Metadata/Schema";
|
|
27
|
+
export * from "./Metadata/SchemaItem";
|
|
28
|
+
export { Unit } from "./Metadata/Unit";
|
|
29
|
+
export { UnitSystem } from "./Metadata/UnitSystem";
|
|
30
|
+
export * from "./PropertyTypes";
|
|
31
|
+
export * from "./SchemaJsonLocater";
|
|
32
|
+
export * from "./SchemaKey";
|
|
33
|
+
export * from "./SchemaLoader";
|
|
34
|
+
export * from "./UnitConversion/UnitConversion";
|
|
35
|
+
export * from "./UnitConversion/UnitConverter";
|
|
36
|
+
export * from "./UnitProvider/SchemaUnitProvider";
|
|
37
|
+
export * from "./Validation/SchemaWalker";
|
|
38
|
+
export * from "./SchemaPartVisitorDelegate";
|
|
39
|
+
export { CustomAttribute, CustomAttributeContainerProps } from "./Metadata/CustomAttribute";
|
|
40
|
+
export { SchemaGraph } from "./utils/SchemaGraph";
|
|
41
|
+
/** @docs-package-description
|
|
42
|
+
* The ecschema-metadata package contains classes for working with ECSchemas that can be used in both [frontend]($docs/learning/frontend/index.md) and [backend]($docs/learning/backend/index.md).
|
|
43
|
+
*/
|
|
44
|
+
/**
|
|
45
|
+
* @docs-group-description Metadata
|
|
46
|
+
* Definitions of classes and interfaces that represent all [EC elements]($docs/bis/ec/index.md).
|
|
47
|
+
*/
|
|
48
|
+
/**
|
|
49
|
+
* @docs-group-description Utils
|
|
50
|
+
* A set of utility classes used throughout the package.
|
|
51
|
+
*/
|
|
52
52
|
//# sourceMappingURL=ecschema-metadata.d.ts.map
|
|
@@ -1,97 +1,97 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*---------------------------------------------------------------------------------------------
|
|
3
|
-
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
4
|
-
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
5
|
-
*--------------------------------------------------------------------------------------------*/
|
|
6
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
|
-
if (k2 === undefined) k2 = k;
|
|
8
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.SchemaGraph = exports.UnitSystem = exports.Unit = exports.Schema = exports.RelationshipMultiplicity = exports.RelationshipConstraint = exports.RelationshipClass = exports.PropertyCategory = exports.PrimitiveOrEnumPropertyBase = exports.ArrayProperty = exports.NavigationProperty = exports.EnumerationArrayProperty = exports.StructArrayProperty = exports.StructProperty = exports.EnumerationProperty = exports.PrimitiveArrayProperty = exports.PrimitiveProperty = exports.Property = exports.Phenomenon = exports.Mixin = exports.KindOfQuantity = exports.InvertedUnit = exports.Format = exports.Enumeration = exports.EntityClass = exports.CustomAttributeClass = exports.Constant = exports.StructClass = exports.ECClass = void 0;
|
|
18
|
-
__exportStar(require("./Constants"), exports);
|
|
19
|
-
__exportStar(require("./Context"), exports);
|
|
20
|
-
__exportStar(require("./DelayedPromise"), exports);
|
|
21
|
-
__exportStar(require("./Deserialization/SchemaGraphUtil"), exports);
|
|
22
|
-
__exportStar(require("./Deserialization/JsonProps"), exports);
|
|
23
|
-
__exportStar(require("./Deserialization/Helper"), exports);
|
|
24
|
-
__exportStar(require("./Deserialization/XmlParser"), exports);
|
|
25
|
-
__exportStar(require("./ECName"), exports);
|
|
26
|
-
__exportStar(require("./ECObjects"), exports);
|
|
27
|
-
__exportStar(require("./Exception"), exports);
|
|
28
|
-
__exportStar(require("./Interfaces"), exports);
|
|
29
|
-
var Class_1 = require("./Metadata/Class");
|
|
30
|
-
Object.defineProperty(exports, "ECClass", { enumerable: true, get: function () { return Class_1.ECClass; } });
|
|
31
|
-
Object.defineProperty(exports, "StructClass", { enumerable: true, get: function () { return Class_1.StructClass; } });
|
|
32
|
-
var Constant_1 = require("./Metadata/Constant");
|
|
33
|
-
Object.defineProperty(exports, "Constant", { enumerable: true, get: function () { return Constant_1.Constant; } });
|
|
34
|
-
var CustomAttributeClass_1 = require("./Metadata/CustomAttributeClass");
|
|
35
|
-
Object.defineProperty(exports, "CustomAttributeClass", { enumerable: true, get: function () { return CustomAttributeClass_1.CustomAttributeClass; } });
|
|
36
|
-
var EntityClass_1 = require("./Metadata/EntityClass");
|
|
37
|
-
Object.defineProperty(exports, "EntityClass", { enumerable: true, get: function () { return EntityClass_1.EntityClass; } });
|
|
38
|
-
var Enumeration_1 = require("./Metadata/Enumeration");
|
|
39
|
-
Object.defineProperty(exports, "Enumeration", { enumerable: true, get: function () { return Enumeration_1.Enumeration; } });
|
|
40
|
-
var Format_1 = require("./Metadata/Format");
|
|
41
|
-
Object.defineProperty(exports, "Format", { enumerable: true, get: function () { return Format_1.Format; } });
|
|
42
|
-
var InvertedUnit_1 = require("./Metadata/InvertedUnit");
|
|
43
|
-
Object.defineProperty(exports, "InvertedUnit", { enumerable: true, get: function () { return InvertedUnit_1.InvertedUnit; } });
|
|
44
|
-
var KindOfQuantity_1 = require("./Metadata/KindOfQuantity");
|
|
45
|
-
Object.defineProperty(exports, "KindOfQuantity", { enumerable: true, get: function () { return KindOfQuantity_1.KindOfQuantity; } });
|
|
46
|
-
var Mixin_1 = require("./Metadata/Mixin");
|
|
47
|
-
Object.defineProperty(exports, "Mixin", { enumerable: true, get: function () { return Mixin_1.Mixin; } });
|
|
48
|
-
__exportStar(require("./Metadata/OverrideFormat"), exports);
|
|
49
|
-
var Phenomenon_1 = require("./Metadata/Phenomenon");
|
|
50
|
-
Object.defineProperty(exports, "Phenomenon", { enumerable: true, get: function () { return Phenomenon_1.Phenomenon; } });
|
|
51
|
-
var Property_1 = require("./Metadata/Property");
|
|
52
|
-
Object.defineProperty(exports, "Property", { enumerable: true, get: function () { return Property_1.Property; } });
|
|
53
|
-
Object.defineProperty(exports, "PrimitiveProperty", { enumerable: true, get: function () { return Property_1.PrimitiveProperty; } });
|
|
54
|
-
Object.defineProperty(exports, "PrimitiveArrayProperty", { enumerable: true, get: function () { return Property_1.PrimitiveArrayProperty; } });
|
|
55
|
-
Object.defineProperty(exports, "EnumerationProperty", { enumerable: true, get: function () { return Property_1.EnumerationProperty; } });
|
|
56
|
-
Object.defineProperty(exports, "StructProperty", { enumerable: true, get: function () { return Property_1.StructProperty; } });
|
|
57
|
-
Object.defineProperty(exports, "StructArrayProperty", { enumerable: true, get: function () { return Property_1.StructArrayProperty; } });
|
|
58
|
-
Object.defineProperty(exports, "EnumerationArrayProperty", { enumerable: true, get: function () { return Property_1.EnumerationArrayProperty; } });
|
|
59
|
-
Object.defineProperty(exports, "NavigationProperty", { enumerable: true, get: function () { return Property_1.NavigationProperty; } });
|
|
60
|
-
Object.defineProperty(exports, "ArrayProperty", { enumerable: true, get: function () { return Property_1.ArrayProperty; } });
|
|
61
|
-
Object.defineProperty(exports, "PrimitiveOrEnumPropertyBase", { enumerable: true, get: function () { return Property_1.PrimitiveOrEnumPropertyBase; } });
|
|
62
|
-
var PropertyCategory_1 = require("./Metadata/PropertyCategory");
|
|
63
|
-
Object.defineProperty(exports, "PropertyCategory", { enumerable: true, get: function () { return PropertyCategory_1.PropertyCategory; } });
|
|
64
|
-
var RelationshipClass_1 = require("./Metadata/RelationshipClass");
|
|
65
|
-
Object.defineProperty(exports, "RelationshipClass", { enumerable: true, get: function () { return RelationshipClass_1.RelationshipClass; } });
|
|
66
|
-
Object.defineProperty(exports, "RelationshipConstraint", { enumerable: true, get: function () { return RelationshipClass_1.RelationshipConstraint; } });
|
|
67
|
-
Object.defineProperty(exports, "RelationshipMultiplicity", { enumerable: true, get: function () { return RelationshipClass_1.RelationshipMultiplicity; } });
|
|
68
|
-
var Schema_1 = require("./Metadata/Schema");
|
|
69
|
-
Object.defineProperty(exports, "Schema", { enumerable: true, get: function () { return Schema_1.Schema; } });
|
|
70
|
-
__exportStar(require("./Metadata/SchemaItem"), exports);
|
|
71
|
-
var Unit_1 = require("./Metadata/Unit");
|
|
72
|
-
Object.defineProperty(exports, "Unit", { enumerable: true, get: function () { return Unit_1.Unit; } });
|
|
73
|
-
var UnitSystem_1 = require("./Metadata/UnitSystem");
|
|
74
|
-
Object.defineProperty(exports, "UnitSystem", { enumerable: true, get: function () { return UnitSystem_1.UnitSystem; } });
|
|
75
|
-
__exportStar(require("./PropertyTypes"), exports);
|
|
76
|
-
__exportStar(require("./SchemaJsonLocater"), exports);
|
|
77
|
-
__exportStar(require("./SchemaKey"), exports);
|
|
78
|
-
__exportStar(require("./SchemaLoader"), exports);
|
|
79
|
-
__exportStar(require("./UnitConversion/UnitConversion"), exports);
|
|
80
|
-
__exportStar(require("./UnitConversion/UnitConverter"), exports);
|
|
81
|
-
__exportStar(require("./UnitProvider/SchemaUnitProvider"), exports);
|
|
82
|
-
__exportStar(require("./Validation/SchemaWalker"), exports);
|
|
83
|
-
__exportStar(require("./SchemaPartVisitorDelegate"), exports);
|
|
84
|
-
var SchemaGraph_1 = require("./utils/SchemaGraph");
|
|
85
|
-
Object.defineProperty(exports, "SchemaGraph", { enumerable: true, get: function () { return SchemaGraph_1.SchemaGraph; } });
|
|
86
|
-
/** @docs-package-description
|
|
87
|
-
* The ecschema-metadata package contains classes for working with ECSchemas that can be used in both [frontend]($docs/learning/frontend/index.md) and [backend]($docs/learning/backend/index.md).
|
|
88
|
-
*/
|
|
89
|
-
/**
|
|
90
|
-
* @docs-group-description Metadata
|
|
91
|
-
* Definitions of classes and interfaces that represent all [EC elements]($docs/bis/ec/index.md).
|
|
92
|
-
*/
|
|
93
|
-
/**
|
|
94
|
-
* @docs-group-description Utils
|
|
95
|
-
* A set of utility classes used throughout the package.
|
|
96
|
-
*/
|
|
1
|
+
"use strict";
|
|
2
|
+
/*---------------------------------------------------------------------------------------------
|
|
3
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
4
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
5
|
+
*--------------------------------------------------------------------------------------------*/
|
|
6
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
|
+
if (k2 === undefined) k2 = k;
|
|
8
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.SchemaGraph = exports.UnitSystem = exports.Unit = exports.Schema = exports.RelationshipMultiplicity = exports.RelationshipConstraint = exports.RelationshipClass = exports.PropertyCategory = exports.PrimitiveOrEnumPropertyBase = exports.ArrayProperty = exports.NavigationProperty = exports.EnumerationArrayProperty = exports.StructArrayProperty = exports.StructProperty = exports.EnumerationProperty = exports.PrimitiveArrayProperty = exports.PrimitiveProperty = exports.Property = exports.Phenomenon = exports.Mixin = exports.KindOfQuantity = exports.InvertedUnit = exports.Format = exports.Enumeration = exports.EntityClass = exports.CustomAttributeClass = exports.Constant = exports.StructClass = exports.ECClass = void 0;
|
|
18
|
+
__exportStar(require("./Constants"), exports);
|
|
19
|
+
__exportStar(require("./Context"), exports);
|
|
20
|
+
__exportStar(require("./DelayedPromise"), exports);
|
|
21
|
+
__exportStar(require("./Deserialization/SchemaGraphUtil"), exports);
|
|
22
|
+
__exportStar(require("./Deserialization/JsonProps"), exports);
|
|
23
|
+
__exportStar(require("./Deserialization/Helper"), exports);
|
|
24
|
+
__exportStar(require("./Deserialization/XmlParser"), exports);
|
|
25
|
+
__exportStar(require("./ECName"), exports);
|
|
26
|
+
__exportStar(require("./ECObjects"), exports);
|
|
27
|
+
__exportStar(require("./Exception"), exports);
|
|
28
|
+
__exportStar(require("./Interfaces"), exports);
|
|
29
|
+
var Class_1 = require("./Metadata/Class");
|
|
30
|
+
Object.defineProperty(exports, "ECClass", { enumerable: true, get: function () { return Class_1.ECClass; } });
|
|
31
|
+
Object.defineProperty(exports, "StructClass", { enumerable: true, get: function () { return Class_1.StructClass; } });
|
|
32
|
+
var Constant_1 = require("./Metadata/Constant");
|
|
33
|
+
Object.defineProperty(exports, "Constant", { enumerable: true, get: function () { return Constant_1.Constant; } });
|
|
34
|
+
var CustomAttributeClass_1 = require("./Metadata/CustomAttributeClass");
|
|
35
|
+
Object.defineProperty(exports, "CustomAttributeClass", { enumerable: true, get: function () { return CustomAttributeClass_1.CustomAttributeClass; } });
|
|
36
|
+
var EntityClass_1 = require("./Metadata/EntityClass");
|
|
37
|
+
Object.defineProperty(exports, "EntityClass", { enumerable: true, get: function () { return EntityClass_1.EntityClass; } });
|
|
38
|
+
var Enumeration_1 = require("./Metadata/Enumeration");
|
|
39
|
+
Object.defineProperty(exports, "Enumeration", { enumerable: true, get: function () { return Enumeration_1.Enumeration; } });
|
|
40
|
+
var Format_1 = require("./Metadata/Format");
|
|
41
|
+
Object.defineProperty(exports, "Format", { enumerable: true, get: function () { return Format_1.Format; } });
|
|
42
|
+
var InvertedUnit_1 = require("./Metadata/InvertedUnit");
|
|
43
|
+
Object.defineProperty(exports, "InvertedUnit", { enumerable: true, get: function () { return InvertedUnit_1.InvertedUnit; } });
|
|
44
|
+
var KindOfQuantity_1 = require("./Metadata/KindOfQuantity");
|
|
45
|
+
Object.defineProperty(exports, "KindOfQuantity", { enumerable: true, get: function () { return KindOfQuantity_1.KindOfQuantity; } });
|
|
46
|
+
var Mixin_1 = require("./Metadata/Mixin");
|
|
47
|
+
Object.defineProperty(exports, "Mixin", { enumerable: true, get: function () { return Mixin_1.Mixin; } });
|
|
48
|
+
__exportStar(require("./Metadata/OverrideFormat"), exports);
|
|
49
|
+
var Phenomenon_1 = require("./Metadata/Phenomenon");
|
|
50
|
+
Object.defineProperty(exports, "Phenomenon", { enumerable: true, get: function () { return Phenomenon_1.Phenomenon; } });
|
|
51
|
+
var Property_1 = require("./Metadata/Property");
|
|
52
|
+
Object.defineProperty(exports, "Property", { enumerable: true, get: function () { return Property_1.Property; } });
|
|
53
|
+
Object.defineProperty(exports, "PrimitiveProperty", { enumerable: true, get: function () { return Property_1.PrimitiveProperty; } });
|
|
54
|
+
Object.defineProperty(exports, "PrimitiveArrayProperty", { enumerable: true, get: function () { return Property_1.PrimitiveArrayProperty; } });
|
|
55
|
+
Object.defineProperty(exports, "EnumerationProperty", { enumerable: true, get: function () { return Property_1.EnumerationProperty; } });
|
|
56
|
+
Object.defineProperty(exports, "StructProperty", { enumerable: true, get: function () { return Property_1.StructProperty; } });
|
|
57
|
+
Object.defineProperty(exports, "StructArrayProperty", { enumerable: true, get: function () { return Property_1.StructArrayProperty; } });
|
|
58
|
+
Object.defineProperty(exports, "EnumerationArrayProperty", { enumerable: true, get: function () { return Property_1.EnumerationArrayProperty; } });
|
|
59
|
+
Object.defineProperty(exports, "NavigationProperty", { enumerable: true, get: function () { return Property_1.NavigationProperty; } });
|
|
60
|
+
Object.defineProperty(exports, "ArrayProperty", { enumerable: true, get: function () { return Property_1.ArrayProperty; } });
|
|
61
|
+
Object.defineProperty(exports, "PrimitiveOrEnumPropertyBase", { enumerable: true, get: function () { return Property_1.PrimitiveOrEnumPropertyBase; } });
|
|
62
|
+
var PropertyCategory_1 = require("./Metadata/PropertyCategory");
|
|
63
|
+
Object.defineProperty(exports, "PropertyCategory", { enumerable: true, get: function () { return PropertyCategory_1.PropertyCategory; } });
|
|
64
|
+
var RelationshipClass_1 = require("./Metadata/RelationshipClass");
|
|
65
|
+
Object.defineProperty(exports, "RelationshipClass", { enumerable: true, get: function () { return RelationshipClass_1.RelationshipClass; } });
|
|
66
|
+
Object.defineProperty(exports, "RelationshipConstraint", { enumerable: true, get: function () { return RelationshipClass_1.RelationshipConstraint; } });
|
|
67
|
+
Object.defineProperty(exports, "RelationshipMultiplicity", { enumerable: true, get: function () { return RelationshipClass_1.RelationshipMultiplicity; } });
|
|
68
|
+
var Schema_1 = require("./Metadata/Schema");
|
|
69
|
+
Object.defineProperty(exports, "Schema", { enumerable: true, get: function () { return Schema_1.Schema; } });
|
|
70
|
+
__exportStar(require("./Metadata/SchemaItem"), exports);
|
|
71
|
+
var Unit_1 = require("./Metadata/Unit");
|
|
72
|
+
Object.defineProperty(exports, "Unit", { enumerable: true, get: function () { return Unit_1.Unit; } });
|
|
73
|
+
var UnitSystem_1 = require("./Metadata/UnitSystem");
|
|
74
|
+
Object.defineProperty(exports, "UnitSystem", { enumerable: true, get: function () { return UnitSystem_1.UnitSystem; } });
|
|
75
|
+
__exportStar(require("./PropertyTypes"), exports);
|
|
76
|
+
__exportStar(require("./SchemaJsonLocater"), exports);
|
|
77
|
+
__exportStar(require("./SchemaKey"), exports);
|
|
78
|
+
__exportStar(require("./SchemaLoader"), exports);
|
|
79
|
+
__exportStar(require("./UnitConversion/UnitConversion"), exports);
|
|
80
|
+
__exportStar(require("./UnitConversion/UnitConverter"), exports);
|
|
81
|
+
__exportStar(require("./UnitProvider/SchemaUnitProvider"), exports);
|
|
82
|
+
__exportStar(require("./Validation/SchemaWalker"), exports);
|
|
83
|
+
__exportStar(require("./SchemaPartVisitorDelegate"), exports);
|
|
84
|
+
var SchemaGraph_1 = require("./utils/SchemaGraph");
|
|
85
|
+
Object.defineProperty(exports, "SchemaGraph", { enumerable: true, get: function () { return SchemaGraph_1.SchemaGraph; } });
|
|
86
|
+
/** @docs-package-description
|
|
87
|
+
* The ecschema-metadata package contains classes for working with ECSchemas that can be used in both [frontend]($docs/learning/frontend/index.md) and [backend]($docs/learning/backend/index.md).
|
|
88
|
+
*/
|
|
89
|
+
/**
|
|
90
|
+
* @docs-group-description Metadata
|
|
91
|
+
* Definitions of classes and interfaces that represent all [EC elements]($docs/bis/ec/index.md).
|
|
92
|
+
*/
|
|
93
|
+
/**
|
|
94
|
+
* @docs-group-description Utils
|
|
95
|
+
* A set of utility classes used throughout the package.
|
|
96
|
+
*/
|
|
97
97
|
//# sourceMappingURL=ecschema-metadata.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ecschema-metadata.js","sourceRoot":"","sources":["../../src/ecschema-metadata.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;;;;;;;;;;;AAE/F,8CAA4B;AAC5B,4CAA0B;AAC1B,mDAAiC;AACjC,oEAAkD;AAClD,8DAA4C;AAC5C,2DAAyC;AACzC,8DAA4C;AAC5C,2CAAyB;AACzB,8CAA4B;AAC5B,8CAA4B;AAC5B,+CAA6B;AAC7B,0CAAwD;AAA/C,gGAAA,OAAO,OAAA;AAAE,oGAAA,WAAW,OAAA;AAC7B,gDAA+C;AAAtC,oGAAA,QAAQ,OAAA;AACjB,wEAAuE;AAA9D,4HAAA,oBAAoB,OAAA;AAC7B,sDAAqD;AAA5C,0GAAA,WAAW,OAAA;AACpB,sDAAgF;AAAxD,0GAAA,WAAW,OAAA;AACnC,4CAA2C;AAAlC,gGAAA,MAAM,OAAA;AACf,wDAAuD;AAA9C,4GAAA,YAAY,OAAA;AACrB,4DAA2D;AAAlD,gHAAA,cAAc,OAAA;AACvB,0CAAyC;AAAhC,8FAAA,KAAK,OAAA;AACd,4DAA0C;AAC1C,oDAAmD;AAA1C,wGAAA,UAAU,OAAA;AACnB,gDAI6B;AAH3B,oGAAA,QAAQ,OAAA;AAAE,6GAAA,iBAAiB,OAAA;AAAE,kHAAA,sBAAsB,OAAA;AAAE,+GAAA,mBAAmB,OAAA;AAAE,0GAAA,cAAc,OAAA;AACxF,+GAAA,mBAAmB,OAAA;AAAE,oHAAA,wBAAwB,OAAA;AAAE,8GAAA,kBAAkB,OAAA;AACX,yGAAA,aAAa,OAAA;AAAE,uHAAA,2BAA2B,OAAA;AAElG,gEAA+D;AAAtD,oHAAA,gBAAgB,OAAA;AACzB,kEAAmH;AAA1G,sHAAA,iBAAiB,OAAA;AAAE,2HAAA,sBAAsB,OAAA;AAAE,6HAAA,wBAAwB,OAAA;AAC5E,4CAA2C;AAAlC,gGAAA,MAAM,OAAA;AACf,wDAAsC;AACtC,wCAAuC;AAA9B,4FAAA,IAAI,OAAA;AACb,oDAAmD;AAA1C,wGAAA,UAAU,OAAA;AACnB,kDAAgC;AAChC,sDAAoC;AACpC,8CAA4B;AAC5B,iDAA+B;AAC/B,kEAAgD;AAChD,iEAA+C;AAC/C,oEAAkD;AAClD,4DAA0C;AAC1C,8DAA4C;AAE5C,mDAAkD;AAAzC,0GAAA,WAAW,OAAA;AAEpB;;GAEG;AACH;;;GAGG;AACH;;;GAGG","sourcesContent":["/*---------------------------------------------------------------------------------------------\
|
|
1
|
+
{"version":3,"file":"ecschema-metadata.js","sourceRoot":"","sources":["../../src/ecschema-metadata.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;;;;;;;;;;;AAE/F,8CAA4B;AAC5B,4CAA0B;AAC1B,mDAAiC;AACjC,oEAAkD;AAClD,8DAA4C;AAC5C,2DAAyC;AACzC,8DAA4C;AAC5C,2CAAyB;AACzB,8CAA4B;AAC5B,8CAA4B;AAC5B,+CAA6B;AAC7B,0CAAwD;AAA/C,gGAAA,OAAO,OAAA;AAAE,oGAAA,WAAW,OAAA;AAC7B,gDAA+C;AAAtC,oGAAA,QAAQ,OAAA;AACjB,wEAAuE;AAA9D,4HAAA,oBAAoB,OAAA;AAC7B,sDAAqD;AAA5C,0GAAA,WAAW,OAAA;AACpB,sDAAgF;AAAxD,0GAAA,WAAW,OAAA;AACnC,4CAA2C;AAAlC,gGAAA,MAAM,OAAA;AACf,wDAAuD;AAA9C,4GAAA,YAAY,OAAA;AACrB,4DAA2D;AAAlD,gHAAA,cAAc,OAAA;AACvB,0CAAyC;AAAhC,8FAAA,KAAK,OAAA;AACd,4DAA0C;AAC1C,oDAAmD;AAA1C,wGAAA,UAAU,OAAA;AACnB,gDAI6B;AAH3B,oGAAA,QAAQ,OAAA;AAAE,6GAAA,iBAAiB,OAAA;AAAE,kHAAA,sBAAsB,OAAA;AAAE,+GAAA,mBAAmB,OAAA;AAAE,0GAAA,cAAc,OAAA;AACxF,+GAAA,mBAAmB,OAAA;AAAE,oHAAA,wBAAwB,OAAA;AAAE,8GAAA,kBAAkB,OAAA;AACX,yGAAA,aAAa,OAAA;AAAE,uHAAA,2BAA2B,OAAA;AAElG,gEAA+D;AAAtD,oHAAA,gBAAgB,OAAA;AACzB,kEAAmH;AAA1G,sHAAA,iBAAiB,OAAA;AAAE,2HAAA,sBAAsB,OAAA;AAAE,6HAAA,wBAAwB,OAAA;AAC5E,4CAA2C;AAAlC,gGAAA,MAAM,OAAA;AACf,wDAAsC;AACtC,wCAAuC;AAA9B,4FAAA,IAAI,OAAA;AACb,oDAAmD;AAA1C,wGAAA,UAAU,OAAA;AACnB,kDAAgC;AAChC,sDAAoC;AACpC,8CAA4B;AAC5B,iDAA+B;AAC/B,kEAAgD;AAChD,iEAA+C;AAC/C,oEAAkD;AAClD,4DAA0C;AAC1C,8DAA4C;AAE5C,mDAAkD;AAAzC,0GAAA,WAAW,OAAA;AAEpB;;GAEG;AACH;;;GAGG;AACH;;;GAGG","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n\nexport * from \"./Constants\";\nexport * from \"./Context\";\nexport * from \"./DelayedPromise\";\nexport * from \"./Deserialization/SchemaGraphUtil\";\nexport * from \"./Deserialization/JsonProps\";\nexport * from \"./Deserialization/Helper\";\nexport * from \"./Deserialization/XmlParser\";\nexport * from \"./ECName\";\nexport * from \"./ECObjects\";\nexport * from \"./Exception\";\nexport * from \"./Interfaces\";\nexport { ECClass, StructClass } from \"./Metadata/Class\";\nexport { Constant } from \"./Metadata/Constant\";\nexport { CustomAttributeClass } from \"./Metadata/CustomAttributeClass\";\nexport { EntityClass } from \"./Metadata/EntityClass\";\nexport { AnyEnumerator, Enumeration, Enumerator } from \"./Metadata/Enumeration\";\nexport { Format } from \"./Metadata/Format\";\nexport { InvertedUnit } from \"./Metadata/InvertedUnit\";\nexport { KindOfQuantity } from \"./Metadata/KindOfQuantity\";\nexport { Mixin } from \"./Metadata/Mixin\";\nexport * from \"./Metadata/OverrideFormat\";\nexport { Phenomenon } from \"./Metadata/Phenomenon\";\nexport {\n Property, PrimitiveProperty, PrimitiveArrayProperty, EnumerationProperty, StructProperty,\n StructArrayProperty, EnumerationArrayProperty, NavigationProperty, AnyArrayProperty, AnyEnumerationProperty,\n AnyPrimitiveProperty, AnyProperty, AnyStructProperty, ArrayProperty, PrimitiveOrEnumPropertyBase,\n} from \"./Metadata/Property\";\nexport { PropertyCategory } from \"./Metadata/PropertyCategory\";\nexport { RelationshipClass, RelationshipConstraint, RelationshipMultiplicity } from \"./Metadata/RelationshipClass\";\nexport { Schema } from \"./Metadata/Schema\";\nexport * from \"./Metadata/SchemaItem\";\nexport { Unit } from \"./Metadata/Unit\";\nexport { UnitSystem } from \"./Metadata/UnitSystem\";\nexport * from \"./PropertyTypes\";\nexport * from \"./SchemaJsonLocater\";\nexport * from \"./SchemaKey\";\nexport * from \"./SchemaLoader\";\nexport * from \"./UnitConversion/UnitConversion\";\nexport * from \"./UnitConversion/UnitConverter\";\nexport * from \"./UnitProvider/SchemaUnitProvider\";\nexport * from \"./Validation/SchemaWalker\";\nexport * from \"./SchemaPartVisitorDelegate\";\nexport { CustomAttribute, CustomAttributeContainerProps} from \"./Metadata/CustomAttribute\";\nexport { SchemaGraph } from \"./utils/SchemaGraph\";\n\n/** @docs-package-description\n * The ecschema-metadata package contains classes for working with ECSchemas that can be used in both [frontend]($docs/learning/frontend/index.md) and [backend]($docs/learning/backend/index.md).\n */\n/**\n * @docs-group-description Metadata\n * Definitions of classes and interfaces that represent all [EC elements]($docs/bis/ec/index.md).\n */\n/**\n * @docs-group-description Utils\n * A set of utility classes used throughout the package.\n */\n"]}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { Schema } from "../Metadata/Schema";
|
|
2
|
-
/** @internal */
|
|
3
|
-
export interface ReferenceCycle {
|
|
4
|
-
schema: Schema;
|
|
5
|
-
refSchema: Schema;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Utility class for detecting cyclic references in a Schema graph.
|
|
9
|
-
* @beta
|
|
10
|
-
*/
|
|
11
|
-
export declare class SchemaGraph {
|
|
12
|
-
private _schemas;
|
|
13
|
-
/**
|
|
14
|
-
* Initializes a new SchemaGraph instance.
|
|
15
|
-
* @param schema The schema to analyze.
|
|
16
|
-
*/
|
|
17
|
-
constructor(schema: Schema);
|
|
18
|
-
/**
|
|
19
|
-
* Detected cyclic references in a schema.
|
|
20
|
-
* @returns True if a cycle is found.
|
|
21
|
-
*/
|
|
22
|
-
detectCycles(): ReferenceCycle[] | undefined;
|
|
23
|
-
private detectCycleUtil;
|
|
24
|
-
private populateGraph;
|
|
25
|
-
}
|
|
1
|
+
import { Schema } from "../Metadata/Schema";
|
|
2
|
+
/** @internal */
|
|
3
|
+
export interface ReferenceCycle {
|
|
4
|
+
schema: Schema;
|
|
5
|
+
refSchema: Schema;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Utility class for detecting cyclic references in a Schema graph.
|
|
9
|
+
* @beta
|
|
10
|
+
*/
|
|
11
|
+
export declare class SchemaGraph {
|
|
12
|
+
private _schemas;
|
|
13
|
+
/**
|
|
14
|
+
* Initializes a new SchemaGraph instance.
|
|
15
|
+
* @param schema The schema to analyze.
|
|
16
|
+
*/
|
|
17
|
+
constructor(schema: Schema);
|
|
18
|
+
/**
|
|
19
|
+
* Detected cyclic references in a schema.
|
|
20
|
+
* @returns True if a cycle is found.
|
|
21
|
+
*/
|
|
22
|
+
detectCycles(): ReferenceCycle[] | undefined;
|
|
23
|
+
private detectCycleUtil;
|
|
24
|
+
private populateGraph;
|
|
25
|
+
}
|
|
26
26
|
//# sourceMappingURL=SchemaGraph.d.ts.map
|