scjson 0.1.0__py3-none-any.whl

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.

Potentially problematic release.


This version of scjson might be problematic. Click here for more details.

@@ -0,0 +1,1754 @@
1
+ from dataclasses import dataclass, field
2
+ from decimal import Decimal
3
+ from enum import Enum
4
+ from typing import Optional
5
+
6
+ __NAMESPACE__ = "http://www.w3.org/2005/07/scxml"
7
+
8
+
9
+ class AssignTypeDatatype(Enum):
10
+ """The assign type that allows for precise manipulation of the datamodel
11
+ location.
12
+
13
+ Types are:
14
+ replacechildren (default),
15
+ firstchild, lastchild,
16
+ previoussibling, nextsibling,
17
+ replace, delete,
18
+ addattribute
19
+ """
20
+
21
+ REPLACECHILDREN = "replacechildren"
22
+ FIRSTCHILD = "firstchild"
23
+ LASTCHILD = "lastchild"
24
+ PREVIOUSSIBLING = "previoussibling"
25
+ NEXTSIBLING = "nextsibling"
26
+ REPLACE = "replace"
27
+ DELETE = "delete"
28
+ ADDATTRIBUTE = "addattribute"
29
+
30
+
31
+ class BindingDatatype(Enum):
32
+ """
33
+ The binding type in use for the SCXML document.
34
+ """
35
+
36
+ EARLY = "early"
37
+ LATE = "late"
38
+
39
+
40
+ class BooleanDatatype(Enum):
41
+ """Boolean: true or false only"""
42
+
43
+ TRUE = "true"
44
+ FALSE = "false"
45
+
46
+
47
+ class ExmodeDatatype(Enum):
48
+ """
49
+ Describes the processor execution mode for this document, being either "lax" or
50
+ "strict".
51
+ """
52
+
53
+ LAX = "lax"
54
+ STRICT = "strict"
55
+
56
+
57
+ class HistoryTypeDatatype(Enum):
58
+ SHALLOW = "shallow"
59
+ DEEP = "deep"
60
+
61
+
62
+ class TransitionTypeDatatype(Enum):
63
+ """
64
+ The type of the transition i.e. internal or external.
65
+ """
66
+
67
+ INTERNAL = "internal"
68
+ EXTERNAL = "external"
69
+
70
+
71
+ @dataclass
72
+ class ScxmlCancelType:
73
+ class Meta:
74
+ name = "scxml.cancel.type"
75
+
76
+ other_element: list[object] = field(
77
+ default_factory=list,
78
+ metadata={
79
+ "type": "Wildcard",
80
+ "namespace": "##other",
81
+ },
82
+ )
83
+ sendid: Optional[str] = field(
84
+ default=None,
85
+ metadata={
86
+ "type": "Attribute",
87
+ },
88
+ )
89
+ sendidexpr: Optional[str] = field(
90
+ default=None,
91
+ metadata={
92
+ "type": "Attribute",
93
+ },
94
+ )
95
+ other_attributes: dict[str, str] = field(
96
+ default_factory=dict,
97
+ metadata={
98
+ "type": "Attributes",
99
+ "namespace": "##other",
100
+ },
101
+ )
102
+
103
+
104
+ @dataclass
105
+ class ScxmlContentType:
106
+ class Meta:
107
+ name = "scxml.content.type"
108
+
109
+ other_attributes: dict[str, str] = field(
110
+ default_factory=dict,
111
+ metadata={
112
+ "type": "Attributes",
113
+ "namespace": "##other",
114
+ },
115
+ )
116
+ expr: Optional[str] = field(
117
+ default=None,
118
+ metadata={
119
+ "type": "Attribute",
120
+ },
121
+ )
122
+ content: list[object] = field(
123
+ default_factory=list,
124
+ metadata={
125
+ "type": "Wildcard",
126
+ "namespace": "##any",
127
+ "mixed": True,
128
+ },
129
+ )
130
+
131
+
132
+ @dataclass
133
+ class ScxmlDataType:
134
+ class Meta:
135
+ name = "scxml.data.type"
136
+
137
+ id: Optional[str] = field(
138
+ default=None,
139
+ metadata={
140
+ "type": "Attribute",
141
+ "required": True,
142
+ },
143
+ )
144
+ src: Optional[str] = field(
145
+ default=None,
146
+ metadata={
147
+ "type": "Attribute",
148
+ },
149
+ )
150
+ expr: Optional[str] = field(
151
+ default=None,
152
+ metadata={
153
+ "type": "Attribute",
154
+ },
155
+ )
156
+ other_attributes: dict[str, str] = field(
157
+ default_factory=dict,
158
+ metadata={
159
+ "type": "Attributes",
160
+ "namespace": "##other",
161
+ },
162
+ )
163
+ content: list[object] = field(
164
+ default_factory=list,
165
+ metadata={
166
+ "type": "Wildcard",
167
+ "namespace": "##any",
168
+ "mixed": True,
169
+ },
170
+ )
171
+
172
+
173
+ @dataclass
174
+ class ScxmlElseType:
175
+ class Meta:
176
+ name = "scxml.else.type"
177
+
178
+ other_attributes: dict[str, str] = field(
179
+ default_factory=dict,
180
+ metadata={
181
+ "type": "Attributes",
182
+ "namespace": "##other",
183
+ },
184
+ )
185
+
186
+
187
+ @dataclass
188
+ class ScxmlElseifType:
189
+ class Meta:
190
+ name = "scxml.elseif.type"
191
+
192
+ cond: Optional[str] = field(
193
+ default=None,
194
+ metadata={
195
+ "type": "Attribute",
196
+ "required": True,
197
+ },
198
+ )
199
+ other_attributes: dict[str, str] = field(
200
+ default_factory=dict,
201
+ metadata={
202
+ "type": "Attributes",
203
+ "namespace": "##other",
204
+ },
205
+ )
206
+
207
+
208
+ @dataclass
209
+ class ScxmlLogType:
210
+ class Meta:
211
+ name = "scxml.log.type"
212
+
213
+ other_element: list[object] = field(
214
+ default_factory=list,
215
+ metadata={
216
+ "type": "Wildcard",
217
+ "namespace": "##other",
218
+ },
219
+ )
220
+ label: Optional[str] = field(
221
+ default=None,
222
+ metadata={
223
+ "type": "Attribute",
224
+ },
225
+ )
226
+ expr: Optional[str] = field(
227
+ default=None,
228
+ metadata={
229
+ "type": "Attribute",
230
+ },
231
+ )
232
+ other_attributes: dict[str, str] = field(
233
+ default_factory=dict,
234
+ metadata={
235
+ "type": "Attributes",
236
+ "namespace": "##other",
237
+ },
238
+ )
239
+
240
+
241
+ @dataclass
242
+ class ScxmlParamType:
243
+ class Meta:
244
+ name = "scxml.param.type"
245
+
246
+ other_element: list[object] = field(
247
+ default_factory=list,
248
+ metadata={
249
+ "type": "Wildcard",
250
+ "namespace": "##other",
251
+ },
252
+ )
253
+ name: Optional[str] = field(
254
+ default=None,
255
+ metadata={
256
+ "type": "Attribute",
257
+ "required": True,
258
+ },
259
+ )
260
+ expr: Optional[str] = field(
261
+ default=None,
262
+ metadata={
263
+ "type": "Attribute",
264
+ },
265
+ )
266
+ location: Optional[str] = field(
267
+ default=None,
268
+ metadata={
269
+ "type": "Attribute",
270
+ },
271
+ )
272
+ other_attributes: dict[str, str] = field(
273
+ default_factory=dict,
274
+ metadata={
275
+ "type": "Attributes",
276
+ "namespace": "##other",
277
+ },
278
+ )
279
+
280
+
281
+ @dataclass
282
+ class ScxmlRaiseType:
283
+ class Meta:
284
+ name = "scxml.raise.type"
285
+
286
+ event: Optional[str] = field(
287
+ default=None,
288
+ metadata={
289
+ "type": "Attribute",
290
+ "required": True,
291
+ },
292
+ )
293
+ other_attributes: dict[str, str] = field(
294
+ default_factory=dict,
295
+ metadata={
296
+ "type": "Attributes",
297
+ "namespace": "##other",
298
+ },
299
+ )
300
+
301
+
302
+ @dataclass
303
+ class ScxmlScriptType:
304
+ class Meta:
305
+ name = "scxml.script.type"
306
+
307
+ src: Optional[str] = field(
308
+ default=None,
309
+ metadata={
310
+ "type": "Attribute",
311
+ },
312
+ )
313
+ other_attributes: dict[str, str] = field(
314
+ default_factory=dict,
315
+ metadata={
316
+ "type": "Attributes",
317
+ "namespace": "##other",
318
+ },
319
+ )
320
+ content: list[object] = field(
321
+ default_factory=list,
322
+ metadata={
323
+ "type": "Wildcard",
324
+ "namespace": "##any",
325
+ "mixed": True,
326
+ },
327
+ )
328
+
329
+
330
+ @dataclass
331
+ class Cancel(ScxmlCancelType):
332
+ class Meta:
333
+ name = "cancel"
334
+ namespace = "http://www.w3.org/2005/07/scxml"
335
+
336
+
337
+ @dataclass
338
+ class Content(ScxmlContentType):
339
+ class Meta:
340
+ name = "content"
341
+ namespace = "http://www.w3.org/2005/07/scxml"
342
+
343
+
344
+ @dataclass
345
+ class Data(ScxmlDataType):
346
+ class Meta:
347
+ name = "data"
348
+ namespace = "http://www.w3.org/2005/07/scxml"
349
+
350
+
351
+ @dataclass
352
+ class Else(ScxmlElseType):
353
+ class Meta:
354
+ name = "else"
355
+ namespace = "http://www.w3.org/2005/07/scxml"
356
+
357
+
358
+ @dataclass
359
+ class Elseif(ScxmlElseifType):
360
+ class Meta:
361
+ name = "elseif"
362
+ namespace = "http://www.w3.org/2005/07/scxml"
363
+
364
+
365
+ @dataclass
366
+ class Log(ScxmlLogType):
367
+ class Meta:
368
+ name = "log"
369
+ namespace = "http://www.w3.org/2005/07/scxml"
370
+
371
+
372
+ @dataclass
373
+ class Param(ScxmlParamType):
374
+ class Meta:
375
+ name = "param"
376
+ namespace = "http://www.w3.org/2005/07/scxml"
377
+
378
+
379
+ @dataclass
380
+ class Raise(ScxmlRaiseType):
381
+ class Meta:
382
+ name = "raise"
383
+ namespace = "http://www.w3.org/2005/07/scxml"
384
+
385
+
386
+ @dataclass
387
+ class Script(ScxmlScriptType):
388
+ class Meta:
389
+ name = "script"
390
+ namespace = "http://www.w3.org/2005/07/scxml"
391
+
392
+
393
+ @dataclass
394
+ class ScxmlAssignType:
395
+ class Meta:
396
+ name = "scxml.assign.type"
397
+
398
+ location: Optional[str] = field(
399
+ default=None,
400
+ metadata={
401
+ "type": "Attribute",
402
+ "required": True,
403
+ },
404
+ )
405
+ expr: Optional[str] = field(
406
+ default=None,
407
+ metadata={
408
+ "type": "Attribute",
409
+ },
410
+ )
411
+ type_value: AssignTypeDatatype = field(
412
+ default=AssignTypeDatatype.REPLACECHILDREN,
413
+ metadata={
414
+ "name": "type",
415
+ "type": "Attribute",
416
+ },
417
+ )
418
+ attr: Optional[str] = field(
419
+ default=None,
420
+ metadata={
421
+ "type": "Attribute",
422
+ },
423
+ )
424
+ other_attributes: dict[str, str] = field(
425
+ default_factory=dict,
426
+ metadata={
427
+ "type": "Attributes",
428
+ "namespace": "##other",
429
+ },
430
+ )
431
+ content: list[object] = field(
432
+ default_factory=list,
433
+ metadata={
434
+ "type": "Wildcard",
435
+ "namespace": "##any",
436
+ "mixed": True,
437
+ },
438
+ )
439
+
440
+
441
+ @dataclass
442
+ class Assign(ScxmlAssignType):
443
+ class Meta:
444
+ name = "assign"
445
+ namespace = "http://www.w3.org/2005/07/scxml"
446
+
447
+
448
+ @dataclass
449
+ class ScxmlDatamodelType:
450
+ class Meta:
451
+ name = "scxml.datamodel.type"
452
+
453
+ data: list[Data] = field(
454
+ default_factory=list,
455
+ metadata={
456
+ "type": "Element",
457
+ "namespace": "http://www.w3.org/2005/07/scxml",
458
+ },
459
+ )
460
+ other_element: list[object] = field(
461
+ default_factory=list,
462
+ metadata={
463
+ "type": "Wildcard",
464
+ "namespace": "##other",
465
+ },
466
+ )
467
+ other_attributes: dict[str, str] = field(
468
+ default_factory=dict,
469
+ metadata={
470
+ "type": "Attributes",
471
+ "namespace": "##other",
472
+ },
473
+ )
474
+
475
+
476
+ @dataclass
477
+ class ScxmlDonedataType:
478
+ class Meta:
479
+ name = "scxml.donedata.type"
480
+
481
+ content: Optional[Content] = field(
482
+ default=None,
483
+ metadata={
484
+ "type": "Element",
485
+ "namespace": "http://www.w3.org/2005/07/scxml",
486
+ },
487
+ )
488
+ param: list[Param] = field(
489
+ default_factory=list,
490
+ metadata={
491
+ "type": "Element",
492
+ "namespace": "http://www.w3.org/2005/07/scxml",
493
+ },
494
+ )
495
+ other_attributes: dict[str, str] = field(
496
+ default_factory=dict,
497
+ metadata={
498
+ "type": "Attributes",
499
+ "namespace": "##other",
500
+ },
501
+ )
502
+
503
+
504
+ @dataclass
505
+ class ScxmlSendType:
506
+ class Meta:
507
+ name = "scxml.send.type"
508
+
509
+ content: list[Content] = field(
510
+ default_factory=list,
511
+ metadata={
512
+ "type": "Element",
513
+ "namespace": "http://www.w3.org/2005/07/scxml",
514
+ },
515
+ )
516
+ param: list[Param] = field(
517
+ default_factory=list,
518
+ metadata={
519
+ "type": "Element",
520
+ "namespace": "http://www.w3.org/2005/07/scxml",
521
+ },
522
+ )
523
+ other_element: list[object] = field(
524
+ default_factory=list,
525
+ metadata={
526
+ "type": "Wildcard",
527
+ "namespace": "##other",
528
+ },
529
+ )
530
+ event: Optional[str] = field(
531
+ default=None,
532
+ metadata={
533
+ "type": "Attribute",
534
+ "pattern": r"(\i|\d|\-)+(\.(\i|\d|\-)+)*",
535
+ },
536
+ )
537
+ eventexpr: Optional[str] = field(
538
+ default=None,
539
+ metadata={
540
+ "type": "Attribute",
541
+ },
542
+ )
543
+ target: Optional[str] = field(
544
+ default=None,
545
+ metadata={
546
+ "type": "Attribute",
547
+ },
548
+ )
549
+ targetexpr: Optional[str] = field(
550
+ default=None,
551
+ metadata={
552
+ "type": "Attribute",
553
+ },
554
+ )
555
+ type_value: str = field(
556
+ default="scxml",
557
+ metadata={
558
+ "name": "type",
559
+ "type": "Attribute",
560
+ },
561
+ )
562
+ typeexpr: Optional[str] = field(
563
+ default=None,
564
+ metadata={
565
+ "type": "Attribute",
566
+ },
567
+ )
568
+ id: Optional[str] = field(
569
+ default=None,
570
+ metadata={
571
+ "type": "Attribute",
572
+ },
573
+ )
574
+ idlocation: Optional[str] = field(
575
+ default=None,
576
+ metadata={
577
+ "type": "Attribute",
578
+ },
579
+ )
580
+ delay: str = field(
581
+ default="0s",
582
+ metadata={
583
+ "type": "Attribute",
584
+ "pattern": r"\d*(\.\d+)?(ms|s|m|h|d)",
585
+ },
586
+ )
587
+ delayexpr: Optional[str] = field(
588
+ default=None,
589
+ metadata={
590
+ "type": "Attribute",
591
+ },
592
+ )
593
+ namelist: Optional[str] = field(
594
+ default=None,
595
+ metadata={
596
+ "type": "Attribute",
597
+ },
598
+ )
599
+ other_attributes: dict[str, str] = field(
600
+ default_factory=dict,
601
+ metadata={
602
+ "type": "Attributes",
603
+ "namespace": "##other",
604
+ },
605
+ )
606
+
607
+
608
+ @dataclass
609
+ class Datamodel(ScxmlDatamodelType):
610
+ class Meta:
611
+ name = "datamodel"
612
+ namespace = "http://www.w3.org/2005/07/scxml"
613
+
614
+
615
+ @dataclass
616
+ class Donedata(ScxmlDonedataType):
617
+ class Meta:
618
+ name = "donedata"
619
+ namespace = "http://www.w3.org/2005/07/scxml"
620
+
621
+
622
+ @dataclass
623
+ class Send(ScxmlSendType):
624
+ class Meta:
625
+ name = "send"
626
+ namespace = "http://www.w3.org/2005/07/scxml"
627
+
628
+
629
+ @dataclass
630
+ class ScxmlIfType:
631
+ class Meta:
632
+ name = "scxml.if.type"
633
+
634
+ other_element: list[object] = field(
635
+ default_factory=list,
636
+ metadata={
637
+ "type": "Wildcard",
638
+ "namespace": "##other",
639
+ },
640
+ )
641
+ raise_value: list[Raise] = field(
642
+ default_factory=list,
643
+ metadata={
644
+ "name": "raise",
645
+ "type": "Element",
646
+ "namespace": "http://www.w3.org/2005/07/scxml",
647
+ },
648
+ )
649
+ if_value: list["If"] = field(
650
+ default_factory=list,
651
+ metadata={
652
+ "name": "if",
653
+ "type": "Element",
654
+ "namespace": "http://www.w3.org/2005/07/scxml",
655
+ },
656
+ )
657
+ foreach: list["Foreach"] = field(
658
+ default_factory=list,
659
+ metadata={
660
+ "type": "Element",
661
+ "namespace": "http://www.w3.org/2005/07/scxml",
662
+ },
663
+ )
664
+ send: list[Send] = field(
665
+ default_factory=list,
666
+ metadata={
667
+ "type": "Element",
668
+ "namespace": "http://www.w3.org/2005/07/scxml",
669
+ },
670
+ )
671
+ script: list[Script] = field(
672
+ default_factory=list,
673
+ metadata={
674
+ "type": "Element",
675
+ "namespace": "http://www.w3.org/2005/07/scxml",
676
+ },
677
+ )
678
+ assign: list[Assign] = field(
679
+ default_factory=list,
680
+ metadata={
681
+ "type": "Element",
682
+ "namespace": "http://www.w3.org/2005/07/scxml",
683
+ },
684
+ )
685
+ log: list[Log] = field(
686
+ default_factory=list,
687
+ metadata={
688
+ "type": "Element",
689
+ "namespace": "http://www.w3.org/2005/07/scxml",
690
+ },
691
+ )
692
+ cancel: list[Cancel] = field(
693
+ default_factory=list,
694
+ metadata={
695
+ "type": "Element",
696
+ "namespace": "http://www.w3.org/2005/07/scxml",
697
+ },
698
+ )
699
+ elseif: Optional[Elseif] = field(
700
+ default=None,
701
+ metadata={
702
+ "type": "Element",
703
+ "namespace": "http://www.w3.org/2005/07/scxml",
704
+ },
705
+ )
706
+ else_value: Optional[Else] = field(
707
+ default=None,
708
+ metadata={
709
+ "name": "else",
710
+ "type": "Element",
711
+ "namespace": "http://www.w3.org/2005/07/scxml",
712
+ },
713
+ )
714
+ cond: Optional[str] = field(
715
+ default=None,
716
+ metadata={
717
+ "type": "Attribute",
718
+ "required": True,
719
+ },
720
+ )
721
+ other_attributes: dict[str, str] = field(
722
+ default_factory=dict,
723
+ metadata={
724
+ "type": "Attributes",
725
+ "namespace": "##other",
726
+ },
727
+ )
728
+
729
+
730
+ @dataclass
731
+ class If(ScxmlIfType):
732
+ class Meta:
733
+ name = "if"
734
+ namespace = "http://www.w3.org/2005/07/scxml"
735
+
736
+
737
+ @dataclass
738
+ class ScxmlForeachType:
739
+ class Meta:
740
+ name = "scxml.foreach.type"
741
+
742
+ other_element: list[object] = field(
743
+ default_factory=list,
744
+ metadata={
745
+ "type": "Wildcard",
746
+ "namespace": "##other",
747
+ },
748
+ )
749
+ raise_value: list[Raise] = field(
750
+ default_factory=list,
751
+ metadata={
752
+ "name": "raise",
753
+ "type": "Element",
754
+ "namespace": "http://www.w3.org/2005/07/scxml",
755
+ },
756
+ )
757
+ if_value: list[If] = field(
758
+ default_factory=list,
759
+ metadata={
760
+ "name": "if",
761
+ "type": "Element",
762
+ "namespace": "http://www.w3.org/2005/07/scxml",
763
+ },
764
+ )
765
+ foreach: list["Foreach"] = field(
766
+ default_factory=list,
767
+ metadata={
768
+ "type": "Element",
769
+ "namespace": "http://www.w3.org/2005/07/scxml",
770
+ },
771
+ )
772
+ send: list[Send] = field(
773
+ default_factory=list,
774
+ metadata={
775
+ "type": "Element",
776
+ "namespace": "http://www.w3.org/2005/07/scxml",
777
+ },
778
+ )
779
+ script: list[Script] = field(
780
+ default_factory=list,
781
+ metadata={
782
+ "type": "Element",
783
+ "namespace": "http://www.w3.org/2005/07/scxml",
784
+ },
785
+ )
786
+ assign: list[Assign] = field(
787
+ default_factory=list,
788
+ metadata={
789
+ "type": "Element",
790
+ "namespace": "http://www.w3.org/2005/07/scxml",
791
+ },
792
+ )
793
+ log: list[Log] = field(
794
+ default_factory=list,
795
+ metadata={
796
+ "type": "Element",
797
+ "namespace": "http://www.w3.org/2005/07/scxml",
798
+ },
799
+ )
800
+ cancel: list[Cancel] = field(
801
+ default_factory=list,
802
+ metadata={
803
+ "type": "Element",
804
+ "namespace": "http://www.w3.org/2005/07/scxml",
805
+ },
806
+ )
807
+ array: Optional[str] = field(
808
+ default=None,
809
+ metadata={
810
+ "type": "Attribute",
811
+ "required": True,
812
+ },
813
+ )
814
+ item: Optional[str] = field(
815
+ default=None,
816
+ metadata={
817
+ "type": "Attribute",
818
+ "required": True,
819
+ },
820
+ )
821
+ index: Optional[str] = field(
822
+ default=None,
823
+ metadata={
824
+ "type": "Attribute",
825
+ },
826
+ )
827
+ other_attributes: dict[str, str] = field(
828
+ default_factory=dict,
829
+ metadata={
830
+ "type": "Attributes",
831
+ "namespace": "##other",
832
+ },
833
+ )
834
+
835
+
836
+ @dataclass
837
+ class Foreach(ScxmlForeachType):
838
+ class Meta:
839
+ name = "foreach"
840
+ namespace = "http://www.w3.org/2005/07/scxml"
841
+
842
+
843
+ @dataclass
844
+ class ScxmlFinalizeType:
845
+ class Meta:
846
+ name = "scxml.finalize.type"
847
+
848
+ other_element: list[object] = field(
849
+ default_factory=list,
850
+ metadata={
851
+ "type": "Wildcard",
852
+ "namespace": "##other",
853
+ },
854
+ )
855
+ raise_value: list[Raise] = field(
856
+ default_factory=list,
857
+ metadata={
858
+ "name": "raise",
859
+ "type": "Element",
860
+ "namespace": "http://www.w3.org/2005/07/scxml",
861
+ },
862
+ )
863
+ if_value: list[If] = field(
864
+ default_factory=list,
865
+ metadata={
866
+ "name": "if",
867
+ "type": "Element",
868
+ "namespace": "http://www.w3.org/2005/07/scxml",
869
+ },
870
+ )
871
+ foreach: list[Foreach] = field(
872
+ default_factory=list,
873
+ metadata={
874
+ "type": "Element",
875
+ "namespace": "http://www.w3.org/2005/07/scxml",
876
+ },
877
+ )
878
+ send: list[Send] = field(
879
+ default_factory=list,
880
+ metadata={
881
+ "type": "Element",
882
+ "namespace": "http://www.w3.org/2005/07/scxml",
883
+ },
884
+ )
885
+ script: list[Script] = field(
886
+ default_factory=list,
887
+ metadata={
888
+ "type": "Element",
889
+ "namespace": "http://www.w3.org/2005/07/scxml",
890
+ },
891
+ )
892
+ assign: list[Assign] = field(
893
+ default_factory=list,
894
+ metadata={
895
+ "type": "Element",
896
+ "namespace": "http://www.w3.org/2005/07/scxml",
897
+ },
898
+ )
899
+ log: list[Log] = field(
900
+ default_factory=list,
901
+ metadata={
902
+ "type": "Element",
903
+ "namespace": "http://www.w3.org/2005/07/scxml",
904
+ },
905
+ )
906
+ cancel: list[Cancel] = field(
907
+ default_factory=list,
908
+ metadata={
909
+ "type": "Element",
910
+ "namespace": "http://www.w3.org/2005/07/scxml",
911
+ },
912
+ )
913
+ other_attributes: dict[str, str] = field(
914
+ default_factory=dict,
915
+ metadata={
916
+ "type": "Attributes",
917
+ "namespace": "##other",
918
+ },
919
+ )
920
+
921
+
922
+ @dataclass
923
+ class ScxmlOnentryType:
924
+ class Meta:
925
+ name = "scxml.onentry.type"
926
+
927
+ other_element: list[object] = field(
928
+ default_factory=list,
929
+ metadata={
930
+ "type": "Wildcard",
931
+ "namespace": "##other",
932
+ },
933
+ )
934
+ raise_value: list[Raise] = field(
935
+ default_factory=list,
936
+ metadata={
937
+ "name": "raise",
938
+ "type": "Element",
939
+ "namespace": "http://www.w3.org/2005/07/scxml",
940
+ },
941
+ )
942
+ if_value: list[If] = field(
943
+ default_factory=list,
944
+ metadata={
945
+ "name": "if",
946
+ "type": "Element",
947
+ "namespace": "http://www.w3.org/2005/07/scxml",
948
+ },
949
+ )
950
+ foreach: list[Foreach] = field(
951
+ default_factory=list,
952
+ metadata={
953
+ "type": "Element",
954
+ "namespace": "http://www.w3.org/2005/07/scxml",
955
+ },
956
+ )
957
+ send: list[Send] = field(
958
+ default_factory=list,
959
+ metadata={
960
+ "type": "Element",
961
+ "namespace": "http://www.w3.org/2005/07/scxml",
962
+ },
963
+ )
964
+ script: list[Script] = field(
965
+ default_factory=list,
966
+ metadata={
967
+ "type": "Element",
968
+ "namespace": "http://www.w3.org/2005/07/scxml",
969
+ },
970
+ )
971
+ assign: list[Assign] = field(
972
+ default_factory=list,
973
+ metadata={
974
+ "type": "Element",
975
+ "namespace": "http://www.w3.org/2005/07/scxml",
976
+ },
977
+ )
978
+ log: list[Log] = field(
979
+ default_factory=list,
980
+ metadata={
981
+ "type": "Element",
982
+ "namespace": "http://www.w3.org/2005/07/scxml",
983
+ },
984
+ )
985
+ cancel: list[Cancel] = field(
986
+ default_factory=list,
987
+ metadata={
988
+ "type": "Element",
989
+ "namespace": "http://www.w3.org/2005/07/scxml",
990
+ },
991
+ )
992
+ other_attributes: dict[str, str] = field(
993
+ default_factory=dict,
994
+ metadata={
995
+ "type": "Attributes",
996
+ "namespace": "##other",
997
+ },
998
+ )
999
+
1000
+
1001
+ @dataclass
1002
+ class ScxmlOnexitType:
1003
+ class Meta:
1004
+ name = "scxml.onexit.type"
1005
+
1006
+ other_element: list[object] = field(
1007
+ default_factory=list,
1008
+ metadata={
1009
+ "type": "Wildcard",
1010
+ "namespace": "##other",
1011
+ },
1012
+ )
1013
+ raise_value: list[Raise] = field(
1014
+ default_factory=list,
1015
+ metadata={
1016
+ "name": "raise",
1017
+ "type": "Element",
1018
+ "namespace": "http://www.w3.org/2005/07/scxml",
1019
+ },
1020
+ )
1021
+ if_value: list[If] = field(
1022
+ default_factory=list,
1023
+ metadata={
1024
+ "name": "if",
1025
+ "type": "Element",
1026
+ "namespace": "http://www.w3.org/2005/07/scxml",
1027
+ },
1028
+ )
1029
+ foreach: list[Foreach] = field(
1030
+ default_factory=list,
1031
+ metadata={
1032
+ "type": "Element",
1033
+ "namespace": "http://www.w3.org/2005/07/scxml",
1034
+ },
1035
+ )
1036
+ send: list[Send] = field(
1037
+ default_factory=list,
1038
+ metadata={
1039
+ "type": "Element",
1040
+ "namespace": "http://www.w3.org/2005/07/scxml",
1041
+ },
1042
+ )
1043
+ script: list[Script] = field(
1044
+ default_factory=list,
1045
+ metadata={
1046
+ "type": "Element",
1047
+ "namespace": "http://www.w3.org/2005/07/scxml",
1048
+ },
1049
+ )
1050
+ assign: list[Assign] = field(
1051
+ default_factory=list,
1052
+ metadata={
1053
+ "type": "Element",
1054
+ "namespace": "http://www.w3.org/2005/07/scxml",
1055
+ },
1056
+ )
1057
+ log: list[Log] = field(
1058
+ default_factory=list,
1059
+ metadata={
1060
+ "type": "Element",
1061
+ "namespace": "http://www.w3.org/2005/07/scxml",
1062
+ },
1063
+ )
1064
+ cancel: list[Cancel] = field(
1065
+ default_factory=list,
1066
+ metadata={
1067
+ "type": "Element",
1068
+ "namespace": "http://www.w3.org/2005/07/scxml",
1069
+ },
1070
+ )
1071
+ other_attributes: dict[str, str] = field(
1072
+ default_factory=dict,
1073
+ metadata={
1074
+ "type": "Attributes",
1075
+ "namespace": "##other",
1076
+ },
1077
+ )
1078
+
1079
+
1080
+ @dataclass
1081
+ class ScxmlTransitionType:
1082
+ class Meta:
1083
+ name = "scxml.transition.type"
1084
+
1085
+ other_element: list[object] = field(
1086
+ default_factory=list,
1087
+ metadata={
1088
+ "type": "Wildcard",
1089
+ "namespace": "##other",
1090
+ },
1091
+ )
1092
+ raise_value: list[Raise] = field(
1093
+ default_factory=list,
1094
+ metadata={
1095
+ "name": "raise",
1096
+ "type": "Element",
1097
+ "namespace": "http://www.w3.org/2005/07/scxml",
1098
+ },
1099
+ )
1100
+ if_value: list[If] = field(
1101
+ default_factory=list,
1102
+ metadata={
1103
+ "name": "if",
1104
+ "type": "Element",
1105
+ "namespace": "http://www.w3.org/2005/07/scxml",
1106
+ },
1107
+ )
1108
+ foreach: list[Foreach] = field(
1109
+ default_factory=list,
1110
+ metadata={
1111
+ "type": "Element",
1112
+ "namespace": "http://www.w3.org/2005/07/scxml",
1113
+ },
1114
+ )
1115
+ send: list[Send] = field(
1116
+ default_factory=list,
1117
+ metadata={
1118
+ "type": "Element",
1119
+ "namespace": "http://www.w3.org/2005/07/scxml",
1120
+ },
1121
+ )
1122
+ script: list[Script] = field(
1123
+ default_factory=list,
1124
+ metadata={
1125
+ "type": "Element",
1126
+ "namespace": "http://www.w3.org/2005/07/scxml",
1127
+ },
1128
+ )
1129
+ assign: list[Assign] = field(
1130
+ default_factory=list,
1131
+ metadata={
1132
+ "type": "Element",
1133
+ "namespace": "http://www.w3.org/2005/07/scxml",
1134
+ },
1135
+ )
1136
+ log: list[Log] = field(
1137
+ default_factory=list,
1138
+ metadata={
1139
+ "type": "Element",
1140
+ "namespace": "http://www.w3.org/2005/07/scxml",
1141
+ },
1142
+ )
1143
+ cancel: list[Cancel] = field(
1144
+ default_factory=list,
1145
+ metadata={
1146
+ "type": "Element",
1147
+ "namespace": "http://www.w3.org/2005/07/scxml",
1148
+ },
1149
+ )
1150
+ event: Optional[str] = field(
1151
+ default=None,
1152
+ metadata={
1153
+ "type": "Attribute",
1154
+ "pattern": r"\.?\*|(\i|\d|\-)+(\.(\i|\d|\-)+)*(\.\*)?(\s(\i|\d|\-)+(\.(\i|\d|\-)+)*(\.\*)?)*",
1155
+ },
1156
+ )
1157
+ cond: Optional[str] = field(
1158
+ default=None,
1159
+ metadata={
1160
+ "type": "Attribute",
1161
+ },
1162
+ )
1163
+ target: list[str] = field(
1164
+ default_factory=list,
1165
+ metadata={
1166
+ "type": "Attribute",
1167
+ "tokens": True,
1168
+ },
1169
+ )
1170
+ type_value: Optional[TransitionTypeDatatype] = field(
1171
+ default=None,
1172
+ metadata={
1173
+ "name": "type",
1174
+ "type": "Attribute",
1175
+ },
1176
+ )
1177
+ other_attributes: dict[str, str] = field(
1178
+ default_factory=dict,
1179
+ metadata={
1180
+ "type": "Attributes",
1181
+ "namespace": "##other",
1182
+ },
1183
+ )
1184
+
1185
+
1186
+ @dataclass
1187
+ class Finalize(ScxmlFinalizeType):
1188
+ class Meta:
1189
+ name = "finalize"
1190
+ namespace = "http://www.w3.org/2005/07/scxml"
1191
+
1192
+
1193
+ @dataclass
1194
+ class Onentry(ScxmlOnentryType):
1195
+ class Meta:
1196
+ name = "onentry"
1197
+ namespace = "http://www.w3.org/2005/07/scxml"
1198
+
1199
+
1200
+ @dataclass
1201
+ class Onexit(ScxmlOnexitType):
1202
+ class Meta:
1203
+ name = "onexit"
1204
+ namespace = "http://www.w3.org/2005/07/scxml"
1205
+
1206
+
1207
+ @dataclass
1208
+ class Transition(ScxmlTransitionType):
1209
+ class Meta:
1210
+ name = "transition"
1211
+ namespace = "http://www.w3.org/2005/07/scxml"
1212
+
1213
+
1214
+ @dataclass
1215
+ class ScxmlFinalType:
1216
+ class Meta:
1217
+ name = "scxml.final.type"
1218
+
1219
+ onentry: list[Onentry] = field(
1220
+ default_factory=list,
1221
+ metadata={
1222
+ "type": "Element",
1223
+ "namespace": "http://www.w3.org/2005/07/scxml",
1224
+ },
1225
+ )
1226
+ onexit: list[Onexit] = field(
1227
+ default_factory=list,
1228
+ metadata={
1229
+ "type": "Element",
1230
+ "namespace": "http://www.w3.org/2005/07/scxml",
1231
+ },
1232
+ )
1233
+ donedata: list[Donedata] = field(
1234
+ default_factory=list,
1235
+ metadata={
1236
+ "type": "Element",
1237
+ "namespace": "http://www.w3.org/2005/07/scxml",
1238
+ },
1239
+ )
1240
+ other_element: list[object] = field(
1241
+ default_factory=list,
1242
+ metadata={
1243
+ "type": "Wildcard",
1244
+ "namespace": "##other",
1245
+ },
1246
+ )
1247
+ id: Optional[str] = field(
1248
+ default=None,
1249
+ metadata={
1250
+ "type": "Attribute",
1251
+ },
1252
+ )
1253
+ other_attributes: dict[str, str] = field(
1254
+ default_factory=dict,
1255
+ metadata={
1256
+ "type": "Attributes",
1257
+ "namespace": "##other",
1258
+ },
1259
+ )
1260
+
1261
+
1262
+ @dataclass
1263
+ class ScxmlHistoryType:
1264
+ class Meta:
1265
+ name = "scxml.history.type"
1266
+
1267
+ other_element: list[object] = field(
1268
+ default_factory=list,
1269
+ metadata={
1270
+ "type": "Wildcard",
1271
+ "namespace": "##other",
1272
+ },
1273
+ )
1274
+ transition: Optional[Transition] = field(
1275
+ default=None,
1276
+ metadata={
1277
+ "type": "Element",
1278
+ "namespace": "http://www.w3.org/2005/07/scxml",
1279
+ "required": True,
1280
+ },
1281
+ )
1282
+ id: Optional[str] = field(
1283
+ default=None,
1284
+ metadata={
1285
+ "type": "Attribute",
1286
+ },
1287
+ )
1288
+ type_value: Optional[HistoryTypeDatatype] = field(
1289
+ default=None,
1290
+ metadata={
1291
+ "name": "type",
1292
+ "type": "Attribute",
1293
+ },
1294
+ )
1295
+ other_attributes: dict[str, str] = field(
1296
+ default_factory=dict,
1297
+ metadata={
1298
+ "type": "Attributes",
1299
+ "namespace": "##other",
1300
+ },
1301
+ )
1302
+
1303
+
1304
+ @dataclass
1305
+ class ScxmlInitialType:
1306
+ class Meta:
1307
+ name = "scxml.initial.type"
1308
+
1309
+ other_element: list[object] = field(
1310
+ default_factory=list,
1311
+ metadata={
1312
+ "type": "Wildcard",
1313
+ "namespace": "##other",
1314
+ },
1315
+ )
1316
+ transition: Optional[Transition] = field(
1317
+ default=None,
1318
+ metadata={
1319
+ "type": "Element",
1320
+ "namespace": "http://www.w3.org/2005/07/scxml",
1321
+ "required": True,
1322
+ },
1323
+ )
1324
+ other_attributes: dict[str, str] = field(
1325
+ default_factory=dict,
1326
+ metadata={
1327
+ "type": "Attributes",
1328
+ "namespace": "##other",
1329
+ },
1330
+ )
1331
+
1332
+
1333
+ @dataclass
1334
+ class ScxmlInvokeType:
1335
+ class Meta:
1336
+ name = "scxml.invoke.type"
1337
+
1338
+ content: list[Content] = field(
1339
+ default_factory=list,
1340
+ metadata={
1341
+ "type": "Element",
1342
+ "namespace": "http://www.w3.org/2005/07/scxml",
1343
+ },
1344
+ )
1345
+ param: list[Param] = field(
1346
+ default_factory=list,
1347
+ metadata={
1348
+ "type": "Element",
1349
+ "namespace": "http://www.w3.org/2005/07/scxml",
1350
+ },
1351
+ )
1352
+ finalize: list[Finalize] = field(
1353
+ default_factory=list,
1354
+ metadata={
1355
+ "type": "Element",
1356
+ "namespace": "http://www.w3.org/2005/07/scxml",
1357
+ },
1358
+ )
1359
+ other_element: list[object] = field(
1360
+ default_factory=list,
1361
+ metadata={
1362
+ "type": "Wildcard",
1363
+ "namespace": "##other",
1364
+ },
1365
+ )
1366
+ type_value: str = field(
1367
+ default="scxml",
1368
+ metadata={
1369
+ "name": "type",
1370
+ "type": "Attribute",
1371
+ },
1372
+ )
1373
+ typeexpr: Optional[str] = field(
1374
+ default=None,
1375
+ metadata={
1376
+ "type": "Attribute",
1377
+ },
1378
+ )
1379
+ src: Optional[str] = field(
1380
+ default=None,
1381
+ metadata={
1382
+ "type": "Attribute",
1383
+ },
1384
+ )
1385
+ srcexpr: Optional[str] = field(
1386
+ default=None,
1387
+ metadata={
1388
+ "type": "Attribute",
1389
+ },
1390
+ )
1391
+ id: Optional[str] = field(
1392
+ default=None,
1393
+ metadata={
1394
+ "type": "Attribute",
1395
+ },
1396
+ )
1397
+ idlocation: Optional[str] = field(
1398
+ default=None,
1399
+ metadata={
1400
+ "type": "Attribute",
1401
+ },
1402
+ )
1403
+ namelist: Optional[str] = field(
1404
+ default=None,
1405
+ metadata={
1406
+ "type": "Attribute",
1407
+ },
1408
+ )
1409
+ autoforward: BooleanDatatype = field(
1410
+ default=BooleanDatatype.FALSE,
1411
+ metadata={
1412
+ "type": "Attribute",
1413
+ },
1414
+ )
1415
+ other_attributes: dict[str, str] = field(
1416
+ default_factory=dict,
1417
+ metadata={
1418
+ "type": "Attributes",
1419
+ "namespace": "##other",
1420
+ },
1421
+ )
1422
+
1423
+
1424
+ @dataclass
1425
+ class Final(ScxmlFinalType):
1426
+ class Meta:
1427
+ name = "final"
1428
+ namespace = "http://www.w3.org/2005/07/scxml"
1429
+
1430
+
1431
+ @dataclass
1432
+ class History(ScxmlHistoryType):
1433
+ class Meta:
1434
+ name = "history"
1435
+ namespace = "http://www.w3.org/2005/07/scxml"
1436
+
1437
+
1438
+ @dataclass
1439
+ class Initial(ScxmlInitialType):
1440
+ class Meta:
1441
+ name = "initial"
1442
+ namespace = "http://www.w3.org/2005/07/scxml"
1443
+
1444
+
1445
+ @dataclass
1446
+ class Invoke(ScxmlInvokeType):
1447
+ class Meta:
1448
+ name = "invoke"
1449
+ namespace = "http://www.w3.org/2005/07/scxml"
1450
+
1451
+
1452
+ @dataclass
1453
+ class ScxmlStateType:
1454
+ class Meta:
1455
+ name = "scxml.state.type"
1456
+
1457
+ onentry: list[Onentry] = field(
1458
+ default_factory=list,
1459
+ metadata={
1460
+ "type": "Element",
1461
+ "namespace": "http://www.w3.org/2005/07/scxml",
1462
+ },
1463
+ )
1464
+ onexit: list[Onexit] = field(
1465
+ default_factory=list,
1466
+ metadata={
1467
+ "type": "Element",
1468
+ "namespace": "http://www.w3.org/2005/07/scxml",
1469
+ },
1470
+ )
1471
+ transition: list[Transition] = field(
1472
+ default_factory=list,
1473
+ metadata={
1474
+ "type": "Element",
1475
+ "namespace": "http://www.w3.org/2005/07/scxml",
1476
+ },
1477
+ )
1478
+ initial: list[Initial] = field(
1479
+ default_factory=list,
1480
+ metadata={
1481
+ "type": "Element",
1482
+ "namespace": "http://www.w3.org/2005/07/scxml",
1483
+ },
1484
+ )
1485
+ state: list["State"] = field(
1486
+ default_factory=list,
1487
+ metadata={
1488
+ "type": "Element",
1489
+ "namespace": "http://www.w3.org/2005/07/scxml",
1490
+ },
1491
+ )
1492
+ parallel: list["Parallel"] = field(
1493
+ default_factory=list,
1494
+ metadata={
1495
+ "type": "Element",
1496
+ "namespace": "http://www.w3.org/2005/07/scxml",
1497
+ },
1498
+ )
1499
+ final: list[Final] = field(
1500
+ default_factory=list,
1501
+ metadata={
1502
+ "type": "Element",
1503
+ "namespace": "http://www.w3.org/2005/07/scxml",
1504
+ },
1505
+ )
1506
+ history: list[History] = field(
1507
+ default_factory=list,
1508
+ metadata={
1509
+ "type": "Element",
1510
+ "namespace": "http://www.w3.org/2005/07/scxml",
1511
+ },
1512
+ )
1513
+ datamodel: list[Datamodel] = field(
1514
+ default_factory=list,
1515
+ metadata={
1516
+ "type": "Element",
1517
+ "namespace": "http://www.w3.org/2005/07/scxml",
1518
+ },
1519
+ )
1520
+ invoke: list[Invoke] = field(
1521
+ default_factory=list,
1522
+ metadata={
1523
+ "type": "Element",
1524
+ "namespace": "http://www.w3.org/2005/07/scxml",
1525
+ },
1526
+ )
1527
+ other_element: list[object] = field(
1528
+ default_factory=list,
1529
+ metadata={
1530
+ "type": "Wildcard",
1531
+ "namespace": "##other",
1532
+ },
1533
+ )
1534
+ id: Optional[str] = field(
1535
+ default=None,
1536
+ metadata={
1537
+ "type": "Attribute",
1538
+ },
1539
+ )
1540
+ initial_attribute: list[str] = field(
1541
+ default_factory=list,
1542
+ metadata={
1543
+ "name": "initial",
1544
+ "type": "Attribute",
1545
+ "tokens": True,
1546
+ },
1547
+ )
1548
+ other_attributes: dict[str, str] = field(
1549
+ default_factory=dict,
1550
+ metadata={
1551
+ "type": "Attributes",
1552
+ "namespace": "##other",
1553
+ },
1554
+ )
1555
+
1556
+
1557
+ @dataclass
1558
+ class State(ScxmlStateType):
1559
+ class Meta:
1560
+ name = "state"
1561
+ namespace = "http://www.w3.org/2005/07/scxml"
1562
+
1563
+
1564
+ @dataclass
1565
+ class ScxmlParallelType:
1566
+ class Meta:
1567
+ name = "scxml.parallel.type"
1568
+
1569
+ onentry: list[Onentry] = field(
1570
+ default_factory=list,
1571
+ metadata={
1572
+ "type": "Element",
1573
+ "namespace": "http://www.w3.org/2005/07/scxml",
1574
+ },
1575
+ )
1576
+ onexit: list[Onexit] = field(
1577
+ default_factory=list,
1578
+ metadata={
1579
+ "type": "Element",
1580
+ "namespace": "http://www.w3.org/2005/07/scxml",
1581
+ },
1582
+ )
1583
+ transition: list[Transition] = field(
1584
+ default_factory=list,
1585
+ metadata={
1586
+ "type": "Element",
1587
+ "namespace": "http://www.w3.org/2005/07/scxml",
1588
+ },
1589
+ )
1590
+ state: list[State] = field(
1591
+ default_factory=list,
1592
+ metadata={
1593
+ "type": "Element",
1594
+ "namespace": "http://www.w3.org/2005/07/scxml",
1595
+ },
1596
+ )
1597
+ parallel: list["Parallel"] = field(
1598
+ default_factory=list,
1599
+ metadata={
1600
+ "type": "Element",
1601
+ "namespace": "http://www.w3.org/2005/07/scxml",
1602
+ },
1603
+ )
1604
+ history: list[History] = field(
1605
+ default_factory=list,
1606
+ metadata={
1607
+ "type": "Element",
1608
+ "namespace": "http://www.w3.org/2005/07/scxml",
1609
+ },
1610
+ )
1611
+ datamodel: list[Datamodel] = field(
1612
+ default_factory=list,
1613
+ metadata={
1614
+ "type": "Element",
1615
+ "namespace": "http://www.w3.org/2005/07/scxml",
1616
+ },
1617
+ )
1618
+ invoke: list[Invoke] = field(
1619
+ default_factory=list,
1620
+ metadata={
1621
+ "type": "Element",
1622
+ "namespace": "http://www.w3.org/2005/07/scxml",
1623
+ },
1624
+ )
1625
+ other_element: list[object] = field(
1626
+ default_factory=list,
1627
+ metadata={
1628
+ "type": "Wildcard",
1629
+ "namespace": "##other",
1630
+ },
1631
+ )
1632
+ id: Optional[str] = field(
1633
+ default=None,
1634
+ metadata={
1635
+ "type": "Attribute",
1636
+ },
1637
+ )
1638
+ other_attributes: dict[str, str] = field(
1639
+ default_factory=dict,
1640
+ metadata={
1641
+ "type": "Attributes",
1642
+ "namespace": "##other",
1643
+ },
1644
+ )
1645
+
1646
+
1647
+ @dataclass
1648
+ class Parallel(ScxmlParallelType):
1649
+ class Meta:
1650
+ name = "parallel"
1651
+ namespace = "http://www.w3.org/2005/07/scxml"
1652
+
1653
+
1654
+ @dataclass
1655
+ class ScxmlScxmlType:
1656
+ class Meta:
1657
+ name = "scxml.scxml.type"
1658
+
1659
+ state: list[State] = field(
1660
+ default_factory=list,
1661
+ metadata={
1662
+ "type": "Element",
1663
+ "namespace": "http://www.w3.org/2005/07/scxml",
1664
+ },
1665
+ )
1666
+ parallel: list[Parallel] = field(
1667
+ default_factory=list,
1668
+ metadata={
1669
+ "type": "Element",
1670
+ "namespace": "http://www.w3.org/2005/07/scxml",
1671
+ },
1672
+ )
1673
+ final: list[Final] = field(
1674
+ default_factory=list,
1675
+ metadata={
1676
+ "type": "Element",
1677
+ "namespace": "http://www.w3.org/2005/07/scxml",
1678
+ },
1679
+ )
1680
+ datamodel: list[Datamodel] = field(
1681
+ default_factory=list,
1682
+ metadata={
1683
+ "type": "Element",
1684
+ "namespace": "http://www.w3.org/2005/07/scxml",
1685
+ },
1686
+ )
1687
+ script: list[Script] = field(
1688
+ default_factory=list,
1689
+ metadata={
1690
+ "type": "Element",
1691
+ "namespace": "http://www.w3.org/2005/07/scxml",
1692
+ },
1693
+ )
1694
+ other_element: list[object] = field(
1695
+ default_factory=list,
1696
+ metadata={
1697
+ "type": "Wildcard",
1698
+ "namespace": "##other",
1699
+ },
1700
+ )
1701
+ initial: list[str] = field(
1702
+ default_factory=list,
1703
+ metadata={
1704
+ "type": "Attribute",
1705
+ "tokens": True,
1706
+ },
1707
+ )
1708
+ name: Optional[str] = field(
1709
+ default=None,
1710
+ metadata={
1711
+ "type": "Attribute",
1712
+ },
1713
+ )
1714
+ version: Decimal = field(
1715
+ init=False,
1716
+ default=Decimal("1.0"),
1717
+ metadata={
1718
+ "type": "Attribute",
1719
+ "required": True,
1720
+ },
1721
+ )
1722
+ datamodel_attribute: str = field(
1723
+ default="null",
1724
+ metadata={
1725
+ "name": "datamodel",
1726
+ "type": "Attribute",
1727
+ },
1728
+ )
1729
+ binding: Optional[BindingDatatype] = field(
1730
+ default=None,
1731
+ metadata={
1732
+ "type": "Attribute",
1733
+ },
1734
+ )
1735
+ exmode: Optional[ExmodeDatatype] = field(
1736
+ default=None,
1737
+ metadata={
1738
+ "type": "Attribute",
1739
+ },
1740
+ )
1741
+ other_attributes: dict[str, str] = field(
1742
+ default_factory=dict,
1743
+ metadata={
1744
+ "type": "Attributes",
1745
+ "namespace": "##other",
1746
+ },
1747
+ )
1748
+
1749
+
1750
+ @dataclass
1751
+ class Scxml(ScxmlScxmlType):
1752
+ class Meta:
1753
+ name = "scxml"
1754
+ namespace = "http://www.w3.org/2005/07/scxml"