@@ 5583-5618 (lines=36) @@ | ||
5580 | if value is not None and 'comments' not in already_processed: |
|
5581 | already_processed.add('comments') |
|
5582 | self.comments = value |
|
5583 | def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): |
|
5584 | if nodeName_ == 'AlternativeImage': |
|
5585 | obj_ = AlternativeImageType.factory(parent_object_=self) |
|
5586 | obj_.build(child_, gds_collector_=gds_collector_) |
|
5587 | self.AlternativeImage.append(obj_) |
|
5588 | obj_.original_tagname_ = 'AlternativeImage' |
|
5589 | elif nodeName_ == 'Coords': |
|
5590 | obj_ = CoordsType.factory(parent_object_=self) |
|
5591 | obj_.build(child_, gds_collector_=gds_collector_) |
|
5592 | self.Coords = obj_ |
|
5593 | obj_.original_tagname_ = 'Coords' |
|
5594 | elif nodeName_ == 'Graphemes': |
|
5595 | obj_ = GraphemesType.factory(parent_object_=self) |
|
5596 | obj_.build(child_, gds_collector_=gds_collector_) |
|
5597 | self.Graphemes = obj_ |
|
5598 | obj_.original_tagname_ = 'Graphemes' |
|
5599 | elif nodeName_ == 'TextEquiv': |
|
5600 | obj_ = TextEquivType.factory(parent_object_=self) |
|
5601 | obj_.build(child_, gds_collector_=gds_collector_) |
|
5602 | self.TextEquiv.append(obj_) |
|
5603 | obj_.original_tagname_ = 'TextEquiv' |
|
5604 | elif nodeName_ == 'TextStyle': |
|
5605 | obj_ = TextStyleType.factory(parent_object_=self) |
|
5606 | obj_.build(child_, gds_collector_=gds_collector_) |
|
5607 | self.TextStyle = obj_ |
|
5608 | obj_.original_tagname_ = 'TextStyle' |
|
5609 | elif nodeName_ == 'UserDefined': |
|
5610 | obj_ = UserDefinedType.factory(parent_object_=self) |
|
5611 | obj_.build(child_, gds_collector_=gds_collector_) |
|
5612 | self.UserDefined = obj_ |
|
5613 | obj_.original_tagname_ = 'UserDefined' |
|
5614 | elif nodeName_ == 'Labels': |
|
5615 | obj_ = LabelsType.factory(parent_object_=self) |
|
5616 | obj_.build(child_, gds_collector_=gds_collector_) |
|
5617 | self.Labels.append(obj_) |
|
5618 | obj_.original_tagname_ = 'Labels' |
|
5619 | def __hash__(self): |
|
5620 | return hash(self.id) |
|
5621 | def invalidate_AlternativeImage(self, feature_selector=None): |
|
@@ 5122-5157 (lines=36) @@ | ||
5119 | if value is not None and 'comments' not in already_processed: |
|
5120 | already_processed.add('comments') |
|
5121 | self.comments = value |
|
5122 | def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): |
|
5123 | if nodeName_ == 'AlternativeImage': |
|
5124 | obj_ = AlternativeImageType.factory(parent_object_=self) |
|
5125 | obj_.build(child_, gds_collector_=gds_collector_) |
|
5126 | self.AlternativeImage.append(obj_) |
|
5127 | obj_.original_tagname_ = 'AlternativeImage' |
|
5128 | elif nodeName_ == 'Coords': |
|
5129 | obj_ = CoordsType.factory(parent_object_=self) |
|
5130 | obj_.build(child_, gds_collector_=gds_collector_) |
|
5131 | self.Coords = obj_ |
|
5132 | obj_.original_tagname_ = 'Coords' |
|
5133 | elif nodeName_ == 'Glyph': |
|
5134 | obj_ = GlyphType.factory(parent_object_=self) |
|
5135 | obj_.build(child_, gds_collector_=gds_collector_) |
|
5136 | self.Glyph.append(obj_) |
|
5137 | obj_.original_tagname_ = 'Glyph' |
|
5138 | elif nodeName_ == 'TextEquiv': |
|
5139 | obj_ = TextEquivType.factory(parent_object_=self) |
|
5140 | obj_.build(child_, gds_collector_=gds_collector_) |
|
5141 | self.TextEquiv.append(obj_) |
|
5142 | obj_.original_tagname_ = 'TextEquiv' |
|
5143 | elif nodeName_ == 'TextStyle': |
|
5144 | obj_ = TextStyleType.factory(parent_object_=self) |
|
5145 | obj_.build(child_, gds_collector_=gds_collector_) |
|
5146 | self.TextStyle = obj_ |
|
5147 | obj_.original_tagname_ = 'TextStyle' |
|
5148 | elif nodeName_ == 'UserDefined': |
|
5149 | obj_ = UserDefinedType.factory(parent_object_=self) |
|
5150 | obj_.build(child_, gds_collector_=gds_collector_) |
|
5151 | self.UserDefined = obj_ |
|
5152 | obj_.original_tagname_ = 'UserDefined' |
|
5153 | elif nodeName_ == 'Labels': |
|
5154 | obj_ = LabelsType.factory(parent_object_=self) |
|
5155 | obj_.build(child_, gds_collector_=gds_collector_) |
|
5156 | self.Labels.append(obj_) |
|
5157 | obj_.original_tagname_ = 'Labels' |
|
5158 | def __hash__(self): |
|
5159 | return hash(self.id) |
|
5160 | def invalidate_AlternativeImage(self, feature_selector=None): |