|
@@ 10757-10766 (lines=10) @@
|
| 10754 |
|
outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) |
| 10755 |
|
else: |
| 10756 |
|
outfile.write('/>%s' % (eol_, )) |
| 10757 |
|
def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AlternativeImageType'): |
| 10758 |
|
if self.filename is not None and 'filename' not in already_processed: |
| 10759 |
|
already_processed.add('filename') |
| 10760 |
|
outfile.write(' filename=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.filename), input_name='filename')), )) |
| 10761 |
|
if self.comments is not None and 'comments' not in already_processed: |
| 10762 |
|
already_processed.add('comments') |
| 10763 |
|
outfile.write(' comments=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.comments), input_name='comments')), )) |
| 10764 |
|
if self.conf is not None and 'conf' not in already_processed: |
| 10765 |
|
already_processed.add('conf') |
| 10766 |
|
outfile.write(' conf="%s"' % self.gds_format_float(self.conf, input_name='conf')) |
| 10767 |
|
def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='AlternativeImageType', fromsubclass_=False, pretty_print=True): |
| 10768 |
|
pass |
| 10769 |
|
def to_etree(self, parent_element=None, name_='AlternativeImageType', mapping_=None, reverse_mapping_=None, nsmap_=None): |
|
@@ 2540-2549 (lines=10) @@
|
| 2537 |
|
outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) |
| 2538 |
|
else: |
| 2539 |
|
outfile.write('/>%s' % (eol_, )) |
| 2540 |
|
def _exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='LabelType'): |
| 2541 |
|
if self.value is not None and 'value' not in already_processed: |
| 2542 |
|
already_processed.add('value') |
| 2543 |
|
outfile.write(' value=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.value), input_name='value')), )) |
| 2544 |
|
if self.type_ is not None and 'type_' not in already_processed: |
| 2545 |
|
already_processed.add('type_') |
| 2546 |
|
outfile.write(' type=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.type_), input_name='type')), )) |
| 2547 |
|
if self.comments is not None and 'comments' not in already_processed: |
| 2548 |
|
already_processed.add('comments') |
| 2549 |
|
outfile.write(' comments=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.comments), input_name='comments')), )) |
| 2550 |
|
def _exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='LabelType', fromsubclass_=False, pretty_print=True): |
| 2551 |
|
pass |
| 2552 |
|
def to_etree(self, parent_element=None, name_='LabelType', mapping_=None, reverse_mapping_=None, nsmap_=None): |