Code Duplication    Length = 42-44 lines in 3 locations

src/ocrd_models/ocrd_page_generateds.py 3 locations

@@ 5893-5936 (lines=44) @@
5890
    ]
5891
    subclass = None
5892
    superclass = None
5893
    def __init__(self, id=None, regionRef=None, index=None, caption=None, type_=None, continuation=None, custom=None, comments=None, UserDefined=None, Labels=None, RegionRefIndexed=None, OrderedGroupIndexed=None, UnorderedGroupIndexed=None, gds_collector_=None, **kwargs_):
5894
        self.gds_collector_ = gds_collector_
5895
        self.gds_elementtree_node_ = None
5896
        self.original_tagname_ = None
5897
        self.parent_object_ = kwargs_.get('parent_object_')
5898
        self.ns_prefix_ = None
5899
        self.id = _cast(None, id)
5900
        self.id_nsprefix_ = "pc"
5901
        self.regionRef = _cast(None, regionRef)
5902
        self.regionRef_nsprefix_ = "pc"
5903
        self.index = _cast(int, index)
5904
        self.index_nsprefix_ = "pc"
5905
        self.caption = _cast(None, caption)
5906
        self.caption_nsprefix_ = "pc"
5907
        self.type_ = _cast(None, type_)
5908
        self.type__nsprefix_ = "pc"
5909
        self.continuation = _cast(bool, continuation)
5910
        self.continuation_nsprefix_ = "pc"
5911
        self.custom = _cast(None, custom)
5912
        self.custom_nsprefix_ = "pc"
5913
        self.comments = _cast(None, comments)
5914
        self.comments_nsprefix_ = "pc"
5915
        self.UserDefined = UserDefined
5916
        self.UserDefined_nsprefix_ = "pc"
5917
        if Labels is None:
5918
            self.Labels = []
5919
        else:
5920
            self.Labels = Labels
5921
        self.Labels_nsprefix_ = "pc"
5922
        if RegionRefIndexed is None:
5923
            self.RegionRefIndexed = []
5924
        else:
5925
            self.RegionRefIndexed = RegionRefIndexed
5926
        self.RegionRefIndexed_nsprefix_ = "pc"
5927
        if OrderedGroupIndexed is None:
5928
            self.OrderedGroupIndexed = []
5929
        else:
5930
            self.OrderedGroupIndexed = OrderedGroupIndexed
5931
        self.OrderedGroupIndexed_nsprefix_ = "pc"
5932
        if UnorderedGroupIndexed is None:
5933
            self.UnorderedGroupIndexed = []
5934
        else:
5935
            self.UnorderedGroupIndexed = UnorderedGroupIndexed
5936
        self.UnorderedGroupIndexed_nsprefix_ = "pc"
5937
    def factory(*args_, **kwargs_):
5938
        if CurrentSubclassModule_ is not None:
5939
            subclass = getSubclassFromModule_(
@@ 7292-7333 (lines=42) @@
7289
    ]
7290
    subclass = None
7291
    superclass = None
7292
    def __init__(self, id=None, regionRef=None, caption=None, type_=None, continuation=None, custom=None, comments=None, UserDefined=None, Labels=None, RegionRef=None, OrderedGroup=None, UnorderedGroup=None, gds_collector_=None, **kwargs_):
7293
        self.gds_collector_ = gds_collector_
7294
        self.gds_elementtree_node_ = None
7295
        self.original_tagname_ = None
7296
        self.parent_object_ = kwargs_.get('parent_object_')
7297
        self.ns_prefix_ = None
7298
        self.id = _cast(None, id)
7299
        self.id_nsprefix_ = "pc"
7300
        self.regionRef = _cast(None, regionRef)
7301
        self.regionRef_nsprefix_ = "pc"
7302
        self.caption = _cast(None, caption)
7303
        self.caption_nsprefix_ = "pc"
7304
        self.type_ = _cast(None, type_)
7305
        self.type__nsprefix_ = "pc"
7306
        self.continuation = _cast(bool, continuation)
