| 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() |