1
|
|
|
# ore/models/xml_common.py |
2
|
|
|
# -*- coding: utf-8 -*- |
3
|
|
|
# PyXB bindings for NM:048f94face6649912cf7a695fb6b859022492725 |
4
|
|
|
# Generated 2019-01-09 14:06:28.486950 by PyXB version 1.2.6 using Python 2.7.15.candidate.1 |
5
|
|
|
# Namespace http://www.fuzzed.org/commonTypes [xmlns:common] |
6
|
|
|
|
7
|
|
|
from __future__ import unicode_literals |
8
|
|
|
import pyxb |
9
|
|
|
import pyxb.binding |
10
|
|
|
import pyxb.binding.saxer |
11
|
|
|
import io |
12
|
|
|
import pyxb.utils.utility |
13
|
|
|
import pyxb.utils.domutils |
14
|
|
|
import sys |
15
|
|
|
import pyxb.utils.six as _six |
16
|
|
|
# Unique identifier for bindings created at the same time |
17
|
|
|
_GenerationUID = pyxb.utils.utility.UniqueIdentifier('urn:uuid:c1f84e9a-1417-11e9-9981-0242c0a83004') |
18
|
|
|
|
19
|
|
|
# Version of PyXB used to generate the bindings |
20
|
|
|
_PyXBVersion = '1.2.6' |
21
|
|
|
# Generated bindings are not compatible across PyXB versions |
22
|
|
|
if pyxb.__version__ != _PyXBVersion: |
23
|
|
|
raise pyxb.PyXBVersionError(_PyXBVersion) |
24
|
|
|
|
25
|
|
|
# A holder for module-level binding classes so we can access them from |
26
|
|
|
# inside class definitions where property names may conflict. |
27
|
|
|
_module_typeBindings = pyxb.utils.utility.Object() |
28
|
|
|
|
29
|
|
|
# Import bindings for namespaces imported into schema |
30
|
|
|
import pyxb.binding.datatypes |
31
|
|
|
|
32
|
|
|
# NOTE: All namespace declarations are reserved within the binding |
33
|
|
|
Namespace = pyxb.namespace.NamespaceForURI('http://www.fuzzed.org/commonTypes', create_if_missing=True) |
34
|
|
|
Namespace.configureCategories(['typeBinding', 'elementBinding']) |
35
|
|
|
|
36
|
|
|
def CreateFromDocument (xml_text, default_namespace=None, location_base=None): |
37
|
|
|
"""Parse the given XML and use the document element to create a |
38
|
|
|
Python instance. |
39
|
|
|
|
40
|
|
|
@param xml_text An XML document. This should be data (Python 2 |
41
|
|
|
str or Python 3 bytes), or a text (Python 2 unicode or Python 3 |
42
|
|
|
str) in the L{pyxb._InputEncoding} encoding. |
43
|
|
|
|
44
|
|
|
@keyword default_namespace The L{pyxb.Namespace} instance to use as the |
45
|
|
|
default namespace where there is no default namespace in scope. |
46
|
|
|
If unspecified or C{None}, the namespace of the module containing |
47
|
|
|
this function will be used. |
48
|
|
|
|
49
|
|
|
@keyword location_base: An object to be recorded as the base of all |
50
|
|
|
L{pyxb.utils.utility.Location} instances associated with events and |
51
|
|
|
objects handled by the parser. You might pass the URI from which |
52
|
|
|
the document was obtained. |
53
|
|
|
""" |
54
|
|
|
|
55
|
|
|
if pyxb.XMLStyle_saxer != pyxb._XMLStyle: |
56
|
|
|
dom = pyxb.utils.domutils.StringToDOM(xml_text) |
57
|
|
|
return CreateFromDOM(dom.documentElement, default_namespace=default_namespace) |
58
|
|
|
if default_namespace is None: |
59
|
|
|
default_namespace = Namespace.fallbackNamespace() |
60
|
|
|
saxer = pyxb.binding.saxer.make_parser(fallback_namespace=default_namespace, location_base=location_base) |
61
|
|
|
handler = saxer.getContentHandler() |
62
|
|
|
xmld = xml_text |
63
|
|
|
if isinstance(xmld, _six.text_type): |
64
|
|
|
xmld = xmld.encode(pyxb._InputEncoding) |
65
|
|
|
saxer.parse(io.BytesIO(xmld)) |
66
|
|
|
instance = handler.rootObject() |
67
|
|
|
return instance |
68
|
|
|
|
69
|
|
|
def CreateFromDOM (node, default_namespace=None): |
70
|
|
|
"""Create a Python instance from the given DOM node. |
71
|
|
|
The node tag must correspond to an element declaration in this module. |
72
|
|
|
|
73
|
|
|
@deprecated: Forcing use of DOM interface is unnecessary; use L{CreateFromDocument}.""" |
74
|
|
|
if default_namespace is None: |
75
|
|
|
default_namespace = Namespace.fallbackNamespace() |
76
|
|
|
return pyxb.binding.basis.element.AnyCreateFromDOM(node, default_namespace) |
77
|
|
|
|
78
|
|
|
|
79
|
|
|
# List simple type: {http://www.fuzzed.org/commonTypes}idList |
80
|
|
|
# superclasses pyxb.binding.datatypes.anySimpleType |
81
|
|
|
class idList (pyxb.binding.basis.STD_list): |
82
|
|
|
|
83
|
|
|
"""Simple type that is a list of pyxb.binding.datatypes.string.""" |
84
|
|
|
|
85
|
|
|
_ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'idList') |
86
|
|
|
_XSDLocation = pyxb.utils.utility.Location('/ore-common/xsd/commonTypes.xsd', 26, 2) |
87
|
|
|
_Documentation = None |
88
|
|
|
|
89
|
|
|
_ItemType = pyxb.binding.datatypes.string |
90
|
|
|
idList._InitializeFacetMap() |
91
|
|
|
Namespace.addCategoryObject('typeBinding', 'idList', idList) |
92
|
|
|
_module_typeBindings.idList = idList |
93
|
|
|
|
94
|
|
|
# Complex type {http://www.fuzzed.org/commonTypes}Model with content type EMPTY |
95
|
|
|
class Model (pyxb.binding.basis.complexTypeDefinition): |
96
|
|
|
"""Complex type {http://www.fuzzed.org/commonTypes}Model with content type EMPTY""" |
97
|
|
|
_TypeDefinition = None |
98
|
|
|
_ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_EMPTY |
99
|
|
|
_Abstract = True |
100
|
|
|
_ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'Model') |
101
|
|
|
_XSDLocation = pyxb.utils.utility.Location('/ore-common/xsd/commonTypes.xsd', 11, 2) |
102
|
|
|
_ElementMap = {} |
103
|
|
|
_AttributeMap = {} |
104
|
|
|
# Base type is pyxb.binding.datatypes.anyType |
105
|
|
|
|
106
|
|
|
# Attribute id uses Python identifier id |
107
|
|
|
__id = pyxb.binding.content.AttributeUse(pyxb.namespace.ExpandedName(None, 'id'), 'id', '__httpwww_fuzzed_orgcommonTypes_Model_id', pyxb.binding.datatypes.string) |
108
|
|
|
__id._DeclarationLocation = pyxb.utils.utility.Location('/ore-common/xsd/commonTypes.xsd', 13, 4) |
109
|
|
|
__id._UseLocation = pyxb.utils.utility.Location('/ore-common/xsd/commonTypes.xsd', 13, 4) |
110
|
|
|
|
111
|
|
|
id = property(__id.value, __id.set, None, None) |
112
|
|
|
|
113
|
|
|
_ElementMap.update({ |
114
|
|
|
|
115
|
|
|
}) |
116
|
|
|
_AttributeMap.update({ |
117
|
|
|
__id.name() : __id |
118
|
|
|
}) |
119
|
|
|
_module_typeBindings.Model = Model |
120
|
|
|
Namespace.addCategoryObject('typeBinding', 'Model', Model) |
121
|
|
|
|
122
|
|
|
|
123
|
|
|
# Complex type {http://www.fuzzed.org/commonTypes}GraphNode with content type EMPTY |
124
|
|
|
class GraphNode (pyxb.binding.basis.complexTypeDefinition): |
125
|
|
|
"""Complex type {http://www.fuzzed.org/commonTypes}GraphNode with content type EMPTY""" |
126
|
|
|
_TypeDefinition = None |
127
|
|
|
_ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_EMPTY |
128
|
|
|
_Abstract = True |
129
|
|
|
_ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'GraphNode') |
130
|
|
|
_XSDLocation = pyxb.utils.utility.Location('/ore-common/xsd/commonTypes.xsd', 17, 2) |
131
|
|
|
_ElementMap = {} |
132
|
|
|
_AttributeMap = {} |
133
|
|
|
# Base type is pyxb.binding.datatypes.anyType |
134
|
|
|
|
135
|
|
|
# Attribute x uses Python identifier x |
136
|
|
|
__x = pyxb.binding.content.AttributeUse(pyxb.namespace.ExpandedName(None, 'x'), 'x', '__httpwww_fuzzed_orgcommonTypes_GraphNode_x', pyxb.binding.datatypes.int) |
137
|
|
|
__x._DeclarationLocation = pyxb.utils.utility.Location('/ore-common/xsd/commonTypes.xsd', 19, 4) |
138
|
|
|
__x._UseLocation = pyxb.utils.utility.Location('/ore-common/xsd/commonTypes.xsd', 19, 4) |
139
|
|
|
|
140
|
|
|
x = property(__x.value, __x.set, None, None) |
141
|
|
|
|
142
|
|
|
|
143
|
|
|
# Attribute y uses Python identifier y |
144
|
|
|
__y = pyxb.binding.content.AttributeUse(pyxb.namespace.ExpandedName(None, 'y'), 'y', '__httpwww_fuzzed_orgcommonTypes_GraphNode_y', pyxb.binding.datatypes.int) |
145
|
|
|
__y._DeclarationLocation = pyxb.utils.utility.Location('/ore-common/xsd/commonTypes.xsd', 20, 4) |
146
|
|
|
__y._UseLocation = pyxb.utils.utility.Location('/ore-common/xsd/commonTypes.xsd', 20, 4) |
147
|
|
|
|
148
|
|
|
y = property(__y.value, __y.set, None, None) |
149
|
|
|
|
150
|
|
|
|
151
|
|
|
# Attribute id uses Python identifier id |
152
|
|
|
__id = pyxb.binding.content.AttributeUse(pyxb.namespace.ExpandedName(None, 'id'), 'id', '__httpwww_fuzzed_orgcommonTypes_GraphNode_id', pyxb.binding.datatypes.string) |
153
|
|
|
__id._DeclarationLocation = pyxb.utils.utility.Location('/ore-common/xsd/commonTypes.xsd', 22, 4) |
154
|
|
|
__id._UseLocation = pyxb.utils.utility.Location('/ore-common/xsd/commonTypes.xsd', 22, 4) |
155
|
|
|
|
156
|
|
|
id = property(__id.value, __id.set, None, None) |
157
|
|
|
|
158
|
|
|
_ElementMap.update({ |
159
|
|
|
|
160
|
|
|
}) |
161
|
|
|
_AttributeMap.update({ |
162
|
|
|
__x.name() : __x, |
163
|
|
|
__y.name() : __y, |
164
|
|
|
__id.name() : __id |
165
|
|
|
}) |
166
|
|
|
_module_typeBindings.GraphNode = GraphNode |
167
|
|
|
Namespace.addCategoryObject('typeBinding', 'GraphNode', GraphNode) |
168
|
|
|
|
169
|
|
|
|
170
|
|
|
# Complex type {http://www.fuzzed.org/commonTypes}DoubleToIntervalMap with content type ELEMENT_ONLY |
171
|
|
|
class DoubleToIntervalMap (pyxb.binding.basis.complexTypeDefinition): |
172
|
|
|
"""Complex type {http://www.fuzzed.org/commonTypes}DoubleToIntervalMap with content type ELEMENT_ONLY""" |
173
|
|
|
_TypeDefinition = None |
174
|
|
|
_ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_ELEMENT_ONLY |
175
|
|
|
_Abstract = False |
176
|
|
|
_ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'DoubleToIntervalMap') |
177
|
|
|
_XSDLocation = pyxb.utils.utility.Location('/ore-common/xsd/commonTypes.xsd', 31, 2) |
178
|
|
|
_ElementMap = {} |
179
|
|
|
_AttributeMap = {} |
180
|
|
|
# Base type is pyxb.binding.datatypes.anyType |
181
|
|
|
|
182
|
|
|
# Element value uses Python identifier value_ |
183
|
|
|
__value = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(None, 'value'), 'value_', '__httpwww_fuzzed_orgcommonTypes_DoubleToIntervalMap_value', False, pyxb.utils.utility.Location('/ore-common/xsd/commonTypes.xsd', 33, 6), ) |
184
|
|
|
|
185
|
|
|
|
186
|
|
|
value_ = property(__value.value, __value.set, None, None) |
187
|
|
|
|
188
|
|
|
|
189
|
|
|
# Attribute key uses Python identifier key |
190
|
|
|
__key = pyxb.binding.content.AttributeUse(pyxb.namespace.ExpandedName(None, 'key'), 'key', '__httpwww_fuzzed_orgcommonTypes_DoubleToIntervalMap_key', pyxb.binding.datatypes.double, required=True) |
191
|
|
|
__key._DeclarationLocation = pyxb.utils.utility.Location('/ore-common/xsd/commonTypes.xsd', 35, 4) |
192
|
|
|
__key._UseLocation = pyxb.utils.utility.Location('/ore-common/xsd/commonTypes.xsd', 35, 4) |
193
|
|
|
|
194
|
|
|
key = property(__key.value, __key.set, None, None) |
195
|
|
|
|
196
|
|
|
_ElementMap.update({ |
197
|
|
|
__value.name() : __value |
198
|
|
|
}) |
199
|
|
|
_AttributeMap.update({ |
200
|
|
|
__key.name() : __key |
201
|
|
|
}) |
202
|
|
|
_module_typeBindings.DoubleToIntervalMap = DoubleToIntervalMap |
203
|
|
|
Namespace.addCategoryObject('typeBinding', 'DoubleToIntervalMap', DoubleToIntervalMap) |
204
|
|
|
|
205
|
|
|
|
206
|
|
|
# Complex type {http://www.fuzzed.org/commonTypes}Interval with content type EMPTY |
207
|
|
|
class Interval (pyxb.binding.basis.complexTypeDefinition): |
208
|
|
|
"""Complex type {http://www.fuzzed.org/commonTypes}Interval with content type EMPTY""" |
209
|
|
|
_TypeDefinition = None |
210
|
|
|
_ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_EMPTY |
211
|
|
|
_Abstract = False |
212
|
|
|
_ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'Interval') |
213
|
|
|
_XSDLocation = pyxb.utils.utility.Location('/ore-common/xsd/commonTypes.xsd', 38, 2) |
214
|
|
|
_ElementMap = {} |
215
|
|
|
_AttributeMap = {} |
216
|
|
|
# Base type is pyxb.binding.datatypes.anyType |
217
|
|
|
|
218
|
|
|
# Attribute lowerBound uses Python identifier lowerBound |
219
|
|
|
__lowerBound = pyxb.binding.content.AttributeUse(pyxb.namespace.ExpandedName(None, 'lowerBound'), 'lowerBound', '__httpwww_fuzzed_orgcommonTypes_Interval_lowerBound', pyxb.binding.datatypes.double, required=True) |
220
|
|
|
__lowerBound._DeclarationLocation = pyxb.utils.utility.Location('/ore-common/xsd/commonTypes.xsd', 39, 4) |
221
|
|
|
__lowerBound._UseLocation = pyxb.utils.utility.Location('/ore-common/xsd/commonTypes.xsd', 39, 4) |
222
|
|
|
|
223
|
|
|
lowerBound = property(__lowerBound.value, __lowerBound.set, None, None) |
224
|
|
|
|
225
|
|
|
|
226
|
|
|
# Attribute upperBound uses Python identifier upperBound |
227
|
|
|
__upperBound = pyxb.binding.content.AttributeUse(pyxb.namespace.ExpandedName(None, 'upperBound'), 'upperBound', '__httpwww_fuzzed_orgcommonTypes_Interval_upperBound', pyxb.binding.datatypes.double, required=True) |
228
|
|
|
__upperBound._DeclarationLocation = pyxb.utils.utility.Location('/ore-common/xsd/commonTypes.xsd', 40, 4) |
229
|
|
|
__upperBound._UseLocation = pyxb.utils.utility.Location('/ore-common/xsd/commonTypes.xsd', 40, 4) |
230
|
|
|
|
231
|
|
|
upperBound = property(__upperBound.value, __upperBound.set, None, None) |
232
|
|
|
|
233
|
|
|
_ElementMap.update({ |
234
|
|
|
|
235
|
|
|
}) |
236
|
|
|
_AttributeMap.update({ |
237
|
|
|
__lowerBound.name() : __lowerBound, |
238
|
|
|
__upperBound.name() : __upperBound |
239
|
|
|
}) |
240
|
|
|
_module_typeBindings.Interval = Interval |
241
|
|
|
Namespace.addCategoryObject('typeBinding', 'Interval', Interval) |
242
|
|
|
|
243
|
|
|
|
244
|
|
|
# Complex type {http://www.fuzzed.org/commonTypes}Issue with content type EMPTY |
245
|
|
|
class Issue (pyxb.binding.basis.complexTypeDefinition): |
246
|
|
|
"""Complex type {http://www.fuzzed.org/commonTypes}Issue with content type EMPTY""" |
247
|
|
|
_TypeDefinition = None |
248
|
|
|
_ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_EMPTY |
249
|
|
|
_Abstract = False |
250
|
|
|
_ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'Issue') |
251
|
|
|
_XSDLocation = pyxb.utils.utility.Location('/ore-common/xsd/commonTypes.xsd', 43, 2) |
252
|
|
|
_ElementMap = {} |
253
|
|
|
_AttributeMap = {} |
254
|
|
|
# Base type is pyxb.binding.datatypes.anyType |
255
|
|
|
|
256
|
|
|
# Attribute issueId uses Python identifier issueId |
257
|
|
|
__issueId = pyxb.binding.content.AttributeUse(pyxb.namespace.ExpandedName(None, 'issueId'), 'issueId', '__httpwww_fuzzed_orgcommonTypes_Issue_issueId', pyxb.binding.datatypes.int) |
258
|
|
|
__issueId._DeclarationLocation = pyxb.utils.utility.Location('/ore-common/xsd/commonTypes.xsd', 44, 6) |
259
|
|
|
__issueId._UseLocation = pyxb.utils.utility.Location('/ore-common/xsd/commonTypes.xsd', 44, 6) |
260
|
|
|
|
261
|
|
|
issueId = property(__issueId.value, __issueId.set, None, None) |
262
|
|
|
|
263
|
|
|
|
264
|
|
|
# Attribute elementId uses Python identifier elementId |
265
|
|
|
__elementId = pyxb.binding.content.AttributeUse(pyxb.namespace.ExpandedName(None, 'elementId'), 'elementId', '__httpwww_fuzzed_orgcommonTypes_Issue_elementId', pyxb.binding.datatypes.string) |
266
|
|
|
__elementId._DeclarationLocation = pyxb.utils.utility.Location('/ore-common/xsd/commonTypes.xsd', 45, 6) |
267
|
|
|
__elementId._UseLocation = pyxb.utils.utility.Location('/ore-common/xsd/commonTypes.xsd', 45, 6) |
268
|
|
|
|
269
|
|
|
elementId = property(__elementId.value, __elementId.set, None, None) |
270
|
|
|
|
271
|
|
|
|
272
|
|
|
# Attribute message uses Python identifier message |
273
|
|
|
__message = pyxb.binding.content.AttributeUse(pyxb.namespace.ExpandedName(None, 'message'), 'message', '__httpwww_fuzzed_orgcommonTypes_Issue_message', pyxb.binding.datatypes.string) |
274
|
|
|
__message._DeclarationLocation = pyxb.utils.utility.Location('/ore-common/xsd/commonTypes.xsd', 46, 6) |
275
|
|
|
__message._UseLocation = pyxb.utils.utility.Location('/ore-common/xsd/commonTypes.xsd', 46, 6) |
276
|
|
|
|
277
|
|
|
message = property(__message.value, __message.set, None, None) |
278
|
|
|
|
279
|
|
|
|
280
|
|
|
# Attribute isFatal uses Python identifier isFatal |
281
|
|
|
__isFatal = pyxb.binding.content.AttributeUse(pyxb.namespace.ExpandedName(None, 'isFatal'), 'isFatal', '__httpwww_fuzzed_orgcommonTypes_Issue_isFatal', pyxb.binding.datatypes.boolean) |
282
|
|
|
__isFatal._DeclarationLocation = pyxb.utils.utility.Location('/ore-common/xsd/commonTypes.xsd', 47, 6) |
283
|
|
|
__isFatal._UseLocation = pyxb.utils.utility.Location('/ore-common/xsd/commonTypes.xsd', 47, 6) |
284
|
|
|
|
285
|
|
|
isFatal = property(__isFatal.value, __isFatal.set, None, None) |
286
|
|
|
|
287
|
|
|
_ElementMap.update({ |
288
|
|
|
|
289
|
|
|
}) |
290
|
|
|
_AttributeMap.update({ |
291
|
|
|
__issueId.name() : __issueId, |
292
|
|
|
__elementId.name() : __elementId, |
293
|
|
|
__message.name() : __message, |
294
|
|
|
__isFatal.name() : __isFatal |
295
|
|
|
}) |
296
|
|
|
_module_typeBindings.Issue = Issue |
297
|
|
|
Namespace.addCategoryObject('typeBinding', 'Issue', Issue) |
298
|
|
|
|
299
|
|
|
|
300
|
|
|
# Complex type {http://www.fuzzed.org/commonTypes}Probability with content type EMPTY |
301
|
|
|
class Probability (pyxb.binding.basis.complexTypeDefinition): |
302
|
|
|
"""Complex type {http://www.fuzzed.org/commonTypes}Probability with content type EMPTY""" |
303
|
|
|
_TypeDefinition = None |
304
|
|
|
_ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_EMPTY |
305
|
|
|
_Abstract = True |
306
|
|
|
_ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'Probability') |
307
|
|
|
_XSDLocation = pyxb.utils.utility.Location('/ore-common/xsd/commonTypes.xsd', 51, 2) |
308
|
|
|
_ElementMap = {} |
309
|
|
|
_AttributeMap = {} |
310
|
|
|
# Base type is pyxb.binding.datatypes.anyType |
311
|
|
|
_ElementMap.update({ |
312
|
|
|
|
313
|
|
|
}) |
314
|
|
|
_AttributeMap.update({ |
315
|
|
|
|
316
|
|
|
}) |
317
|
|
|
_module_typeBindings.Probability = Probability |
318
|
|
|
Namespace.addCategoryObject('typeBinding', 'Probability', Probability) |
319
|
|
|
|
320
|
|
|
|
321
|
|
|
# Complex type {http://www.fuzzed.org/commonTypes}CrispProbability with content type EMPTY |
322
|
|
|
class CrispProbability (Probability): |
323
|
|
|
"""Complex type {http://www.fuzzed.org/commonTypes}CrispProbability with content type EMPTY""" |
324
|
|
|
_TypeDefinition = None |
325
|
|
|
_ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_EMPTY |
326
|
|
|
_Abstract = False |
327
|
|
|
_ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'CrispProbability') |
328
|
|
|
_XSDLocation = pyxb.utils.utility.Location('/ore-common/xsd/commonTypes.xsd', 53, 2) |
329
|
|
|
_ElementMap = Probability._ElementMap.copy() |
330
|
|
|
_AttributeMap = Probability._AttributeMap.copy() |
331
|
|
|
# Base type is Probability |
332
|
|
|
|
333
|
|
|
# Attribute val uses Python identifier val |
334
|
|
|
__val = pyxb.binding.content.AttributeUse(pyxb.namespace.ExpandedName(None, 'val'), 'val', '__httpwww_fuzzed_orgcommonTypes_CrispProbability_val', pyxb.binding.datatypes.double, required=True) |
335
|
|
|
__val._DeclarationLocation = pyxb.utils.utility.Location('/ore-common/xsd/commonTypes.xsd', 56, 8) |
336
|
|
|
__val._UseLocation = pyxb.utils.utility.Location('/ore-common/xsd/commonTypes.xsd', 56, 8) |
337
|
|
|
|
338
|
|
|
val = property(__val.value, __val.set, None, None) |
339
|
|
|
|
340
|
|
|
_ElementMap.update({ |
341
|
|
|
|
342
|
|
|
}) |
343
|
|
|
_AttributeMap.update({ |
344
|
|
|
__val.name() : __val |
345
|
|
|
}) |
346
|
|
|
_module_typeBindings.CrispProbability = CrispProbability |
347
|
|
|
Namespace.addCategoryObject('typeBinding', 'CrispProbability', CrispProbability) |
348
|
|
|
|
349
|
|
|
|
350
|
|
|
# Complex type {http://www.fuzzed.org/commonTypes}DecomposedFuzzyProbability with content type ELEMENT_ONLY |
351
|
|
|
class DecomposedFuzzyProbability (Probability): |
352
|
|
|
"""Complex type {http://www.fuzzed.org/commonTypes}DecomposedFuzzyProbability with content type ELEMENT_ONLY""" |
353
|
|
|
_TypeDefinition = None |
354
|
|
|
_ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_ELEMENT_ONLY |
355
|
|
|
_Abstract = False |
356
|
|
|
_ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'DecomposedFuzzyProbability') |
357
|
|
|
_XSDLocation = pyxb.utils.utility.Location('/ore-common/xsd/commonTypes.xsd', 61, 2) |
358
|
|
|
_ElementMap = Probability._ElementMap.copy() |
359
|
|
|
_AttributeMap = Probability._AttributeMap.copy() |
360
|
|
|
# Base type is Probability |
361
|
|
|
|
362
|
|
|
# Element alphaCuts uses Python identifier alphaCuts |
363
|
|
|
__alphaCuts = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(None, 'alphaCuts'), 'alphaCuts', '__httpwww_fuzzed_orgcommonTypes_DecomposedFuzzyProbability_alphaCuts', True, pyxb.utils.utility.Location('/ore-common/xsd/commonTypes.xsd', 65, 10), ) |
364
|
|
|
|
365
|
|
|
|
366
|
|
|
alphaCuts = property(__alphaCuts.value, __alphaCuts.set, None, None) |
367
|
|
|
|
368
|
|
|
_ElementMap.update({ |
369
|
|
|
__alphaCuts.name() : __alphaCuts |
370
|
|
|
}) |
371
|
|
|
_AttributeMap.update({ |
372
|
|
|
|
373
|
|
|
}) |
374
|
|
|
_module_typeBindings.DecomposedFuzzyProbability = DecomposedFuzzyProbability |
375
|
|
|
Namespace.addCategoryObject('typeBinding', 'DecomposedFuzzyProbability', DecomposedFuzzyProbability) |
376
|
|
|
|
377
|
|
|
|
378
|
|
|
|
379
|
|
|
|
380
|
|
|
DoubleToIntervalMap._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(None, 'value'), Interval, scope=DoubleToIntervalMap, location=pyxb.utils.utility.Location('/ore-common/xsd/commonTypes.xsd', 33, 6))) |
381
|
|
|
|
382
|
|
|
def _BuildAutomaton (): |
383
|
|
|
# Remove this helper function from the namespace after it is invoked |
384
|
|
|
global _BuildAutomaton |
385
|
|
|
del _BuildAutomaton |
386
|
|
|
import pyxb.utils.fac as fac |
387
|
|
|
|
388
|
|
|
counters = set() |
389
|
|
|
states = [] |
390
|
|
|
final_update = set() |
391
|
|
|
symbol = pyxb.binding.content.ElementUse(DoubleToIntervalMap._UseForTag(pyxb.namespace.ExpandedName(None, 'value')), pyxb.utils.utility.Location('/ore-common/xsd/commonTypes.xsd', 33, 6)) |
392
|
|
|
st_0 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) |
393
|
|
|
states.append(st_0) |
394
|
|
|
transitions = [] |
395
|
|
|
st_0._set_transitionSet(transitions) |
396
|
|
|
return fac.Automaton(states, counters, False, containing_state=None) |
397
|
|
|
DoubleToIntervalMap._Automaton = _BuildAutomaton() |
398
|
|
|
|
399
|
|
|
|
400
|
|
|
|
401
|
|
|
|
402
|
|
|
DecomposedFuzzyProbability._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(None, 'alphaCuts'), DoubleToIntervalMap, scope=DecomposedFuzzyProbability, location=pyxb.utils.utility.Location('/ore-common/xsd/commonTypes.xsd', 65, 10))) |
403
|
|
|
|
404
|
|
|
def _BuildAutomaton_ (): |
405
|
|
|
# Remove this helper function from the namespace after it is invoked |
406
|
|
|
global _BuildAutomaton_ |
407
|
|
|
del _BuildAutomaton_ |
408
|
|
|
import pyxb.utils.fac as fac |
409
|
|
|
|
410
|
|
|
counters = set() |
411
|
|
|
cc_0 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/ore-common/xsd/commonTypes.xsd', 65, 10)) |
412
|
|
|
counters.add(cc_0) |
413
|
|
|
states = [] |
414
|
|
|
final_update = set() |
415
|
|
|
final_update.add(fac.UpdateInstruction(cc_0, False)) |
416
|
|
|
symbol = pyxb.binding.content.ElementUse(DecomposedFuzzyProbability._UseForTag(pyxb.namespace.ExpandedName(None, 'alphaCuts')), pyxb.utils.utility.Location('/ore-common/xsd/commonTypes.xsd', 65, 10)) |
417
|
|
|
st_0 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) |
418
|
|
|
states.append(st_0) |
419
|
|
|
transitions = [] |
420
|
|
|
transitions.append(fac.Transition(st_0, [ |
421
|
|
|
fac.UpdateInstruction(cc_0, True) ])) |
422
|
|
|
st_0._set_transitionSet(transitions) |
423
|
|
|
return fac.Automaton(states, counters, True, containing_state=None) |
424
|
|
|
DecomposedFuzzyProbability._Automaton = _BuildAutomaton_() |
425
|
|
|
|
426
|
|
|
|