basyx-typescript-sdk 2.4.2 → 2.4.3

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/bundle/index.mjs CHANGED
@@ -5357,7 +5357,7 @@ function getNotModifiedResult(err, ifNoneMatch) {
5357
5357
  };
5358
5358
  }
5359
5359
  //#endregion
5360
- //#region node_modules/.pnpm/@aas-core-works+aas-core3.1-typescript@1.0.0/node_modules/@aas-core-works/aas-core3.1-typescript/dist/lib/esm/common.js
5360
+ //#region node_modules/.pnpm/@aas-core-works+aas-core3.1-typescript@1.0.1/node_modules/@aas-core-works/aas-core3.1-typescript/dist/lib/esm/common.js
5361
5361
  /**
5362
5362
  * Provide common functions shared among the modules.
5363
5363
  */
@@ -5533,7 +5533,7 @@ function base64Decode$1(text) {
5533
5533
  return new Either(bytes, null);
5534
5534
  }
5535
5535
  //#endregion
5536
- //#region node_modules/.pnpm/@aas-core-works+aas-core3.1-typescript@1.0.0/node_modules/@aas-core-works/aas-core3.1-typescript/dist/lib/esm/types.js
5536
+ //#region node_modules/.pnpm/@aas-core-works+aas-core3.1-typescript@1.0.1/node_modules/@aas-core-works/aas-core3.1-typescript/dist/lib/esm/types.js
5537
5537
  /**
5538
5538
  * --- WORK IN PROGRESS ---
5539
5539
  * Provide an implementation of the Asset Administration Shell (AAS) V3.1.
@@ -12578,7 +12578,7 @@ var TypeMatcher = class extends AbstractTransformerWithContext {
12578
12578
  };
12579
12579
  new TypeMatcher();
12580
12580
  //#endregion
12581
- //#region node_modules/.pnpm/@aas-core-works+aas-core3.1-typescript@1.0.0/node_modules/@aas-core-works/aas-core3.1-typescript/dist/lib/esm/constants.js
12581
+ //#region node_modules/.pnpm/@aas-core-works+aas-core3.1-typescript@1.0.1/node_modules/@aas-core-works/aas-core3.1-typescript/dist/lib/esm/constants.js
12582
12582
  /**
12583
12583
  * Provide constant values of the meta-model.
12584
12584
  */
@@ -13315,7 +13315,7 @@ function mustDataTypeIec61360ToString(value) {
13315
13315
  return result;
13316
13316
  }
13317
13317
  //#endregion
13318
- //#region node_modules/.pnpm/@aas-core-works+aas-core3.1-typescript@1.0.0/node_modules/@aas-core-works/aas-core3.1-typescript/dist/lib/esm/jsonization.js
13318
+ //#region node_modules/.pnpm/@aas-core-works+aas-core3.1-typescript@1.0.1/node_modules/@aas-core-works/aas-core3.1-typescript/dist/lib/esm/jsonization.js
13319
13319
  /**
13320
13320
  * Provide de/serialization of AAS classes to/from JSON.
13321
13321
  *
@@ -21035,7 +21035,7 @@ const SETTER_MAP_FOR_DATA_SPECIFICATION_IEC_61360 = new Map([
21035
21035
  /**
21036
21036
  * Transform the instance to its JSON-able representation.
21037
21037
  */