7307
        self.continuation_nsprefix_ = "pc"
7308
        self.custom = _cast(None, custom)
7309
        self.custom_nsprefix_ = "pc"
7310
        self.comments = _cast(None, comments)
7311
        self.comments_nsprefix_ = "pc"
7312
        self.UserDefined = UserDefined
7313
        self.UserDefined_nsprefix_ = "pc"
7314
        if Labels is None:
7315
            self.Labels = []
7316
        else:
7317
            self.Labels = Labels
7318
        self.Labels_nsprefix_ = "pc"
7319
        if RegionRef is None:
7320
            self.RegionRef = []
7321
        else:
7322
            self.RegionRef = RegionRef
7323
        self.RegionRef_nsprefix_ = "pc"
7324
        if OrderedGroup is None:
7325
            self.OrderedGroup = []
7326
        else:
7327
            self.OrderedGroup = OrderedGroup
7328
        self.OrderedGroup_nsprefix_ = "pc"
7329
        if UnorderedGroup is None:
7330
            self.UnorderedGroup = []
7331
        else:
7332
            self.UnorderedGroup = UnorderedGroup
7333
        self.UnorderedGroup_nsprefix_ = "pc"
7334
    def factory(*args_, **kwargs_):
7335
        if CurrentSubclassModule_ is not None:
7336
            subclass = getSubclassFromModule_(
@@ 6840-6881 (lines=42) @@
6837
    ]
6838
    subclass = None
6839
    superclass = None
6840
    def __init__(self, id=None, regionRef=None, caption=None, type_=None, continuation=None, custom=None, comments=None, UserDefined=None, Labels=None, RegionRefIndexed=None, OrderedGroupIndexed=None, UnorderedGroupIndexed=None, gds_collector_=None, **kwargs_):
6841
        self.gds_collector_ = gds_collector_
6842
        self.gds_elementtree_node_ = None
6843
        self.original_tagname_ = None
6844
        self.parent_object_ = kwargs_.get('parent_object_')
6845
        self.ns_prefix_ = None
6846
        self.id = _cast(None, id)
6847
        self.id_nsprefix_ = "pc"
6848
        self.regionRef = _cast(None, regionRef)
6849
        self.regionRef_nsprefix_ = "pc"
6850
        self.caption = _cast(None, caption)
6851
        self.caption_nsprefix_ = "pc"
6852
        self.type_ = _cast(None, type_)
6853
        self.type__nsprefix_ = "pc"
6854
        self.continuation = _cast(bool, continuation)
6855
        self.continuation_nsprefix_ = "pc"
6856
        self.custom = _cast(None, custom)
6857
        self.custom_nsprefix_ = "pc"
6858
        self.comments = _cast(None, comments)
6859
        self.comments_nsprefix_ = "pc"
6860
        self.UserDefined = UserDefined
6861
        self.UserDefined_nsprefix_ = "pc"
6862
        if Labels is None:
6863
            self.Labels = []
6864
        else:
6865
            self.Labels = Labels
6866
        self.Labels_nsprefix_ = "pc"
6867
        if RegionRefIndexed is None:
6868
            self.RegionRefIndexed = []
6869
        else:
6870
            self.RegionRefIndexed = RegionRefIndexed
6871
        self.RegionRefIndexed_nsprefix_ = "pc"
6872
        if OrderedGroupIndexed is None:
6873
            self.OrderedGroupIndexed = []
6874
        else:
6875
            self.OrderedGroupIndexed = OrderedGroupIndexed
6876
        self.OrderedGroupIndexed_nsprefix_ = "pc"
6877
        if UnorderedGroupIndexed is None:
6878
            self.UnorderedGroupIndexed = []
6879
        else:
6880
            self.UnorderedGroupIndexed = UnorderedGroupIndexed
6881
        self.UnorderedGroupIndexed_nsprefix_ = "pc"
6882
    def factory(*args_, **kwargs_):
6883
        if CurrentSubclassModule_ is not None:
6884
            subclass = getSubclassFromModule_(