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