|
@@ 8292-8313 (lines=22) @@
|
| 8289 |
|
outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) |
| 8290 |
|
else: |
| 8291 |
|
outfile.write('/>%s' % (eol_, )) |
| 8292 |
|
def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='UnorderedGroupType'): |
| 8293 |
|
if self.id is not None and 'id' not in already_processed: |
| 8294 |
|
already_processed.add('id') |
| 8295 |
|
outfile.write(' id=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.id), input_name='id')), )) |
| 8296 |
|
if self.regionRef is not None and 'regionRef' not in already_processed: |
| 8297 |
|
already_processed.add('regionRef') |
| 8298 |
|
outfile.write(' regionRef=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.regionRef), input_name='regionRef')), )) |
| 8299 |
|
if self.caption is not None and 'caption' not in already_processed: |
| 8300 |
|
already_processed.add('caption') |
| 8301 |
|
outfile.write(' caption=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.caption), input_name='caption')), )) |
| 8302 |
|
if self.type_ is not None and 'type_' not in already_processed: |
| 8303 |
|
already_processed.add('type_') |
| 8304 |
|
outfile.write(' type=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.type_), input_name='type')), )) |
| 8305 |
|
if self.continuation is not None and 'continuation' not in already_processed: |
| 8306 |
|
already_processed.add('continuation') |
| 8307 |
|
outfile.write(' continuation="%s"' % self.gds_format_boolean(self.continuation, input_name='continuation')) |
| 8308 |
|
if self.custom is not None and 'custom' not in already_processed: |
| 8309 |
|
already_processed.add('custom') |
| 8310 |
|
outfile.write(' custom=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.custom), input_name='custom')), )) |
| 8311 |
|
if self.comments is not None and 'comments' not in already_processed: |
| 8312 |
|
already_processed.add('comments') |
| 8313 |
|
outfile.write(' comments=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.comments), input_name='comments')), )) |
| 8314 |
|
def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='UnorderedGroupType', fromsubclass_=False, pretty_print=True): |
| 8315 |
|
if pretty_print: |
| 8316 |
|
eol_ = '\n' |
|
@@ 7824-7845 (lines=22) @@
|
| 7821 |
|
outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) |
| 7822 |
|
else: |
| 7823 |
|
outfile.write('/>%s' % (eol_, )) |
| 7824 |
|
def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='OrderedGroupType'): |
| 7825 |
|
if self.id is not None and 'id' not in already_processed: |
| 7826 |
|
already_processed.add('id') |
| 7827 |
|
outfile.write(' id=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.id), input_name='id')), )) |
| 7828 |
|
if self.regionRef is not None and 'regionRef' not in already_processed: |
| 7829 |
|
already_processed.add('regionRef') |
| 7830 |
|
outfile.write(' regionRef=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.regionRef), input_name='regionRef')), )) |
| 7831 |
|
if self.caption is not None and 'caption' not in already_processed: |
| 7832 |
|
already_processed.add('caption') |
| 7833 |
|
outfile.write(' caption=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.caption), input_name='caption')), )) |
| 7834 |
|
if self.type_ is not None and 'type_' not in already_processed: |
| 7835 |
|
already_processed.add('type_') |
| 7836 |
|
outfile.write(' type=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.type_), input_name='type')), )) |
| 7837 |
|
if self.continuation is not None and 'continuation' not in already_processed: |
| 7838 |
|
already_processed.add('continuation') |
| 7839 |
|
outfile.write(' continuation="%s"' % self.gds_format_boolean(self.continuation, input_name='continuation')) |
| 7840 |
|
if self.custom is not None and 'custom' not in already_processed: |
| 7841 |
|
already_processed.add('custom') |
| 7842 |
|
outfile.write(' custom=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.custom), input_name='custom')), )) |
| 7843 |
|
if self.comments is not None and 'comments' not in already_processed: |
| 7844 |
|
already_processed.add('comments') |
| 7845 |
|
outfile.write(' comments=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.comments), input_name='comments')), )) |
| 7846 |
|
def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='OrderedGroupType', fromsubclass_=False, pretty_print=True): |
| 7847 |
|
if pretty_print: |
| 7848 |
|
eol_ = '\n' |