@hla4ts/fom-codegen 0.1.0 → 0.1.1
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/package.json +1 -1
- package/src/cli.ts +179 -179
- package/src/generated/index.ts +25 -25
- package/src/generated/xsd-types.ts +63 -63
- package/src/xsd-parser.ts +404 -404
- package/src/xsd-type-generator.ts +452 -452
- package/src/xsd-types-adapter.ts +177 -177
|
@@ -46,32 +46,32 @@ export type POCTypeEnumeration = "Primary author" | "Contributor" | "Proponent"
|
|
|
46
46
|
|
|
47
47
|
export interface ObjectModel {
|
|
48
48
|
/**
|
|
49
|
-
* documents certain key identifying information within the
|
|
49
|
+
* documents certain key identifying information within the
|
|
50
50
|
object model description
|
|
51
51
|
*/
|
|
52
52
|
modelIdentification?: ModelIdentification;
|
|
53
53
|
/**
|
|
54
|
-
* RTI services used in the federation or by a
|
|
54
|
+
* RTI services used in the federation or by a
|
|
55
55
|
federate
|
|
56
56
|
*/
|
|
57
57
|
serviceUtilization?: ServiceUtilization;
|
|
58
58
|
/**
|
|
59
|
-
* specifies classes of objects and their hierarchical
|
|
59
|
+
* specifies classes of objects and their hierarchical
|
|
60
60
|
relationships
|
|
61
61
|
*/
|
|
62
62
|
objects?: Objects;
|
|
63
63
|
/**
|
|
64
|
-
* specifies classes of interactions and their hierarchical
|
|
64
|
+
* specifies classes of interactions and their hierarchical
|
|
65
65
|
relationships
|
|
66
66
|
*/
|
|
67
67
|
interactions?: Interactions;
|
|
68
68
|
/**
|
|
69
|
-
* specifies dimensions associated with attribute types and
|
|
69
|
+
* specifies dimensions associated with attribute types and
|
|
70
70
|
interaction classes
|
|
71
71
|
*/
|
|
72
72
|
dimensions?: Dimensions;
|
|
73
73
|
/**
|
|
74
|
-
* specifies logicalTime and logicalTimeInterval
|
|
74
|
+
* specifies logicalTime and logicalTimeInterval
|
|
75
75
|
data types
|
|
76
76
|
*/
|
|
77
77
|
time?: Time;
|
|
@@ -80,22 +80,22 @@ export interface ObjectModel {
|
|
|
80
80
|
*/
|
|
81
81
|
tags?: Tags;
|
|
82
82
|
/**
|
|
83
|
-
* specifies federate and federation capabilities for
|
|
83
|
+
* specifies federate and federation capabilities for
|
|
84
84
|
synchronization points
|
|
85
85
|
*/
|
|
86
86
|
synchronizations?: Synchronizations;
|
|
87
87
|
/**
|
|
88
|
-
* documents transportation type support and
|
|
88
|
+
* documents transportation type support and
|
|
89
89
|
agreements
|
|
90
90
|
*/
|
|
91
91
|
transportations?: Transportations;
|
|
92
92
|
/**
|
|
93
|
-
* specification of the initial setting of RTI
|
|
93
|
+
* specification of the initial setting of RTI
|
|
94
94
|
switches
|
|
95
95
|
*/
|
|
96
96
|
switches?: Switches;
|
|
97
97
|
/**
|
|
98
|
-
* specification of the initial setting of RTI update
|
|
98
|
+
* specification of the initial setting of RTI update
|
|
99
99
|
rates
|
|
100
100
|
*/
|
|
101
101
|
updateRates?: UpdateRates;
|
|
@@ -115,84 +115,84 @@ export interface Poc {
|
|
|
115
115
|
|
|
116
116
|
export interface ModelIdentification {
|
|
117
117
|
/**
|
|
118
|
-
* specifies the name assigned to the object
|
|
118
|
+
* specifies the name assigned to the object
|
|
119
119
|
model
|
|
120
120
|
*/
|
|
121
121
|
name?: string;
|
|
122
122
|
/**
|
|
123
|
-
* specify the type of model that is
|
|
123
|
+
* specify the type of model that is
|
|
124
124
|
represented
|
|
125
125
|
*/
|
|
126
126
|
type?: OMTypeEnumeration;
|
|
127
127
|
/**
|
|
128
|
-
* specifies the version identification assigned to the object
|
|
128
|
+
* specifies the version identification assigned to the object
|
|
129
129
|
model
|
|
130
130
|
*/
|
|
131
131
|
version?: string;
|
|
132
132
|
/**
|
|
133
|
-
* specifies the latest date on which this version of the object
|
|
134
|
-
model was created or modified. The modification date shall be specified in
|
|
133
|
+
* specifies the latest date on which this version of the object
|
|
134
|
+
model was created or modified. The modification date shall be specified in
|
|
135
135
|
the format "YYYY-MM-DD"
|
|
136
136
|
*/
|
|
137
137
|
modificationDate?: string;
|
|
138
138
|
/**
|
|
139
|
-
* specifies the security classification of the object
|
|
139
|
+
* specifies the security classification of the object
|
|
140
140
|
model
|
|
141
141
|
*/
|
|
142
142
|
securityClassification?: SecurityClassificationEnumeration;
|
|
143
143
|
/**
|
|
144
|
-
* contains a copyright notice for the object
|
|
144
|
+
* contains a copyright notice for the object
|
|
145
145
|
model
|
|
146
146
|
*/
|
|
147
147
|
copyright?: string;
|
|
148
148
|
/**
|
|
149
|
-
* specifies any restrictions on the release of the object models
|
|
149
|
+
* specifies any restrictions on the release of the object models
|
|
150
150
|
to specific organizations or individuals
|
|
151
151
|
*/
|
|
152
152
|
releaseRestriction?: string[];
|
|
153
153
|
/**
|
|
154
|
-
* specifies the purpose for which the federate or federation was
|
|
154
|
+
* specifies the purpose for which the federate or federation was
|
|
155
155
|
developed
|
|
156
156
|
*/
|
|
157
157
|
purpose?: string;
|
|
158
158
|
/**
|
|
159
|
-
* specifies the type or class of application to which the
|
|
159
|
+
* specifies the type or class of application to which the
|
|
160
160
|
federate or federation applies
|
|
161
161
|
*/
|
|
162
162
|
applicationDomain?: ApplicationDomainEnumeration;
|
|
163
163
|
description?: string;
|
|
164
164
|
/**
|
|
165
|
-
* specifies any known applications for which this model has been
|
|
165
|
+
* specifies any known applications for which this model has been
|
|
166
166
|
found not to be appropriate
|
|
167
167
|
*/
|
|
168
168
|
useLimitation?: string;
|
|
169
169
|
/**
|
|
170
|
-
* specifies a description of where this model has been
|
|
170
|
+
* specifies a description of where this model has been
|
|
171
171
|
used
|
|
172
172
|
*/
|
|
173
173
|
useHistory?: string[];
|
|
174
174
|
/**
|
|
175
|
-
* specifies keywords that characterize the
|
|
175
|
+
* specifies keywords that characterize the
|
|
176
176
|
model
|
|
177
177
|
*/
|
|
178
178
|
keyword?: Keyword[];
|
|
179
179
|
/**
|
|
180
|
-
* specify an organization or a person who has a particular role
|
|
180
|
+
* specify an organization or a person who has a particular role
|
|
181
181
|
with respect to the model
|
|
182
182
|
*/
|
|
183
183
|
poc?: Poc[];
|
|
184
184
|
/**
|
|
185
|
-
* specifies a pointer to additional sources of
|
|
185
|
+
* specifies a pointer to additional sources of
|
|
186
186
|
information
|
|
187
187
|
*/
|
|
188
188
|
reference?: IdReference[];
|
|
189
189
|
/**
|
|
190
|
-
* specifies other data deemed relevant by the author of the
|
|
190
|
+
* specifies other data deemed relevant by the author of the
|
|
191
191
|
object model
|
|
192
192
|
*/
|
|
193
193
|
other?: string;
|
|
194
194
|
/**
|
|
195
|
-
* specifies a glyph to visually represent the
|
|
195
|
+
* specifies a glyph to visually represent the
|
|
196
196
|
model
|
|
197
197
|
*/
|
|
198
198
|
glyph?: string;
|
|
@@ -1608,7 +1608,7 @@ export interface Objects {
|
|
|
1608
1608
|
|
|
1609
1609
|
export interface Dimensions {
|
|
1610
1610
|
/**
|
|
1611
|
-
* identifies a dimension associated with this
|
|
1611
|
+
* identifies a dimension associated with this
|
|
1612
1612
|
interaction class
|
|
1613
1613
|
*/
|
|
1614
1614
|
dimension?: string[];
|
|
@@ -1617,18 +1617,18 @@ export interface Dimensions {
|
|
|
1617
1617
|
export interface ObjectClass {
|
|
1618
1618
|
name: string;
|
|
1619
1619
|
/**
|
|
1620
|
-
* specifies publication and subscription capabilities of this
|
|
1620
|
+
* specifies publication and subscription capabilities of this
|
|
1621
1621
|
object class
|
|
1622
1622
|
*/
|
|
1623
1623
|
sharing?: SharingEnumeration;
|
|
1624
1624
|
/**
|
|
1625
|
-
* An interaction that can be directed to objects of this class
|
|
1625
|
+
* An interaction that can be directed to objects of this class
|
|
1626
1626
|
type.
|
|
1627
1627
|
*/
|
|
1628
1628
|
directedInteraction?: DirectedInteraction[];
|
|
1629
1629
|
/**
|
|
1630
|
-
* records the association of the object class with a set of
|
|
1631
|
-
dimensions if a federate or federation is using DDM
|
|
1630
|
+
* records the association of the object class with a set of
|
|
1631
|
+
dimensions if a federate or federation is using DDM
|
|
1632
1632
|
services
|
|
1633
1633
|
*/
|
|
1634
1634
|
dimensions?: Dimensions;
|
|
@@ -1645,37 +1645,37 @@ export interface Attribute {
|
|
|
1645
1645
|
*/
|
|
1646
1646
|
dataType?: string;
|
|
1647
1647
|
/**
|
|
1648
|
-
* records the policy for updating an instance of the class
|
|
1648
|
+
* records the policy for updating an instance of the class
|
|
1649
1649
|
attribute
|
|
1650
1650
|
*/
|
|
1651
1651
|
updateType?: UpdateEnumeration;
|
|
1652
1652
|
/**
|
|
1653
|
-
* expands and explains the policies for updating an instance of
|
|
1653
|
+
* expands and explains the policies for updating an instance of
|
|
1654
1654
|
the class attribute
|
|
1655
1655
|
*/
|
|
1656
1656
|
updateCondition?: string;
|
|
1657
1657
|
/**
|
|
1658
|
-
* whether object instances need to have a value for this
|
|
1658
|
+
* whether object instances need to have a value for this
|
|
1659
1659
|
attribute
|
|
1660
1660
|
*/
|
|
1661
1661
|
valueRequired?: ValueRequiredEnumeration;
|
|
1662
1662
|
/**
|
|
1663
|
-
* indicates whether ownership of an instance of the class
|
|
1663
|
+
* indicates whether ownership of an instance of the class
|
|
1664
1664
|
attribute can be divested and/or acquired
|
|
1665
1665
|
*/
|
|
1666
1666
|
ownership?: OwnershipEnumeration;
|
|
1667
1667
|
/**
|
|
1668
|
-
* identifies the capabilities of a federate or federation with
|
|
1668
|
+
* identifies the capabilities of a federate or federation with
|
|
1669
1669
|
respect to class attribute publishing and subscribing
|
|
1670
1670
|
*/
|
|
1671
1671
|
sharing?: SharingEnumeration;
|
|
1672
1672
|
/**
|
|
1673
|
-
* specifies the type of transportation used with this
|
|
1673
|
+
* specifies the type of transportation used with this
|
|
1674
1674
|
attribute
|
|
1675
1675
|
*/
|
|
1676
1676
|
transportation?: string;
|
|
1677
1677
|
/**
|
|
1678
|
-
* specifies the order of delivery used with instances of this
|
|
1678
|
+
* specifies the order of delivery used with instances of this
|
|
1679
1679
|
class attribute
|
|
1680
1680
|
*/
|
|
1681
1681
|
order?: OrderEnumeration;
|
|
@@ -1703,23 +1703,23 @@ export interface Interactions {
|
|
|
1703
1703
|
export interface InteractionClass {
|
|
1704
1704
|
name: string;
|
|
1705
1705
|
/**
|
|
1706
|
-
* specifies publication and subscription capabilities of this
|
|
1706
|
+
* specifies publication and subscription capabilities of this
|
|
1707
1707
|
interaction class
|
|
1708
1708
|
*/
|
|
1709
1709
|
sharing?: SharingEnumeration;
|
|
1710
1710
|
/**
|
|
1711
|
-
* records the association of the interaction class with a set of
|
|
1712
|
-
dimensions if a federate or federation is using DDM
|
|
1711
|
+
* records the association of the interaction class with a set of
|
|
1712
|
+
dimensions if a federate or federation is using DDM
|
|
1713
1713
|
services
|
|
1714
1714
|
*/
|
|
1715
1715
|
dimensions?: Dimensions;
|
|
1716
1716
|
/**
|
|
1717
|
-
* specifies the type of transportation used with this
|
|
1717
|
+
* specifies the type of transportation used with this
|
|
1718
1718
|
interaction class
|
|
1719
1719
|
*/
|
|
1720
1720
|
transportation?: string;
|
|
1721
1721
|
/**
|
|
1722
|
-
* specifies the order of delivery used with instances of this
|
|
1722
|
+
* specifies the order of delivery used with instances of this
|
|
1723
1723
|
interaction class
|
|
1724
1724
|
*/
|
|
1725
1725
|
order?: OrderEnumeration;
|
|
@@ -1747,7 +1747,7 @@ export interface Dimension {
|
|
|
1747
1747
|
|
|
1748
1748
|
export interface InputDataTypes {
|
|
1749
1749
|
/**
|
|
1750
|
-
* identifies an input data type within the
|
|
1750
|
+
* identifies an input data type within the
|
|
1751
1751
|
dimension
|
|
1752
1752
|
*/
|
|
1753
1753
|
dataType?: string[];
|
|
@@ -1755,12 +1755,12 @@ export interface InputDataTypes {
|
|
|
1755
1755
|
|
|
1756
1756
|
export interface LogicalTime {
|
|
1757
1757
|
/**
|
|
1758
|
-
* identifies the logicalTime
|
|
1758
|
+
* identifies the logicalTime
|
|
1759
1759
|
data type
|
|
1760
1760
|
*/
|
|
1761
1761
|
dataType?: string;
|
|
1762
1762
|
/**
|
|
1763
|
-
* expands and describes the use of the data type for
|
|
1763
|
+
* expands and describes the use of the data type for
|
|
1764
1764
|
logicalTime
|
|
1765
1765
|
*/
|
|
1766
1766
|
semantics?: string;
|
|
@@ -1768,12 +1768,12 @@ export interface LogicalTime {
|
|
|
1768
1768
|
|
|
1769
1769
|
export interface LogicalTimeInterval {
|
|
1770
1770
|
/**
|
|
1771
|
-
* identifies the lookahead
|
|
1771
|
+
* identifies the lookahead
|
|
1772
1772
|
data type
|
|
1773
1773
|
*/
|
|
1774
1774
|
dataType?: string;
|
|
1775
1775
|
/**
|
|
1776
|
-
* expands and describes the use of the data type for
|
|
1776
|
+
* expands and describes the use of the data type for
|
|
1777
1777
|
lookahead
|
|
1778
1778
|
*/
|
|
1779
1779
|
semantics?: string;
|
|
@@ -1796,12 +1796,12 @@ export interface Tags {
|
|
|
1796
1796
|
|
|
1797
1797
|
export interface Tag {
|
|
1798
1798
|
/**
|
|
1799
|
-
* identifies the data type for the user-defined
|
|
1799
|
+
* identifies the data type for the user-defined
|
|
1800
1800
|
tag
|
|
1801
1801
|
*/
|
|
1802
1802
|
dataType?: string;
|
|
1803
1803
|
/**
|
|
1804
|
-
* expands and describes the use of the data type for the
|
|
1804
|
+
* expands and describes the use of the data type for the
|
|
1805
1805
|
user-supplied tag
|
|
1806
1806
|
*/
|
|
1807
1807
|
semantics?: string;
|
|
@@ -1872,38 +1872,38 @@ export interface ArrayDataTypes {
|
|
|
1872
1872
|
|
|
1873
1873
|
export interface DataTypes {
|
|
1874
1874
|
/**
|
|
1875
|
-
* Basic data representation is the underpinning of all OMT
|
|
1876
|
-
data types. Although it is not used as a data type, it forms the basis of the
|
|
1875
|
+
* Basic data representation is the underpinning of all OMT
|
|
1876
|
+
data types. Although it is not used as a data type, it forms the basis of the
|
|
1877
1877
|
data types.
|
|
1878
1878
|
*/
|
|
1879
1879
|
basicDataRepresentations?: BasicDataRepresentations;
|
|
1880
1880
|
/**
|
|
1881
|
-
* The simple data types describes simple, scalar data
|
|
1881
|
+
* The simple data types describes simple, scalar data
|
|
1882
1882
|
items.
|
|
1883
1883
|
*/
|
|
1884
1884
|
simpleDataTypes?: SimpleDataTypes;
|
|
1885
1885
|
/**
|
|
1886
|
-
* The reference data types describes data elements that can reference
|
|
1886
|
+
* The reference data types describes data elements that can reference
|
|
1887
1887
|
object instances.
|
|
1888
1888
|
*/
|
|
1889
1889
|
referenceDataTypes?: References;
|
|
1890
1890
|
/**
|
|
1891
|
-
* The enumerated data types describes data elements that can take
|
|
1891
|
+
* The enumerated data types describes data elements that can take
|
|
1892
1892
|
on a finite discrete set of possible values.
|
|
1893
1893
|
*/
|
|
1894
1894
|
enumeratedDataTypes?: EnumeratedDataTypes;
|
|
1895
1895
|
/**
|
|
1896
|
-
* The array data types describes indexed homogenous collections
|
|
1896
|
+
* The array data types describes indexed homogenous collections
|
|
1897
1897
|
of data types; also known as arrays or sequences.
|
|
1898
1898
|
*/
|
|
1899
1899
|
arrayDataTypes?: ArrayDataTypes;
|
|
1900
1900
|
/**
|
|
1901
|
-
* The fixed data types describes heterogeneous collections of
|
|
1901
|
+
* The fixed data types describes heterogeneous collections of
|
|
1902
1902
|
types; also known as records or structures.
|
|
1903
1903
|
*/
|
|
1904
1904
|
fixedRecordDataTypes?: FixedRecordDataTypes;
|
|
1905
1905
|
/**
|
|
1906
|
-
* The variant record data types describes discriminated unions of
|
|
1906
|
+
* The variant record data types describes discriminated unions of
|
|
1907
1907
|
types; also known as variant or choice records.
|
|
1908
1908
|
*/
|
|
1909
1909
|
variantRecordDataTypes?: VariantRecordDataTypes;
|
|
@@ -1978,7 +1978,7 @@ export interface EnumeratedDataTypes {
|
|
|
1978
1978
|
export interface Enumerator {
|
|
1979
1979
|
name: string;
|
|
1980
1980
|
/**
|
|
1981
|
-
* provides values that correspond to each
|
|
1981
|
+
* provides values that correspond to each
|
|
1982
1982
|
enumerator
|
|
1983
1983
|
*/
|
|
1984
1984
|
value?: string[];
|
|
@@ -1994,13 +1994,13 @@ export interface VariantRecordDataTypes {
|
|
|
1994
1994
|
|
|
1995
1995
|
export interface Alternative {
|
|
1996
1996
|
/**
|
|
1997
|
-
* enumerators or enumerator ranges that determines
|
|
1997
|
+
* enumerators or enumerator ranges that determines
|
|
1998
1998
|
the alternative
|
|
1999
1999
|
*/
|
|
2000
2000
|
enumerator?: string;
|
|
2001
2001
|
name?: string;
|
|
2002
2002
|
/**
|
|
2003
|
-
* identify the data type of the
|
|
2003
|
+
* identify the data type of the
|
|
2004
2004
|
field
|
|
2005
2005
|
*/
|
|
2006
2006
|
dataType?: string;
|
|
@@ -2026,7 +2026,7 @@ export interface Cardinality {
|
|
|
2026
2026
|
export interface DirectedInteraction {
|
|
2027
2027
|
name: string;
|
|
2028
2028
|
/**
|
|
2029
|
-
* specifies publication and subscription capabilities of this
|
|
2029
|
+
* specifies publication and subscription capabilities of this
|
|
2030
2030
|
object class
|
|
2031
2031
|
*/
|
|
2032
2032
|
sharing?: SharingEnumeration;
|