MCPcopy Create free account
hub / github.com/FreeOpcUa/python-opcua / add_extension_object

Method add_extension_object

schemas/generate_model.py:332–354  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

330 return self.model
331
332 def add_extension_object(self):
333 obj = Struct()
334 obj.name = 'ExtensionObject'
335 f = Field()
336 f.name = 'TypeId'
337 f.uatype = 'NodeId'
338 obj.fields.append(f)
339 f = Field()
340 f.name = 'BinaryBody'
341 f.uatype = 'Bit'
342 obj.fields.append(f)
343 f = Field()
344 f.name = 'XmlBody'
345 f.uatype = 'Bit'
346 obj.fields.append(f)
347 f = Field()
348 f.name = 'Body'
349 f.uatype = 'ByteString'
350 f.switchfield = 'BinaryBody'
351 obj.fields.append(f)
352 self.model.struct_list.append(obj.name)
353
354 self.model.structs.append(obj)
355
356 def add_data_type_definition(self):
357 obj = Struct()

Callers 1

parseMethod · 0.95

Calls 2

StructClass · 0.70
FieldClass · 0.70

Tested by

no test coverage detected