21038
- var Serializer = class extends AbstractTransformer {
21038
+ var Serializer$1 = class extends AbstractTransformer {
21039
21039
  /**
21040
21040
  * Serialize `that` to a JSON-able representation.
21041
21041
  *
@@ -22201,7 +22201,7 @@ var Serializer = class extends AbstractTransformer {
22201
22201
  return jsonable;
22202
22202
  }
22203
22203
  };
22204
- const SERIALIZER = new Serializer();
22204
+ const SERIALIZER$1 = new Serializer$1();
22205
22205
  /**
22206
22206
  * Convert `that` to a JSON-able structure.
22207
22207
  *
@@ -22211,10 +22211,2513 @@ const SERIALIZER = new Serializer();
22211
22211
  * {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify|JSON.stringify})
22212
22212
  */
22213
22213
  function toJsonable(that) {
22214
- return SERIALIZER.transform(that);
22214
+ return SERIALIZER$1.transform(that);
22215
22215
  }
22216
+ globalThis.process?.env?.NODE_ENV;
22217
+ var NAME_START_TABLE$1 = new Uint8Array(128);
22218
+ var NAME_CHAR_TABLE$1 = new Uint8Array(128);
22219
+ for (let code = 65; code <= 90; code += 1) {
22220
+ NAME_START_TABLE$1[code] = 1;
22221
+ NAME_CHAR_TABLE$1[code] = 1;
22222
+ }
22223
+ for (let code = 97; code <= 122; code += 1) {
22224
+ NAME_START_TABLE$1[code] = 1;
22225
+ NAME_CHAR_TABLE$1[code] = 1;
22226
+ }
22227
+ for (let code = 48; code <= 57; code += 1) NAME_CHAR_TABLE$1[code] = 1;
22228
+ NAME_START_TABLE$1[95] = 1;
22229
+ NAME_CHAR_TABLE$1[95] = 1;
22230
+ NAME_CHAR_TABLE$1[58] = 1;
22231
+ NAME_CHAR_TABLE$1[45] = 1;
22232
+ NAME_CHAR_TABLE$1[46] = 1;
22233
+ //#endregion
22234
+ //#region node_modules/.pnpm/@aas-core-works+aas-core3.1-typescript@1.0.1/node_modules/@aas-core-works/aas-core3.1-typescript/dist/lib/esm/xmlization.js
22235
+ /**
22236
+ * Provide de/serialization of AAS classes to/from XML.
22237
+ *
22238
+ * The implementation is incremental and follows a SAX-style parsing approach.
22239
+ */ const NAMESPACE = "https://admin-shell.io/aas/3/1";
22240
+ function serializeModellingKindText(value) {
22241
+ return escapeXmlText(mustModellingKindToString(value));
22242
+ }
22243
+ function serializeQualifierKindText(value) {
22244
+ return escapeXmlText(mustQualifierKindToString(value));
22245
+ }
22246
+ function serializeAssetKindText(value) {
22247
+ return escapeXmlText(mustAssetKindToString(value));
22248
+ }
22249
+ function serializeAasSubmodelElementsText(value) {
22250
+ return escapeXmlText(mustAasSubmodelElementsToString(value));
22251
+ }
22252
+ function serializeEntityTypeText(value) {
22253
+ return escapeXmlText(mustEntityTypeToString(value));
22254
+ }
22255
+ function serializeDirectionText(value) {
22256
+ return escapeXmlText(mustDirectionToString(value));
22257
+ }
22258
+ function serializeStateOfEventText(value) {
22259
+ return escapeXmlText(mustStateOfEventToString(value));
22260
+ }
22261
+ function serializeReferenceTypesText(value) {
22262
+ return escapeXmlText(mustReferenceTypesToString(value));
22263
+ }
22264
+ function serializeKeyTypesText(value) {
22265
+ return escapeXmlText(mustKeyTypesToString(value));
22266
+ }
22267
+ function serializeDataTypeDefXsdText(value) {
22268
+ return escapeXmlText(mustDataTypeDefXsdToString(value));
22269
+ }
22270
+ function serializeDataTypeIec61360Text(value) {
22271
+ return escapeXmlText(mustDataTypeIec61360ToString(value));
22272
+ }
22273
+ function openTag(localName, withNamespace = false) {
22274
+ if (withNamespace) return `<${localName} xmlns="${NAMESPACE}">`;
22275
+ return `<${localName}>`;
22276
+ }
22277
+ function closeTag(localName) {
22278
+ return `</${localName}>`;
22279
+ }
22280
+ function escapeXmlText(text) {
22281
+ return text.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&apos;");
22282
+ }
22283
+ function serializeBooleanText(value) {
22284
+ return value ? "true" : "false";
22285
+ }
22286
+ function serializeStringText(value) {
22287
+ return escapeXmlText(value);
22288
+ }
22289
+ function serializeBase64EncodedBytesText(value) {
22290
+ return escapeXmlText(base64Encode$1(value));
22291
+ }
22292
+ /**
22293
+ * Serialize an AAS instance to XML parts.
22294
+ */ var Serializer = class extends AbstractTransformer {
22295
+ /**
22296
+ * Serialize `that` to an XML element representation.
22297
+ *
22298
+ * @param that - instance to be serialized
22299
+ * @returns serialized XML element representation
22300
+ */ transformExtension(that) {
22301
+ const parts = new Array();
22302
+ if (that.semanticId !== null) {
22303
+ const serializedSemanticId = this.transform(that.semanticId);
22304
+ parts.push(openTag("semanticId"));
22305
+ parts.push(serializedSemanticId.innerXml);
22306
+ parts.push(closeTag("semanticId"));
22307
+ }
22308
+ if (that.supplementalSemanticIds !== null) {
22309
+ parts.push(openTag("supplementalSemanticIds"));
22310
+ for (const itemSupplementalSemanticIds of that.supplementalSemanticIds) {
22311
+ const serializedSupplementalSemanticIdsItem = this.transform(itemSupplementalSemanticIds);
22312
+ parts.push(openTag(serializedSupplementalSemanticIdsItem.localName));
22313
+ parts.push(serializedSupplementalSemanticIdsItem.innerXml);
22314
+ parts.push(closeTag(serializedSupplementalSemanticIdsItem.localName));
22315
+ }
22316
+ parts.push(closeTag("supplementalSemanticIds"));
22317
+ }
22318
+ parts.push(openTag("name"));
22319
+ parts.push(serializeStringText(that.name));
22320
+ parts.push(closeTag("name"));
22321
+ if (that.valueType !== null) {
22322
+ parts.push(openTag("valueType"));
22323
+ parts.push(serializeDataTypeDefXsdText(that.valueType));
22324
+ parts.push(closeTag("valueType"));
22325
+ }
22326
+ if (that.value !== null) {
22327
+ parts.push(openTag("value"));
22328
+ parts.push(serializeStringText(that.value));
22329
+ parts.push(closeTag("value"));
22330
+ }
22331
+ if (that.refersTo !== null) {
22332
+ parts.push(openTag("refersTo"));
22333
+ for (const itemRefersTo of that.refersTo) {
22334
+ const serializedRefersToItem = this.transform(itemRefersTo);
22335
+ parts.push(openTag(serializedRefersToItem.localName));
22336
+ parts.push(serializedRefersToItem.innerXml);
22337
+ parts.push(closeTag(serializedRefersToItem.localName));
22338
+ }
22339
+ parts.push(closeTag("refersTo"));
22340
+ }
22341
+ return {
22342
+ localName: "extension",
22343
+ innerXml: parts.join("")
22344
+ };
22345
+ }
22346
+ /**
22347
+ * Serialize `that` to an XML element representation.
22348
+ *
22349
+ * @param that - instance to be serialized
22350
+ * @returns serialized XML element representation
22351
+ */ transformAdministrativeInformation(that) {
22352
+ const parts = new Array();
22353
+ if (that.embeddedDataSpecifications !== null) {
22354
+ parts.push(openTag("embeddedDataSpecifications"));
22355
+ for (const itemEmbeddedDataSpecifications of that.embeddedDataSpecifications) {
22356
+ const serializedEmbeddedDataSpecificationsItem = this.transform(itemEmbeddedDataSpecifications);
22357
+ parts.push(openTag(serializedEmbeddedDataSpecificationsItem.localName));
22358
+ parts.push(serializedEmbeddedDataSpecificationsItem.innerXml);
22359
+ parts.push(closeTag(serializedEmbeddedDataSpecificationsItem.localName));
22360
+ }
22361
+ parts.push(closeTag("embeddedDataSpecifications"));
22362
+ }
22363
+ if (that.version !== null) {
22364
+ parts.push(openTag("version"));
22365
+ parts.push(serializeStringText(that.version));
22366
+ parts.push(closeTag("version"));
22367
+ }
22368
+ if (that.revision !== null) {
22369
+ parts.push(openTag("revision"));
22370
+ parts.push(serializeStringText(that.revision));
22371
+ parts.push(closeTag("revision"));
22372
+ }
22373
+ if (that.creator !== null) {
22374
+ const serializedCreator = this.transform(that.creator);
22375
+ parts.push(openTag("creator"));
22376
+ parts.push(serializedCreator.innerXml);
22377
+ parts.push(closeTag("creator"));
22378
+ }
22379
+ if (that.templateId !== null) {
22380
+ parts.push(openTag("templateId"));
22381
+ parts.push(serializeStringText(that.templateId));
22382
+ parts.push(closeTag("templateId"));
22383
+ }
22384
+ return {
22385
+ localName: "administrativeInformation",
22386
+ innerXml: parts.join("")
22387
+ };
22388
+ }
22389
+ /**
22390
+ * Serialize `that` to an XML element representation.
22391
+ *
22392
+ * @param that - instance to be serialized
22393
+ * @returns serialized XML element representation
22394
+ */ transformQualifier(that) {
22395
+ const parts = new Array();
22396
+ if (that.semanticId !== null) {
22397
+ const serializedSemanticId = this.transform(that.semanticId);
22398
+ parts.push(openTag("semanticId"));
22399
+ parts.push(serializedSemanticId.innerXml);
22400
+ parts.push(closeTag("semanticId"));
22401
+ }
22402
+ if (that.supplementalSemanticIds !== null) {
22403
+ parts.push(openTag("supplementalSemanticIds"));
22404
+ for (const itemSupplementalSemanticIds of that.supplementalSemanticIds) {
22405
+ const serializedSupplementalSemanticIdsItem = this.transform(itemSupplementalSemanticIds);
22406
+ parts.push(openTag(serializedSupplementalSemanticIdsItem.localName));
22407
+ parts.push(serializedSupplementalSemanticIdsItem.innerXml);
22408
+ parts.push(closeTag(serializedSupplementalSemanticIdsItem.localName));
22409
+ }
22410
+ parts.push(closeTag("supplementalSemanticIds"));
22411
+ }
22412
+ if (that.kind !== null) {
22413
+ parts.push(openTag("kind"));
22414
+ parts.push(serializeQualifierKindText(that.kind));
22415
+ parts.push(closeTag("kind"));
22416
+ }
22417
+ parts.push(openTag("type"));
22418
+ parts.push(serializeStringText(that.type));
22419
+ parts.push(closeTag("type"));
22420
+ parts.push(openTag("valueType"));
22421
+ parts.push(serializeDataTypeDefXsdText(that.valueType));
22422
+ parts.push(closeTag("valueType"));
22423
+ if (that.value !== null) {
22424
+ parts.push(openTag("value"));
22425
+ parts.push(serializeStringText(that.value));
22426
+ parts.push(closeTag("value"));
22427
+ }
22428
+ if (that.valueId !== null) {
22429
+ const serializedValueId = this.transform(that.valueId);
22430
+ parts.push(openTag("valueId"));
22431
+ parts.push(serializedValueId.innerXml);
22432
+ parts.push(closeTag("valueId"));
22433
+ }
22434
+ return {
22435
+ localName: "qualifier",
22436
+ innerXml: parts.join("")
22437
+ };
22438
+ }
22439
+ /**
22440
+ * Serialize `that` to an XML element representation.
22441
+ *
22442
+ * @param that - instance to be serialized
22443
+ * @returns serialized XML element representation
22444
+ */ transformAssetAdministrationShell(that) {
22445
+ const parts = new Array();
22446
+ if (that.extensions !== null) {
22447
+ parts.push(openTag("extensions"));
22448
+ for (const itemExtensions of that.extensions) {
22449
+ const serializedExtensionsItem = this.transform(itemExtensions);
22450
+ parts.push(openTag(serializedExtensionsItem.localName));
22451
+ parts.push(serializedExtensionsItem.innerXml);
22452
+ parts.push(closeTag(serializedExtensionsItem.localName));
22453
+ }
22454
+ parts.push(closeTag("extensions"));
22455
+ }
22456
+ if (that.category !== null) {
22457
+ parts.push(openTag("category"));
22458
+ parts.push(serializeStringText(that.category));
22459
+ parts.push(closeTag("category"));
22460
+ }
22461
+ if (that.idShort !== null) {
22462
+ parts.push(openTag("idShort"));
22463
+ parts.push(serializeStringText(that.idShort));
22464
+ parts.push(closeTag("idShort"));
22465
+ }
22466
+ if (that.displayName !== null) {
22467
+ parts.push(openTag("displayName"));
22468
+ for (const itemDisplayName of that.displayName) {
22469
+ const serializedDisplayNameItem = this.transform(itemDisplayName);
22470
+ parts.push(openTag(serializedDisplayNameItem.localName));
22471
+ parts.push(serializedDisplayNameItem.innerXml);
22472
+ parts.push(closeTag(serializedDisplayNameItem.localName));
22473
+ }
22474
+ parts.push(closeTag("displayName"));
22475
+ }
22476
+ if (that.description !== null) {
22477
+ parts.push(openTag("description"));
22478
+ for (const itemDescription of that.description) {
22479
+ const serializedDescriptionItem = this.transform(itemDescription);
22480
+ parts.push(openTag(serializedDescriptionItem.localName));
22481
+ parts.push(serializedDescriptionItem.innerXml);
22482
+ parts.push(closeTag(serializedDescriptionItem.localName));
22483
+ }
22484
+ parts.push(closeTag("description"));
22485
+ }
22486
+ if (that.administration !== null) {
22487
+ const serializedAdministration = this.transform(that.administration);
22488
+ parts.push(openTag("administration"));
22489
+ parts.push(serializedAdministration.innerXml);
22490
+ parts.push(closeTag("administration"));
22491
+ }
22492
+ parts.push(openTag("id"));
22493
+ parts.push(serializeStringText(that.id));
22494
+ parts.push(closeTag("id"));
22495
+ if (that.embeddedDataSpecifications !== null) {
22496
+ parts.push(openTag("embeddedDataSpecifications"));
22497
+ for (const itemEmbeddedDataSpecifications of that.embeddedDataSpecifications) {
22498
+ const serializedEmbeddedDataSpecificationsItem = this.transform(itemEmbeddedDataSpecifications);
22499
+ parts.push(openTag(serializedEmbeddedDataSpecificationsItem.localName));
22500
+ parts.push(serializedEmbeddedDataSpecificationsItem.innerXml);
22501
+ parts.push(closeTag(serializedEmbeddedDataSpecificationsItem.localName));
22502
+ }
22503
+ parts.push(closeTag("embeddedDataSpecifications"));
22504
+ }
22505
+ if (that.derivedFrom !== null) {
22506
+ const serializedDerivedFrom = this.transform(that.derivedFrom);
22507
+ parts.push(openTag("derivedFrom"));
22508
+ parts.push(serializedDerivedFrom.innerXml);
22509
+ parts.push(closeTag("derivedFrom"));
22510
+ }
22511
+ const serializedAssetInformation = this.transform(that.assetInformation);
22512
+ parts.push(openTag("assetInformation"));
22513
+ parts.push(serializedAssetInformation.innerXml);
22514
+ parts.push(closeTag("assetInformation"));
22515
+ if (that.submodels !== null) {
22516
+ parts.push(openTag("submodels"));
22517
+ for (const itemSubmodels of that.submodels) {
22518
+ const serializedSubmodelsItem = this.transform(itemSubmodels);
22519
+ parts.push(openTag(serializedSubmodelsItem.localName));
22520
+ parts.push(serializedSubmodelsItem.innerXml);
22521
+ parts.push(closeTag(serializedSubmodelsItem.localName));
22522
+ }
22523
+ parts.push(closeTag("submodels"));
22524
+ }
22525
+ return {
22526
+ localName: "assetAdministrationShell",
22527
+ innerXml: parts.join("")
22528
+ };
22529
+ }
22530
+ /**
22531
+ * Serialize `that` to an XML element representation.
22532
+ *
22533
+ * @param that - instance to be serialized
22534
+ * @returns serialized XML element representation
22535
+ */ transformAssetInformation(that) {
22536
+ const parts = new Array();
22537
+ parts.push(openTag("assetKind"));
22538
+ parts.push(serializeAssetKindText(that.assetKind));
22539
+ parts.push(closeTag("assetKind"));
22540
+ if (that.globalAssetId !== null) {
22541
+ parts.push(openTag("globalAssetId"));
22542
+ parts.push(serializeStringText(that.globalAssetId));
22543
+ parts.push(closeTag("globalAssetId"));
22544
+ }
22545
+ if (that.specificAssetIds !== null) {
22546
+ parts.push(openTag("specificAssetIds"));
22547
+ for (const itemSpecificAssetIds of that.specificAssetIds) {
22548
+ const serializedSpecificAssetIdsItem = this.transform(itemSpecificAssetIds);
22549
+ parts.push(openTag(serializedSpecificAssetIdsItem.localName));
22550
+ parts.push(serializedSpecificAssetIdsItem.innerXml);
22551
+ parts.push(closeTag(serializedSpecificAssetIdsItem.localName));
22552
+ }
22553
+ parts.push(closeTag("specificAssetIds"));
22554
+ }
22555
+ if (that.assetType !== null) {
22556
+ parts.push(openTag("assetType"));
22557
+ parts.push(serializeStringText(that.assetType));
22558
+ parts.push(closeTag("assetType"));
22559
+ }
22560
+ if (that.defaultThumbnail !== null) {
22561
+ const serializedDefaultThumbnail = this.transform(that.defaultThumbnail);
22562
+ parts.push(openTag("defaultThumbnail"));
22563
+ parts.push(serializedDefaultThumbnail.innerXml);
22564
+ parts.push(closeTag("defaultThumbnail"));
22565
+ }
22566
+ return {
22567
+ localName: "assetInformation",
22568
+ innerXml: parts.join("")
22569
+ };
22570
+ }
22571
+ /**
22572
+ * Serialize `that` to an XML element representation.
22573
+ *
22574
+ * @param that - instance to be serialized
22575
+ * @returns serialized XML element representation
22576
+ */ transformResource(that) {
22577
+ const parts = new Array();
22578
+ parts.push(openTag("path"));
22579
+ parts.push(serializeStringText(that.path));
22580
+ parts.push(closeTag("path"));
22581
+ if (that.contentType !== null) {
22582
+ parts.push(openTag("contentType"));
22583
+ parts.push(serializeStringText(that.contentType));
22584
+ parts.push(closeTag("contentType"));
22585
+ }
22586
+ return {
22587
+ localName: "resource",
22588
+ innerXml: parts.join("")
22589
+ };
22590
+ }
22591
+ /**
22592
+ * Serialize `that` to an XML element representation.
22593
+ *
22594
+ * @param that - instance to be serialized
22595
+ * @returns serialized XML element representation
22596
+ */ transformSpecificAssetId(that) {
22597
+ const parts = new Array();
22598
+ if (that.semanticId !== null) {
22599
+ const serializedSemanticId = this.transform(that.semanticId);
22600
+ parts.push(openTag("semanticId"));
22601
+ parts.push(serializedSemanticId.innerXml);
22602
+ parts.push(closeTag("semanticId"));
22603
+ }
22604
+ if (that.supplementalSemanticIds !== null) {
22605
+ parts.push(openTag("supplementalSemanticIds"));
22606
+ for (const itemSupplementalSemanticIds of that.supplementalSemanticIds) {
22607
+ const serializedSupplementalSemanticIdsItem = this.transform(itemSupplementalSemanticIds);
22608
+ parts.push(openTag(serializedSupplementalSemanticIdsItem.localName));
22609
+ parts.push(serializedSupplementalSemanticIdsItem.innerXml);
22610
+ parts.push(closeTag(serializedSupplementalSemanticIdsItem.localName));
22611
+ }
22612
+ parts.push(closeTag("supplementalSemanticIds"));
22613
+ }
22614
+ parts.push(openTag("name"));
22615
+ parts.push(serializeStringText(that.name));
22616
+ parts.push(closeTag("name"));
22617
+ parts.push(openTag("value"));
22618
+ parts.push(serializeStringText(that.value));
22619
+ parts.push(closeTag("value"));
22620
+ if (that.externalSubjectId !== null) {
22621
+ const serializedExternalSubjectId = this.transform(that.externalSubjectId);
22622
+ parts.push(openTag("externalSubjectId"));
22623
+ parts.push(serializedExternalSubjectId.innerXml);
22624
+ parts.push(closeTag("externalSubjectId"));
22625
+ }
22626
+ return {
22627
+ localName: "specificAssetId",
22628
+ innerXml: parts.join("")
22629
+ };
22630
+ }
22631
+ /**
22632
+ * Serialize `that` to an XML element representation.
22633
+ *
22634
+ * @param that - instance to be serialized
22635
+ * @returns serialized XML element representation
22636
+ */ transformSubmodel(that) {
22637
+ const parts = new Array();
22638
+ if (that.extensions !== null) {
22639
+ parts.push(openTag("extensions"));
22640
+ for (const itemExtensions of that.extensions) {
22641
+ const serializedExtensionsItem = this.transform(itemExtensions);
22642
+ parts.push(openTag(serializedExtensionsItem.localName));
22643
+ parts.push(serializedExtensionsItem.innerXml);
22644
+ parts.push(closeTag(serializedExtensionsItem.localName));
22645
+ }
22646
+ parts.push(closeTag("extensions"));
22647
+ }
22648
+ if (that.category !== null) {
22649
+ parts.push(openTag("category"));
22650
+ parts.push(serializeStringText(that.category));
22651
+ parts.push(closeTag("category"));
22652
+ }
22653
+ if (that.idShort !== null) {
22654
+ parts.push(openTag("idShort"));
22655
+ parts.push(serializeStringText(that.idShort));
22656
+ parts.push(closeTag("idShort"));
22657
+ }
22658
+ if (that.displayName !== null) {
22659
+ parts.push(openTag("displayName"));
22660
+ for (const itemDisplayName of that.displayName) {
22661
+ const serializedDisplayNameItem = this.transform(itemDisplayName);
22662
+ parts.push(openTag(serializedDisplayNameItem.localName));
22663
+ parts.push(serializedDisplayNameItem.innerXml);
22664
+ parts.push(closeTag(serializedDisplayNameItem.localName));
22665
+ }
22666
+ parts.push(closeTag("displayName"));
22667
+ }
22668
+ if (that.description !== null) {
22669
+ parts.push(openTag("description"));
22670
+ for (const itemDescription of that.description) {
22671
+ const serializedDescriptionItem = this.transform(itemDescription);
22672
+ parts.push(openTag(serializedDescriptionItem.localName));
22673
+ parts.push(serializedDescriptionItem.innerXml);
22674
+ parts.push(closeTag(serializedDescriptionItem.localName));
22675
+ }
22676
+ parts.push(closeTag("description"));
22677
+ }
22678
+ if (that.administration !== null) {
22679
+ const serializedAdministration = this.transform(that.administration);
22680
+ parts.push(openTag("administration"));
22681
+ parts.push(serializedAdministration.innerXml);
22682
+ parts.push(closeTag("administration"));
22683
+ }
22684
+ parts.push(openTag("id"));
22685
+ parts.push(serializeStringText(that.id));
22686
+ parts.push(closeTag("id"));
22687
+ if (that.kind !== null) {
22688
+ parts.push(openTag("kind"));
22689
+ parts.push(serializeModellingKindText(that.kind));
22690
+ parts.push(closeTag("kind"));
22691
+ }
22692
+ if (that.semanticId !== null) {
22693
+ const serializedSemanticId = this.transform(that.semanticId);
22694
+ parts.push(openTag("semanticId"));
22695
+ parts.push(serializedSemanticId.innerXml);
22696
+ parts.push(closeTag("semanticId"));
22697
+ }
22698
+ if (that.supplementalSemanticIds !== null) {
22699
+ parts.push(openTag("supplementalSemanticIds"));
22700
+ for (const itemSupplementalSemanticIds of that.supplementalSemanticIds) {
22701
+ const serializedSupplementalSemanticIdsItem = this.transform(itemSupplementalSemanticIds);
22702
+ parts.push(openTag(serializedSupplementalSemanticIdsItem.localName));
22703
+ parts.push(serializedSupplementalSemanticIdsItem.innerXml);
22704
+ parts.push(closeTag(serializedSupplementalSemanticIdsItem.localName));
22705
+ }
22706
+ parts.push(closeTag("supplementalSemanticIds"));
22707
+ }
22708
+ if (that.qualifiers !== null) {
22709
+ parts.push(openTag("qualifiers"));
22710
+ for (const itemQualifiers of that.qualifiers) {
22711
+ const serializedQualifiersItem = this.transform(itemQualifiers);
22712
+ parts.push(openTag(serializedQualifiersItem.localName));
22713
+ parts.push(serializedQualifiersItem.innerXml);
22714
+ parts.push(closeTag(serializedQualifiersItem.localName));
22715
+ }
22716
+ parts.push(closeTag("qualifiers"));
22717
+ }
22718
+ if (that.embeddedDataSpecifications !== null) {
22719
+ parts.push(openTag("embeddedDataSpecifications"));
22720
+ for (const itemEmbeddedDataSpecifications of that.embeddedDataSpecifications) {
22721
+ const serializedEmbeddedDataSpecificationsItem = this.transform(itemEmbeddedDataSpecifications);
22722
+ parts.push(openTag(serializedEmbeddedDataSpecificationsItem.localName));
22723
+ parts.push(serializedEmbeddedDataSpecificationsItem.innerXml);
22724
+ parts.push(closeTag(serializedEmbeddedDataSpecificationsItem.localName));
22725
+ }
22726
+ parts.push(closeTag("embeddedDataSpecifications"));
22727
+ }
22728
+ if (that.submodelElements !== null) {
22729
+ parts.push(openTag("submodelElements"));
22730
+ for (const itemSubmodelElements of that.submodelElements) {
22731
+ const serializedSubmodelElementsItem = this.transform(itemSubmodelElements);
22732
+ parts.push(openTag(serializedSubmodelElementsItem.localName));
22733
+ parts.push(serializedSubmodelElementsItem.innerXml);
22734
+ parts.push(closeTag(serializedSubmodelElementsItem.localName));
22735
+ }
22736
+ parts.push(closeTag("submodelElements"));
22737
+ }
22738
+ return {
22739
+ localName: "submodel",
22740
+ innerXml: parts.join("")
22741
+ };
22742
+ }
22743
+ /**
22744
+ * Serialize `that` to an XML element representation.
22745
+ *
22746
+ * @param that - instance to be serialized
22747
+ * @returns serialized XML element representation
22748
+ */ transformRelationshipElement(that) {
22749
+ const parts = new Array();
22750
+ if (that.extensions !== null) {
22751
+ parts.push(openTag("extensions"));
22752
+ for (const itemExtensions of that.extensions) {
22753
+ const serializedExtensionsItem = this.transform(itemExtensions);
22754
+ parts.push(openTag(serializedExtensionsItem.localName));
22755
+ parts.push(serializedExtensionsItem.innerXml);
22756
+ parts.push(closeTag(serializedExtensionsItem.localName));
22757
+ }
22758
+ parts.push(closeTag("extensions"));
22759
+ }
22760
+ if (that.category !== null) {
22761
+ parts.push(openTag("category"));
22762
+ parts.push(serializeStringText(that.category));
22763
+ parts.push(closeTag("category"));
22764
+ }
22765
+ if (that.idShort !== null) {
22766
+ parts.push(openTag("idShort"));
22767
+ parts.push(serializeStringText(that.idShort));
22768
+ parts.push(closeTag("idShort"));
22769
+ }
22770
+ if (that.displayName !== null) {
22771
+ parts.push(openTag("displayName"));
22772
+ for (const itemDisplayName of that.displayName) {
22773
+ const serializedDisplayNameItem = this.transform(itemDisplayName);
22774
+ parts.push(openTag(serializedDisplayNameItem.localName));
22775
+ parts.push(serializedDisplayNameItem.innerXml);
22776
+ parts.push(closeTag(serializedDisplayNameItem.localName));
22777
+ }
22778
+ parts.push(closeTag("displayName"));
22779
+ }
22780
+ if (that.description !== null) {
22781
+ parts.push(openTag("description"));
22782
+ for (const itemDescription of that.description) {
22783
+ const serializedDescriptionItem = this.transform(itemDescription);
22784
+ parts.push(openTag(serializedDescriptionItem.localName));
22785
+ parts.push(serializedDescriptionItem.innerXml);
22786
+ parts.push(closeTag(serializedDescriptionItem.localName));
22787
+ }
22788
+ parts.push(closeTag("description"));
22789
+ }
22790
+ if (that.semanticId !== null) {
22791
+ const serializedSemanticId = this.transform(that.semanticId);
22792
+ parts.push(openTag("semanticId"));
22793
+ parts.push(serializedSemanticId.innerXml);
22794
+ parts.push(closeTag("semanticId"));
22795
+ }
22796
+ if (that.supplementalSemanticIds !== null) {
22797
+ parts.push(openTag("supplementalSemanticIds"));
22798
+ for (const itemSupplementalSemanticIds of that.supplementalSemanticIds) {
22799
+ const serializedSupplementalSemanticIdsItem = this.transform(itemSupplementalSemanticIds);
22800
+ parts.push(openTag(serializedSupplementalSemanticIdsItem.localName));
22801
+ parts.push(serializedSupplementalSemanticIdsItem.innerXml);
22802
+ parts.push(closeTag(serializedSupplementalSemanticIdsItem.localName));
22803
+ }
22804
+ parts.push(closeTag("supplementalSemanticIds"));
22805
+ }
22806
+ if (that.qualifiers !== null) {
22807
+ parts.push(openTag("qualifiers"));
22808
+ for (const itemQualifiers of that.qualifiers) {
22809
+ const serializedQualifiersItem = this.transform(itemQualifiers);
22810
+ parts.push(openTag(serializedQualifiersItem.localName));
22811
+ parts.push(serializedQualifiersItem.innerXml);
22812
+ parts.push(closeTag(serializedQualifiersItem.localName));
22813
+ }
22814
+ parts.push(closeTag("qualifiers"));
22815
+ }
22816
+ if (that.embeddedDataSpecifications !== null) {
22817
+ parts.push(openTag("embeddedDataSpecifications"));
22818
+ for (const itemEmbeddedDataSpecifications of that.embeddedDataSpecifications) {
22819
+ const serializedEmbeddedDataSpecificationsItem = this.transform(itemEmbeddedDataSpecifications);
22820
+ parts.push(openTag(serializedEmbeddedDataSpecificationsItem.localName));
22821
+ parts.push(serializedEmbeddedDataSpecificationsItem.innerXml);
22822
+ parts.push(closeTag(serializedEmbeddedDataSpecificationsItem.localName));
22823
+ }
22824
+ parts.push(closeTag("embeddedDataSpecifications"));
22825
+ }
22826
+ if (that.first !== null) {
22827
+ const serializedFirst = this.transform(that.first);
22828
+ parts.push(openTag("first"));
22829
+ parts.push(serializedFirst.innerXml);
22830
+ parts.push(closeTag("first"));
22831
+ }
22832
+ if (that.second !== null) {
22833
+ const serializedSecond = this.transform(that.second);
22834
+ parts.push(openTag("second"));
22835
+ parts.push(serializedSecond.innerXml);
22836
+ parts.push(closeTag("second"));
22837
+ }
22838
+ return {
22839
+ localName: "relationshipElement",
22840
+ innerXml: parts.join("")
22841
+ };
22842
+ }
22843
+ /**
22844
+ * Serialize `that` to an XML element representation.
22845
+ *
22846
+ * @param that - instance to be serialized
22847
+ * @returns serialized XML element representation
22848
+ */ transformSubmodelElementList(that) {
22849
+ const parts = new Array();
22850
+ if (that.extensions !== null) {
22851
+ parts.push(openTag("extensions"));
22852
+ for (const itemExtensions of that.extensions) {
22853
+ const serializedExtensionsItem = this.transform(itemExtensions);
22854
+ parts.push(openTag(serializedExtensionsItem.localName));
22855
+ parts.push(serializedExtensionsItem.innerXml);
22856
+ parts.push(closeTag(serializedExtensionsItem.localName));
22857
+ }
22858
+ parts.push(closeTag("extensions"));
22859
+ }
22860
+ if (that.category !== null) {
22861
+ parts.push(openTag("category"));
22862
+ parts.push(serializeStringText(that.category));
22863
+ parts.push(closeTag("category"));
22864
+ }
22865
+ if (that.idShort !== null) {
22866
+ parts.push(openTag("idShort"));
22867
+ parts.push(serializeStringText(that.idShort));
22868
+ parts.push(closeTag("idShort"));
22869
+ }
22870
+ if (that.displayName !== null) {
22871
+ parts.push(openTag("displayName"));
22872
+ for (const itemDisplayName of that.displayName) {
22873
+ const serializedDisplayNameItem = this.transform(itemDisplayName);
22874
+ parts.push(openTag(serializedDisplayNameItem.localName));
22875
+ parts.push(serializedDisplayNameItem.innerXml);
22876
+ parts.push(closeTag(serializedDisplayNameItem.localName));
22877
+ }
22878
+ parts.push(closeTag("displayName"));
22879
+ }
22880
+ if (that.description !== null) {
22881
+ parts.push(openTag("description"));
22882
+ for (const itemDescription of that.description) {
22883
+ const serializedDescriptionItem = this.transform(itemDescription);
22884
+ parts.push(openTag(serializedDescriptionItem.localName));
22885
+ parts.push(serializedDescriptionItem.innerXml);
22886
+ parts.push(closeTag(serializedDescriptionItem.localName));
22887
+ }
22888
+ parts.push(closeTag("description"));
22889
+ }
22890
+ if (that.semanticId !== null) {
22891
+ const serializedSemanticId = this.transform(that.semanticId);
22892
+ parts.push(openTag("semanticId"));
22893
+ parts.push(serializedSemanticId.innerXml);
22894
+ parts.push(closeTag("semanticId"));
22895
+ }
22896
+ if (that.supplementalSemanticIds !== null) {
22897
+ parts.push(openTag("supplementalSemanticIds"));
22898
+ for (const itemSupplementalSemanticIds of that.supplementalSemanticIds) {
22899
+ const serializedSupplementalSemanticIdsItem = this.transform(itemSupplementalSemanticIds);
22900
+ parts.push(openTag(serializedSupplementalSemanticIdsItem.localName));
22901
+ parts.push(serializedSupplementalSemanticIdsItem.innerXml);
22902
+ parts.push(closeTag(serializedSupplementalSemanticIdsItem.localName));
22903
+ }
22904
+ parts.push(closeTag("supplementalSemanticIds"));
22905
+ }
22906
+ if (that.qualifiers !== null) {
22907
+ parts.push(openTag("qualifiers"));
22908
+ for (const itemQualifiers of that.qualifiers) {
22909
+ const serializedQualifiersItem = this.transform(itemQualifiers);
22910
+ parts.push(openTag(serializedQualifiersItem.localName));
22911
+ parts.push(serializedQualifiersItem.innerXml);
22912
+ parts.push(closeTag(serializedQualifiersItem.localName));
22913
+ }
22914
+ parts.push(closeTag("qualifiers"));
22915
+ }
22916
+ if (that.embeddedDataSpecifications !== null) {
22917
+ parts.push(openTag("embeddedDataSpecifications"));
22918
+ for (const itemEmbeddedDataSpecifications of that.embeddedDataSpecifications) {
22919
+ const serializedEmbeddedDataSpecificationsItem = this.transform(itemEmbeddedDataSpecifications);
22920
+ parts.push(openTag(serializedEmbeddedDataSpecificationsItem.localName));
22921
+ parts.push(serializedEmbeddedDataSpecificationsItem.innerXml);
22922
+ parts.push(closeTag(serializedEmbeddedDataSpecificationsItem.localName));
22923
+ }
22924
+ parts.push(closeTag("embeddedDataSpecifications"));
22925
+ }
22926
+ if (that.orderRelevant !== null) {
22927
+ parts.push(openTag("orderRelevant"));
22928
+ parts.push(serializeBooleanText(that.orderRelevant));
22929
+ parts.push(closeTag("orderRelevant"));
22930
+ }
22931
+ if (that.semanticIdListElement !== null) {
22932
+ const serializedSemanticIdListElement = this.transform(that.semanticIdListElement);
22933
+ parts.push(openTag("semanticIdListElement"));
22934
+ parts.push(serializedSemanticIdListElement.innerXml);
22935
+ parts.push(closeTag("semanticIdListElement"));
22936
+ }
22937
+ parts.push(openTag("typeValueListElement"));
22938
+ parts.push(serializeAasSubmodelElementsText(that.typeValueListElement));
22939
+ parts.push(closeTag("typeValueListElement"));
22940
+ if (that.valueTypeListElement !== null) {
22941
+ parts.push(openTag("valueTypeListElement"));
22942
+ parts.push(serializeDataTypeDefXsdText(that.valueTypeListElement));
22943
+ parts.push(closeTag("valueTypeListElement"));
22944
+ }
22945
+ if (that.value !== null) {
22946
+ parts.push(openTag("value"));
22947
+ for (const itemValue of that.value) {
22948
+ const serializedValueItem = this.transform(itemValue);
22949
+ parts.push(openTag(serializedValueItem.localName));
22950
+ parts.push(serializedValueItem.innerXml);
22951
+ parts.push(closeTag(serializedValueItem.localName));
22952
+ }
22953
+ parts.push(closeTag("value"));
22954
+ }
22955
+ return {
22956
+ localName: "submodelElementList",
22957
+ innerXml: parts.join("")
22958
+ };
22959
+ }
22960
+ /**
22961
+ * Serialize `that` to an XML element representation.
22962
+ *
22963
+ * @param that - instance to be serialized
22964
+ * @returns serialized XML element representation
22965
+ */ transformSubmodelElementCollection(that) {
22966
+ const parts = new Array();
22967
+ if (that.extensions !== null) {
22968
+ parts.push(openTag("extensions"));
22969
+ for (const itemExtensions of that.extensions) {
22970
+ const serializedExtensionsItem = this.transform(itemExtensions);
22971
+ parts.push(openTag(serializedExtensionsItem.localName));
22972
+ parts.push(serializedExtensionsItem.innerXml);
22973
+ parts.push(closeTag(serializedExtensionsItem.localName));
22974
+ }
22975
+ parts.push(closeTag("extensions"));
22976
+ }
22977
+ if (that.category !== null) {
22978
+ parts.push(openTag("category"));
22979
+ parts.push(serializeStringText(that.category));
22980
+ parts.push(closeTag("category"));
22981
+ }
22982
+ if (that.idShort !== null) {
22983
+ parts.push(openTag("idShort"));
22984
+ parts.push(serializeStringText(that.idShort));
22985
+ parts.push(closeTag("idShort"));
22986
+ }
22987
+ if (that.displayName !== null) {
22988
+ parts.push(openTag("displayName"));
22989
+ for (const itemDisplayName of that.displayName) {
22990
+ const serializedDisplayNameItem = this.transform(itemDisplayName);
22991
+ parts.push(openTag(serializedDisplayNameItem.localName));
22992
+ parts.push(serializedDisplayNameItem.innerXml);
22993
+ parts.push(closeTag(serializedDisplayNameItem.localName));
22994
+ }
22995
+ parts.push(closeTag("displayName"));
22996
+ }
22997
+ if (that.description !== null) {
22998
+ parts.push(openTag("description"));
22999
+ for (const itemDescription of that.description) {
23000
+ const serializedDescriptionItem = this.transform(itemDescription);
23001
+ parts.push(openTag(serializedDescriptionItem.localName));
23002
+ parts.push(serializedDescriptionItem.innerXml);
23003
+ parts.push(closeTag(serializedDescriptionItem.localName));
23004
+ }
23005
+ parts.push(closeTag("description"));
23006
+ }
23007
+ if (that.semanticId !== null) {
23008
+ const serializedSemanticId = this.transform(that.semanticId);
23009
+ parts.push(openTag("semanticId"));
23010
+ parts.push(serializedSemanticId.innerXml);
23011
+ parts.push(closeTag("semanticId"));
23012
+ }
23013
+ if (that.supplementalSemanticIds !== null) {
23014
+ parts.push(openTag("supplementalSemanticIds"));
23015
+ for (const itemSupplementalSemanticIds of that.supplementalSemanticIds) {
23016
+ const serializedSupplementalSemanticIdsItem = this.transform(itemSupplementalSemanticIds);
23017
+ parts.push(openTag(serializedSupplementalSemanticIdsItem.localName));
23018
+ parts.push(serializedSupplementalSemanticIdsItem.innerXml);
23019
+ parts.push(closeTag(serializedSupplementalSemanticIdsItem.localName));
23020
+ }
23021
+ parts.push(closeTag("supplementalSemanticIds"));
23022
+ }
23023
+ if (that.qualifiers !== null) {
23024
+ parts.push(openTag("qualifiers"));
23025
+ for (const itemQualifiers of that.qualifiers) {
23026
+ const serializedQualifiersItem = this.transform(itemQualifiers);
23027
+ parts.push(openTag(serializedQualifiersItem.localName));
23028
+ parts.push(serializedQualifiersItem.innerXml);
23029
+ parts.push(closeTag(serializedQualifiersItem.localName));
23030
+ }
23031
+ parts.push(closeTag("qualifiers"));
23032
+ }
23033
+ if (that.embeddedDataSpecifications !== null) {
23034
+ parts.push(openTag("embeddedDataSpecifications"));
23035
+ for (const itemEmbeddedDataSpecifications of that.embeddedDataSpecifications) {
23036
+ const serializedEmbeddedDataSpecificationsItem = this.transform(itemEmbeddedDataSpecifications);
23037
+ parts.push(openTag(serializedEmbeddedDataSpecificationsItem.localName));
23038
+ parts.push(serializedEmbeddedDataSpecificationsItem.innerXml);
23039
+ parts.push(closeTag(serializedEmbeddedDataSpecificationsItem.localName));
23040
+ }
23041
+ parts.push(closeTag("embeddedDataSpecifications"));
23042
+ }
23043
+ if (that.value !== null) {
23044
+ parts.push(openTag("value"));
23045
+ for (const itemValue of that.value) {
23046
+ const serializedValueItem = this.transform(itemValue);
23047
+ parts.push(openTag(serializedValueItem.localName));
23048
+ parts.push(serializedValueItem.innerXml);
23049
+ parts.push(closeTag(serializedValueItem.localName));
23050
+ }
23051
+ parts.push(closeTag("value"));
23052
+ }
23053
+ return {
23054
+ localName: "submodelElementCollection",
23055
+ innerXml: parts.join("")
23056
+ };
23057
+ }
23058
+ /**
23059
+ * Serialize `that` to an XML element representation.
23060
+ *
23061
+ * @param that - instance to be serialized
23062
+ * @returns serialized XML element representation
23063
+ */ transformProperty(that) {
23064
+ const parts = new Array();
23065
+ if (that.extensions !== null) {
23066
+ parts.push(openTag("extensions"));
23067
+ for (const itemExtensions of that.extensions) {
23068
+ const serializedExtensionsItem = this.transform(itemExtensions);
23069
+ parts.push(openTag(serializedExtensionsItem.localName));
23070
+ parts.push(serializedExtensionsItem.innerXml);
23071
+ parts.push(closeTag(serializedExtensionsItem.localName));
23072
+ }
23073
+ parts.push(closeTag("extensions"));
23074
+ }
23075
+ if (that.category !== null) {
23076
+ parts.push(openTag("category"));
23077
+ parts.push(serializeStringText(that.category));
23078
+ parts.push(closeTag("category"));
23079
+ }
23080
+ if (that.idShort !== null) {
23081
+ parts.push(openTag("idShort"));
23082
+ parts.push(serializeStringText(that.idShort));
23083
+ parts.push(closeTag("idShort"));
23084
+ }
23085
+ if (that.displayName !== null) {
23086
+ parts.push(openTag("displayName"));
23087
+ for (const itemDisplayName of that.displayName) {
23088
+ const serializedDisplayNameItem = this.transform(itemDisplayName);
23089
+ parts.push(openTag(serializedDisplayNameItem.localName));
23090
+ parts.push(serializedDisplayNameItem.innerXml);
23091
+ parts.push(closeTag(serializedDisplayNameItem.localName));
23092
+ }
23093
+ parts.push(closeTag("displayName"));
23094
+ }
23095
+ if (that.description !== null) {
23096
+ parts.push(openTag("description"));
23097
+ for (const itemDescription of that.description) {
23098
+ const serializedDescriptionItem = this.transform(itemDescription);
23099
+ parts.push(openTag(serializedDescriptionItem.localName));
23100
+ parts.push(serializedDescriptionItem.innerXml);
23101
+ parts.push(closeTag(serializedDescriptionItem.localName));
23102
+ }
23103
+ parts.push(closeTag("description"));
23104
+ }
23105
+ if (that.semanticId !== null) {
23106
+ const serializedSemanticId = this.transform(that.semanticId);
23107
+ parts.push(openTag("semanticId"));
23108
+ parts.push(serializedSemanticId.innerXml);
23109
+ parts.push(closeTag("semanticId"));
23110
+ }
23111
+ if (that.supplementalSemanticIds !== null) {
23112
+ parts.push(openTag("supplementalSemanticIds"));
23113
+ for (const itemSupplementalSemanticIds of that.supplementalSemanticIds) {
23114
+ const serializedSupplementalSemanticIdsItem = this.transform(itemSupplementalSemanticIds);
23115
+ parts.push(openTag(serializedSupplementalSemanticIdsItem.localName));
23116
+ parts.push(serializedSupplementalSemanticIdsItem.innerXml);
23117
+ parts.push(closeTag(serializedSupplementalSemanticIdsItem.localName));
23118
+ }
23119
+ parts.push(closeTag("supplementalSemanticIds"));
23120
+ }
23121
+ if (that.qualifiers !== null) {
23122
+ parts.push(openTag("qualifiers"));
23123
+ for (const itemQualifiers of that.qualifiers) {
23124
+ const serializedQualifiersItem = this.transform(itemQualifiers);
23125
+ parts.push(openTag(serializedQualifiersItem.localName));
23126
+ parts.push(serializedQualifiersItem.innerXml);
23127
+ parts.push(closeTag(serializedQualifiersItem.localName));
23128
+ }
23129
+ parts.push(closeTag("qualifiers"));
23130
+ }
23131
+ if (that.embeddedDataSpecifications !== null) {
23132
+ parts.push(openTag("embeddedDataSpecifications"));
23133
+ for (const itemEmbeddedDataSpecifications of that.embeddedDataSpecifications) {
23134
+ const serializedEmbeddedDataSpecificationsItem = this.transform(itemEmbeddedDataSpecifications);
23135
+ parts.push(openTag(serializedEmbeddedDataSpecificationsItem.localName));
23136
+ parts.push(serializedEmbeddedDataSpecificationsItem.innerXml);
23137
+ parts.push(closeTag(serializedEmbeddedDataSpecificationsItem.localName));
23138
+ }
23139
+ parts.push(closeTag("embeddedDataSpecifications"));
23140
+ }
23141
+ parts.push(openTag("valueType"));
23142
+ parts.push(serializeDataTypeDefXsdText(that.valueType));
23143
+ parts.push(closeTag("valueType"));
23144
+ if (that.value !== null) {
23145
+ parts.push(openTag("value"));
23146
+ parts.push(serializeStringText(that.value));
23147
+ parts.push(closeTag("value"));
23148
+ }
23149
+ if (that.valueId !== null) {
23150
+ const serializedValueId = this.transform(that.valueId);
23151
+ parts.push(openTag("valueId"));
23152
+ parts.push(serializedValueId.innerXml);
23153
+ parts.push(closeTag("valueId"));
23154
+ }
23155
+ return {
23156
+ localName: "property",
23157
+ innerXml: parts.join("")
23158
+ };
23159
+ }
23160
+ /**
23161
+ * Serialize `that` to an XML element representation.
23162
+ *
23163
+ * @param that - instance to be serialized
23164
+ * @returns serialized XML element representation
23165
+ */ transformMultiLanguageProperty(that) {
23166
+ const parts = new Array();
23167
+ if (that.extensions !== null) {
23168
+ parts.push(openTag("extensions"));
23169
+ for (const itemExtensions of that.extensions) {
23170
+ const serializedExtensionsItem = this.transform(itemExtensions);
23171
+ parts.push(openTag(serializedExtensionsItem.localName));
23172
+ parts.push(serializedExtensionsItem.innerXml);
23173
+ parts.push(closeTag(serializedExtensionsItem.localName));
23174
+ }
23175
+ parts.push(closeTag("extensions"));
23176
+ }
23177
+ if (that.category !== null) {
23178
+ parts.push(openTag("category"));
23179
+ parts.push(serializeStringText(that.category));
23180
+ parts.push(closeTag("category"));
23181
+ }
23182
+ if (that.idShort !== null) {
23183
+ parts.push(openTag("idShort"));
23184
+ parts.push(serializeStringText(that.idShort));
23185
+ parts.push(closeTag("idShort"));
23186
+ }
23187
+ if (that.displayName !== null) {
23188
+ parts.push(openTag("displayName"));
23189
+ for (const itemDisplayName of that.displayName) {
23190
+ const serializedDisplayNameItem = this.transform(itemDisplayName);
23191
+ parts.push(openTag(serializedDisplayNameItem.localName));
23192
+ parts.push(serializedDisplayNameItem.innerXml);
23193
+ parts.push(closeTag(serializedDisplayNameItem.localName));
23194
+ }
23195
+ parts.push(closeTag("displayName"));
23196
+ }
23197
+ if (that.description !== null) {
23198
+ parts.push(openTag("description"));
23199
+ for (const itemDescription of that.description) {
23200
+ const serializedDescriptionItem = this.transform(itemDescription);
23201
+ parts.push(openTag(serializedDescriptionItem.localName));
23202
+ parts.push(serializedDescriptionItem.innerXml);
23203
+ parts.push(closeTag(serializedDescriptionItem.localName));
23204
+ }
23205
+ parts.push(closeTag("description"));
23206
+ }
23207
+ if (that.semanticId !== null) {
23208
+ const serializedSemanticId = this.transform(that.semanticId);
23209
+ parts.push(openTag("semanticId"));
23210
+ parts.push(serializedSemanticId.innerXml);
23211
+ parts.push(closeTag("semanticId"));
23212
+ }
23213
+ if (that.supplementalSemanticIds !== null) {
23214
+ parts.push(openTag("supplementalSemanticIds"));
23215
+ for (const itemSupplementalSemanticIds of that.supplementalSemanticIds) {
23216
+ const serializedSupplementalSemanticIdsItem = this.transform(itemSupplementalSemanticIds);
23217
+ parts.push(openTag(serializedSupplementalSemanticIdsItem.localName));
23218
+ parts.push(serializedSupplementalSemanticIdsItem.innerXml);
23219
+ parts.push(closeTag(serializedSupplementalSemanticIdsItem.localName));
23220
+ }
23221
+ parts.push(closeTag("supplementalSemanticIds"));
23222
+ }
23223
+ if (that.qualifiers !== null) {
23224
+ parts.push(openTag("qualifiers"));
23225
+ for (const itemQualifiers of that.qualifiers) {
23226
+ const serializedQualifiersItem = this.transform(itemQualifiers);
23227
+ parts.push(openTag(serializedQualifiersItem.localName));
23228
+ parts.push(serializedQualifiersItem.innerXml);
23229
+ parts.push(closeTag(serializedQualifiersItem.localName));
23230
+ }
23231
+ parts.push(closeTag("qualifiers"));
23232
+ }
23233
+ if (that.embeddedDataSpecifications !== null) {
23234
+ parts.push(openTag("embeddedDataSpecifications"));
23235
+ for (const itemEmbeddedDataSpecifications of that.embeddedDataSpecifications) {
23236
+ const serializedEmbeddedDataSpecificationsItem = this.transform(itemEmbeddedDataSpecifications);
23237
+ parts.push(openTag(serializedEmbeddedDataSpecificationsItem.localName));
23238
+ parts.push(serializedEmbeddedDataSpecificationsItem.innerXml);
23239
+ parts.push(closeTag(serializedEmbeddedDataSpecificationsItem.localName));
23240
+ }
23241
+ parts.push(closeTag("embeddedDataSpecifications"));
23242
+ }
23243
+ if (that.value !== null) {
23244
+ parts.push(openTag("value"));
23245
+ for (const itemValue of that.value) {
23246
+ const serializedValueItem = this.transform(itemValue);
23247
+ parts.push(openTag(serializedValueItem.localName));
23248
+ parts.push(serializedValueItem.innerXml);
23249
+ parts.push(closeTag(serializedValueItem.localName));
23250
+ }
23251
+ parts.push(closeTag("value"));
23252
+ }
23253
+ if (that.valueId !== null) {
23254
+ const serializedValueId = this.transform(that.valueId);
23255
+ parts.push(openTag("valueId"));
23256
+ parts.push(serializedValueId.innerXml);
23257
+ parts.push(closeTag("valueId"));
23258
+ }
23259
+ return {
23260
+ localName: "multiLanguageProperty",
23261
+ innerXml: parts.join("")
23262
+ };
23263
+ }
23264
+ /**
23265
+ * Serialize `that` to an XML element representation.
23266
+ *
23267
+ * @param that - instance to be serialized
23268
+ * @returns serialized XML element representation
23269
+ */ transformRange(that) {
23270
+ const parts = new Array();
23271
+ if (that.extensions !== null) {
23272
+ parts.push(openTag("extensions"));
23273
+ for (const itemExtensions of that.extensions) {
23274
+ const serializedExtensionsItem = this.transform(itemExtensions);
23275
+ parts.push(openTag(serializedExtensionsItem.localName));
23276
+ parts.push(serializedExtensionsItem.innerXml);
23277
+ parts.push(closeTag(serializedExtensionsItem.localName));
23278
+ }
23279
+ parts.push(closeTag("extensions"));
23280
+ }
23281
+ if (that.category !== null) {
23282
+ parts.push(openTag("category"));
23283
+ parts.push(serializeStringText(that.category));
23284
+ parts.push(closeTag("category"));
23285
+ }
23286
+ if (that.idShort !== null) {
23287
+ parts.push(openTag("idShort"));
23288
+ parts.push(serializeStringText(that.idShort));
23289
+ parts.push(closeTag("idShort"));
23290
+ }
23291
+ if (that.displayName !== null) {
23292
+ parts.push(openTag("displayName"));
23293
+ for (const itemDisplayName of that.displayName) {
23294
+ const serializedDisplayNameItem = this.transform(itemDisplayName);
23295
+ parts.push(openTag(serializedDisplayNameItem.localName));
23296
+ parts.push(serializedDisplayNameItem.innerXml);
23297
+ parts.push(closeTag(serializedDisplayNameItem.localName));
23298
+ }
23299
+ parts.push(closeTag("displayName"));
23300
+ }
23301
+ if (that.description !== null) {
23302
+ parts.push(openTag("description"));
23303
+ for (const itemDescription of that.description) {
23304
+ const serializedDescriptionItem = this.transform(itemDescription);
23305
+ parts.push(openTag(serializedDescriptionItem.localName));
23306
+ parts.push(serializedDescriptionItem.innerXml);
23307
+ parts.push(closeTag(serializedDescriptionItem.localName));
23308
+ }
23309
+ parts.push(closeTag("description"));
23310
+ }
23311
+ if (that.semanticId !== null) {
23312
+ const serializedSemanticId = this.transform(that.semanticId);
23313
+ parts.push(openTag("semanticId"));
23314
+ parts.push(serializedSemanticId.innerXml);
23315
+ parts.push(closeTag("semanticId"));
23316
+ }
23317
+ if (that.supplementalSemanticIds !== null) {
23318
+ parts.push(openTag("supplementalSemanticIds"));
23319
+ for (const itemSupplementalSemanticIds of that.supplementalSemanticIds) {
23320
+ const serializedSupplementalSemanticIdsItem = this.transform(itemSupplementalSemanticIds);
23321
+ parts.push(openTag(serializedSupplementalSemanticIdsItem.localName));
23322
+ parts.push(serializedSupplementalSemanticIdsItem.innerXml);
23323
+ parts.push(closeTag(serializedSupplementalSemanticIdsItem.localName));
23324
+ }
23325
+ parts.push(closeTag("supplementalSemanticIds"));
23326
+ }
23327
+ if (that.qualifiers !== null) {
23328
+ parts.push(openTag("qualifiers"));
23329
+ for (const itemQualifiers of that.qualifiers) {
23330
+ const serializedQualifiersItem = this.transform(itemQualifiers);
23331
+ parts.push(openTag(serializedQualifiersItem.localName));
23332
+ parts.push(serializedQualifiersItem.innerXml);
23333
+ parts.push(closeTag(serializedQualifiersItem.localName));
23334
+ }
23335
+ parts.push(closeTag("qualifiers"));
23336
+ }
23337
+ if (that.embeddedDataSpecifications !== null) {
23338
+ parts.push(openTag("embeddedDataSpecifications"));
23339
+ for (const itemEmbeddedDataSpecifications of that.embeddedDataSpecifications) {
23340
+ const serializedEmbeddedDataSpecificationsItem = this.transform(itemEmbeddedDataSpecifications);
23341
+ parts.push(openTag(serializedEmbeddedDataSpecificationsItem.localName));
23342
+ parts.push(serializedEmbeddedDataSpecificationsItem.innerXml);
23343
+ parts.push(closeTag(serializedEmbeddedDataSpecificationsItem.localName));
23344
+ }
23345
+ parts.push(closeTag("embeddedDataSpecifications"));
23346
+ }
23347
+ parts.push(openTag("valueType"));
23348
+ parts.push(serializeDataTypeDefXsdText(that.valueType));
23349
+ parts.push(closeTag("valueType"));
23350
+ if (that.min !== null) {
23351
+ parts.push(openTag("min"));
23352
+ parts.push(serializeStringText(that.min));
23353
+ parts.push(closeTag("min"));
23354
+ }
23355
+ if (that.max !== null) {
23356
+ parts.push(openTag("max"));
23357
+ parts.push(serializeStringText(that.max));
23358
+ parts.push(closeTag("max"));
23359
+ }
23360
+ return {
23361
+ localName: "range",
23362
+ innerXml: parts.join("")
23363
+ };
23364
+ }
23365
+ /**
23366
+ * Serialize `that` to an XML element representation.
23367
+ *
23368
+ * @param that - instance to be serialized
23369
+ * @returns serialized XML element representation
23370
+ */ transformReferenceElement(that) {
23371
+ const parts = new Array();
23372
+ if (that.extensions !== null) {
23373
+ parts.push(openTag("extensions"));
23374
+ for (const itemExtensions of that.extensions) {
23375
+ const serializedExtensionsItem = this.transform(itemExtensions);
23376
+ parts.push(openTag(serializedExtensionsItem.localName));
23377
+ parts.push(serializedExtensionsItem.innerXml);
23378
+ parts.push(closeTag(serializedExtensionsItem.localName));
23379
+ }
23380
+ parts.push(closeTag("extensions"));
23381
+ }
23382
+ if (that.category !== null) {
23383
+ parts.push(openTag("category"));
23384
+ parts.push(serializeStringText(that.category));
23385
+ parts.push(closeTag("category"));
23386
+ }
23387
+ if (that.idShort !== null) {
23388
+ parts.push(openTag("idShort"));
23389
+ parts.push(serializeStringText(that.idShort));
23390
+ parts.push(closeTag("idShort"));
23391
+ }
23392
+ if (that.displayName !== null) {
23393
+ parts.push(openTag("displayName"));
23394
+ for (const itemDisplayName of that.displayName) {
23395
+ const serializedDisplayNameItem = this.transform(itemDisplayName);
23396
+ parts.push(openTag(serializedDisplayNameItem.localName));
23397
+ parts.push(serializedDisplayNameItem.innerXml);
23398
+ parts.push(closeTag(serializedDisplayNameItem.localName));
23399
+ }
23400
+ parts.push(closeTag("displayName"));
23401
+ }
23402
+ if (that.description !== null) {
23403
+ parts.push(openTag("description"));
23404
+ for (const itemDescription of that.description) {
23405
+ const serializedDescriptionItem = this.transform(itemDescription);
23406
+ parts.push(openTag(serializedDescriptionItem.localName));
23407
+ parts.push(serializedDescriptionItem.innerXml);
23408
+ parts.push(closeTag(serializedDescriptionItem.localName));
23409
+ }
23410
+ parts.push(closeTag("description"));
23411
+ }
23412
+ if (that.semanticId !== null) {
23413
+ const serializedSemanticId = this.transform(that.semanticId);
23414
+ parts.push(openTag("semanticId"));
23415
+ parts.push(serializedSemanticId.innerXml);
23416
+ parts.push(closeTag("semanticId"));
23417
+ }
23418
+ if (that.supplementalSemanticIds !== null) {
23419
+ parts.push(openTag("supplementalSemanticIds"));
23420
+ for (const itemSupplementalSemanticIds of that.supplementalSemanticIds) {
23421
+ const serializedSupplementalSemanticIdsItem = this.transform(itemSupplementalSemanticIds);
23422
+ parts.push(openTag(serializedSupplementalSemanticIdsItem.localName));
23423
+ parts.push(serializedSupplementalSemanticIdsItem.innerXml);
23424
+ parts.push(closeTag(serializedSupplementalSemanticIdsItem.localName));
23425
+ }
23426
+ parts.push(closeTag("supplementalSemanticIds"));
23427
+ }
23428
+ if (that.qualifiers !== null) {
23429
+ parts.push(openTag("qualifiers"));
23430
+ for (const itemQualifiers of that.qualifiers) {
23431
+ const serializedQualifiersItem = this.transform(itemQualifiers);
23432
+ parts.push(openTag(serializedQualifiersItem.localName));
23433
+ parts.push(serializedQualifiersItem.innerXml);
23434
+ parts.push(closeTag(serializedQualifiersItem.localName));
23435
+ }
23436
+ parts.push(closeTag("qualifiers"));
23437
+ }
23438
+ if (that.embeddedDataSpecifications !== null) {
23439
+ parts.push(openTag("embeddedDataSpecifications"));
23440
+ for (const itemEmbeddedDataSpecifications of that.embeddedDataSpecifications) {
23441
+ const serializedEmbeddedDataSpecificationsItem = this.transform(itemEmbeddedDataSpecifications);
23442
+ parts.push(openTag(serializedEmbeddedDataSpecificationsItem.localName));
23443
+ parts.push(serializedEmbeddedDataSpecificationsItem.innerXml);
23444
+ parts.push(closeTag(serializedEmbeddedDataSpecificationsItem.localName));
23445
+ }
23446
+ parts.push(closeTag("embeddedDataSpecifications"));
23447
+ }
23448
+ if (that.value !== null) {
23449
+ const serializedValue = this.transform(that.value);
23450
+ parts.push(openTag("value"));
23451
+ parts.push(serializedValue.innerXml);
23452
+ parts.push(closeTag("value"));
23453
+ }
23454
+ return {
23455
+ localName: "referenceElement",
23456
+ innerXml: parts.join("")
23457
+ };
23458
+ }
23459
+ /**
23460
+ * Serialize `that` to an XML element representation.
23461
+ *
23462
+ * @param that - instance to be serialized
23463
+ * @returns serialized XML element representation
23464
+ */ transformBlob(that) {
23465
+ const parts = new Array();
23466
+ if (that.extensions !== null) {
23467
+ parts.push(openTag("extensions"));
23468
+ for (const itemExtensions of that.extensions) {
23469
+ const serializedExtensionsItem = this.transform(itemExtensions);
23470
+ parts.push(openTag(serializedExtensionsItem.localName));
23471
+ parts.push(serializedExtensionsItem.innerXml);
23472
+ parts.push(closeTag(serializedExtensionsItem.localName));
23473
+ }
23474
+ parts.push(closeTag("extensions"));
23475
+ }
23476
+ if (that.category !== null) {
23477
+ parts.push(openTag("category"));
23478
+ parts.push(serializeStringText(that.category));
23479
+ parts.push(closeTag("category"));
23480
+ }
23481
+ if (that.idShort !== null) {
23482
+ parts.push(openTag("idShort"));
23483
+ parts.push(serializeStringText(that.idShort));
23484
+ parts.push(closeTag("idShort"));
23485
+ }
23486
+ if (that.displayName !== null) {
23487
+ parts.push(openTag("displayName"));
23488
+ for (const itemDisplayName of that.displayName) {
23489
+ const serializedDisplayNameItem = this.transform(itemDisplayName);
23490
+ parts.push(openTag(serializedDisplayNameItem.localName));
23491
+ parts.push(serializedDisplayNameItem.innerXml);
23492
+ parts.push(closeTag(serializedDisplayNameItem.localName));
23493
+ }
23494
+ parts.push(closeTag("displayName"));
23495
+ }
23496
+ if (that.description !== null) {
23497
+ parts.push(openTag("description"));
23498
+ for (const itemDescription of that.description) {
23499
+ const serializedDescriptionItem = this.transform(itemDescription);
23500
+ parts.push(openTag(serializedDescriptionItem.localName));
23501
+ parts.push(serializedDescriptionItem.innerXml);
23502
+ parts.push(closeTag(serializedDescriptionItem.localName));
23503
+ }
23504
+ parts.push(closeTag("description"));
23505
+ }
23506
+ if (that.semanticId !== null) {
23507
+ const serializedSemanticId = this.transform(that.semanticId);
23508
+ parts.push(openTag("semanticId"));
23509
+ parts.push(serializedSemanticId.innerXml);
23510
+ parts.push(closeTag("semanticId"));
23511
+ }
23512
+ if (that.supplementalSemanticIds !== null) {
23513
+ parts.push(openTag("supplementalSemanticIds"));
23514
+ for (const itemSupplementalSemanticIds of that.supplementalSemanticIds) {
23515
+ const serializedSupplementalSemanticIdsItem = this.transform(itemSupplementalSemanticIds);
23516
+ parts.push(openTag(serializedSupplementalSemanticIdsItem.localName));
23517
+ parts.push(serializedSupplementalSemanticIdsItem.innerXml);
23518
+ parts.push(closeTag(serializedSupplementalSemanticIdsItem.localName));
23519
+ }
23520
+ parts.push(closeTag("supplementalSemanticIds"));
23521
+ }
23522
+ if (that.qualifiers !== null) {
23523
+ parts.push(openTag("qualifiers"));
23524
+ for (const itemQualifiers of that.qualifiers) {
23525
+ const serializedQualifiersItem = this.transform(itemQualifiers);
23526
+ parts.push(openTag(serializedQualifiersItem.localName));
23527
+ parts.push(serializedQualifiersItem.innerXml);
23528
+ parts.push(closeTag(serializedQualifiersItem.localName));
23529
+ }
23530
+ parts.push(closeTag("qualifiers"));
23531
+ }
23532
+ if (that.embeddedDataSpecifications !== null) {
23533
+ parts.push(openTag("embeddedDataSpecifications"));
23534
+ for (const itemEmbeddedDataSpecifications of that.embeddedDataSpecifications) {
23535
+ const serializedEmbeddedDataSpecificationsItem = this.transform(itemEmbeddedDataSpecifications);
23536
+ parts.push(openTag(serializedEmbeddedDataSpecificationsItem.localName));
23537
+ parts.push(serializedEmbeddedDataSpecificationsItem.innerXml);
23538
+ parts.push(closeTag(serializedEmbeddedDataSpecificationsItem.localName));
23539
+ }
23540
+ parts.push(closeTag("embeddedDataSpecifications"));
23541
+ }
23542
+ if (that.value !== null) {
23543
+ parts.push(openTag("value"));
23544
+ parts.push(serializeBase64EncodedBytesText(that.value));
23545
+ parts.push(closeTag("value"));
23546
+ }
23547
+ if (that.contentType !== null) {
23548
+ parts.push(openTag("contentType"));
23549
+ parts.push(serializeStringText(that.contentType));
23550
+ parts.push(closeTag("contentType"));
23551
+ }
23552
+ return {
23553
+ localName: "blob",
23554
+ innerXml: parts.join("")
23555
+ };
23556
+ }
23557
+ /**
23558
+ * Serialize `that` to an XML element representation.
23559
+ *
23560
+ * @param that - instance to be serialized
23561
+ * @returns serialized XML element representation
23562
+ */ transformFile(that) {
23563
+ const parts = new Array();
23564
+ if (that.extensions !== null) {
23565
+ parts.push(openTag("extensions"));
23566
+ for (const itemExtensions of that.extensions) {
23567
+ const serializedExtensionsItem = this.transform(itemExtensions);
23568
+ parts.push(openTag(serializedExtensionsItem.localName));
23569
+ parts.push(serializedExtensionsItem.innerXml);
23570
+ parts.push(closeTag(serializedExtensionsItem.localName));
23571
+ }
23572
+ parts.push(closeTag("extensions"));
23573
+ }
23574
+ if (that.category !== null) {
23575
+ parts.push(openTag("category"));
23576
+ parts.push(serializeStringText(that.category));
23577
+ parts.push(closeTag("category"));
23578
+ }
23579
+ if (that.idShort !== null) {
23580
+ parts.push(openTag("idShort"));
23581
+ parts.push(serializeStringText(that.idShort));
23582
+ parts.push(closeTag("idShort"));
23583
+ }
23584
+ if (that.displayName !== null) {
23585
+ parts.push(openTag("displayName"));
23586
+ for (const itemDisplayName of that.displayName) {
23587
+ const serializedDisplayNameItem = this.transform(itemDisplayName);
23588
+ parts.push(openTag(serializedDisplayNameItem.localName));
23589
+ parts.push(serializedDisplayNameItem.innerXml);
23590
+ parts.push(closeTag(serializedDisplayNameItem.localName));
23591
+ }
23592
+ parts.push(closeTag("displayName"));
23593
+ }
23594
+ if (that.description !== null) {
23595
+ parts.push(openTag("description"));
23596
+ for (const itemDescription of that.description) {
23597
+ const serializedDescriptionItem = this.transform(itemDescription);
23598
+ parts.push(openTag(serializedDescriptionItem.localName));
23599
+ parts.push(serializedDescriptionItem.innerXml);
23600
+ parts.push(closeTag(serializedDescriptionItem.localName));
23601
+ }
23602
+ parts.push(closeTag("description"));
23603
+ }
23604
+ if (that.semanticId !== null) {
23605
+ const serializedSemanticId = this.transform(that.semanticId);
23606
+ parts.push(openTag("semanticId"));
23607
+ parts.push(serializedSemanticId.innerXml);
23608
+ parts.push(closeTag("semanticId"));
23609
+ }
23610
+ if (that.supplementalSemanticIds !== null) {
23611
+ parts.push(openTag("supplementalSemanticIds"));
23612
+ for (const itemSupplementalSemanticIds of that.supplementalSemanticIds) {
23613
+ const serializedSupplementalSemanticIdsItem = this.transform(itemSupplementalSemanticIds);
23614
+ parts.push(openTag(serializedSupplementalSemanticIdsItem.localName));
23615
+ parts.push(serializedSupplementalSemanticIdsItem.innerXml);
23616
+ parts.push(closeTag(serializedSupplementalSemanticIdsItem.localName));
23617
+ }
23618
+ parts.push(closeTag("supplementalSemanticIds"));
23619
+ }
23620
+ if (that.qualifiers !== null) {
23621
+ parts.push(openTag("qualifiers"));
23622
+ for (const itemQualifiers of that.qualifiers) {
23623
+ const serializedQualifiersItem = this.transform(itemQualifiers);
23624
+ parts.push(openTag(serializedQualifiersItem.localName));
23625
+ parts.push(serializedQualifiersItem.innerXml);
23626
+ parts.push(closeTag(serializedQualifiersItem.localName));
23627
+ }
23628
+ parts.push(closeTag("qualifiers"));
23629
+ }
23630
+ if (that.embeddedDataSpecifications !== null) {
23631
+ parts.push(openTag("embeddedDataSpecifications"));
23632
+ for (const itemEmbeddedDataSpecifications of that.embeddedDataSpecifications) {
23633
+ const serializedEmbeddedDataSpecificationsItem = this.transform(itemEmbeddedDataSpecifications);
23634
+ parts.push(openTag(serializedEmbeddedDataSpecificationsItem.localName));
23635
+ parts.push(serializedEmbeddedDataSpecificationsItem.innerXml);
23636
+ parts.push(closeTag(serializedEmbeddedDataSpecificationsItem.localName));
23637
+ }
23638
+ parts.push(closeTag("embeddedDataSpecifications"));
23639
+ }
23640
+ if (that.value !== null) {
23641
+ parts.push(openTag("value"));
23642
+ parts.push(serializeStringText(that.value));
23643
+ parts.push(closeTag("value"));
23644
+ }
23645
+ if (that.contentType !== null) {
23646
+ parts.push(openTag("contentType"));
23647
+ parts.push(serializeStringText(that.contentType));
23648
+ parts.push(closeTag("contentType"));
23649
+ }
23650
+ return {
23651
+ localName: "file",
23652
+ innerXml: parts.join("")
23653
+ };
23654
+ }
23655
+ /**
23656
+ * Serialize `that` to an XML element representation.
23657
+ *
23658
+ * @param that - instance to be serialized
23659
+ * @returns serialized XML element representation
23660
+ */ transformAnnotatedRelationshipElement(that) {
23661
+ const parts = new Array();
23662
+ if (that.extensions !== null) {
23663
+ parts.push(openTag("extensions"));
23664
+ for (const itemExtensions of that.extensions) {
23665
+ const serializedExtensionsItem = this.transform(itemExtensions);
23666
+ parts.push(openTag(serializedExtensionsItem.localName));
23667
+ parts.push(serializedExtensionsItem.innerXml);
23668
+ parts.push(closeTag(serializedExtensionsItem.localName));
23669
+ }
23670
+ parts.push(closeTag("extensions"));
23671
+ }
23672
+ if (that.category !== null) {
23673
+ parts.push(openTag("category"));
23674
+ parts.push(serializeStringText(that.category));
23675
+ parts.push(closeTag("category"));
23676
+ }
23677
+ if (that.idShort !== null) {
23678
+ parts.push(openTag("idShort"));
23679
+ parts.push(serializeStringText(that.idShort));
23680
+ parts.push(closeTag("idShort"));
23681
+ }
23682
+ if (that.displayName !== null) {
23683
+ parts.push(openTag("displayName"));
23684
+ for (const itemDisplayName of that.displayName) {
23685
+ const serializedDisplayNameItem = this.transform(itemDisplayName);
23686
+ parts.push(openTag(serializedDisplayNameItem.localName));
23687
+ parts.push(serializedDisplayNameItem.innerXml);
23688
+ parts.push(closeTag(serializedDisplayNameItem.localName));
23689
+ }
23690
+ parts.push(closeTag("displayName"));
23691
+ }
23692
+ if (that.description !== null) {
23693
+ parts.push(openTag("description"));
23694
+ for (const itemDescription of that.description) {
23695
+ const serializedDescriptionItem = this.transform(itemDescription);
23696
+ parts.push(openTag(serializedDescriptionItem.localName));
23697
+ parts.push(serializedDescriptionItem.innerXml);
23698
+ parts.push(closeTag(serializedDescriptionItem.localName));
23699
+ }
23700
+ parts.push(closeTag("description"));
23701
+ }
23702
+ if (that.semanticId !== null) {
23703
+ const serializedSemanticId = this.transform(that.semanticId);
23704
+ parts.push(openTag("semanticId"));
23705
+ parts.push(serializedSemanticId.innerXml);
23706
+ parts.push(closeTag("semanticId"));
23707
+ }
23708
+ if (that.supplementalSemanticIds !== null) {
23709
+ parts.push(openTag("supplementalSemanticIds"));
23710
+ for (const itemSupplementalSemanticIds of that.supplementalSemanticIds) {
23711
+ const serializedSupplementalSemanticIdsItem = this.transform(itemSupplementalSemanticIds);
23712
+ parts.push(openTag(serializedSupplementalSemanticIdsItem.localName));
23713
+ parts.push(serializedSupplementalSemanticIdsItem.innerXml);
23714
+ parts.push(closeTag(serializedSupplementalSemanticIdsItem.localName));
23715
+ }
23716
+ parts.push(closeTag("supplementalSemanticIds"));
23717
+ }
23718
+ if (that.qualifiers !== null) {
23719
+ parts.push(openTag("qualifiers"));
23720
+ for (const itemQualifiers of that.qualifiers) {
23721
+ const serializedQualifiersItem = this.transform(itemQualifiers);
23722
+ parts.push(openTag(serializedQualifiersItem.localName));
23723
+ parts.push(serializedQualifiersItem.innerXml);
23724
+ parts.push(closeTag(serializedQualifiersItem.localName));
23725
+ }
23726
+ parts.push(closeTag("qualifiers"));
23727
+ }
23728
+ if (that.embeddedDataSpecifications !== null) {
23729
+ parts.push(openTag("embeddedDataSpecifications"));
23730
+ for (const itemEmbeddedDataSpecifications of that.embeddedDataSpecifications) {
23731
+ const serializedEmbeddedDataSpecificationsItem = this.transform(itemEmbeddedDataSpecifications);
23732
+ parts.push(openTag(serializedEmbeddedDataSpecificationsItem.localName));
23733
+ parts.push(serializedEmbeddedDataSpecificationsItem.innerXml);
23734
+ parts.push(closeTag(serializedEmbeddedDataSpecificationsItem.localName));
23735
+ }
23736
+ parts.push(closeTag("embeddedDataSpecifications"));
23737
+ }
23738
+ if (that.first !== null) {
23739
+ const serializedFirst = this.transform(that.first);
23740
+ parts.push(openTag("first"));
23741
+ parts.push(serializedFirst.innerXml);
23742
+ parts.push(closeTag("first"));
23743
+ }
23744
+ if (that.second !== null) {
23745
+ const serializedSecond = this.transform(that.second);
23746
+ parts.push(openTag("second"));
23747
+ parts.push(serializedSecond.innerXml);
23748
+ parts.push(closeTag("second"));
23749
+ }
23750
+ if (that.annotations !== null) {
23751
+ parts.push(openTag("annotations"));
23752
+ for (const itemAnnotations of that.annotations) {
23753
+ const serializedAnnotationsItem = this.transform(itemAnnotations);
23754
+ parts.push(openTag(serializedAnnotationsItem.localName));
23755
+ parts.push(serializedAnnotationsItem.innerXml);
23756
+ parts.push(closeTag(serializedAnnotationsItem.localName));
23757
+ }
23758
+ parts.push(closeTag("annotations"));
23759
+ }
23760
+ return {
23761
+ localName: "annotatedRelationshipElement",
23762
+ innerXml: parts.join("")
23763
+ };
23764
+ }
23765
+ /**
23766
+ * Serialize `that` to an XML element representation.
23767
+ *
23768
+ * @param that - instance to be serialized
23769
+ * @returns serialized XML element representation
23770
+ */ transformEntity(that) {
23771
+ const parts = new Array();
23772
+ if (that.extensions !== null) {
23773
+ parts.push(openTag("extensions"));
23774
+ for (const itemExtensions of that.extensions) {
23775
+ const serializedExtensionsItem = this.transform(itemExtensions);
23776
+ parts.push(openTag(serializedExtensionsItem.localName));
23777
+ parts.push(serializedExtensionsItem.innerXml);
23778
+ parts.push(closeTag(serializedExtensionsItem.localName));
23779
+ }
23780
+ parts.push(closeTag("extensions"));
23781
+ }
23782
+ if (that.category !== null) {
23783
+ parts.push(openTag("category"));
23784
+ parts.push(serializeStringText(that.category));
23785
+ parts.push(closeTag("category"));
23786
+ }
23787
+ if (that.idShort !== null) {
23788
+ parts.push(openTag("idShort"));
23789
+ parts.push(serializeStringText(that.idShort));
23790
+ parts.push(closeTag("idShort"));
23791
+ }
23792
+ if (that.displayName !== null) {
23793
+ parts.push(openTag("displayName"));
23794
+ for (const itemDisplayName of that.displayName) {
23795
+ const serializedDisplayNameItem = this.transform(itemDisplayName);
23796
+ parts.push(openTag(serializedDisplayNameItem.localName));
23797
+ parts.push(serializedDisplayNameItem.innerXml);
23798
+ parts.push(closeTag(serializedDisplayNameItem.localName));
23799
+ }
23800
+ parts.push(closeTag("displayName"));
23801
+ }
23802
+ if (that.description !== null) {
23803
+ parts.push(openTag("description"));
23804
+ for (const itemDescription of that.description) {
23805
+ const serializedDescriptionItem = this.transform(itemDescription);
23806
+ parts.push(openTag(serializedDescriptionItem.localName));
23807
+ parts.push(serializedDescriptionItem.innerXml);
23808
+ parts.push(closeTag(serializedDescriptionItem.localName));
23809
+ }
23810
+ parts.push(closeTag("description"));
23811
+ }
23812
+ if (that.semanticId !== null) {
23813
+ const serializedSemanticId = this.transform(that.semanticId);
23814
+ parts.push(openTag("semanticId"));
23815
+ parts.push(serializedSemanticId.innerXml);
23816
+ parts.push(closeTag("semanticId"));
23817
+ }
23818
+ if (that.supplementalSemanticIds !== null) {
23819
+ parts.push(openTag("supplementalSemanticIds"));
23820
+ for (const itemSupplementalSemanticIds of that.supplementalSemanticIds) {
23821
+ const serializedSupplementalSemanticIdsItem = this.transform(itemSupplementalSemanticIds);
23822
+ parts.push(openTag(serializedSupplementalSemanticIdsItem.localName));
23823
+ parts.push(serializedSupplementalSemanticIdsItem.innerXml);
23824
+ parts.push(closeTag(serializedSupplementalSemanticIdsItem.localName));
23825
+ }
23826
+ parts.push(closeTag("supplementalSemanticIds"));
23827
+ }
23828
+ if (that.qualifiers !== null) {
23829
+ parts.push(openTag("qualifiers"));
23830
+ for (const itemQualifiers of that.qualifiers) {
23831
+ const serializedQualifiersItem = this.transform(itemQualifiers);
23832
+ parts.push(openTag(serializedQualifiersItem.localName));
23833
+ parts.push(serializedQualifiersItem.innerXml);
23834
+ parts.push(closeTag(serializedQualifiersItem.localName));
23835
+ }
23836
+ parts.push(closeTag("qualifiers"));
23837
+ }
23838
+ if (that.embeddedDataSpecifications !== null) {
23839
+ parts.push(openTag("embeddedDataSpecifications"));
23840
+ for (const itemEmbeddedDataSpecifications of that.embeddedDataSpecifications) {
23841
+ const serializedEmbeddedDataSpecificationsItem = this.transform(itemEmbeddedDataSpecifications);
23842
+ parts.push(openTag(serializedEmbeddedDataSpecificationsItem.localName));
23843
+ parts.push(serializedEmbeddedDataSpecificationsItem.innerXml);
23844
+ parts.push(closeTag(serializedEmbeddedDataSpecificationsItem.localName));
23845
+ }
23846
+ parts.push(closeTag("embeddedDataSpecifications"));
23847
+ }
23848
+ if (that.statements !== null) {
23849
+ parts.push(openTag("statements"));
23850
+ for (const itemStatements of that.statements) {
23851
+ const serializedStatementsItem = this.transform(itemStatements);
23852
+ parts.push(openTag(serializedStatementsItem.localName));
23853
+ parts.push(serializedStatementsItem.innerXml);
23854
+ parts.push(closeTag(serializedStatementsItem.localName));
23855
+ }
23856
+ parts.push(closeTag("statements"));
23857
+ }
23858
+ if (that.entityType !== null) {
23859
+ parts.push(openTag("entityType"));
23860
+ parts.push(serializeEntityTypeText(that.entityType));
23861
+ parts.push(closeTag("entityType"));
23862
+ }
23863
+ if (that.globalAssetId !== null) {
23864
+ parts.push(openTag("globalAssetId"));
23865
+ parts.push(serializeStringText(that.globalAssetId));
23866
+ parts.push(closeTag("globalAssetId"));
23867
+ }
23868
+ if (that.specificAssetIds !== null) {
23869
+ parts.push(openTag("specificAssetIds"));
23870
+ for (const itemSpecificAssetIds of that.specificAssetIds) {
23871
+ const serializedSpecificAssetIdsItem = this.transform(itemSpecificAssetIds);
23872
+ parts.push(openTag(serializedSpecificAssetIdsItem.localName));
23873
+ parts.push(serializedSpecificAssetIdsItem.innerXml);
23874
+ parts.push(closeTag(serializedSpecificAssetIdsItem.localName));
23875
+ }
23876
+ parts.push(closeTag("specificAssetIds"));
23877
+ }
23878
+ return {
23879
+ localName: "entity",
23880
+ innerXml: parts.join("")
23881
+ };
23882
+ }
23883
+ /**
23884
+ * Serialize `that` to an XML element representation.
23885
+ *
23886
+ * @param that - instance to be serialized
23887
+ * @returns serialized XML element representation
23888
+ */ transformEventPayload(that) {
23889
+ const parts = new Array();
23890
+ const serializedSource = this.transform(that.source);
23891
+ parts.push(openTag("source"));
23892
+ parts.push(serializedSource.innerXml);
23893
+ parts.push(closeTag("source"));
23894
+ if (that.sourceSemanticId !== null) {
23895
+ const serializedSourceSemanticId = this.transform(that.sourceSemanticId);
23896
+ parts.push(openTag("sourceSemanticId"));
23897
+ parts.push(serializedSourceSemanticId.innerXml);
23898
+ parts.push(closeTag("sourceSemanticId"));
23899
+ }
23900
+ const serializedObservableReference = this.transform(that.observableReference);
23901
+ parts.push(openTag("observableReference"));
23902
+ parts.push(serializedObservableReference.innerXml);
23903
+ parts.push(closeTag("observableReference"));
23904
+ if (that.observableSemanticId !== null) {
23905
+ const serializedObservableSemanticId = this.transform(that.observableSemanticId);
23906
+ parts.push(openTag("observableSemanticId"));
23907
+ parts.push(serializedObservableSemanticId.innerXml);
23908
+ parts.push(closeTag("observableSemanticId"));
23909
+ }
23910
+ if (that.topic !== null) {
23911
+ parts.push(openTag("topic"));
23912
+ parts.push(serializeStringText(that.topic));
23913
+ parts.push(closeTag("topic"));
23914
+ }
23915
+ if (that.subjectId !== null) {
23916
+ const serializedSubjectId = this.transform(that.subjectId);
23917
+ parts.push(openTag("subjectId"));
23918
+ parts.push(serializedSubjectId.innerXml);
23919
+ parts.push(closeTag("subjectId"));
23920
+ }
23921
+ parts.push(openTag("timeStamp"));
23922
+ parts.push(serializeStringText(that.timeStamp));
23923
+ parts.push(closeTag("timeStamp"));
23924
+ if (that.payload !== null) {
23925
+ parts.push(openTag("payload"));
23926
+ parts.push(serializeBase64EncodedBytesText(that.payload));
23927
+ parts.push(closeTag("payload"));
23928
+ }
23929
+ return {
23930
+ localName: "eventPayload",
23931
+ innerXml: parts.join("")
23932
+ };
23933
+ }
23934
+ /**
23935
+ * Serialize `that` to an XML element representation.
23936
+ *
23937
+ * @param that - instance to be serialized
23938
+ * @returns serialized XML element representation
23939
+ */ transformBasicEventElement(that) {
23940
+ const parts = new Array();
23941
+ if (that.extensions !== null) {
23942
+ parts.push(openTag("extensions"));
23943
+ for (const itemExtensions of that.extensions) {
23944
+ const serializedExtensionsItem = this.transform(itemExtensions);
23945
+ parts.push(openTag(serializedExtensionsItem.localName));
23946
+ parts.push(serializedExtensionsItem.innerXml);
23947
+ parts.push(closeTag(serializedExtensionsItem.localName));
23948
+ }
23949
+ parts.push(closeTag("extensions"));
23950
+ }
23951
+ if (that.category !== null) {
23952
+ parts.push(openTag("category"));
23953
+ parts.push(serializeStringText(that.category));
23954
+ parts.push(closeTag("category"));
23955
+ }
23956
+ if (that.idShort !== null) {
23957
+ parts.push(openTag("idShort"));
23958
+ parts.push(serializeStringText(that.idShort));
23959
+ parts.push(closeTag("idShort"));
23960
+ }
23961
+ if (that.displayName !== null) {
23962
+ parts.push(openTag("displayName"));
23963
+ for (const itemDisplayName of that.displayName) {
23964
+ const serializedDisplayNameItem = this.transform(itemDisplayName);
23965
+ parts.push(openTag(serializedDisplayNameItem.localName));
23966
+ parts.push(serializedDisplayNameItem.innerXml);
23967
+ parts.push(closeTag(serializedDisplayNameItem.localName));
23968
+ }
23969
+ parts.push(closeTag("displayName"));
23970
+ }
23971
+ if (that.description !== null) {
23972
+ parts.push(openTag("description"));
23973
+ for (const itemDescription of that.description) {
23974
+ const serializedDescriptionItem = this.transform(itemDescription);
23975
+ parts.push(openTag(serializedDescriptionItem.localName));
23976
+ parts.push(serializedDescriptionItem.innerXml);
23977
+ parts.push(closeTag(serializedDescriptionItem.localName));
23978
+ }
23979
+ parts.push(closeTag("description"));
23980
+ }
23981
+ if (that.semanticId !== null) {
23982
+ const serializedSemanticId = this.transform(that.semanticId);
23983
+ parts.push(openTag("semanticId"));
23984
+ parts.push(serializedSemanticId.innerXml);
23985
+ parts.push(closeTag("semanticId"));
23986
+ }
23987
+ if (that.supplementalSemanticIds !== null) {
23988
+ parts.push(openTag("supplementalSemanticIds"));
23989
+ for (const itemSupplementalSemanticIds of that.supplementalSemanticIds) {
23990
+ const serializedSupplementalSemanticIdsItem = this.transform(itemSupplementalSemanticIds);
23991
+ parts.push(openTag(serializedSupplementalSemanticIdsItem.localName));
23992
+ parts.push(serializedSupplementalSemanticIdsItem.innerXml);
23993
+ parts.push(closeTag(serializedSupplementalSemanticIdsItem.localName));
23994
+ }
23995
+ parts.push(closeTag("supplementalSemanticIds"));
23996
+ }
23997
+ if (that.qualifiers !== null) {
23998
+ parts.push(openTag("qualifiers"));
23999
+ for (const itemQualifiers of that.qualifiers) {
24000
+ const serializedQualifiersItem = this.transform(itemQualifiers);
24001
+ parts.push(openTag(serializedQualifiersItem.localName));
24002
+ parts.push(serializedQualifiersItem.innerXml);
24003
+ parts.push(closeTag(serializedQualifiersItem.localName));
24004
+ }
24005
+ parts.push(closeTag("qualifiers"));
24006
+ }
24007
+ if (that.embeddedDataSpecifications !== null) {
24008
+ parts.push(openTag("embeddedDataSpecifications"));
24009
+ for (const itemEmbeddedDataSpecifications of that.embeddedDataSpecifications) {
24010
+ const serializedEmbeddedDataSpecificationsItem = this.transform(itemEmbeddedDataSpecifications);
24011
+ parts.push(openTag(serializedEmbeddedDataSpecificationsItem.localName));
24012
+ parts.push(serializedEmbeddedDataSpecificationsItem.innerXml);
24013
+ parts.push(closeTag(serializedEmbeddedDataSpecificationsItem.localName));
24014
+ }
24015
+ parts.push(closeTag("embeddedDataSpecifications"));
24016
+ }
24017
+ const serializedObserved = this.transform(that.observed);
24018
+ parts.push(openTag("observed"));
24019
+ parts.push(serializedObserved.innerXml);
24020
+ parts.push(closeTag("observed"));
24021
+ parts.push(openTag("direction"));
24022
+ parts.push(serializeDirectionText(that.direction));
24023
+ parts.push(closeTag("direction"));
24024
+ parts.push(openTag("state"));
24025
+ parts.push(serializeStateOfEventText(that.state));
24026
+ parts.push(closeTag("state"));
24027
+ if (that.messageTopic !== null) {
24028
+ parts.push(openTag("messageTopic"));
24029
+ parts.push(serializeStringText(that.messageTopic));
24030
+ parts.push(closeTag("messageTopic"));
24031
+ }
24032
+ if (that.messageBroker !== null) {
24033
+ const serializedMessageBroker = this.transform(that.messageBroker);
24034
+ parts.push(openTag("messageBroker"));
24035
+ parts.push(serializedMessageBroker.innerXml);
24036
+ parts.push(closeTag("messageBroker"));
24037
+ }
24038
+ if (that.lastUpdate !== null) {
24039
+ parts.push(openTag("lastUpdate"));
24040
+ parts.push(serializeStringText(that.lastUpdate));
24041
+ parts.push(closeTag("lastUpdate"));
24042
+ }
24043
+ if (that.minInterval !== null) {
24044
+ parts.push(openTag("minInterval"));
24045
+ parts.push(serializeStringText(that.minInterval));
24046
+ parts.push(closeTag("minInterval"));
24047
+ }
24048
+ if (that.maxInterval !== null) {
24049
+ parts.push(openTag("maxInterval"));
24050
+ parts.push(serializeStringText(that.maxInterval));
24051
+ parts.push(closeTag("maxInterval"));
24052
+ }
24053
+ return {
24054
+ localName: "basicEventElement",
24055
+ innerXml: parts.join("")
24056
+ };
24057
+ }
24058
+ /**
24059
+ * Serialize `that` to an XML element representation.
24060
+ *
24061
+ * @param that - instance to be serialized
24062
+ * @returns serialized XML element representation
24063
+ */ transformOperation(that) {
24064
+ const parts = new Array();
24065
+ if (that.extensions !== null) {
24066
+ parts.push(openTag("extensions"));
24067
+ for (const itemExtensions of that.extensions) {
24068
+ const serializedExtensionsItem = this.transform(itemExtensions);
24069
+ parts.push(openTag(serializedExtensionsItem.localName));
24070
+ parts.push(serializedExtensionsItem.innerXml);
24071
+ parts.push(closeTag(serializedExtensionsItem.localName));
24072
+ }
24073
+ parts.push(closeTag("extensions"));
24074
+ }
24075
+ if (that.category !== null) {
24076
+ parts.push(openTag("category"));
24077
+ parts.push(serializeStringText(that.category));
24078
+ parts.push(closeTag("category"));
24079
+ }
24080
+ if (that.idShort !== null) {
24081
+ parts.push(openTag("idShort"));
24082
+ parts.push(serializeStringText(that.idShort));
24083
+ parts.push(closeTag("idShort"));
24084
+ }
24085
+ if (that.displayName !== null) {
24086
+ parts.push(openTag("displayName"));
24087
+ for (const itemDisplayName of that.displayName) {
24088
+ const serializedDisplayNameItem = this.transform(itemDisplayName);
24089
+ parts.push(openTag(serializedDisplayNameItem.localName));
24090
+ parts.push(serializedDisplayNameItem.innerXml);
24091
+ parts.push(closeTag(serializedDisplayNameItem.localName));
24092
+ }
24093
+ parts.push(closeTag("displayName"));
24094
+ }
24095
+ if (that.description !== null) {
24096
+ parts.push(openTag("description"));
24097
+ for (const itemDescription of that.description) {
24098
+ const serializedDescriptionItem = this.transform(itemDescription);
24099
+ parts.push(openTag(serializedDescriptionItem.localName));
24100
+ parts.push(serializedDescriptionItem.innerXml);
24101
+ parts.push(closeTag(serializedDescriptionItem.localName));
24102
+ }
24103
+ parts.push(closeTag("description"));
24104
+ }
24105
+ if (that.semanticId !== null) {
24106
+ const serializedSemanticId = this.transform(that.semanticId);
24107
+ parts.push(openTag("semanticId"));
24108
+ parts.push(serializedSemanticId.innerXml);
24109
+ parts.push(closeTag("semanticId"));
24110
+ }
24111
+ if (that.supplementalSemanticIds !== null) {
24112
+ parts.push(openTag("supplementalSemanticIds"));
24113
+ for (const itemSupplementalSemanticIds of that.supplementalSemanticIds) {
24114
+ const serializedSupplementalSemanticIdsItem = this.transform(itemSupplementalSemanticIds);
24115
+ parts.push(openTag(serializedSupplementalSemanticIdsItem.localName));
24116
+ parts.push(serializedSupplementalSemanticIdsItem.innerXml);
24117
+ parts.push(closeTag(serializedSupplementalSemanticIdsItem.localName));
24118
+ }
24119
+ parts.push(closeTag("supplementalSemanticIds"));
24120
+ }
24121
+ if (that.qualifiers !== null) {
24122
+ parts.push(openTag("qualifiers"));
24123
+ for (const itemQualifiers of that.qualifiers) {
24124
+ const serializedQualifiersItem = this.transform(itemQualifiers);
24125
+ parts.push(openTag(serializedQualifiersItem.localName));
24126
+ parts.push(serializedQualifiersItem.innerXml);
24127
+ parts.push(closeTag(serializedQualifiersItem.localName));
24128
+ }
24129
+ parts.push(closeTag("qualifiers"));
24130
+ }
24131
+ if (that.embeddedDataSpecifications !== null) {
24132
+ parts.push(openTag("embeddedDataSpecifications"));
24133
+ for (const itemEmbeddedDataSpecifications of that.embeddedDataSpecifications) {
24134
+ const serializedEmbeddedDataSpecificationsItem = this.transform(itemEmbeddedDataSpecifications);
24135
+ parts.push(openTag(serializedEmbeddedDataSpecificationsItem.localName));
24136
+ parts.push(serializedEmbeddedDataSpecificationsItem.innerXml);
24137
+ parts.push(closeTag(serializedEmbeddedDataSpecificationsItem.localName));
24138
+ }
24139
+ parts.push(closeTag("embeddedDataSpecifications"));
24140
+ }
24141
+ if (that.inputVariables !== null) {
24142
+ parts.push(openTag("inputVariables"));
24143
+ for (const itemInputVariables of that.inputVariables) {
24144
+ const serializedInputVariablesItem = this.transform(itemInputVariables);
24145
+ parts.push(openTag(serializedInputVariablesItem.localName));
24146
+ parts.push(serializedInputVariablesItem.innerXml);
24147
+ parts.push(closeTag(serializedInputVariablesItem.localName));
24148
+ }
24149
+ parts.push(closeTag("inputVariables"));
24150
+ }
24151
+ if (that.outputVariables !== null) {
24152
+ parts.push(openTag("outputVariables"));
24153
+ for (const itemOutputVariables of that.outputVariables) {
24154
+ const serializedOutputVariablesItem = this.transform(itemOutputVariables);
24155
+ parts.push(openTag(serializedOutputVariablesItem.localName));
24156
+ parts.push(serializedOutputVariablesItem.innerXml);
24157
+ parts.push(closeTag(serializedOutputVariablesItem.localName));
24158
+ }
24159
+ parts.push(closeTag("outputVariables"));
24160
+ }
24161
+ if (that.inoutputVariables !== null) {
24162
+ parts.push(openTag("inoutputVariables"));
24163
+ for (const itemInoutputVariables of that.inoutputVariables) {
24164
+ const serializedInoutputVariablesItem = this.transform(itemInoutputVariables);
24165
+ parts.push(openTag(serializedInoutputVariablesItem.localName));
24166
+ parts.push(serializedInoutputVariablesItem.innerXml);
24167
+ parts.push(closeTag(serializedInoutputVariablesItem.localName));
24168
+ }
24169
+ parts.push(closeTag("inoutputVariables"));
24170
+ }
24171
+ return {
24172
+ localName: "operation",
24173
+ innerXml: parts.join("")
24174
+ };
24175
+ }
24176
+ /**
24177
+ * Serialize `that` to an XML element representation.
24178
+ *
24179
+ * @param that - instance to be serialized
24180
+ * @returns serialized XML element representation
24181
+ */ transformOperationVariable(that) {
24182
+ const parts = new Array();
24183
+ const serializedValue = this.transform(that.value);
24184
+ parts.push(openTag("value"));
24185
+ parts.push(openTag(serializedValue.localName));
24186
+ parts.push(serializedValue.innerXml);
24187
+ parts.push(closeTag(serializedValue.localName));
24188
+ parts.push(closeTag("value"));
24189
+ return {
24190
+ localName: "operationVariable",
24191
+ innerXml: parts.join("")
24192
+ };
24193
+ }
24194
+ /**
24195
+ * Serialize `that` to an XML element representation.
24196
+ *
24197
+ * @param that - instance to be serialized
24198
+ * @returns serialized XML element representation
24199
+ */ transformCapability(that) {
24200
+ const parts = new Array();
24201
+ if (that.extensions !== null) {
24202
+ parts.push(openTag("extensions"));
24203
+ for (const itemExtensions of that.extensions) {
24204
+ const serializedExtensionsItem = this.transform(itemExtensions);
24205
+ parts.push(openTag(serializedExtensionsItem.localName));
24206
+ parts.push(serializedExtensionsItem.innerXml);
24207
+ parts.push(closeTag(serializedExtensionsItem.localName));
24208
+ }
24209
+ parts.push(closeTag("extensions"));
24210
+ }
24211
+ if (that.category !== null) {
24212
+ parts.push(openTag("category"));
24213
+ parts.push(serializeStringText(that.category));
24214
+ parts.push(closeTag("category"));
24215
+ }
24216
+ if (that.idShort !== null) {
24217
+ parts.push(openTag("idShort"));
24218
+ parts.push(serializeStringText(that.idShort));
24219
+ parts.push(closeTag("idShort"));
24220
+ }
24221
+ if (that.displayName !== null) {
24222
+ parts.push(openTag("displayName"));
24223
+ for (const itemDisplayName of that.displayName) {
24224
+ const serializedDisplayNameItem = this.transform(itemDisplayName);
24225
+ parts.push(openTag(serializedDisplayNameItem.localName));
24226
+ parts.push(serializedDisplayNameItem.innerXml);
24227
+ parts.push(closeTag(serializedDisplayNameItem.localName));
24228
+ }
24229
+ parts.push(closeTag("displayName"));
24230
+ }
24231
+ if (that.description !== null) {
24232
+ parts.push(openTag("description"));
24233
+ for (const itemDescription of that.description) {
24234
+ const serializedDescriptionItem = this.transform(itemDescription);
24235
+ parts.push(openTag(serializedDescriptionItem.localName));
24236
+ parts.push(serializedDescriptionItem.innerXml);
24237
+ parts.push(closeTag(serializedDescriptionItem.localName));
24238
+ }
24239
+ parts.push(closeTag("description"));
24240
+ }
24241
+ if (that.semanticId !== null) {
24242
+ const serializedSemanticId = this.transform(that.semanticId);
24243
+ parts.push(openTag("semanticId"));
24244
+ parts.push(serializedSemanticId.innerXml);
24245
+ parts.push(closeTag("semanticId"));
24246
+ }
24247
+ if (that.supplementalSemanticIds !== null) {
24248
+ parts.push(openTag("supplementalSemanticIds"));
24249
+ for (const itemSupplementalSemanticIds of that.supplementalSemanticIds) {
24250
+ const serializedSupplementalSemanticIdsItem = this.transform(itemSupplementalSemanticIds);
24251
+ parts.push(openTag(serializedSupplementalSemanticIdsItem.localName));
24252
+ parts.push(serializedSupplementalSemanticIdsItem.innerXml);
24253
+ parts.push(closeTag(serializedSupplementalSemanticIdsItem.localName));
24254
+ }
24255
+ parts.push(closeTag("supplementalSemanticIds"));
24256
+ }
24257
+ if (that.qualifiers !== null) {
24258
+ parts.push(openTag("qualifiers"));
24259
+ for (const itemQualifiers of that.qualifiers) {
24260
+ const serializedQualifiersItem = this.transform(itemQualifiers);
24261
+ parts.push(openTag(serializedQualifiersItem.localName));
24262
+ parts.push(serializedQualifiersItem.innerXml);
24263
+ parts.push(closeTag(serializedQualifiersItem.localName));
24264
+ }
24265
+ parts.push(closeTag("qualifiers"));
24266
+ }
24267
+ if (that.embeddedDataSpecifications !== null) {
24268
+ parts.push(openTag("embeddedDataSpecifications"));
24269
+ for (const itemEmbeddedDataSpecifications of that.embeddedDataSpecifications) {
24270
+ const serializedEmbeddedDataSpecificationsItem = this.transform(itemEmbeddedDataSpecifications);
24271
+ parts.push(openTag(serializedEmbeddedDataSpecificationsItem.localName));
24272
+ parts.push(serializedEmbeddedDataSpecificationsItem.innerXml);
24273
+ parts.push(closeTag(serializedEmbeddedDataSpecificationsItem.localName));
24274
+ }
24275
+ parts.push(closeTag("embeddedDataSpecifications"));
24276
+ }
24277
+ return {
24278
+ localName: "capability",
24279
+ innerXml: parts.join("")
24280
+ };
24281
+ }
24282
+ /**
24283
+ * Serialize `that` to an XML element representation.
24284
+ *
24285
+ * @param that - instance to be serialized
24286
+ * @returns serialized XML element representation
24287
+ */ transformConceptDescription(that) {
24288
+ const parts = new Array();
24289
+ if (that.extensions !== null) {
24290
+ parts.push(openTag("extensions"));
24291
+ for (const itemExtensions of that.extensions) {
24292
+ const serializedExtensionsItem = this.transform(itemExtensions);
24293
+ parts.push(openTag(serializedExtensionsItem.localName));
24294
+ parts.push(serializedExtensionsItem.innerXml);
24295
+ parts.push(closeTag(serializedExtensionsItem.localName));
24296
+ }
24297
+ parts.push(closeTag("extensions"));
24298
+ }
24299
+ if (that.category !== null) {
24300
+ parts.push(openTag("category"));
24301
+ parts.push(serializeStringText(that.category));
24302
+ parts.push(closeTag("category"));
24303
+ }
24304
+ if (that.idShort !== null) {
24305
+ parts.push(openTag("idShort"));
24306
+ parts.push(serializeStringText(that.idShort));
24307
+ parts.push(closeTag("idShort"));
24308
+ }
24309
+ if (that.displayName !== null) {
24310
+ parts.push(openTag("displayName"));
24311
+ for (const itemDisplayName of that.displayName) {
24312
+ const serializedDisplayNameItem = this.transform(itemDisplayName);
24313
+ parts.push(openTag(serializedDisplayNameItem.localName));
24314
+ parts.push(serializedDisplayNameItem.innerXml);
24315
+ parts.push(closeTag(serializedDisplayNameItem.localName));
24316
+ }
24317
+ parts.push(closeTag("displayName"));
24318
+ }
24319
+ if (that.description !== null) {
24320
+ parts.push(openTag("description"));
24321
+ for (const itemDescription of that.description) {
24322
+ const serializedDescriptionItem = this.transform(itemDescription);
24323
+ parts.push(openTag(serializedDescriptionItem.localName));
24324
+ parts.push(serializedDescriptionItem.innerXml);
24325
+ parts.push(closeTag(serializedDescriptionItem.localName));
24326
+ }
24327
+ parts.push(closeTag("description"));
24328
+ }
24329
+ if (that.administration !== null) {
24330
+ const serializedAdministration = this.transform(that.administration);
24331
+ parts.push(openTag("administration"));
24332
+ parts.push(serializedAdministration.innerXml);
24333
+ parts.push(closeTag("administration"));
24334
+ }
24335
+ parts.push(openTag("id"));
24336
+ parts.push(serializeStringText(that.id));
24337
+ parts.push(closeTag("id"));
24338
+ if (that.embeddedDataSpecifications !== null) {
24339
+ parts.push(openTag("embeddedDataSpecifications"));
24340
+ for (const itemEmbeddedDataSpecifications of that.embeddedDataSpecifications) {
24341
+ const serializedEmbeddedDataSpecificationsItem = this.transform(itemEmbeddedDataSpecifications);
24342
+ parts.push(openTag(serializedEmbeddedDataSpecificationsItem.localName));
24343
+ parts.push(serializedEmbeddedDataSpecificationsItem.innerXml);
24344
+ parts.push(closeTag(serializedEmbeddedDataSpecificationsItem.localName));
24345
+ }
24346
+ parts.push(closeTag("embeddedDataSpecifications"));
24347
+ }
24348
+ if (that.isCaseOf !== null) {
24349
+ parts.push(openTag("isCaseOf"));
24350
+ for (const itemIsCaseOf of that.isCaseOf) {
24351
+ const serializedIsCaseOfItem = this.transform(itemIsCaseOf);
24352
+ parts.push(openTag(serializedIsCaseOfItem.localName));
24353
+ parts.push(serializedIsCaseOfItem.innerXml);
24354
+ parts.push(closeTag(serializedIsCaseOfItem.localName));
24355
+ }
24356
+ parts.push(closeTag("isCaseOf"));
24357
+ }
24358
+ return {
24359
+ localName: "conceptDescription",
24360
+ innerXml: parts.join("")
24361
+ };
24362
+ }
24363
+ /**
24364
+ * Serialize `that` to an XML element representation.
24365
+ *
24366
+ * @param that - instance to be serialized
24367
+ * @returns serialized XML element representation
24368
+ */ transformReference(that) {
24369
+ const parts = new Array();
24370
+ parts.push(openTag("type"));
24371
+ parts.push(serializeReferenceTypesText(that.type));
24372
+ parts.push(closeTag("type"));
24373
+ if (that.referredSemanticId !== null) {
24374
+ const serializedReferredSemanticId = this.transform(that.referredSemanticId);
24375
+ parts.push(openTag("referredSemanticId"));
24376
+ parts.push(serializedReferredSemanticId.innerXml);
24377
+ parts.push(closeTag("referredSemanticId"));
24378
+ }
24379
+ parts.push(openTag("keys"));
24380
+ for (const itemKeys of that.keys) {
24381
+ const serializedKeysItem = this.transform(itemKeys);
24382
+ parts.push(openTag(serializedKeysItem.localName));
24383
+ parts.push(serializedKeysItem.innerXml);
24384
+ parts.push(closeTag(serializedKeysItem.localName));
24385
+ }
24386
+ parts.push(closeTag("keys"));
24387
+ return {
24388
+ localName: "reference",
24389
+ innerXml: parts.join("")
24390
+ };
24391
+ }
24392
+ /**
24393
+ * Serialize `that` to an XML element representation.
24394
+ *
24395
+ * @param that - instance to be serialized
24396
+ * @returns serialized XML element representation
24397
+ */ transformKey(that) {
24398
+ const parts = new Array();
24399
+ parts.push(openTag("type"));
24400
+ parts.push(serializeKeyTypesText(that.type));
24401
+ parts.push(closeTag("type"));
24402
+ parts.push(openTag("value"));
24403
+ parts.push(serializeStringText(that.value));
24404
+ parts.push(closeTag("value"));
24405
+ return {
24406
+ localName: "key",
24407
+ innerXml: parts.join("")
24408
+ };
24409
+ }
24410
+ /**
24411
+ * Serialize `that` to an XML element representation.
24412
+ *
24413
+ * @param that - instance to be serialized
24414
+ * @returns serialized XML element representation
24415
+ */ transformLangStringNameType(that) {
24416
+ const parts = new Array();
24417
+ parts.push(openTag("language"));
24418
+ parts.push(serializeStringText(that.language));
24419
+ parts.push(closeTag("language"));
24420
+ parts.push(openTag("text"));
24421
+ parts.push(serializeStringText(that.text));
24422
+ parts.push(closeTag("text"));
24423
+ return {
24424
+ localName: "langStringNameType",
24425
+ innerXml: parts.join("")
24426
+ };
24427
+ }
24428
+ /**
24429
+ * Serialize `that` to an XML element representation.
24430
+ *
24431
+ * @param that - instance to be serialized
24432
+ * @returns serialized XML element representation
24433
+ */ transformLangStringTextType(that) {
24434
+ const parts = new Array();
24435
+ parts.push(openTag("language"));
24436
+ parts.push(serializeStringText(that.language));
24437
+ parts.push(closeTag("language"));
24438
+ parts.push(openTag("text"));
24439
+ parts.push(serializeStringText(that.text));
24440
+ parts.push(closeTag("text"));
24441
+ return {
24442
+ localName: "langStringTextType",
24443
+ innerXml: parts.join("")
24444
+ };
24445
+ }
24446
+ /**
24447
+ * Serialize `that` to an XML element representation.
24448
+ *
24449
+ * @param that - instance to be serialized
24450
+ * @returns serialized XML element representation
24451
+ */ transformEnvironment(that) {
24452
+ const parts = new Array();
24453
+ if (that.assetAdministrationShells !== null) {
24454
+ parts.push(openTag("assetAdministrationShells"));
24455
+ for (const itemAssetAdministrationShells of that.assetAdministrationShells) {
24456
+ const serializedAssetAdministrationShellsItem = this.transform(itemAssetAdministrationShells);
24457
+ parts.push(openTag(serializedAssetAdministrationShellsItem.localName));
24458
+ parts.push(serializedAssetAdministrationShellsItem.innerXml);
24459
+ parts.push(closeTag(serializedAssetAdministrationShellsItem.localName));
24460
+ }
24461
+ parts.push(closeTag("assetAdministrationShells"));
24462
+ }
24463
+ if (that.submodels !== null) {
24464
+ parts.push(openTag("submodels"));
24465
+ for (const itemSubmodels of that.submodels) {
24466
+ const serializedSubmodelsItem = this.transform(itemSubmodels);
24467
+ parts.push(openTag(serializedSubmodelsItem.localName));
24468
+ parts.push(serializedSubmodelsItem.innerXml);
24469
+ parts.push(closeTag(serializedSubmodelsItem.localName));
24470
+ }
24471
+ parts.push(closeTag("submodels"));
24472
+ }
24473
+ if (that.conceptDescriptions !== null) {
24474
+ parts.push(openTag("conceptDescriptions"));
24475
+ for (const itemConceptDescriptions of that.conceptDescriptions) {
24476
+ const serializedConceptDescriptionsItem = this.transform(itemConceptDescriptions);
24477
+ parts.push(openTag(serializedConceptDescriptionsItem.localName));
24478
+ parts.push(serializedConceptDescriptionsItem.innerXml);
24479
+ parts.push(closeTag(serializedConceptDescriptionsItem.localName));
24480
+ }
24481
+ parts.push(closeTag("conceptDescriptions"));
24482
+ }
24483
+ return {
24484
+ localName: "environment",
24485
+ innerXml: parts.join("")
24486
+ };
24487
+ }
24488
+ /**
24489
+ * Serialize `that` to an XML element representation.
24490
+ *
24491
+ * @param that - instance to be serialized
24492
+ * @returns serialized XML element representation
24493
+ */ transformEmbeddedDataSpecification(that) {
24494
+ const parts = new Array();
24495
+ const serializedDataSpecification = this.transform(that.dataSpecification);
24496
+ parts.push(openTag("dataSpecification"));
24497
+ parts.push(serializedDataSpecification.innerXml);
24498
+ parts.push(closeTag("dataSpecification"));
24499
+ const serializedDataSpecificationContent = this.transform(that.dataSpecificationContent);
24500
+ parts.push(openTag("dataSpecificationContent"));
24501
+ parts.push(openTag(serializedDataSpecificationContent.localName));
24502
+ parts.push(serializedDataSpecificationContent.innerXml);
24503
+ parts.push(closeTag(serializedDataSpecificationContent.localName));
24504
+ parts.push(closeTag("dataSpecificationContent"));
24505
+ return {
24506
+ localName: "embeddedDataSpecification",
24507
+ innerXml: parts.join("")
24508
+ };
24509
+ }
24510
+ /**
24511
+ * Serialize `that` to an XML element representation.
24512
+ *
24513
+ * @param that - instance to be serialized
24514
+ * @returns serialized XML element representation
24515
+ */ transformLevelType(that) {
24516
+ const parts = new Array();
24517
+ parts.push(openTag("min"));
24518
+ parts.push(serializeBooleanText(that.min));
24519
+ parts.push(closeTag("min"));
24520
+ parts.push(openTag("nom"));
24521
+ parts.push(serializeBooleanText(that.nom));
24522
+ parts.push(closeTag("nom"));
24523
+ parts.push(openTag("typ"));
24524
+ parts.push(serializeBooleanText(that.typ));
24525
+ parts.push(closeTag("typ"));
24526
+ parts.push(openTag("max"));
24527
+ parts.push(serializeBooleanText(that.max));
24528
+ parts.push(closeTag("max"));
24529
+ return {
24530
+ localName: "levelType",
24531
+ innerXml: parts.join("")
24532
+ };
24533
+ }
24534
+ /**
24535
+ * Serialize `that` to an XML element representation.
24536
+ *
24537
+ * @param that - instance to be serialized
24538
+ * @returns serialized XML element representation
24539
+ */ transformValueReferencePair(that) {
24540
+ const parts = new Array();
24541
+ parts.push(openTag("value"));
24542
+ parts.push(serializeStringText(that.value));
24543
+ parts.push(closeTag("value"));
24544
+ if (that.valueId !== null) {
24545
+ const serializedValueId = this.transform(that.valueId);
24546
+ parts.push(openTag("valueId"));
24547
+ parts.push(serializedValueId.innerXml);
24548
+ parts.push(closeTag("valueId"));
24549
+ }
24550
+ return {
24551
+ localName: "valueReferencePair",
24552
+ innerXml: parts.join("")
24553
+ };
24554
+ }
24555
+ /**
24556
+ * Serialize `that` to an XML element representation.
24557
+ *
24558
+ * @param that - instance to be serialized
24559
+ * @returns serialized XML element representation
24560
+ */ transformValueList(that) {
24561
+ const parts = new Array();
24562
+ parts.push(openTag("valueReferencePairs"));
24563
+ for (const itemValueReferencePairs of that.valueReferencePairs) {
24564
+ const serializedValueReferencePairsItem = this.transform(itemValueReferencePairs);
24565
+ parts.push(openTag(serializedValueReferencePairsItem.localName));
24566
+ parts.push(serializedValueReferencePairsItem.innerXml);
24567
+ parts.push(closeTag(serializedValueReferencePairsItem.localName));
24568
+ }
24569
+ parts.push(closeTag("valueReferencePairs"));
24570
+ return {
24571
+ localName: "valueList",
24572
+ innerXml: parts.join("")
24573
+ };
24574
+ }
24575
+ /**
24576
+ * Serialize `that` to an XML element representation.
24577
+ *
24578
+ * @param that - instance to be serialized
24579
+ * @returns serialized XML element representation
24580
+ */ transformLangStringPreferredNameTypeIec61360(that) {
24581
+ const parts = new Array();
24582
+ parts.push(openTag("language"));
24583
+ parts.push(serializeStringText(that.language));
24584
+ parts.push(closeTag("language"));
24585
+ parts.push(openTag("text"));
24586
+ parts.push(serializeStringText(that.text));
24587
+ parts.push(closeTag("text"));
24588
+ return {
24589
+ localName: "langStringPreferredNameTypeIec61360",
24590
+ innerXml: parts.join("")
24591
+ };
24592
+ }
24593
+ /**
24594
+ * Serialize `that` to an XML element representation.
24595
+ *
24596
+ * @param that - instance to be serialized
24597
+ * @returns serialized XML element representation
24598
+ */ transformLangStringShortNameTypeIec61360(that) {
24599
+ const parts = new Array();
24600
+ parts.push(openTag("language"));
24601
+ parts.push(serializeStringText(that.language));
24602
+ parts.push(closeTag("language"));
24603
+ parts.push(openTag("text"));
24604
+ parts.push(serializeStringText(that.text));
24605
+ parts.push(closeTag("text"));
24606
+ return {
24607
+ localName: "langStringShortNameTypeIec61360",
24608
+ innerXml: parts.join("")
24609
+ };
24610
+ }
24611
+ /**
24612
+ * Serialize `that` to an XML element representation.
24613
+ *
24614
+ * @param that - instance to be serialized
24615
+ * @returns serialized XML element representation
24616
+ */ transformLangStringDefinitionTypeIec61360(that) {
24617
+ const parts = new Array();
24618
+ parts.push(openTag("language"));
24619
+ parts.push(serializeStringText(that.language));
24620
+ parts.push(closeTag("language"));
24621
+ parts.push(openTag("text"));
24622
+ parts.push(serializeStringText(that.text));
24623
+ parts.push(closeTag("text"));
24624
+ return {
24625
+ localName: "langStringDefinitionTypeIec61360",
24626
+ innerXml: parts.join("")
24627
+ };
24628
+ }
24629
+ /**
24630
+ * Serialize `that` to an XML element representation.
24631
+ *
24632
+ * @param that - instance to be serialized
24633
+ * @returns serialized XML element representation
24634
+ */ transformDataSpecificationIec61360(that) {
24635
+ const parts = new Array();
24636
+ parts.push(openTag("preferredName"));
24637
+ for (const itemPreferredName of that.preferredName) {
24638
+ const serializedPreferredNameItem = this.transform(itemPreferredName);
24639
+ parts.push(openTag(serializedPreferredNameItem.localName));
24640
+ parts.push(serializedPreferredNameItem.innerXml);
24641
+ parts.push(closeTag(serializedPreferredNameItem.localName));
24642
+ }
24643
+ parts.push(closeTag("preferredName"));
24644
+ if (that.shortName !== null) {
24645
+ parts.push(openTag("shortName"));
24646
+ for (const itemShortName of that.shortName) {
24647
+ const serializedShortNameItem = this.transform(itemShortName);
24648
+ parts.push(openTag(serializedShortNameItem.localName));
24649
+ parts.push(serializedShortNameItem.innerXml);
24650
+ parts.push(closeTag(serializedShortNameItem.localName));
24651
+ }
24652
+ parts.push(closeTag("shortName"));
24653
+ }
24654
+ if (that.unit !== null) {
24655
+ parts.push(openTag("unit"));
24656
+ parts.push(serializeStringText(that.unit));
24657
+ parts.push(closeTag("unit"));
24658
+ }
24659
+ if (that.unitId !== null) {
24660
+ const serializedUnitId = this.transform(that.unitId);
24661
+ parts.push(openTag("unitId"));
24662
+ parts.push(serializedUnitId.innerXml);
24663
+ parts.push(closeTag("unitId"));
24664
+ }
24665
+ if (that.sourceOfDefinition !== null) {
24666
+ parts.push(openTag("sourceOfDefinition"));
24667
+ parts.push(serializeStringText(that.sourceOfDefinition));
24668
+ parts.push(closeTag("sourceOfDefinition"));
24669
+ }
24670
+ if (that.symbol !== null) {
24671
+ parts.push(openTag("symbol"));
24672
+ parts.push(serializeStringText(that.symbol));
24673
+ parts.push(closeTag("symbol"));
24674
+ }
24675
+ if (that.dataType !== null) {
24676
+ parts.push(openTag("dataType"));
24677
+ parts.push(serializeDataTypeIec61360Text(that.dataType));
24678
+ parts.push(closeTag("dataType"));
24679
+ }
24680
+ if (that.definition !== null) {
24681
+ parts.push(openTag("definition"));
24682
+ for (const itemDefinition of that.definition) {
24683
+ const serializedDefinitionItem = this.transform(itemDefinition);
24684
+ parts.push(openTag(serializedDefinitionItem.localName));
24685
+ parts.push(serializedDefinitionItem.innerXml);
24686
+ parts.push(closeTag(serializedDefinitionItem.localName));
24687
+ }
24688
+ parts.push(closeTag("definition"));
24689
+ }
24690
+ if (that.valueFormat !== null) {
24691
+ parts.push(openTag("valueFormat"));
24692
+ parts.push(serializeStringText(that.valueFormat));
24693
+ parts.push(closeTag("valueFormat"));
24694
+ }
24695
+ if (that.valueList !== null) {
24696
+ const serializedValueList = this.transform(that.valueList);
24697
+ parts.push(openTag("valueList"));
24698
+ parts.push(serializedValueList.innerXml);
24699
+ parts.push(closeTag("valueList"));
24700
+ }
24701
+ if (that.value !== null) {
24702
+ parts.push(openTag("value"));
24703
+ parts.push(serializeStringText(that.value));
24704
+ parts.push(closeTag("value"));
24705
+ }
24706
+ if (that.levelType !== null) {
24707
+ const serializedLevelType = this.transform(that.levelType);
24708
+ parts.push(openTag("levelType"));
24709
+ parts.push(serializedLevelType.innerXml);
24710
+ parts.push(closeTag("levelType"));
24711
+ }
24712
+ return {
24713
+ localName: "dataSpecificationIec61360",
24714
+ innerXml: parts.join("")
24715
+ };
24716
+ }
24717
+ };
24718
+ new Serializer();
22216
24719
  //#endregion
22217
- //#region node_modules/.pnpm/@aas-core-works+aas-core3.1-typescript@1.0.0/node_modules/@aas-core-works/aas-core3.1-typescript/dist/lib/esm/verification.js
24720
+ //#region node_modules/.pnpm/@aas-core-works+aas-core3.1-typescript@1.0.1/node_modules/@aas-core-works/aas-core3.1-typescript/dist/lib/esm/verification.js
22218
24721
  /**
22219
24722
  * Verify that the instances of the meta-model satisfy the invariants.
22220
24723
  *