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

Method exportAttributes

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

Source from the content-addressed store, hash-verified

255 else:
256 lwrite('/>%s' % (eol_, ))
257 def exportAttributes(self, lwrite, level, already_processed, namespace_='ttp:', name_='MalwareInstanceType'):
258 if self.idref is not None and 'idref' not in already_processed:
259 already_processed.add('idref')
260 lwrite(' idref=%s' % (quote_attrib(self.idref), ))
261 if self.id is not None and 'id' not in already_processed:
262 already_processed.add('id')
263 lwrite(' id=%s' % (quote_attrib(self.id), ))
264 def exportChildren(self, lwrite, level, nsmap, namespace_=XML_NS, name_='MalwareInstanceType', fromsubclass_=False, pretty_print=True):
265 if pretty_print:
266 eol_ = '\n'

Callers 1

exportMethod · 0.95

Calls 1

addMethod · 0.45

Tested by

no test coverage detected