@lionweb/validation 0.6.2-beta.0 → 0.6.2

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/src/tmp.json DELETED
@@ -1,574 +0,0 @@
1
- [
2
- {
3
- "id" : "subStringProp-id",
4
- "classifier" : {
5
- "language": "LionCore-M3",
6
- "version" : "2023.1",
7
- "key" : "Property"
8
- },
9
- "properties" : [
10
- {
11
- "property": {
12
- "language": "LionCore-M3",
13
- "version" : "2023.1",
14
- "key" : "Feature-optional"
15
- },
16
- "value" : "true"
17
- },
18
- {
19
- "property": {
20
- "language": "LionCore-builtins",
21
- "version" : "2023.1",
22
- "key" : "LionCore-builtins-INamed-name"
23
- },
24
- "value" : "SubStringProperty"
25
- },
26
- {
27
- "property": {
28
- "language": "LionCore-M3",
29
- "version" : "2023.1",
30
- "key" : "IKeyed-key"
31
- },
32
- "value" : "myConcept-subStringProp"
33
- }
34
- ],
35
- "containments": [],
36
- "references" : [
37
- {
38
- "reference": {
39
- "language": "LionCore-M3",
40
- "version" : "2023.1",
41
- "key" : "Property-type"
42
- },
43
- "targets" : [
44
- {
45
- "resolveInfo": "String",
46
- "reference" : "LionCore-builtins-String"
47
- }
48
- ]
49
- }
50
- ],
51
- "annotations" : [],
52
- "parent" : "mySubConcept-id"
53
- },
54
- {
55
- "id" : "stringProp-id",
56
- "classifier" : {
57
- "language": "LionCore-M3",
58
- "version" : "2023.1",
59
- "key" : "Property"
60
- },
61
- "properties" : [
62
- {
63
- "property": {
64
- "language": "LionCore-M3",
65
- "version" : "2023.1",
66
- "key" : "Feature-optional"
67
- },
68
- "value" : "true"
69
- },
70
- {
71
- "property": {
72
- "language": "LionCore-builtins",
73
- "version" : "2023.1",
74
- "key" : "LionCore-builtins-INamed-name"
75
- },
76
- "value" : "StringProperty"
77
- },
78
- {
79
- "property": {
80
- "language": "LionCore-M3",
81
- "version" : "2023.1",
82
- "key" : "IKeyed-key"
83
- },
84
- "value" : "myConcept-stringProp"
85
- }
86
- ],
87
- "containments": [],
88
- "references" : [
89
- {
90
- "reference": {
91
- "language": "LionCore-M3",
92
- "version" : "2023.1",
93
- "key" : "Property-type"
94
- },
95
- "targets" : [
96
- {
97
- "resolveInfo": "String",
98
- "reference" : "LionCore-builtins-String"
99
- }
100
- ]
101
- }
102
- ],
103
- "annotations" : [],
104
- "parent" : "myConcept-id"
105
- },
106
- {
107
- "id" : "booleanProp-id",
108
- "classifier" : {
109
- "language": "LionCore-M3",
110
- "version" : "2023.1",
111
- "key" : "Property"
112
- },
113
- "properties" : [
114
- {
115
- "property": {
116
- "language": "LionCore-M3",
117
- "version" : "2023.1",
118
- "key" : "Feature-optional"
119
- },
120
- "value" : "true"
121
- },
122
- {
123
- "property": {
124
- "language": "LionCore-builtins",
125
- "version" : "2023.1",
126
- "key" : "LionCore-builtins-INamed-name"
127
- },
128
- "value" : "BooleanProperty"
129
- },
130
- {
131
- "property": {
132
- "language": "LionCore-M3",
133
- "version" : "2023.1",
134
- "key" : "IKeyed-key"
135
- },
136
- "value" : "myConcept-booleanProp"
137
- }
138
- ],
139
- "containments": [],
140
- "references" : [
141
- {
142
- "reference": {
143
- "language": "LionCore-M3",
144
- "version" : "2023.1",
145
- "key" : "Property-type"
146
- },
147
- "targets" : [
148
- {
149
- "resolveInfo": "Boolean",
150
- "reference" : "LionCore-builtins-Boolean"
151
- }
152
- ]
153
- }
154
- ],
155
- "annotations" : [],
156
- "parent" : "myConcept-id"
157
- },
158
- {
159
- "id" : "integerProp-id",
160
- "classifier" : {
161
- "language": "LionCore-M3",
162
- "version" : "2023.1",
163
- "key" : "Property"
164
- },
165
- "properties" : [
166
- {
167
- "property": {
168
- "language": "LionCore-M3",
169
- "version" : "2023.1",
170
- "key" : "Feature-optional"
171
- },
172
- "value" : "true"
173
- },
174
- {
175
- "property": {
176
- "language": "LionCore-builtins",
177
- "version" : "2023.1",
178
- "key" : "LionCore-builtins-INamed-name"
179
- },
180
- "value" : "IntegerProperty"
181
- },
182
- {
183
- "property": {
184
- "language": "LionCore-M3",
185
- "version" : "2023.1",
186
- "key" : "IKeyed-key"
187
- },
188
- "value" : "myConcept-integerProp"
189
- }
190
- ],
191
- "containments": [],
192
- "references" : [
193
- {
194
- "reference": {
195
- "language": "LionCore-M3",
196
- "version" : "2023.1",
197
- "key" : "Property-type"
198
- },
199
- "targets" : [
200
- {
201
- "resolveInfo": "Integer",
202
- "reference" : "LionCore-builtins-Integer"
203
- }
204
- ]
205
- }
206
- ],
207
- "annotations" : [],
208
- "parent" : "myConcept-id"
209
- },
210
- {
211
- "id" : "jsonProp-id",
212
- "classifier" : {
213
- "language": "LionCore-M3",
214
- "version" : "2023.1",
215
- "key" : "Property"
216
- },
217
- "properties" : [
218
- {
219
- "property": {
220
- "language": "LionCore-M3",
221
- "version" : "2023.1",
222
- "key" : "Feature-optional"
223
- },
224
- "value" : "true"
225
- },
226
- {
227
- "property": {
228
- "language": "LionCore-builtins",
229
- "version" : "2023.1",
230
- "key" : "LionCore-builtins-INamed-name"
231
- },
232
- "value" : "JSONProperty"
233
- },
234
- {
235
- "property": {
236
- "language": "LionCore-M3",
237
- "version" : "2023.1",
238
- "key" : "IKeyed-key"
239
- },
240
- "value" : "myConcept-jsonProp"
241
- }
242
- ],
243
- "containments": [],
244
- "references" : [
245
- {
246
- "reference": {
247
- "language": "LionCore-M3",
248
- "version" : "2023.1",
249
- "key" : "Property-type"
250
- },
251
- "targets" : [
252
- {
253
- "resolveInfo": "JSON",
254
- "reference" : "LionCore-builtins-JSON"
255
- }
256
- ]
257
- }
258
- ],
259
- "annotations" : [],
260
- "parent" : "myConcept-id"
261
- },
262
- {
263
- "id" : "enumAProp-id",
264
- "classifier" : {
265
- "language": "LionCore-M3",
266
- "version" : "2023.1",
267
- "key" : "Property"
268
- },
269
- "properties" : [
270
- {
271
- "property": {
272
- "language": "LionCore-M3",
273
- "version" : "2023.1",
274
- "key" : "Feature-optional"
275
- },
276
- "value" : "true"
277
- },
278
- {
279
- "property": {
280
- "language": "LionCore-builtins",
281
- "version" : "2023.1",
282
- "key" : "LionCore-builtins-INamed-name"
283
- },
284
- "value" : "EnumerationProperty"
285
- },
286
- {
287
- "property": {
288
- "language": "LionCore-M3",
289
- "version" : "2023.1",
290
- "key" : "IKeyed-key"
291
- },
292
- "value" : "myConcept-enumAProp"
293
- }
294
- ],
295
- "containments": [],
296
- "references" : [
297
- {
298
- "reference": {
299
- "language": "LionCore-M3",
300
- "version" : "2023.1",
301
- "key" : "Property-type"
302
- },
303
- "targets" : [
304
- {
305
- "resolveInfo": "EnumA",
306
- "reference" : "enumA-id"
307
- }
308
- ]
309
- }
310
- ],
311
- "annotations" : [],
312
- "parent" : "myConcept-id"
313
- },
314
- {
315
- "id" : "combinedIfaceStringProp-id",
316
- "classifier" : {
317
- "language": "LionCore-M3",
318
- "version" : "2023.1",
319
- "key" : "Property"
320
- },
321
- "properties" : [
322
- {
323
- "property": {
324
- "language": "LionCore-M3",
325
- "version" : "2023.1",
326
- "key" : "Feature-optional"
327
- },
328
- "value" : "true"
329
- },
330
- {
331
- "property": {
332
- "language": "LionCore-builtins",
333
- "version" : "2023.1",
334
- "key" : "LionCore-builtins-INamed-name"
335
- },
336
- "value" : "CombinedIfaceStringProperty"
337
- },
338
- {
339
- "property": {
340
- "language": "LionCore-M3",
341
- "version" : "2023.1",
342
- "key" : "IKeyed-key"
343
- },
344
- "value" : "combinedIface-ifaceStringProp"
345
- }
346
- ],
347
- "containments": [],
348
- "references" : [
349
- {
350
- "reference": {
351
- "language": "LionCore-M3",
352
- "version" : "2023.1",
353
- "key" : "Property-type"
354
- },
355
- "targets" : [
356
- {
357
- "resolveInfo": "String",
358
- "reference" : "LionCore-builtins-String"
359
- }
360
- ]
361
- }
362
- ],
363
- "annotations" : [],
364
- "parent" : "combinedIface-id"
365
- },
366
- {
367
- "id" : "subIfaceStringProp-id",
368
- "classifier" : {
369
- "language": "LionCore-M3",
370
- "version" : "2023.1",
371
- "key" : "Property"
372
- },
373
- "properties" : [
374
- {
375
- "property": {
376
- "language": "LionCore-M3",
377
- "version" : "2023.1",
378
- "key" : "Feature-optional"
379
- },
380
- "value" : "true"
381
- },
382
- {
383
- "property": {
384
- "language": "LionCore-builtins",
385
- "version" : "2023.1",
386
- "key" : "LionCore-builtins-INamed-name"
387
- },
388
- "value" : "SubIfaceStringProperty"
389
- },
390
- {
391
- "property": {
392
- "language": "LionCore-M3",
393
- "version" : "2023.1",
394
- "key" : "IKeyed-key"
395
- },
396
- "value" : "subIface-ifaceStringProp"
397
- }
398
- ],
399
- "containments": [],
400
- "references" : [
401
- {
402
- "reference": {
403
- "language": "LionCore-M3",
404
- "version" : "2023.1",
405
- "key" : "Property-type"
406
- },
407
- "targets" : [
408
- {
409
- "resolveInfo": "String",
410
- "reference" : "LionCore-builtins-String"
411
- }
412
- ]
413
- }
414
- ],
415
- "annotations" : [],
416
- "parent" : "subIface-id"
417
- },
418
- {
419
- "id" : "ifaceStringProp-id",
420
- "classifier" : {
421
- "language": "LionCore-M3",
422
- "version" : "2023.1",
423
- "key" : "Property"
424
- },
425
- "properties" : [
426
- {
427
- "property": {
428
- "language": "LionCore-M3",
429
- "version" : "2023.1",
430
- "key" : "Feature-optional"
431
- },
432
- "value" : "true"
433
- },
434
- {
435
- "property": {
436
- "language": "LionCore-builtins",
437
- "version" : "2023.1",
438
- "key" : "LionCore-builtins-INamed-name"
439
- },
440
- "value" : "MyIfaceStringProperty"
441
- },
442
- {
443
- "property": {
444
- "language": "LionCore-M3",
445
- "version" : "2023.1",
446
- "key" : "IKeyed-key"
447
- },
448
- "value" : "myIface-ifaceStringProp"
449
- }
450
- ],
451
- "containments": [],
452
- "references" : [
453
- {
454
- "reference": {
455
- "language": "LionCore-M3",
456
- "version" : "2023.1",
457
- "key" : "Property-type"
458
- },
459
- "targets" : [
460
- {
461
- "resolveInfo": "String",
462
- "reference" : "LionCore-builtins-String"
463
- }
464
- ]
465
- }
466
- ],
467
- "annotations" : [],
468
- "parent" : "myIface-id"
469
- },
470
- {
471
- "id" : "otherIfaceStringProp-id",
472
- "classifier" : {
473
- "language": "LionCore-M3",
474
- "version" : "2023.1",
475
- "key" : "Property"
476
- },
477
- "properties" : [
478
- {
479
- "property": {
480
- "language": "LionCore-M3",
481
- "version" : "2023.1",
482
- "key" : "Feature-optional"
483
- },
484
- "value" : "true"
485
- },
486
- {
487
- "property": {
488
- "language": "LionCore-builtins",
489
- "version" : "2023.1",
490
- "key" : "LionCore-builtins-INamed-name"
491
- },
492
- "value" : "OtherIfaceStringProperty"
493
- },
494
- {
495
- "property": {
496
- "language": "LionCore-M3",
497
- "version" : "2023.1",
498
- "key" : "IKeyed-key"
499
- },
500
- "value" : "otherIface-ifaceStringProp"
501
- }
502
- ],
503
- "containments": [],
504
- "references" : [
505
- {
506
- "reference": {
507
- "language": "LionCore-M3",
508
- "version" : "2023.1",
509
- "key" : "Property-type"
510
- },
511
- "targets" : [
512
- {
513
- "resolveInfo": "String",
514
- "reference" : "LionCore-builtins-String"
515
- }
516
- ]
517
- }
518
- ],
519
- "annotations" : [],
520
- "parent" : "otherIface-id"
521
- },
522
- {
523
- "id" : "separateIfaceStringProp-id",
524
- "classifier" : {
525
- "language": "LionCore-M3",
526
- "version" : "2023.1",
527
- "key" : "Property"
528
- },
529
- "properties" : [
530
- {
531
- "property": {
532
- "language": "LionCore-M3",
533
- "version" : "2023.1",
534
- "key" : "Feature-optional"
535
- },
536
- "value" : "true"
537
- },
538
- {
539
- "property": {
540
- "language": "LionCore-builtins",
541
- "version" : "2023.1",
542
- "key" : "LionCore-builtins-INamed-name"
543
- },
544
- "value" : "SeparateIfaceStringProperty"
545
- },
546
- {
547
- "property": {
548
- "language": "LionCore-M3",
549
- "version" : "2023.1",
550
- "key" : "IKeyed-key"
551
- },
552
- "value" : "separateIface-ifaceStringProp"
553
- }
554
- ],
555
- "containments": [],
556
- "references" : [
557
- {
558
- "reference": {
559
- "language": "LionCore-M3",
560
- "version" : "2023.1",
561
- "key" : "Property-type"
562
- },
563
- "targets" : [
564
- {
565
- "resolveInfo": "String",
566
- "reference" : "LionCore-builtins-String"
567
- }
568
- ]
569
- }
570
- ],
571
- "annotations" : [],
572
- "parent" : "separateIface-id"
573
- }
574
- ]
package/src/tryout.js DELETED
@@ -1,21 +0,0 @@
1
- const object1 = {id: "1", log: "gsgs"}
2
- const object2 = {id: "1", log: "gsgs"}
3
-
4
- console.log("== " + object1 == object2)
5
- console.log("=== " + object1 === object2)
6
- console.log("is " + Object.is(object1 , object2))
7
-
8
- const map = new Map()
9
-
10
- map.set(object1, "1")
11
- console.log("haskey 1 " + map.has(object1))
12
- console.log("haskey 2 " + map.has(object2))
13
-
14
-
15
- let ourMap = new Map();
16
-
17
- ourMap.set(Symbol.for(object1), "some value");
18
- ourMap.set(Symbol.for(object2), "this value should be updated");
19
-
20
- console.log("1: " + ourMap.get((Symbol.for(object1))))
21
- console.log("2: " + ourMap.get((Symbol.for(object2))))
package/structure.puml DELETED
@@ -1,25 +0,0 @@
1
- @startuml
2
- skinparam linetype ortho
3
-
4
- class LionWebChunkWrapper {
5
- }
6
-
7
- class LionWebLanguageWrapper {
8
- superClassifiers(...): Classifier[]
9
- allSuperClassifiers(...): Classifier[]
10
- properties(...): Property[]
11
- allProperties(...): Property[]
12
- ...()
13
- }
14
-
15
- class CompositeLionWebLanguageWrapper {
16
- }
17
-
18
- class LanguageRegistry {
19
- }
20
-
21
- LionWebChunkWrapper <|-- LionWebLanguageWrapper
22
- LionWebLanguageWrapper <|-- CompositeLionWebLanguageWrapper
23
- CompositeLionWebLanguageWrapper --> "0..*" LionWebLanguageWrapper
24
- LanguageRegistry --> "1" CompositeLionWebLanguageWrapper
25
- @enduml