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

Method exportAttributes

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

Source from the content-addressed store, hash-verified

389 else:
390 lwrite('/>%s' % (eol_, ))
391 def exportAttributes(self, lwrite, level, already_processed, namespace_='ttp:', name_='ExploitType'):
392 if self.idref is not None and 'idref' not in already_processed:
393 already_processed.add('idref')
394 lwrite(' idref=%s' % (quote_attrib(self.idref), ))
395 if self.id is not None and 'id' not in already_processed:
396 already_processed.add('id')
397 lwrite(' id=%s' % (quote_attrib(self.id), ))
398 def exportChildren(self, lwrite, level, nsmap, namespace_=XML_NS, name_='ExploitType', fromsubclass_=False, pretty_print=True):
399 if pretty_print:
400 eol_ = '\n'

Callers 1

exportMethod · 0.95

Calls 1

addMethod · 0.45

Tested by

no test coverage detected