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

Method exportChildren

stix/bindings/incident.py:1370–1376  ·  view source on GitHub ↗
(self, lwrite, level, nsmap, namespace_=XML_NS, name_='HistoryType', fromsubclass_=False, pretty_print=True)

Source from the content-addressed store, hash-verified

1368 def exportAttributes(self, lwrite, level, already_processed, namespace_='incident:', name_='HistoryType'):
1369 pass
1370 def exportChildren(self, lwrite, level, nsmap, namespace_=XML_NS, name_='HistoryType', fromsubclass_=False, pretty_print=True):
1371 if pretty_print:
1372 eol_ = '\n'
1373 else:
1374 eol_ = ''
1375 for History_Item_ in self.History_Item:
1376 History_Item_.export(lwrite, level, nsmap, namespace_, name_='History_Item', pretty_print=pretty_print)
1377 def build(self, node):
1378 self.__sourcenode__ = node
1379 already_processed = set()

Callers 1

exportMethod · 0.95

Calls 1

exportMethod · 0.45

Tested by

no test coverage detected