MCPcopy Create free account
hub / github.com/STIXProject/python-stix / exportAttributes

Method exportAttributes

stix/bindings/incident.py:533–538  ·  view source on GitHub ↗
(self, lwrite, level, already_processed, namespace_='incident:', name_='COATakenType')

Source from the content-addressed store, hash-verified

531 else:
532 lwrite('/>%s' % (eol_, ))
533 def exportAttributes(self, lwrite, level, already_processed, namespace_='incident:', name_='COATakenType'):
534 if self.extensiontype_ is not None and 'xsi:type' not in already_processed:
535 already_processed.add('xsi:type')
536 lwrite(' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"')
537 lwrite(' xsi:type="%s"' % self.extensiontype_)
538 pass
539 def exportChildren(self, lwrite, level, nsmap, namespace_=XML_NS, name_='COATakenType', fromsubclass_=False, pretty_print=True):
540 if pretty_print:
541 eol_ = '\n'

Callers 1

exportMethod · 0.95

Calls 1

addMethod · 0.45

Tested by

no test coverage detected