@@ 10769-10784 (lines=16) @@ | ||
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): |
|
10770 | if parent_element is None: |
|
10771 | element = etree_.Element('{http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15}' + name_, nsmap=nsmap_) |
|
10772 | else: |
|
10773 | element = etree_.SubElement(parent_element, '{http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15}' + name_, nsmap=nsmap_) |
|
10774 | if self.filename is not None: |
|
10775 | element.set('filename', self.gds_format_string(self.filename)) |
|
10776 | if self.comments is not None: |
|
10777 | element.set('comments', self.gds_format_string(self.comments)) |
|
10778 | if self.conf is not None: |
|
10779 | element.set('conf', self.gds_format_float(self.conf)) |
|
10780 | if mapping_ is not None: |
|
10781 | mapping_[id(self)] = element |
|
10782 | if reverse_mapping_ is not None: |
|
10783 | reverse_mapping_[element] = self |
|
10784 | return element |
|
10785 | def build(self, node, gds_collector_=None): |
|
10786 | self.gds_collector_ = gds_collector_ |
|
10787 | if SaveElementTreeNode: |
|
@@ 2552-2567 (lines=16) @@ | ||
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): |
|
2553 | if parent_element is None: |
|
2554 | element = etree_.Element('{http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15}' + name_, nsmap=nsmap_) |
|
2555 | else: |
|
2556 | element = etree_.SubElement(parent_element, '{http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15}' + name_, nsmap=nsmap_) |
|
2557 | if self.value is not None: |
|
2558 | element.set('value', self.gds_format_string(self.value)) |
|
2559 | if self.type_ is not None: |
|
2560 | element.set('type', self.gds_format_string(self.type_)) |
|
2561 | if self.comments is not None: |
|
2562 | element.set('comments', self.gds_format_string(self.comments)) |
|
2563 | if mapping_ is not None: |
|
2564 | mapping_[id(self)] = element |
|
2565 | if reverse_mapping_ is not None: |
|
2566 | reverse_mapping_[element] = self |
|
2567 | return element |
|
2568 | def build(self, node, gds_collector_=None): |
|
2569 | self.gds_collector_ = gds_collector_ |
|
2570 | if SaveElementTreeNode: |