forked from Taritsyn/JavaScriptEngineSwitcher
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJavaScriptEngineSwitcher.Configuration.xsd
More file actions
267 lines (257 loc) · 10.7 KB
/
JavaScriptEngineSwitcher.Configuration.xsd
File metadata and controls
267 lines (257 loc) · 10.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
<?xml version="1.0" encoding="utf-8"?>
<xs:schema
id="javaScriptEngineSwitcherConfiguration"
targetNamespace="http://tempuri.org/JavaScriptEngineSwitcher.Configuration.xsd"
elementFormDefault="qualified"
xmlns="http://tempuri.org/JavaScriptEngineSwitcher.Configuration.xsd"
xmlns:mstns="http://tempuri.org/JavaScriptEngineSwitcher.Configuration.xsd"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="jsEngineSwitcher">
<xs:annotation>
<xs:documentation>Configuration settings of JavaScript Engine Switcher</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:all>
<xs:element name="core" type="CoreConfiguration_SchemaType" minOccurs="0" maxOccurs="1" />
<xs:element name="msie" type="MsieConfiguration_SchemaType" minOccurs="0" maxOccurs="1" />
<xs:element name="v8" type="V8Configuration_SchemaType" minOccurs="0" maxOccurs="1" />
<xs:element name="jurassic" type="JurassicConfiguration_SchemaType" minOccurs="0" maxOccurs="1" />
<xs:element name="jint" type="JintConfiguration_SchemaType" minOccurs="0" maxOccurs="1" />
</xs:all>
</xs:complexType>
</xs:element>
<!-- Simple types -->
<xs:simpleType name="Boolean_SchemaType">
<xs:restriction base="xs:NMTOKEN">
<xs:enumeration value="true" />
<xs:enumeration value="false" />
</xs:restriction>
</xs:simpleType>
<!-- /Simple types -->
<!-- Core configuration settings -->
<xs:complexType name="CoreConfiguration_SchemaType">
<xs:annotation>
<xs:documentation>Configuration settings of core</xs:documentation>
</xs:annotation>
<xs:all>
<xs:element name="engines" type="JsEngineRegistrationList_SchemaType" minOccurs="0" maxOccurs="1" />
</xs:all>
<xs:attribute name="defaultEngine" type="xs:string" use="optional" default="">
<xs:annotation>
<xs:documentation>Name of default JavaScript engine</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="JsEngineRegistrationList_SchemaType">
<xs:annotation>
<xs:documentation>List of registered JavaScript engines</xs:documentation>
</xs:annotation>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="add" type="AddJsEngineRegistration_SchemaType" />
<xs:element name="remove" type="RemoveJsEngineRegistration_SchemaType" />
<xs:element name="clear" type="ClearJsEngineRegistration_SchemaType" />
</xs:choice>
</xs:complexType>
<xs:complexType name="AddJsEngineRegistration_SchemaType">
<xs:annotation>
<xs:documentation>Adds JavaScript engine registration</xs:documentation>
</xs:annotation>
<xs:attribute name="name" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>JavaScript engine name</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="type" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>JavaScript engine .NET-type name</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="RemoveJsEngineRegistration_SchemaType">
<xs:annotation>
<xs:documentation>Removes JavaScript engine registration</xs:documentation>
</xs:annotation>
<xs:attribute name="name" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>JavaScript engine name</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="ClearJsEngineRegistration_SchemaType">
<xs:annotation>
<xs:documentation>Removes all JavaScript engine registrations, that specified above</xs:documentation>
</xs:annotation>
</xs:complexType>
<!--/ Core configuration settings -->
<!-- MSIE configuration settings -->
<xs:complexType name="MsieConfiguration_SchemaType">
<xs:annotation>
<xs:documentation>Configuration settings of MSIE JavaScript engine</xs:documentation>
</xs:annotation>
<xs:attribute name="engineMode" use="optional" default="Auto">
<xs:annotation>
<xs:documentation>JavaScript engine mode</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:NMTOKEN">
<xs:enumeration value="Auto">
<xs:annotation>
<xs:documentation>Automatically selects the most modern JavaScript engine from available on the machine</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="Classic">
<xs:annotation>
<xs:documentation>Classic MSIE JavaScript engine (supports ECMAScript 3 with possibility of using the ECMAScript 5 Polyfill and the JSON2 library). Requires Internet Explorer 6 or higher on the machine.</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="ChakraActiveScript">
<xs:annotation>
<xs:documentation>ActiveScript version of Chakra JavaScript engine (supports ECMAScript 3 with possibility of using the ECMAScript 5 Polyfill and the JSON2 library). Requires Internet Explorer 9 or higher on the machine.</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="ChakraJsRt">
<xs:annotation>
<xs:documentation>JsRT version of Chakra JavaScript engine (supports ECMAScript 5). Requires Internet Explorer 11 or higher on the machine.</xs:documentation>
</xs:annotation>
</xs:enumeration>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
<!--/ MSIE configuration settings -->
<!-- V8 configuration settings -->
<xs:complexType name="V8Configuration_SchemaType">
<xs:annotation>
<xs:documentation>Configuration settings of V8 JavaScript engine</xs:documentation>
</xs:annotation>
<xs:attribute name="enableDebugging" type="Boolean_SchemaType" use="optional" default="false">
<xs:annotation>
<xs:documentation>Flag for whether to enable script debugging features (allows a TCP/IP-based debugging)</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="debugPort" use="optional" default="9222">
<xs:annotation>
<xs:documentation>TCP/IP port on which to listen for a debugger connection</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:int">
<xs:minInclusive value="0" />
<xs:maxInclusive value="65535" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="disableGlobalMembers" type="Boolean_SchemaType" use="optional" default="false">
<xs:annotation>
<xs:documentation>Flag for whether to disable global members</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="maxNewSpaceSize" use="optional" default="0">
<xs:annotation>
<xs:documentation>Maximum size of the new object heap in mebibytes</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:int">
<xs:minInclusive value="0" />
<xs:maxInclusive value="2147483647" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="maxOldSpaceSize" use="optional" default="0">
<xs:annotation>
<xs:documentation>Maximum size of the old object heap in mebibytes</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:int">
<xs:minInclusive value="0" />
<xs:maxInclusive value="2147483647" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="maxExecutableSize" use="optional" default="0">
<xs:annotation>
<xs:documentation>Maximum size of the executable code heap in mebibytes</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:int">
<xs:minInclusive value="0" />
<xs:maxInclusive value="2147483647" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
<!--/ V8 configuration settings -->
<!-- Jurassic configuration settings -->
<xs:complexType name="JurassicConfiguration_SchemaType">
<xs:annotation>
<xs:documentation>Configuration settings of Jurassic JavaScript engine</xs:documentation>
</xs:annotation>
<xs:attribute name="enableDebugging" type="Boolean_SchemaType" use="optional" default="false">
<xs:annotation>
<xs:documentation>Flag for whether to enable script debugging features (allows a generation of debug information)</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="enableIlAnalysis" type="Boolean_SchemaType" use="optional" default="false">
<xs:annotation>
<xs:documentation>Flag for whether to disassemble any generated IL and store it in the associated function</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="strictMode" type="Boolean_SchemaType" use="optional" default="false">
<xs:annotation>
<xs:documentation>Flag for whether to allow run the script in strict mode</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<!--/ Jurassic configuration settings -->
<!-- Jint configuration settings -->
<xs:complexType name="JintConfiguration_SchemaType">
<xs:annotation>
<xs:documentation>Configuration settings of Jint JavaScript engine</xs:documentation>
</xs:annotation>
<xs:attribute name="enableDebugging" type="Boolean_SchemaType" use="optional" default="false">
<xs:annotation>
<xs:documentation>Flag for whether to enable script debugging features (allows a `debugger` statement to be called in a script)</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="maxRecursionDepth" use="optional" default="-1">
<xs:annotation>
<xs:documentation>Maximum allowed depth of recursion:
-1 - recursion without limits;
N - one scope function can be called no more than N times.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:int">
<xs:minInclusive value="-1" />
<xs:maxInclusive value="2147483647" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="maxStatements" use="optional" default="0">
<xs:annotation>
<xs:documentation>Maximum number of statements</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:int">
<xs:minInclusive value="0" />
<xs:maxInclusive value="2147483647" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="strictMode" type="Boolean_SchemaType" use="optional" default="false">
<xs:annotation>
<xs:documentation>Flag for whether to allow run the script in strict mode</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="timeout" use="optional" default="0">
<xs:annotation>
<xs:documentation>Number of milliseconds to wait before the script execution times out</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:int">
<xs:minInclusive value="0" />
<xs:maxInclusive value="2147483647" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
<!--/ Jint configuration settings -->
</xs:schema>