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

Method exportChildren

stix/bindings/ttp.py:759–765  ·  view source on GitHub ↗
(self, lwrite, level, nsmap, namespace_=XML_NS, name_='MalwareType', fromsubclass_=False, pretty_print=True)

Source from the content-addressed store, hash-verified

757 def exportAttributes(self, lwrite, level, already_processed, namespace_='ttp:', name_='MalwareType'):
758 pass
759 def exportChildren(self, lwrite, level, nsmap, namespace_=XML_NS, name_='MalwareType', fromsubclass_=False, pretty_print=True):
760 if pretty_print:
761 eol_ = '\n'
762 else:
763 eol_ = ''
764 for Malware_Instance_ in self.Malware_Instance:
765 Malware_Instance_.export(lwrite, level, nsmap, namespace_, name_='Malware_Instance', pretty_print=pretty_print)
766 def build(self, node):
767 self.__sourcenode__ = node
768 already_processed = set()

Callers 1

exportMethod · 0.95

Calls 1

exportMethod · 0.45

Tested by

no test coverage detected