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

Method exportChildren

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

Source from the content-addressed store, hash-verified

1851 def exportAttributes(self, lwrite, level, already_processed, namespace_='incident:', name_='RelatedIndicatorsType'):
1852 super(RelatedIndicatorsType, self).exportAttributes(lwrite, level, already_processed, namespace_, name_='RelatedIndicatorsType')
1853 def exportChildren(self, lwrite, level, nsmap, namespace_=XML_NS, name_='RelatedIndicatorsType', fromsubclass_=False, pretty_print=True):
1854 super(RelatedIndicatorsType, self).exportChildren(lwrite, level, nsmap, namespace_, name_, True, pretty_print=pretty_print)
1855 if pretty_print:
1856 eol_ = '\n'
1857 else:
1858 eol_ = ''
1859 for Related_Indicator_ in self.Related_Indicator:
1860 Related_Indicator_.export(lwrite, level, nsmap, namespace_, name_='Related_Indicator', pretty_print=pretty_print)
1861 def build(self, node):
1862 self.__sourcenode__ = node
1863 already_processed = set()

Callers 1

exportMethod · 0.95

Calls 2

exportChildrenMethod · 0.45
exportMethod · 0.45

Tested by

no test coverage detected