| 102 | else: |
| 103 | lwrite('/>%s' % (eol_, )) |
| 104 | def exportAttributes(self, lwrite, level, already_processed, namespace_='ttp:', name_='AttackPatternType'): |
| 105 | if self.idref is not None and 'idref' not in already_processed: |
| 106 | already_processed.add('idref') |
| 107 | lwrite(' idref=%s' % (quote_attrib(self.idref), )) |
| 108 | if self.capec_id is not None and 'capec_id' not in already_processed: |
| 109 | already_processed.add('capec_id') |
| 110 | lwrite(' capec_id=%s' % (quote_attrib(self.capec_id), )) |
| 111 | if self.id is not None and 'id' not in already_processed: |
| 112 | already_processed.add('id') |
| 113 | lwrite(' id=%s' % (quote_attrib(self.id), )) |
| 114 | def exportChildren(self, lwrite, level, nsmap, namespace_=XML_NS, name_='AttackPatternType', fromsubclass_=False, pretty_print=True): |
| 115 | if pretty_print: |
| 116 | eol_ = '\n' |