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

Method exportAttributes

stix/bindings/ttp.py:521–527  ·  view source on GitHub ↗
(self, lwrite, level, already_processed, namespace_='ttp:', name_='InfrastructureType')

Source from the content-addressed store, hash-verified

519 else:
520 lwrite('/>%s' % (eol_, ))
521 def exportAttributes(self, lwrite, level, already_processed, namespace_='ttp:', name_='InfrastructureType'):
522 if self.idref is not None and 'idref' not in already_processed:
523 already_processed.add('idref')
524 lwrite(' idref=%s' % (quote_attrib(self.idref), ))
525 if self.id is not None and 'id' not in already_processed:
526 already_processed.add('id')
527 lwrite(' id=%s' % (quote_attrib(self.id), ))
528 def exportChildren(self, lwrite, level, nsmap, namespace_=XML_NS, name_='InfrastructureType', fromsubclass_=False, pretty_print=True):
529 if pretty_print:
530 eol_ = '\n'

Callers 1

exportMethod · 0.95

Calls 1

addMethod · 0.45

Tested by

no test coverage detected