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

Method exportChildren

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

Source from the content-addressed store, hash-verified

1042 def exportAttributes(self, lwrite, level, already_processed, namespace_='ttp:', name_='BehaviorType'):
1043 pass
1044 def exportChildren(self, lwrite, level, nsmap, namespace_=XML_NS, name_='BehaviorType', fromsubclass_=False, pretty_print=True):
1045 if pretty_print:
1046 eol_ = '\n'
1047 else:
1048 eol_ = ''
1049 if self.Attack_Patterns is not None:
1050 self.Attack_Patterns.export(lwrite, level, nsmap, namespace_, name_='Attack_Patterns', pretty_print=pretty_print)
1051 if self.Malware is not None:
1052 self.Malware.export(lwrite, level, nsmap, namespace_, name_='Malware', pretty_print=pretty_print)
1053 if self.Exploits is not None:
1054 self.Exploits.export(lwrite, level, nsmap, namespace_, name_='Exploits', pretty_print=pretty_print)
1055 def build(self, node):
1056 self.__sourcenode__ = node
1057 already_processed = set()

Callers 1

exportMethod · 0.95

Calls 1

exportMethod · 0.45

Tested by

no test coverage detected