| 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' |
| 117 | else: |
| 118 | eol_ = '' |
| 119 | if self.Title is not None: |
| 120 | showIndent(lwrite, level, pretty_print) |
| 121 | lwrite('<%s:Title>%s</%s:Title>%s' % (nsmap[namespace_], quote_xml(self.Title), nsmap[namespace_], eol_)) |
| 122 | for Description in self.Description: |
| 123 | Description.export(lwrite, level, nsmap, namespace_, name_='Description', pretty_print=pretty_print) |
| 124 | for Short_Description in self.Short_Description: |
| 125 | Short_Description.export(lwrite, level, nsmap, namespace_, name_='Short_Description', pretty_print=pretty_print) |
| 126 | def build(self, node): |
| 127 | self.__sourcenode__ = node |
| 128 | already_processed = set() |