Best Python code snippet using autotest_python
compoundsuper.py
Source:compoundsuper.py  
...179        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))180        self.exportAttributes(outfile, level, namespace_, name_='DoxygenType')181        if self.hasContent_():182            outfile.write('>\n')183            self.exportChildren(outfile, level + 1, namespace_, name_)184            showIndent(outfile, level)185            outfile.write('</%s%s>\n' % (namespace_, name_))186        else:187            outfile.write(' />\n')188    def exportAttributes(self, outfile, level, namespace_='', name_='DoxygenType'):189        outfile.write(' version=%s' % (quote_attrib(self.version), ))190    def exportChildren(self, outfile, level, namespace_='', name_='DoxygenType'):191        if self.compounddef:192            self.compounddef.export(193                outfile, level, namespace_, name_='compounddef')194    def hasContent_(self):195        if (196            self.compounddef is not None197        ):198            return True199        else:200            return False201    def exportLiteral(self, outfile, level, name_='DoxygenType'):202        level += 1203        self.exportLiteralAttributes(outfile, level, name_)204        if self.hasContent_():205            self.exportLiteralChildren(outfile, level, name_)206    def exportLiteralAttributes(self, outfile, level, name_):207        if self.version is not None:208            showIndent(outfile, level)209            outfile.write('version = "%s",\n' % (self.version,))210    def exportLiteralChildren(self, outfile, level, name_):211        if self.compounddef:212            showIndent(outfile, level)213            outfile.write('compounddef=model_.compounddefType(\n')214            self.compounddef.exportLiteral(outfile, level, name_='compounddef')215            showIndent(outfile, level)216            outfile.write('),\n')217    def build(self, node_):218        attrs = node_.attributes219        self.buildAttributes(attrs)220        for child_ in node_.childNodes:221            nodeName_ = child_.nodeName.split(':')[-1]222            self.buildChildren(child_, nodeName_)223    def buildAttributes(self, attrs):224        if attrs.get('version'):225            self.version = attrs.get('version').value226    def buildChildren(self, child_, nodeName_):227        if child_.nodeType == Node.ELEMENT_NODE and \228                nodeName_ == 'compounddef':229            obj_ = compounddefType.factory()230            obj_.build(child_)231            self.set_compounddef(obj_)232# end class DoxygenType233class compounddefType(GeneratedsSuper):234    subclass = None235    superclass = None236    def __init__(self, kind=None, prot=None, id=None, compoundname=None, title=None, basecompoundref=None, derivedcompoundref=None, includes=None, includedby=None, incdepgraph=None, invincdepgraph=None, innerdir=None, innerfile=None, innerclass=None, innernamespace=None, innerpage=None, innergroup=None, templateparamlist=None, sectiondef=None, briefdescription=None, detaileddescription=None, inheritancegraph=None, collaborationgraph=None, programlisting=None, location=None, listofallmembers=None):237        self.kind = kind238        self.prot = prot239        self.id = id240        self.compoundname = compoundname241        self.title = title242        if basecompoundref is None:243            self.basecompoundref = []244        else:245            self.basecompoundref = basecompoundref246        if derivedcompoundref is None:247            self.derivedcompoundref = []248        else:249            self.derivedcompoundref = derivedcompoundref250        if includes is None:251            self.includes = []252        else:253            self.includes = includes254        if includedby is None:255            self.includedby = []256        else:257            self.includedby = includedby258        self.incdepgraph = incdepgraph259        self.invincdepgraph = invincdepgraph260        if innerdir is None:261            self.innerdir = []262        else:263            self.innerdir = innerdir264        if innerfile is None:265            self.innerfile = []266        else:267            self.innerfile = innerfile268        if innerclass is None:269            self.innerclass = []270        else:271            self.innerclass = innerclass272        if innernamespace is None:273            self.innernamespace = []274        else:275            self.innernamespace = innernamespace276        if innerpage is None:277            self.innerpage = []278        else:279            self.innerpage = innerpage280        if innergroup is None:281            self.innergroup = []282        else:283            self.innergroup = innergroup284        self.templateparamlist = templateparamlist285        if sectiondef is None:286            self.sectiondef = []287        else:288            self.sectiondef = sectiondef289        self.briefdescription = briefdescription290        self.detaileddescription = detaileddescription291        self.inheritancegraph = inheritancegraph292        self.collaborationgraph = collaborationgraph293        self.programlisting = programlisting294        self.location = location295        self.listofallmembers = listofallmembers296    def factory(*args_, **kwargs_):297        if compounddefType.subclass:298            return compounddefType.subclass(*args_, **kwargs_)299        else:300            return compounddefType(*args_, **kwargs_)301    factory = staticmethod(factory)302    def get_compoundname(self): return self.compoundname303    def set_compoundname(self, compoundname): self.compoundname = compoundname304    def get_title(self): return self.title305    def set_title(self, title): self.title = title306    def get_basecompoundref(self): return self.basecompoundref307    def set_basecompoundref(308        self, basecompoundref): self.basecompoundref = basecompoundref309    def add_basecompoundref(self, value): self.basecompoundref.append(value)310    def insert_basecompoundref(311        self, index, value): self.basecompoundref[index] = value312    def get_derivedcompoundref(self): return self.derivedcompoundref313    def set_derivedcompoundref(314        self, derivedcompoundref): self.derivedcompoundref = derivedcompoundref315    def add_derivedcompoundref(316        self, value): self.derivedcompoundref.append(value)317    def insert_derivedcompoundref(318        self, index, value): self.derivedcompoundref[index] = value319    def get_includes(self): return self.includes320    def set_includes(self, includes): self.includes = includes321    def add_includes(self, value): self.includes.append(value)322    def insert_includes(self, index, value): self.includes[index] = value323    def get_includedby(self): return self.includedby324    def set_includedby(self, includedby): self.includedby = includedby325    def add_includedby(self, value): self.includedby.append(value)326    def insert_includedby(self, index, value): self.includedby[index] = value327    def get_incdepgraph(self): return self.incdepgraph328    def set_incdepgraph(self, incdepgraph): self.incdepgraph = incdepgraph329    def get_invincdepgraph(self): return self.invincdepgraph330    def set_invincdepgraph(331        self, invincdepgraph): self.invincdepgraph = invincdepgraph332    def get_innerdir(self): return self.innerdir333    def set_innerdir(self, innerdir): self.innerdir = innerdir334    def add_innerdir(self, value): self.innerdir.append(value)335    def insert_innerdir(self, index, value): self.innerdir[index] = value336    def get_innerfile(self): return self.innerfile337    def set_innerfile(self, innerfile): self.innerfile = innerfile338    def add_innerfile(self, value): self.innerfile.append(value)339    def insert_innerfile(self, index, value): self.innerfile[index] = value340    def get_innerclass(self): return self.innerclass341    def set_innerclass(self, innerclass): self.innerclass = innerclass342    def add_innerclass(self, value): self.innerclass.append(value)343    def insert_innerclass(self, index, value): self.innerclass[index] = value344    def get_innernamespace(self): return self.innernamespace345    def set_innernamespace(346        self, innernamespace): self.innernamespace = innernamespace347    def add_innernamespace(self, value): self.innernamespace.append(value)348    def insert_innernamespace(349        self, index, value): self.innernamespace[index] = value350    def get_innerpage(self): return self.innerpage351    def set_innerpage(self, innerpage): self.innerpage = innerpage352    def add_innerpage(self, value): self.innerpage.append(value)353    def insert_innerpage(self, index, value): self.innerpage[index] = value354    def get_innergroup(self): return self.innergroup355    def set_innergroup(self, innergroup): self.innergroup = innergroup356    def add_innergroup(self, value): self.innergroup.append(value)357    def insert_innergroup(self, index, value): self.innergroup[index] = value358    def get_templateparamlist(self): return self.templateparamlist359    def set_templateparamlist(360        self, templateparamlist): self.templateparamlist = templateparamlist361    def get_sectiondef(self): return self.sectiondef362    def set_sectiondef(self, sectiondef): self.sectiondef = sectiondef363    def add_sectiondef(self, value): self.sectiondef.append(value)364    def insert_sectiondef(self, index, value): self.sectiondef[index] = value365    def get_briefdescription(self): return self.briefdescription366    def set_briefdescription(367        self, briefdescription): self.briefdescription = briefdescription368    def get_detaileddescription(self): return self.detaileddescription369    def set_detaileddescription(370        self, detaileddescription): self.detaileddescription = detaileddescription371    def get_inheritancegraph(self): return self.inheritancegraph372    def set_inheritancegraph(373        self, inheritancegraph): self.inheritancegraph = inheritancegraph374    def get_collaborationgraph(self): return self.collaborationgraph375    def set_collaborationgraph(376        self, collaborationgraph): self.collaborationgraph = collaborationgraph377    def get_programlisting(self): return self.programlisting378    def set_programlisting(379        self, programlisting): self.programlisting = programlisting380    def get_location(self): return self.location381    def set_location(self, location): self.location = location382    def get_listofallmembers(self): return self.listofallmembers383    def set_listofallmembers(384        self, listofallmembers): self.listofallmembers = listofallmembers385    def get_kind(self): return self.kind386    def set_kind(self, kind): self.kind = kind387    def get_prot(self): return self.prot388    def set_prot(self, prot): self.prot = prot389    def get_id(self): return self.id390    def set_id(self, id): self.id = id391    def export(self, outfile, level, namespace_='', name_='compounddefType', namespacedef_=''):392        showIndent(outfile, level)393        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))394        self.exportAttributes(outfile, level, namespace_,395                              name_='compounddefType')396        if self.hasContent_():397            outfile.write('>\n')398            self.exportChildren(outfile, level + 1, namespace_, name_)399            showIndent(outfile, level)400            outfile.write('</%s%s>\n' % (namespace_, name_))401        else:402            outfile.write(' />\n')403    def exportAttributes(self, outfile, level, namespace_='', name_='compounddefType'):404        if self.kind is not None:405            outfile.write(' kind=%s' % (quote_attrib(self.kind), ))406        if self.prot is not None:407            outfile.write(' prot=%s' % (quote_attrib(self.prot), ))408        if self.id is not None:409            outfile.write(' id=%s' % (self.format_string(quote_attrib(410                self.id).encode(ExternalEncoding), input_name='id'), ))411    def exportChildren(self, outfile, level, namespace_='', name_='compounddefType'):412        if self.compoundname is not None:413            showIndent(outfile, level)414            outfile.write('<%scompoundname>%s</%scompoundname>\n' % (namespace_, self.format_string(415                quote_xml(self.compoundname).encode(ExternalEncoding), input_name='compoundname'), namespace_))416        if self.title is not None:417            showIndent(outfile, level)418            outfile.write('<%stitle>%s</%stitle>\n' % (namespace_, self.format_string(419                quote_xml(self.title).encode(ExternalEncoding), input_name='title'), namespace_))420        for basecompoundref_ in self.basecompoundref:421            basecompoundref_.export(422                outfile, level, namespace_, name_='basecompoundref')423        for derivedcompoundref_ in self.derivedcompoundref:424            derivedcompoundref_.export(425                outfile, level, namespace_, name_='derivedcompoundref')426        for includes_ in self.includes:427            includes_.export(outfile, level, namespace_, name_='includes')428        for includedby_ in self.includedby:429            includedby_.export(outfile, level, namespace_, name_='includedby')430        if self.incdepgraph:431            self.incdepgraph.export(432                outfile, level, namespace_, name_='incdepgraph')433        if self.invincdepgraph:434            self.invincdepgraph.export(435                outfile, level, namespace_, name_='invincdepgraph')436        for innerdir_ in self.innerdir:437            innerdir_.export(outfile, level, namespace_, name_='innerdir')438        for innerfile_ in self.innerfile:439            innerfile_.export(outfile, level, namespace_, name_='innerfile')440        for innerclass_ in self.innerclass:441            innerclass_.export(outfile, level, namespace_, name_='innerclass')442        for innernamespace_ in self.innernamespace:443            innernamespace_.export(444                outfile, level, namespace_, name_='innernamespace')445        for innerpage_ in self.innerpage:446            innerpage_.export(outfile, level, namespace_, name_='innerpage')447        for innergroup_ in self.innergroup:448            innergroup_.export(outfile, level, namespace_, name_='innergroup')449        if self.templateparamlist:450            self.templateparamlist.export(451                outfile, level, namespace_, name_='templateparamlist')452        for sectiondef_ in self.sectiondef:453            sectiondef_.export(outfile, level, namespace_, name_='sectiondef')454        if self.briefdescription:455            self.briefdescription.export(456                outfile, level, namespace_, name_='briefdescription')457        if self.detaileddescription:458            self.detaileddescription.export(459                outfile, level, namespace_, name_='detaileddescription')460        if self.inheritancegraph:461            self.inheritancegraph.export(462                outfile, level, namespace_, name_='inheritancegraph')463        if self.collaborationgraph:464            self.collaborationgraph.export(465                outfile, level, namespace_, name_='collaborationgraph')466        if self.programlisting:467            self.programlisting.export(468                outfile, level, namespace_, name_='programlisting')469        if self.location:470            self.location.export(outfile, level, namespace_, name_='location')471        if self.listofallmembers:472            self.listofallmembers.export(473                outfile, level, namespace_, name_='listofallmembers')474    def hasContent_(self):475        if (476            self.compoundname is not None or477            self.title is not None or478            self.basecompoundref is not None or479            self.derivedcompoundref is not None or480            self.includes is not None or481            self.includedby is not None or482            self.incdepgraph is not None or483            self.invincdepgraph is not None or484            self.innerdir is not None or485            self.innerfile is not None or486            self.innerclass is not None or487            self.innernamespace is not None or488            self.innerpage is not None or489            self.innergroup is not None or490            self.templateparamlist is not None or491            self.sectiondef is not None or492            self.briefdescription is not None or493            self.detaileddescription is not None or494            self.inheritancegraph is not None or495            self.collaborationgraph is not None or496            self.programlisting is not None or497            self.location is not None or498            self.listofallmembers is not None499        ):500            return True501        else:502            return False503    def exportLiteral(self, outfile, level, name_='compounddefType'):504        level += 1505        self.exportLiteralAttributes(outfile, level, name_)506        if self.hasContent_():507            self.exportLiteralChildren(outfile, level, name_)508    def exportLiteralAttributes(self, outfile, level, name_):509        if self.kind is not None:510            showIndent(outfile, level)511            outfile.write('kind = "%s",\n' % (self.kind,))512        if self.prot is not None:513            showIndent(outfile, level)514            outfile.write('prot = "%s",\n' % (self.prot,))515        if self.id is not None:516            showIndent(outfile, level)517            outfile.write('id = %s,\n' % (self.id,))518    def exportLiteralChildren(self, outfile, level, name_):519        showIndent(outfile, level)520        outfile.write('compoundname=%s,\n' % quote_python(521            self.compoundname).encode(ExternalEncoding))522        if self.title:523            showIndent(outfile, level)524            outfile.write('title=model_.xsd_string(\n')525            self.title.exportLiteral(outfile, level, name_='title')526            showIndent(outfile, level)527            outfile.write('),\n')528        showIndent(outfile, level)529        outfile.write('basecompoundref=[\n')530        level += 1531        for basecompoundref in self.basecompoundref:532            showIndent(outfile, level)533            outfile.write('model_.basecompoundref(\n')534            basecompoundref.exportLiteral(535                outfile, level, name_='basecompoundref')536            showIndent(outfile, level)537            outfile.write('),\n')538        level -= 1539        showIndent(outfile, level)540        outfile.write('],\n')541        showIndent(outfile, level)542        outfile.write('derivedcompoundref=[\n')543        level += 1544        for derivedcompoundref in self.derivedcompoundref:545            showIndent(outfile, level)546            outfile.write('model_.derivedcompoundref(\n')547            derivedcompoundref.exportLiteral(548                outfile, level, name_='derivedcompoundref')549            showIndent(outfile, level)550            outfile.write('),\n')551        level -= 1552        showIndent(outfile, level)553        outfile.write('],\n')554        showIndent(outfile, level)555        outfile.write('includes=[\n')556        level += 1557        for includes in self.includes:558            showIndent(outfile, level)559            outfile.write('model_.includes(\n')560            includes.exportLiteral(outfile, level, name_='includes')561            showIndent(outfile, level)562            outfile.write('),\n')563        level -= 1564        showIndent(outfile, level)565        outfile.write('],\n')566        showIndent(outfile, level)567        outfile.write('includedby=[\n')568        level += 1569        for includedby in self.includedby:570            showIndent(outfile, level)571            outfile.write('model_.includedby(\n')572            includedby.exportLiteral(outfile, level, name_='includedby')573            showIndent(outfile, level)574            outfile.write('),\n')575        level -= 1576        showIndent(outfile, level)577        outfile.write('],\n')578        if self.incdepgraph:579            showIndent(outfile, level)580            outfile.write('incdepgraph=model_.graphType(\n')581            self.incdepgraph.exportLiteral(outfile, level, name_='incdepgraph')582            showIndent(outfile, level)583            outfile.write('),\n')584        if self.invincdepgraph:585            showIndent(outfile, level)586            outfile.write('invincdepgraph=model_.graphType(\n')587            self.invincdepgraph.exportLiteral(588                outfile, level, name_='invincdepgraph')589            showIndent(outfile, level)590            outfile.write('),\n')591        showIndent(outfile, level)592        outfile.write('innerdir=[\n')593        level += 1594        for innerdir in self.innerdir:595            showIndent(outfile, level)596            outfile.write('model_.innerdir(\n')597            innerdir.exportLiteral(outfile, level, name_='innerdir')598            showIndent(outfile, level)599            outfile.write('),\n')600        level -= 1601        showIndent(outfile, level)602        outfile.write('],\n')603        showIndent(outfile, level)604        outfile.write('innerfile=[\n')605        level += 1606        for innerfile in self.innerfile:607            showIndent(outfile, level)608            outfile.write('model_.innerfile(\n')609            innerfile.exportLiteral(outfile, level, name_='innerfile')610            showIndent(outfile, level)611            outfile.write('),\n')612        level -= 1613        showIndent(outfile, level)614        outfile.write('],\n')615        showIndent(outfile, level)616        outfile.write('innerclass=[\n')617        level += 1618        for innerclass in self.innerclass:619            showIndent(outfile, level)620            outfile.write('model_.innerclass(\n')621            innerclass.exportLiteral(outfile, level, name_='innerclass')622            showIndent(outfile, level)623            outfile.write('),\n')624        level -= 1625        showIndent(outfile, level)626        outfile.write('],\n')627        showIndent(outfile, level)628        outfile.write('innernamespace=[\n')629        level += 1630        for innernamespace in self.innernamespace:631            showIndent(outfile, level)632            outfile.write('model_.innernamespace(\n')633            innernamespace.exportLiteral(634                outfile, level, name_='innernamespace')635            showIndent(outfile, level)636            outfile.write('),\n')637        level -= 1638        showIndent(outfile, level)639        outfile.write('],\n')640        showIndent(outfile, level)641        outfile.write('innerpage=[\n')642        level += 1643        for innerpage in self.innerpage:644            showIndent(outfile, level)645            outfile.write('model_.innerpage(\n')646            innerpage.exportLiteral(outfile, level, name_='innerpage')647            showIndent(outfile, level)648            outfile.write('),\n')649        level -= 1650        showIndent(outfile, level)651        outfile.write('],\n')652        showIndent(outfile, level)653        outfile.write('innergroup=[\n')654        level += 1655        for innergroup in self.innergroup:656            showIndent(outfile, level)657            outfile.write('model_.innergroup(\n')658            innergroup.exportLiteral(outfile, level, name_='innergroup')659            showIndent(outfile, level)660            outfile.write('),\n')661        level -= 1662        showIndent(outfile, level)663        outfile.write('],\n')664        if self.templateparamlist:665            showIndent(outfile, level)666            outfile.write('templateparamlist=model_.templateparamlistType(\n')667            self.templateparamlist.exportLiteral(668                outfile, level, name_='templateparamlist')669            showIndent(outfile, level)670            outfile.write('),\n')671        showIndent(outfile, level)672        outfile.write('sectiondef=[\n')673        level += 1674        for sectiondef in self.sectiondef:675            showIndent(outfile, level)676            outfile.write('model_.sectiondef(\n')677            sectiondef.exportLiteral(outfile, level, name_='sectiondef')678            showIndent(outfile, level)679            outfile.write('),\n')680        level -= 1681        showIndent(outfile, level)682        outfile.write('],\n')683        if self.briefdescription:684            showIndent(outfile, level)685            outfile.write('briefdescription=model_.descriptionType(\n')686            self.briefdescription.exportLiteral(687                outfile, level, name_='briefdescription')688            showIndent(outfile, level)689            outfile.write('),\n')690        if self.detaileddescription:691            showIndent(outfile, level)692            outfile.write('detaileddescription=model_.descriptionType(\n')693            self.detaileddescription.exportLiteral(694                outfile, level, name_='detaileddescription')695            showIndent(outfile, level)696            outfile.write('),\n')697        if self.inheritancegraph:698            showIndent(outfile, level)699            outfile.write('inheritancegraph=model_.graphType(\n')700            self.inheritancegraph.exportLiteral(701                outfile, level, name_='inheritancegraph')702            showIndent(outfile, level)703            outfile.write('),\n')704        if self.collaborationgraph:705            showIndent(outfile, level)706            outfile.write('collaborationgraph=model_.graphType(\n')707            self.collaborationgraph.exportLiteral(708                outfile, level, name_='collaborationgraph')709            showIndent(outfile, level)710            outfile.write('),\n')711        if self.programlisting:712            showIndent(outfile, level)713            outfile.write('programlisting=model_.listingType(\n')714            self.programlisting.exportLiteral(715                outfile, level, name_='programlisting')716            showIndent(outfile, level)717            outfile.write('),\n')718        if self.location:719            showIndent(outfile, level)720            outfile.write('location=model_.locationType(\n')721            self.location.exportLiteral(outfile, level, name_='location')722            showIndent(outfile, level)723            outfile.write('),\n')724        if self.listofallmembers:725            showIndent(outfile, level)726            outfile.write('listofallmembers=model_.listofallmembersType(\n')727            self.listofallmembers.exportLiteral(728                outfile, level, name_='listofallmembers')729            showIndent(outfile, level)730            outfile.write('),\n')731    def build(self, node_):732        attrs = node_.attributes733        self.buildAttributes(attrs)734        for child_ in node_.childNodes:735            nodeName_ = child_.nodeName.split(':')[-1]736            self.buildChildren(child_, nodeName_)737    def buildAttributes(self, attrs):738        if attrs.get('kind'):739            self.kind = attrs.get('kind').value740        if attrs.get('prot'):741            self.prot = attrs.get('prot').value742        if attrs.get('id'):743            self.id = attrs.get('id').value744    def buildChildren(self, child_, nodeName_):745        if child_.nodeType == Node.ELEMENT_NODE and \746                nodeName_ == 'compoundname':747            compoundname_ = ''748            for text__content_ in child_.childNodes:749                compoundname_ += text__content_.nodeValue750            self.compoundname = compoundname_751        elif child_.nodeType == Node.ELEMENT_NODE and \752                nodeName_ == 'title':753            obj_ = docTitleType.factory()754            obj_.build(child_)755            self.set_title(obj_)756        elif child_.nodeType == Node.ELEMENT_NODE and \757                nodeName_ == 'basecompoundref':758            obj_ = compoundRefType.factory()759            obj_.build(child_)760            self.basecompoundref.append(obj_)761        elif child_.nodeType == Node.ELEMENT_NODE and \762                nodeName_ == 'derivedcompoundref':763            obj_ = compoundRefType.factory()764            obj_.build(child_)765            self.derivedcompoundref.append(obj_)766        elif child_.nodeType == Node.ELEMENT_NODE and \767                nodeName_ == 'includes':768            obj_ = incType.factory()769            obj_.build(child_)770            self.includes.append(obj_)771        elif child_.nodeType == Node.ELEMENT_NODE and \772                nodeName_ == 'includedby':773            obj_ = incType.factory()774            obj_.build(child_)775            self.includedby.append(obj_)776        elif child_.nodeType == Node.ELEMENT_NODE and \777                nodeName_ == 'incdepgraph':778            obj_ = graphType.factory()779            obj_.build(child_)780            self.set_incdepgraph(obj_)781        elif child_.nodeType == Node.ELEMENT_NODE and \782                nodeName_ == 'invincdepgraph':783            obj_ = graphType.factory()784            obj_.build(child_)785            self.set_invincdepgraph(obj_)786        elif child_.nodeType == Node.ELEMENT_NODE and \787                nodeName_ == 'innerdir':788            obj_ = refType.factory()789            obj_.build(child_)790            self.innerdir.append(obj_)791        elif child_.nodeType == Node.ELEMENT_NODE and \792                nodeName_ == 'innerfile':793            obj_ = refType.factory()794            obj_.build(child_)795            self.innerfile.append(obj_)796        elif child_.nodeType == Node.ELEMENT_NODE and \797                nodeName_ == 'innerclass':798            obj_ = refType.factory()799            obj_.build(child_)800            self.innerclass.append(obj_)801        elif child_.nodeType == Node.ELEMENT_NODE and \802                nodeName_ == 'innernamespace':803            obj_ = refType.factory()804            obj_.build(child_)805            self.innernamespace.append(obj_)806        elif child_.nodeType == Node.ELEMENT_NODE and \807                nodeName_ == 'innerpage':808            obj_ = refType.factory()809            obj_.build(child_)810            self.innerpage.append(obj_)811        elif child_.nodeType == Node.ELEMENT_NODE and \812                nodeName_ == 'innergroup':813            obj_ = refType.factory()814            obj_.build(child_)815            self.innergroup.append(obj_)816        elif child_.nodeType == Node.ELEMENT_NODE and \817                nodeName_ == 'templateparamlist':818            obj_ = templateparamlistType.factory()819            obj_.build(child_)820            self.set_templateparamlist(obj_)821        elif child_.nodeType == Node.ELEMENT_NODE and \822                nodeName_ == 'sectiondef':823            obj_ = sectiondefType.factory()824            obj_.build(child_)825            self.sectiondef.append(obj_)826        elif child_.nodeType == Node.ELEMENT_NODE and \827                nodeName_ == 'briefdescription':828            obj_ = descriptionType.factory()829            obj_.build(child_)830            self.set_briefdescription(obj_)831        elif child_.nodeType == Node.ELEMENT_NODE and \832                nodeName_ == 'detaileddescription':833            obj_ = descriptionType.factory()834            obj_.build(child_)835            self.set_detaileddescription(obj_)836        elif child_.nodeType == Node.ELEMENT_NODE and \837                nodeName_ == 'inheritancegraph':838            obj_ = graphType.factory()839            obj_.build(child_)840            self.set_inheritancegraph(obj_)841        elif child_.nodeType == Node.ELEMENT_NODE and \842                nodeName_ == 'collaborationgraph':843            obj_ = graphType.factory()844            obj_.build(child_)845            self.set_collaborationgraph(obj_)846        elif child_.nodeType == Node.ELEMENT_NODE and \847                nodeName_ == 'programlisting':848            obj_ = listingType.factory()849            obj_.build(child_)850            self.set_programlisting(obj_)851        elif child_.nodeType == Node.ELEMENT_NODE and \852                nodeName_ == 'location':853            obj_ = locationType.factory()854            obj_.build(child_)855            self.set_location(obj_)856        elif child_.nodeType == Node.ELEMENT_NODE and \857                nodeName_ == 'listofallmembers':858            obj_ = listofallmembersType.factory()859            obj_.build(child_)860            self.set_listofallmembers(obj_)861# end class compounddefType862class listofallmembersType(GeneratedsSuper):863    subclass = None864    superclass = None865    def __init__(self, member=None):866        if member is None:867            self.member = []868        else:869            self.member = member870    def factory(*args_, **kwargs_):871        if listofallmembersType.subclass:872            return listofallmembersType.subclass(*args_, **kwargs_)873        else:874            return listofallmembersType(*args_, **kwargs_)875    factory = staticmethod(factory)876    def get_member(self): return self.member877    def set_member(self, member): self.member = member878    def add_member(self, value): self.member.append(value)879    def insert_member(self, index, value): self.member[index] = value880    def export(self, outfile, level, namespace_='', name_='listofallmembersType', namespacedef_=''):881        showIndent(outfile, level)882        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))883        self.exportAttributes(outfile, level, namespace_,884                              name_='listofallmembersType')885        if self.hasContent_():886            outfile.write('>\n')887            self.exportChildren(outfile, level + 1, namespace_, name_)888            showIndent(outfile, level)889            outfile.write('</%s%s>\n' % (namespace_, name_))890        else:891            outfile.write(' />\n')892    def exportAttributes(self, outfile, level, namespace_='', name_='listofallmembersType'):893        pass894    def exportChildren(self, outfile, level, namespace_='', name_='listofallmembersType'):895        for member_ in self.member:896            member_.export(outfile, level, namespace_, name_='member')897    def hasContent_(self):898        if (899            self.member is not None900        ):901            return True902        else:903            return False904    def exportLiteral(self, outfile, level, name_='listofallmembersType'):905        level += 1906        self.exportLiteralAttributes(outfile, level, name_)907        if self.hasContent_():908            self.exportLiteralChildren(outfile, level, name_)909    def exportLiteralAttributes(self, outfile, level, name_):910        pass911    def exportLiteralChildren(self, outfile, level, name_):912        showIndent(outfile, level)913        outfile.write('member=[\n')914        level += 1915        for member in self.member:916            showIndent(outfile, level)917            outfile.write('model_.member(\n')918            member.exportLiteral(outfile, level, name_='member')919            showIndent(outfile, level)920            outfile.write('),\n')921        level -= 1922        showIndent(outfile, level)923        outfile.write('],\n')924    def build(self, node_):925        attrs = node_.attributes926        self.buildAttributes(attrs)927        for child_ in node_.childNodes:928            nodeName_ = child_.nodeName.split(':')[-1]929            self.buildChildren(child_, nodeName_)930    def buildAttributes(self, attrs):931        pass932    def buildChildren(self, child_, nodeName_):933        if child_.nodeType == Node.ELEMENT_NODE and \934                nodeName_ == 'member':935            obj_ = memberRefType.factory()936            obj_.build(child_)937            self.member.append(obj_)938# end class listofallmembersType939class memberRefType(GeneratedsSuper):940    subclass = None941    superclass = None942    def __init__(self, virt=None, prot=None, refid=None, ambiguityscope=None, scope=None, name=None):943        self.virt = virt944        self.prot = prot945        self.refid = refid946        self.ambiguityscope = ambiguityscope947        self.scope = scope948        self.name = name949    def factory(*args_, **kwargs_):950        if memberRefType.subclass:951            return memberRefType.subclass(*args_, **kwargs_)952        else:953            return memberRefType(*args_, **kwargs_)954    factory = staticmethod(factory)955    def get_scope(self): return self.scope956    def set_scope(self, scope): self.scope = scope957    def get_name(self): return self.name958    def set_name(self, name): self.name = name959    def get_virt(self): return self.virt960    def set_virt(self, virt): self.virt = virt961    def get_prot(self): return self.prot962    def set_prot(self, prot): self.prot = prot963    def get_refid(self): return self.refid964    def set_refid(self, refid): self.refid = refid965    def get_ambiguityscope(self): return self.ambiguityscope966    def set_ambiguityscope(967        self, ambiguityscope): self.ambiguityscope = ambiguityscope968    def export(self, outfile, level, namespace_='', name_='memberRefType', namespacedef_=''):969        showIndent(outfile, level)970        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))971        self.exportAttributes(outfile, level, namespace_,972                              name_='memberRefType')973        if self.hasContent_():974            outfile.write('>\n')975            self.exportChildren(outfile, level + 1, namespace_, name_)976            showIndent(outfile, level)977            outfile.write('</%s%s>\n' % (namespace_, name_))978        else:979            outfile.write(' />\n')980    def exportAttributes(self, outfile, level, namespace_='', name_='memberRefType'):981        if self.virt is not None:982            outfile.write(' virt=%s' % (quote_attrib(self.virt), ))983        if self.prot is not None:984            outfile.write(' prot=%s' % (quote_attrib(self.prot), ))985        if self.refid is not None:986            outfile.write(' refid=%s' % (self.format_string(quote_attrib(987                self.refid).encode(ExternalEncoding), input_name='refid'), ))988        if self.ambiguityscope is not None:989            outfile.write(' ambiguityscope=%s' % (self.format_string(quote_attrib(990                self.ambiguityscope).encode(ExternalEncoding), input_name='ambiguityscope'), ))991    def exportChildren(self, outfile, level, namespace_='', name_='memberRefType'):992        if self.scope is not None:993            showIndent(outfile, level)994            outfile.write('<%sscope>%s</%sscope>\n' % (namespace_, self.format_string(995                quote_xml(self.scope).encode(ExternalEncoding), input_name='scope'), namespace_))996        if self.name is not None:997            showIndent(outfile, level)998            outfile.write('<%sname>%s</%sname>\n' % (namespace_, self.format_string(999                quote_xml(self.name).encode(ExternalEncoding), input_name='name'), namespace_))1000    def hasContent_(self):1001        if (1002            self.scope is not None or1003            self.name is not None1004        ):1005            return True1006        else:1007            return False1008    def exportLiteral(self, outfile, level, name_='memberRefType'):1009        level += 11010        self.exportLiteralAttributes(outfile, level, name_)1011        if self.hasContent_():1012            self.exportLiteralChildren(outfile, level, name_)1013    def exportLiteralAttributes(self, outfile, level, name_):1014        if self.virt is not None:1015            showIndent(outfile, level)1016            outfile.write('virt = "%s",\n' % (self.virt,))1017        if self.prot is not None:1018            showIndent(outfile, level)1019            outfile.write('prot = "%s",\n' % (self.prot,))1020        if self.refid is not None:1021            showIndent(outfile, level)1022            outfile.write('refid = %s,\n' % (self.refid,))1023        if self.ambiguityscope is not None:1024            showIndent(outfile, level)1025            outfile.write('ambiguityscope = %s,\n' % (self.ambiguityscope,))1026    def exportLiteralChildren(self, outfile, level, name_):1027        showIndent(outfile, level)1028        outfile.write('scope=%s,\n' % quote_python(1029            self.scope).encode(ExternalEncoding))1030        showIndent(outfile, level)1031        outfile.write('name=%s,\n' % quote_python(1032            self.name).encode(ExternalEncoding))1033    def build(self, node_):1034        attrs = node_.attributes1035        self.buildAttributes(attrs)1036        for child_ in node_.childNodes:1037            nodeName_ = child_.nodeName.split(':')[-1]1038            self.buildChildren(child_, nodeName_)1039    def buildAttributes(self, attrs):1040        if attrs.get('virt'):1041            self.virt = attrs.get('virt').value1042        if attrs.get('prot'):1043            self.prot = attrs.get('prot').value1044        if attrs.get('refid'):1045            self.refid = attrs.get('refid').value1046        if attrs.get('ambiguityscope'):1047            self.ambiguityscope = attrs.get('ambiguityscope').value1048    def buildChildren(self, child_, nodeName_):1049        if child_.nodeType == Node.ELEMENT_NODE and \1050                nodeName_ == 'scope':1051            scope_ = ''1052            for text__content_ in child_.childNodes:1053                scope_ += text__content_.nodeValue1054            self.scope = scope_1055        elif child_.nodeType == Node.ELEMENT_NODE and \1056                nodeName_ == 'name':1057            name_ = ''1058            for text__content_ in child_.childNodes:1059                name_ += text__content_.nodeValue1060            self.name = name_1061# end class memberRefType1062class scope(GeneratedsSuper):1063    subclass = None1064    superclass = None1065    def __init__(self, valueOf_=''):1066        self.valueOf_ = valueOf_1067    def factory(*args_, **kwargs_):1068        if scope.subclass:1069            return scope.subclass(*args_, **kwargs_)1070        else:1071            return scope(*args_, **kwargs_)1072    factory = staticmethod(factory)1073    def getValueOf_(self): return self.valueOf_1074    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_1075    def export(self, outfile, level, namespace_='', name_='scope', namespacedef_=''):1076        showIndent(outfile, level)1077        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))1078        self.exportAttributes(outfile, level, namespace_, name_='scope')1079        if self.hasContent_():1080            outfile.write('>\n')1081            self.exportChildren(outfile, level + 1, namespace_, name_)1082            showIndent(outfile, level)1083            outfile.write('</%s%s>\n' % (namespace_, name_))1084        else:1085            outfile.write(' />\n')1086    def exportAttributes(self, outfile, level, namespace_='', name_='scope'):1087        pass1088    def exportChildren(self, outfile, level, namespace_='', name_='scope'):1089        if self.valueOf_.find('![CDATA') > -1:1090            value = quote_xml('%s' % self.valueOf_)1091            value = value.replace('![CDATA', '<![CDATA')1092            value = value.replace(']]', ']]>')1093            outfile.write(value)1094        else:1095            outfile.write(quote_xml('%s' % self.valueOf_))1096    def hasContent_(self):1097        if (1098            self.valueOf_ is not None1099        ):1100            return True1101        else:1102            return False1103    def exportLiteral(self, outfile, level, name_='scope'):1104        level += 11105        self.exportLiteralAttributes(outfile, level, name_)1106        if self.hasContent_():1107            self.exportLiteralChildren(outfile, level, name_)1108    def exportLiteralAttributes(self, outfile, level, name_):1109        pass1110    def exportLiteralChildren(self, outfile, level, name_):1111        showIndent(outfile, level)1112        outfile.write('valueOf_ = "%s",\n' % (self.valueOf_,))1113    def build(self, node_):1114        attrs = node_.attributes1115        self.buildAttributes(attrs)1116        self.valueOf_ = ''1117        for child_ in node_.childNodes:1118            nodeName_ = child_.nodeName.split(':')[-1]1119            self.buildChildren(child_, nodeName_)1120    def buildAttributes(self, attrs):1121        pass1122    def buildChildren(self, child_, nodeName_):1123        if child_.nodeType == Node.TEXT_NODE:1124            self.valueOf_ += child_.nodeValue1125        elif child_.nodeType == Node.CDATA_SECTION_NODE:1126            self.valueOf_ += '![CDATA[' + child_.nodeValue + ']]'1127# end class scope1128class name(GeneratedsSuper):1129    subclass = None1130    superclass = None1131    def __init__(self, valueOf_=''):1132        self.valueOf_ = valueOf_1133    def factory(*args_, **kwargs_):1134        if name.subclass:1135            return name.subclass(*args_, **kwargs_)1136        else:1137            return name(*args_, **kwargs_)1138    factory = staticmethod(factory)1139    def getValueOf_(self): return self.valueOf_1140    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_1141    def export(self, outfile, level, namespace_='', name_='name', namespacedef_=''):1142        showIndent(outfile, level)1143        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))1144        self.exportAttributes(outfile, level, namespace_, name_='name')1145        if self.hasContent_():1146            outfile.write('>\n')1147            self.exportChildren(outfile, level + 1, namespace_, name_)1148            showIndent(outfile, level)1149            outfile.write('</%s%s>\n' % (namespace_, name_))1150        else:1151            outfile.write(' />\n')1152    def exportAttributes(self, outfile, level, namespace_='', name_='name'):1153        pass1154    def exportChildren(self, outfile, level, namespace_='', name_='name'):1155        if self.valueOf_.find('![CDATA') > -1:1156            value = quote_xml('%s' % self.valueOf_)1157            value = value.replace('![CDATA', '<![CDATA')1158            value = value.replace(']]', ']]>')1159            outfile.write(value)1160        else:1161            outfile.write(quote_xml('%s' % self.valueOf_))1162    def hasContent_(self):1163        if (1164            self.valueOf_ is not None1165        ):1166            return True1167        else:1168            return False1169    def exportLiteral(self, outfile, level, name_='name'):1170        level += 11171        self.exportLiteralAttributes(outfile, level, name_)1172        if self.hasContent_():1173            self.exportLiteralChildren(outfile, level, name_)1174    def exportLiteralAttributes(self, outfile, level, name_):1175        pass1176    def exportLiteralChildren(self, outfile, level, name_):1177        showIndent(outfile, level)1178        outfile.write('valueOf_ = "%s",\n' % (self.valueOf_,))1179    def build(self, node_):1180        attrs = node_.attributes1181        self.buildAttributes(attrs)1182        self.valueOf_ = ''1183        for child_ in node_.childNodes:1184            nodeName_ = child_.nodeName.split(':')[-1]1185            self.buildChildren(child_, nodeName_)1186    def buildAttributes(self, attrs):1187        pass1188    def buildChildren(self, child_, nodeName_):1189        if child_.nodeType == Node.TEXT_NODE:1190            self.valueOf_ += child_.nodeValue1191        elif child_.nodeType == Node.CDATA_SECTION_NODE:1192            self.valueOf_ += '![CDATA[' + child_.nodeValue + ']]'1193# end class name1194class compoundRefType(GeneratedsSuper):1195    subclass = None1196    superclass = None1197    def __init__(self, virt=None, prot=None, refid=None, valueOf_='', mixedclass_=None, content_=None):1198        self.virt = virt1199        self.prot = prot1200        self.refid = refid1201        if mixedclass_ is None:1202            self.mixedclass_ = MixedContainer1203        else:1204            self.mixedclass_ = mixedclass_1205        if content_ is None:1206            self.content_ = []1207        else:1208            self.content_ = content_1209    def factory(*args_, **kwargs_):1210        if compoundRefType.subclass:1211            return compoundRefType.subclass(*args_, **kwargs_)1212        else:1213            return compoundRefType(*args_, **kwargs_)1214    factory = staticmethod(factory)1215    def get_virt(self): return self.virt1216    def set_virt(self, virt): self.virt = virt1217    def get_prot(self): return self.prot1218    def set_prot(self, prot): self.prot = prot1219    def get_refid(self): return self.refid1220    def set_refid(self, refid): self.refid = refid1221    def getValueOf_(self): return self.valueOf_1222    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_1223    def export(self, outfile, level, namespace_='', name_='compoundRefType', namespacedef_=''):1224        showIndent(outfile, level)1225        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))1226        self.exportAttributes(outfile, level, namespace_,1227                              name_='compoundRefType')1228        outfile.write('>')1229        self.exportChildren(outfile, level + 1, namespace_, name_)1230        outfile.write('</%s%s>\n' % (namespace_, name_))1231    def exportAttributes(self, outfile, level, namespace_='', name_='compoundRefType'):1232        if self.virt is not None:1233            outfile.write(' virt=%s' % (quote_attrib(self.virt), ))1234        if self.prot is not None:1235            outfile.write(' prot=%s' % (quote_attrib(self.prot), ))1236        if self.refid is not None:1237            outfile.write(' refid=%s' % (self.format_string(quote_attrib(1238                self.refid).encode(ExternalEncoding), input_name='refid'), ))1239    def exportChildren(self, outfile, level, namespace_='', name_='compoundRefType'):1240        if self.valueOf_.find('![CDATA') > -1:1241            value = quote_xml('%s' % self.valueOf_)1242            value = value.replace('![CDATA', '<![CDATA')1243            value = value.replace(']]', ']]>')1244            outfile.write(value)1245        else:1246            outfile.write(quote_xml('%s' % self.valueOf_))1247    def hasContent_(self):1248        if (1249            self.valueOf_ is not None1250        ):1251            return True1252        else:1253            return False1254    def exportLiteral(self, outfile, level, name_='compoundRefType'):1255        level += 11256        self.exportLiteralAttributes(outfile, level, name_)1257        if self.hasContent_():1258            self.exportLiteralChildren(outfile, level, name_)1259    def exportLiteralAttributes(self, outfile, level, name_):1260        if self.virt is not None:1261            showIndent(outfile, level)1262            outfile.write('virt = "%s",\n' % (self.virt,))1263        if self.prot is not None:1264            showIndent(outfile, level)1265            outfile.write('prot = "%s",\n' % (self.prot,))1266        if self.refid is not None:1267            showIndent(outfile, level)1268            outfile.write('refid = %s,\n' % (self.refid,))1269    def exportLiteralChildren(self, outfile, level, name_):1270        showIndent(outfile, level)1271        outfile.write('valueOf_ = "%s",\n' % (self.valueOf_,))1272    def build(self, node_):1273        attrs = node_.attributes1274        self.buildAttributes(attrs)1275        self.valueOf_ = ''1276        for child_ in node_.childNodes:1277            nodeName_ = child_.nodeName.split(':')[-1]1278            self.buildChildren(child_, nodeName_)1279    def buildAttributes(self, attrs):1280        if attrs.get('virt'):1281            self.virt = attrs.get('virt').value1282        if attrs.get('prot'):1283            self.prot = attrs.get('prot').value1284        if attrs.get('refid'):1285            self.refid = attrs.get('refid').value1286    def buildChildren(self, child_, nodeName_):1287        if child_.nodeType == Node.TEXT_NODE:1288            obj_ = self.mixedclass_(MixedContainer.CategoryText,1289                                    MixedContainer.TypeNone, '', child_.nodeValue)1290            self.content_.append(obj_)1291        if child_.nodeType == Node.TEXT_NODE:1292            self.valueOf_ += child_.nodeValue1293        elif child_.nodeType == Node.CDATA_SECTION_NODE:1294            self.valueOf_ += '![CDATA[' + child_.nodeValue + ']]'1295# end class compoundRefType1296class reimplementType(GeneratedsSuper):1297    subclass = None1298    superclass = None1299    def __init__(self, refid=None, valueOf_='', mixedclass_=None, content_=None):1300        self.refid = refid1301        if mixedclass_ is None:1302            self.mixedclass_ = MixedContainer1303        else:1304            self.mixedclass_ = mixedclass_1305        if content_ is None:1306            self.content_ = []1307        else:1308            self.content_ = content_1309    def factory(*args_, **kwargs_):1310        if reimplementType.subclass:1311            return reimplementType.subclass(*args_, **kwargs_)1312        else:1313            return reimplementType(*args_, **kwargs_)1314    factory = staticmethod(factory)1315    def get_refid(self): return self.refid1316    def set_refid(self, refid): self.refid = refid1317    def getValueOf_(self): return self.valueOf_1318    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_1319    def export(self, outfile, level, namespace_='', name_='reimplementType', namespacedef_=''):1320        showIndent(outfile, level)1321        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))1322        self.exportAttributes(outfile, level, namespace_,1323                              name_='reimplementType')1324        outfile.write('>')1325        self.exportChildren(outfile, level + 1, namespace_, name_)1326        outfile.write('</%s%s>\n' % (namespace_, name_))1327    def exportAttributes(self, outfile, level, namespace_='', name_='reimplementType'):1328        if self.refid is not None:1329            outfile.write(' refid=%s' % (self.format_string(quote_attrib(1330                self.refid).encode(ExternalEncoding), input_name='refid'), ))1331    def exportChildren(self, outfile, level, namespace_='', name_='reimplementType'):1332        if self.valueOf_.find('![CDATA') > -1:1333            value = quote_xml('%s' % self.valueOf_)1334            value = value.replace('![CDATA', '<![CDATA')1335            value = value.replace(']]', ']]>')1336            outfile.write(value)1337        else:1338            outfile.write(quote_xml('%s' % self.valueOf_))1339    def hasContent_(self):1340        if (1341            self.valueOf_ is not None1342        ):1343            return True1344        else:1345            return False1346    def exportLiteral(self, outfile, level, name_='reimplementType'):1347        level += 11348        self.exportLiteralAttributes(outfile, level, name_)1349        if self.hasContent_():1350            self.exportLiteralChildren(outfile, level, name_)1351    def exportLiteralAttributes(self, outfile, level, name_):1352        if self.refid is not None:1353            showIndent(outfile, level)1354            outfile.write('refid = %s,\n' % (self.refid,))1355    def exportLiteralChildren(self, outfile, level, name_):1356        showIndent(outfile, level)1357        outfile.write('valueOf_ = "%s",\n' % (self.valueOf_,))1358    def build(self, node_):1359        attrs = node_.attributes1360        self.buildAttributes(attrs)1361        self.valueOf_ = ''1362        for child_ in node_.childNodes:1363            nodeName_ = child_.nodeName.split(':')[-1]1364            self.buildChildren(child_, nodeName_)1365    def buildAttributes(self, attrs):1366        if attrs.get('refid'):1367            self.refid = attrs.get('refid').value1368    def buildChildren(self, child_, nodeName_):1369        if child_.nodeType == Node.TEXT_NODE:1370            obj_ = self.mixedclass_(MixedContainer.CategoryText,1371                                    MixedContainer.TypeNone, '', child_.nodeValue)1372            self.content_.append(obj_)1373        if child_.nodeType == Node.TEXT_NODE:1374            self.valueOf_ += child_.nodeValue1375        elif child_.nodeType == Node.CDATA_SECTION_NODE:1376            self.valueOf_ += '![CDATA[' + child_.nodeValue + ']]'1377# end class reimplementType1378class incType(GeneratedsSuper):1379    subclass = None1380    superclass = None1381    def __init__(self, local=None, refid=None, valueOf_='', mixedclass_=None, content_=None):1382        self.local = local1383        self.refid = refid1384        if mixedclass_ is None:1385            self.mixedclass_ = MixedContainer1386        else:1387            self.mixedclass_ = mixedclass_1388        if content_ is None:1389            self.content_ = []1390        else:1391            self.content_ = content_1392    def factory(*args_, **kwargs_):1393        if incType.subclass:1394            return incType.subclass(*args_, **kwargs_)1395        else:1396            return incType(*args_, **kwargs_)1397    factory = staticmethod(factory)1398    def get_local(self): return self.local1399    def set_local(self, local): self.local = local1400    def get_refid(self): return self.refid1401    def set_refid(self, refid): self.refid = refid1402    def getValueOf_(self): return self.valueOf_1403    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_1404    def export(self, outfile, level, namespace_='', name_='incType', namespacedef_=''):1405        showIndent(outfile, level)1406        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))1407        self.exportAttributes(outfile, level, namespace_, name_='incType')1408        outfile.write('>')1409        self.exportChildren(outfile, level + 1, namespace_, name_)1410        outfile.write('</%s%s>\n' % (namespace_, name_))1411    def exportAttributes(self, outfile, level, namespace_='', name_='incType'):1412        if self.local is not None:1413            outfile.write(' local=%s' % (quote_attrib(self.local), ))1414        if self.refid is not None:1415            outfile.write(' refid=%s' % (self.format_string(quote_attrib(1416                self.refid).encode(ExternalEncoding), input_name='refid'), ))1417    def exportChildren(self, outfile, level, namespace_='', name_='incType'):1418        if self.valueOf_.find('![CDATA') > -1:1419            value = quote_xml('%s' % self.valueOf_)1420            value = value.replace('![CDATA', '<![CDATA')1421            value = value.replace(']]', ']]>')1422            outfile.write(value)1423        else:1424            outfile.write(quote_xml('%s' % self.valueOf_))1425    def hasContent_(self):1426        if (1427            self.valueOf_ is not None1428        ):1429            return True1430        else:1431            return False1432    def exportLiteral(self, outfile, level, name_='incType'):1433        level += 11434        self.exportLiteralAttributes(outfile, level, name_)1435        if self.hasContent_():1436            self.exportLiteralChildren(outfile, level, name_)1437    def exportLiteralAttributes(self, outfile, level, name_):1438        if self.local is not None:1439            showIndent(outfile, level)1440            outfile.write('local = "%s",\n' % (self.local,))1441        if self.refid is not None:1442            showIndent(outfile, level)1443            outfile.write('refid = %s,\n' % (self.refid,))1444    def exportLiteralChildren(self, outfile, level, name_):1445        showIndent(outfile, level)1446        outfile.write('valueOf_ = "%s",\n' % (self.valueOf_,))1447    def build(self, node_):1448        attrs = node_.attributes1449        self.buildAttributes(attrs)1450        self.valueOf_ = ''1451        for child_ in node_.childNodes:1452            nodeName_ = child_.nodeName.split(':')[-1]1453            self.buildChildren(child_, nodeName_)1454    def buildAttributes(self, attrs):1455        if attrs.get('local'):1456            self.local = attrs.get('local').value1457        if attrs.get('refid'):1458            self.refid = attrs.get('refid').value1459    def buildChildren(self, child_, nodeName_):1460        if child_.nodeType == Node.TEXT_NODE:1461            obj_ = self.mixedclass_(MixedContainer.CategoryText,1462                                    MixedContainer.TypeNone, '', child_.nodeValue)1463            self.content_.append(obj_)1464        if child_.nodeType == Node.TEXT_NODE:1465            self.valueOf_ += child_.nodeValue1466        elif child_.nodeType == Node.CDATA_SECTION_NODE:1467            self.valueOf_ += '![CDATA[' + child_.nodeValue + ']]'1468# end class incType1469class refType(GeneratedsSuper):1470    subclass = None1471    superclass = None1472    def __init__(self, prot=None, refid=None, valueOf_='', mixedclass_=None, content_=None):1473        self.prot = prot1474        self.refid = refid1475        if mixedclass_ is None:1476            self.mixedclass_ = MixedContainer1477        else:1478            self.mixedclass_ = mixedclass_1479        if content_ is None:1480            self.content_ = []1481        else:1482            self.content_ = content_1483    def factory(*args_, **kwargs_):1484        if refType.subclass:1485            return refType.subclass(*args_, **kwargs_)1486        else:1487            return refType(*args_, **kwargs_)1488    factory = staticmethod(factory)1489    def get_prot(self): return self.prot1490    def set_prot(self, prot): self.prot = prot1491    def get_refid(self): return self.refid1492    def set_refid(self, refid): self.refid = refid1493    def getValueOf_(self): return self.valueOf_1494    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_1495    def export(self, outfile, level, namespace_='', name_='refType', namespacedef_=''):1496        showIndent(outfile, level)1497        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))1498        self.exportAttributes(outfile, level, namespace_, name_='refType')1499        outfile.write('>')1500        self.exportChildren(outfile, level + 1, namespace_, name_)1501        outfile.write('</%s%s>\n' % (namespace_, name_))1502    def exportAttributes(self, outfile, level, namespace_='', name_='refType'):1503        if self.prot is not None:1504            outfile.write(' prot=%s' % (quote_attrib(self.prot), ))1505        if self.refid is not None:1506            outfile.write(' refid=%s' % (self.format_string(quote_attrib(1507                self.refid).encode(ExternalEncoding), input_name='refid'), ))1508    def exportChildren(self, outfile, level, namespace_='', name_='refType'):1509        if self.valueOf_.find('![CDATA') > -1:1510            value = quote_xml('%s' % self.valueOf_)1511            value = value.replace('![CDATA', '<![CDATA')1512            value = value.replace(']]', ']]>')1513            outfile.write(value)1514        else:1515            outfile.write(quote_xml('%s' % self.valueOf_))1516    def hasContent_(self):1517        if (1518            self.valueOf_ is not None1519        ):1520            return True1521        else:1522            return False1523    def exportLiteral(self, outfile, level, name_='refType'):1524        level += 11525        self.exportLiteralAttributes(outfile, level, name_)1526        if self.hasContent_():1527            self.exportLiteralChildren(outfile, level, name_)1528    def exportLiteralAttributes(self, outfile, level, name_):1529        if self.prot is not None:1530            showIndent(outfile, level)1531            outfile.write('prot = "%s",\n' % (self.prot,))1532        if self.refid is not None:1533            showIndent(outfile, level)1534            outfile.write('refid = %s,\n' % (self.refid,))1535    def exportLiteralChildren(self, outfile, level, name_):1536        showIndent(outfile, level)1537        outfile.write('valueOf_ = "%s",\n' % (self.valueOf_,))1538    def build(self, node_):1539        attrs = node_.attributes1540        self.buildAttributes(attrs)1541        self.valueOf_ = ''1542        for child_ in node_.childNodes:1543            nodeName_ = child_.nodeName.split(':')[-1]1544            self.buildChildren(child_, nodeName_)1545    def buildAttributes(self, attrs):1546        if attrs.get('prot'):1547            self.prot = attrs.get('prot').value1548        if attrs.get('refid'):1549            self.refid = attrs.get('refid').value1550    def buildChildren(self, child_, nodeName_):1551        if child_.nodeType == Node.TEXT_NODE:1552            obj_ = self.mixedclass_(MixedContainer.CategoryText,1553                                    MixedContainer.TypeNone, '', child_.nodeValue)1554            self.content_.append(obj_)1555        if child_.nodeType == Node.TEXT_NODE:1556            self.valueOf_ += child_.nodeValue1557        elif child_.nodeType == Node.CDATA_SECTION_NODE:1558            self.valueOf_ += '![CDATA[' + child_.nodeValue + ']]'1559# end class refType1560class refTextType(GeneratedsSuper):1561    subclass = None1562    superclass = None1563    def __init__(self, refid=None, kindref=None, external=None, valueOf_='', mixedclass_=None, content_=None):1564        self.refid = refid1565        self.kindref = kindref1566        self.external = external1567        if mixedclass_ is None:1568            self.mixedclass_ = MixedContainer1569        else:1570            self.mixedclass_ = mixedclass_1571        if content_ is None:1572            self.content_ = []1573        else:1574            self.content_ = content_1575    def factory(*args_, **kwargs_):1576        if refTextType.subclass:1577            return refTextType.subclass(*args_, **kwargs_)1578        else:1579            return refTextType(*args_, **kwargs_)1580    factory = staticmethod(factory)1581    def get_refid(self): return self.refid1582    def set_refid(self, refid): self.refid = refid1583    def get_kindref(self): return self.kindref1584    def set_kindref(self, kindref): self.kindref = kindref1585    def get_external(self): return self.external1586    def set_external(self, external): self.external = external1587    def getValueOf_(self): return self.valueOf_1588    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_1589    def export(self, outfile, level, namespace_='', name_='refTextType', namespacedef_=''):1590        showIndent(outfile, level)1591        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))1592        self.exportAttributes(outfile, level, namespace_, name_='refTextType')1593        outfile.write('>')1594        self.exportChildren(outfile, level + 1, namespace_, name_)1595        outfile.write('</%s%s>\n' % (namespace_, name_))1596    def exportAttributes(self, outfile, level, namespace_='', name_='refTextType'):1597        if self.refid is not None:1598            outfile.write(' refid=%s' % (self.format_string(quote_attrib(1599                self.refid).encode(ExternalEncoding), input_name='refid'), ))1600        if self.kindref is not None:1601            outfile.write(' kindref=%s' % (quote_attrib(self.kindref), ))1602        if self.external is not None:1603            outfile.write(' external=%s' % (self.format_string(quote_attrib(1604                self.external).encode(ExternalEncoding), input_name='external'), ))1605    def exportChildren(self, outfile, level, namespace_='', name_='refTextType'):1606        if self.valueOf_.find('![CDATA') > -1:1607            value = quote_xml('%s' % self.valueOf_)1608            value = value.replace('![CDATA', '<![CDATA')1609            value = value.replace(']]', ']]>')1610            outfile.write(value)1611        else:1612            outfile.write(quote_xml('%s' % self.valueOf_))1613    def hasContent_(self):1614        if (1615            self.valueOf_ is not None1616        ):1617            return True1618        else:1619            return False1620    def exportLiteral(self, outfile, level, name_='refTextType'):1621        level += 11622        self.exportLiteralAttributes(outfile, level, name_)1623        if self.hasContent_():1624            self.exportLiteralChildren(outfile, level, name_)1625    def exportLiteralAttributes(self, outfile, level, name_):1626        if self.refid is not None:1627            showIndent(outfile, level)1628            outfile.write('refid = %s,\n' % (self.refid,))1629        if self.kindref is not None:1630            showIndent(outfile, level)1631            outfile.write('kindref = "%s",\n' % (self.kindref,))1632        if self.external is not None:1633            showIndent(outfile, level)1634            outfile.write('external = %s,\n' % (self.external,))1635    def exportLiteralChildren(self, outfile, level, name_):1636        showIndent(outfile, level)1637        outfile.write('valueOf_ = "%s",\n' % (self.valueOf_,))1638    def build(self, node_):1639        attrs = node_.attributes1640        self.buildAttributes(attrs)1641        self.valueOf_ = ''1642        for child_ in node_.childNodes:1643            nodeName_ = child_.nodeName.split(':')[-1]1644            self.buildChildren(child_, nodeName_)1645    def buildAttributes(self, attrs):1646        if attrs.get('refid'):1647            self.refid = attrs.get('refid').value1648        if attrs.get('kindref'):1649            self.kindref = attrs.get('kindref').value1650        if attrs.get('external'):1651            self.external = attrs.get('external').value1652    def buildChildren(self, child_, nodeName_):1653        if child_.nodeType == Node.TEXT_NODE:1654            obj_ = self.mixedclass_(MixedContainer.CategoryText,1655                                    MixedContainer.TypeNone, '', child_.nodeValue)1656            self.content_.append(obj_)1657        if child_.nodeType == Node.TEXT_NODE:1658            self.valueOf_ += child_.nodeValue1659        elif child_.nodeType == Node.CDATA_SECTION_NODE:1660            self.valueOf_ += '![CDATA[' + child_.nodeValue + ']]'1661# end class refTextType1662class sectiondefType(GeneratedsSuper):1663    subclass = None1664    superclass = None1665    def __init__(self, kind=None, header=None, description=None, memberdef=None):1666        self.kind = kind1667        self.header = header1668        self.description = description1669        if memberdef is None:1670            self.memberdef = []1671        else:1672            self.memberdef = memberdef1673    def factory(*args_, **kwargs_):1674        if sectiondefType.subclass:1675            return sectiondefType.subclass(*args_, **kwargs_)1676        else:1677            return sectiondefType(*args_, **kwargs_)1678    factory = staticmethod(factory)1679    def get_header(self): return self.header1680    def set_header(self, header): self.header = header1681    def get_description(self): return self.description1682    def set_description(self, description): self.description = description1683    def get_memberdef(self): return self.memberdef1684    def set_memberdef(self, memberdef): self.memberdef = memberdef1685    def add_memberdef(self, value): self.memberdef.append(value)1686    def insert_memberdef(self, index, value): self.memberdef[index] = value1687    def get_kind(self): return self.kind1688    def set_kind(self, kind): self.kind = kind1689    def export(self, outfile, level, namespace_='', name_='sectiondefType', namespacedef_=''):1690        showIndent(outfile, level)1691        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))1692        self.exportAttributes(outfile, level, namespace_,1693                              name_='sectiondefType')1694        if self.hasContent_():1695            outfile.write('>\n')1696            self.exportChildren(outfile, level + 1, namespace_, name_)1697            showIndent(outfile, level)1698            outfile.write('</%s%s>\n' % (namespace_, name_))1699        else:1700            outfile.write(' />\n')1701    def exportAttributes(self, outfile, level, namespace_='', name_='sectiondefType'):1702        if self.kind is not None:1703            outfile.write(' kind=%s' % (quote_attrib(self.kind), ))1704    def exportChildren(self, outfile, level, namespace_='', name_='sectiondefType'):1705        if self.header is not None:1706            showIndent(outfile, level)1707            outfile.write('<%sheader>%s</%sheader>\n' % (namespace_, self.format_string(1708                quote_xml(self.header).encode(ExternalEncoding), input_name='header'), namespace_))1709        if self.description:1710            self.description.export(1711                outfile, level, namespace_, name_='description')1712        for memberdef_ in self.memberdef:1713            memberdef_.export(outfile, level, namespace_, name_='memberdef')1714    def hasContent_(self):1715        if (1716            self.header is not None or1717            self.description is not None or1718            self.memberdef is not None1719        ):1720            return True1721        else:1722            return False1723    def exportLiteral(self, outfile, level, name_='sectiondefType'):1724        level += 11725        self.exportLiteralAttributes(outfile, level, name_)1726        if self.hasContent_():1727            self.exportLiteralChildren(outfile, level, name_)1728    def exportLiteralAttributes(self, outfile, level, name_):1729        if self.kind is not None:1730            showIndent(outfile, level)1731            outfile.write('kind = "%s",\n' % (self.kind,))1732    def exportLiteralChildren(self, outfile, level, name_):1733        showIndent(outfile, level)1734        outfile.write('header=%s,\n' % quote_python(1735            self.header).encode(ExternalEncoding))1736        if self.description:1737            showIndent(outfile, level)1738            outfile.write('description=model_.descriptionType(\n')1739            self.description.exportLiteral(outfile, level, name_='description')1740            showIndent(outfile, level)1741            outfile.write('),\n')1742        showIndent(outfile, level)1743        outfile.write('memberdef=[\n')1744        level += 11745        for memberdef in self.memberdef:1746            showIndent(outfile, level)1747            outfile.write('model_.memberdef(\n')1748            memberdef.exportLiteral(outfile, level, name_='memberdef')1749            showIndent(outfile, level)1750            outfile.write('),\n')1751        level -= 11752        showIndent(outfile, level)1753        outfile.write('],\n')1754    def build(self, node_):1755        attrs = node_.attributes1756        self.buildAttributes(attrs)1757        for child_ in node_.childNodes:1758            nodeName_ = child_.nodeName.split(':')[-1]1759            self.buildChildren(child_, nodeName_)1760    def buildAttributes(self, attrs):1761        if attrs.get('kind'):1762            self.kind = attrs.get('kind').value1763    def buildChildren(self, child_, nodeName_):1764        if child_.nodeType == Node.ELEMENT_NODE and \1765                nodeName_ == 'header':1766            header_ = ''1767            for text__content_ in child_.childNodes:1768                header_ += text__content_.nodeValue1769            self.header = header_1770        elif child_.nodeType == Node.ELEMENT_NODE and \1771                nodeName_ == 'description':1772            obj_ = descriptionType.factory()1773            obj_.build(child_)1774            self.set_description(obj_)1775        elif child_.nodeType == Node.ELEMENT_NODE and \1776                nodeName_ == 'memberdef':1777            obj_ = memberdefType.factory()1778            obj_.build(child_)1779            self.memberdef.append(obj_)1780# end class sectiondefType1781class memberdefType(GeneratedsSuper):1782    subclass = None1783    superclass = None1784    def __init__(self, initonly=None, kind=None, volatile=None, const=None, raisexx=None, virt=None, readable=None, prot=None, explicit=None, new=None, final=None, writable=None, add=None, static=None, remove=None, sealed=None, mutable=None, gettable=None, inline=None, settable=None, id=None, templateparamlist=None, type_=None, definition=None, argsstring=None, name=None, read=None, write=None, bitfield=None, reimplements=None, reimplementedby=None, param=None, enumvalue=None, initializer=None, exceptions=None, briefdescription=None, detaileddescription=None, inbodydescription=None, location=None, references=None, referencedby=None):1785        self.initonly = initonly1786        self.kind = kind1787        self.volatile = volatile1788        self.const = const1789        self.raisexx = raisexx1790        self.virt = virt1791        self.readable = readable1792        self.prot = prot1793        self.explicit = explicit1794        self.new = new1795        self.final = final1796        self.writable = writable1797        self.add = add1798        self.static = static1799        self.remove = remove1800        self.sealed = sealed1801        self.mutable = mutable1802        self.gettable = gettable1803        self.inline = inline1804        self.settable = settable1805        self.id = id1806        self.templateparamlist = templateparamlist1807        self.type_ = type_1808        self.definition = definition1809        self.argsstring = argsstring1810        self.name = name1811        self.read = read1812        self.write = write1813        self.bitfield = bitfield1814        if reimplements is None:1815            self.reimplements = []1816        else:1817            self.reimplements = reimplements1818        if reimplementedby is None:1819            self.reimplementedby = []1820        else:1821            self.reimplementedby = reimplementedby1822        if param is None:1823            self.param = []1824        else:1825            self.param = param1826        if enumvalue is None:1827            self.enumvalue = []1828        else:1829            self.enumvalue = enumvalue1830        self.initializer = initializer1831        self.exceptions = exceptions1832        self.briefdescription = briefdescription1833        self.detaileddescription = detaileddescription1834        self.inbodydescription = inbodydescription1835        self.location = location1836        if references is None:1837            self.references = []1838        else:1839            self.references = references1840        if referencedby is None:1841            self.referencedby = []1842        else:1843            self.referencedby = referencedby1844    def factory(*args_, **kwargs_):1845        if memberdefType.subclass:1846            return memberdefType.subclass(*args_, **kwargs_)1847        else:1848            return memberdefType(*args_, **kwargs_)1849    factory = staticmethod(factory)1850    def get_templateparamlist(self): return self.templateparamlist1851    def set_templateparamlist(1852        self, templateparamlist): self.templateparamlist = templateparamlist1853    def get_type(self): return self.type_1854    def set_type(self, type_): self.type_ = type_1855    def get_definition(self): return self.definition1856    def set_definition(self, definition): self.definition = definition1857    def get_argsstring(self): return self.argsstring1858    def set_argsstring(self, argsstring): self.argsstring = argsstring1859    def get_name(self): return self.name1860    def set_name(self, name): self.name = name1861    def get_read(self): return self.read1862    def set_read(self, read): self.read = read1863    def get_write(self): return self.write1864    def set_write(self, write): self.write = write1865    def get_bitfield(self): return self.bitfield1866    def set_bitfield(self, bitfield): self.bitfield = bitfield1867    def get_reimplements(self): return self.reimplements1868    def set_reimplements(self, reimplements): self.reimplements = reimplements1869    def add_reimplements(self, value): self.reimplements.append(value)1870    def insert_reimplements(1871        self, index, value): self.reimplements[index] = value1872    def get_reimplementedby(self): return self.reimplementedby1873    def set_reimplementedby(1874        self, reimplementedby): self.reimplementedby = reimplementedby1875    def add_reimplementedby(self, value): self.reimplementedby.append(value)1876    def insert_reimplementedby(1877        self, index, value): self.reimplementedby[index] = value1878    def get_param(self): return self.param1879    def set_param(self, param): self.param = param1880    def add_param(self, value): self.param.append(value)1881    def insert_param(self, index, value): self.param[index] = value1882    def get_enumvalue(self): return self.enumvalue1883    def set_enumvalue(self, enumvalue): self.enumvalue = enumvalue1884    def add_enumvalue(self, value): self.enumvalue.append(value)1885    def insert_enumvalue(self, index, value): self.enumvalue[index] = value1886    def get_initializer(self): return self.initializer1887    def set_initializer(self, initializer): self.initializer = initializer1888    def get_exceptions(self): return self.exceptions1889    def set_exceptions(self, exceptions): self.exceptions = exceptions1890    def get_briefdescription(self): return self.briefdescription1891    def set_briefdescription(1892        self, briefdescription): self.briefdescription = briefdescription1893    def get_detaileddescription(self): return self.detaileddescription1894    def set_detaileddescription(1895        self, detaileddescription): self.detaileddescription = detaileddescription1896    def get_inbodydescription(self): return self.inbodydescription1897    def set_inbodydescription(1898        self, inbodydescription): self.inbodydescription = inbodydescription1899    def get_location(self): return self.location1900    def set_location(self, location): self.location = location1901    def get_references(self): return self.references1902    def set_references(self, references): self.references = references1903    def add_references(self, value): self.references.append(value)1904    def insert_references(self, index, value): self.references[index] = value1905    def get_referencedby(self): return self.referencedby1906    def set_referencedby(self, referencedby): self.referencedby = referencedby1907    def add_referencedby(self, value): self.referencedby.append(value)1908    def insert_referencedby(1909        self, index, value): self.referencedby[index] = value1910    def get_initonly(self): return self.initonly1911    def set_initonly(self, initonly): self.initonly = initonly1912    def get_kind(self): return self.kind1913    def set_kind(self, kind): self.kind = kind1914    def get_volatile(self): return self.volatile1915    def set_volatile(self, volatile): self.volatile = volatile1916    def get_const(self): return self.const1917    def set_const(self, const): self.const = const1918    def get_raise(self): return self.raisexx1919    def set_raise(self, raisexx): self.raisexx = raisexx1920    def get_virt(self): return self.virt1921    def set_virt(self, virt): self.virt = virt1922    def get_readable(self): return self.readable1923    def set_readable(self, readable): self.readable = readable1924    def get_prot(self): return self.prot1925    def set_prot(self, prot): self.prot = prot1926    def get_explicit(self): return self.explicit1927    def set_explicit(self, explicit): self.explicit = explicit1928    def get_new(self): return self.new1929    def set_new(self, new): self.new = new1930    def get_final(self): return self.final1931    def set_final(self, final): self.final = final1932    def get_writable(self): return self.writable1933    def set_writable(self, writable): self.writable = writable1934    def get_add(self): return self.add1935    def set_add(self, add): self.add = add1936    def get_static(self): return self.static1937    def set_static(self, static): self.static = static1938    def get_remove(self): return self.remove1939    def set_remove(self, remove): self.remove = remove1940    def get_sealed(self): return self.sealed1941    def set_sealed(self, sealed): self.sealed = sealed1942    def get_mutable(self): return self.mutable1943    def set_mutable(self, mutable): self.mutable = mutable1944    def get_gettable(self): return self.gettable1945    def set_gettable(self, gettable): self.gettable = gettable1946    def get_inline(self): return self.inline1947    def set_inline(self, inline): self.inline = inline1948    def get_settable(self): return self.settable1949    def set_settable(self, settable): self.settable = settable1950    def get_id(self): return self.id1951    def set_id(self, id): self.id = id1952    def export(self, outfile, level, namespace_='', name_='memberdefType', namespacedef_=''):1953        showIndent(outfile, level)1954        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))1955        self.exportAttributes(outfile, level, namespace_,1956                              name_='memberdefType')1957        if self.hasContent_():1958            outfile.write('>\n')1959            self.exportChildren(outfile, level + 1, namespace_, name_)1960            showIndent(outfile, level)1961            outfile.write('</%s%s>\n' % (namespace_, name_))1962        else:1963            outfile.write(' />\n')1964    def exportAttributes(self, outfile, level, namespace_='', name_='memberdefType'):1965        if self.initonly is not None:1966            outfile.write(' initonly=%s' % (quote_attrib(self.initonly), ))1967        if self.kind is not None:1968            outfile.write(' kind=%s' % (quote_attrib(self.kind), ))1969        if self.volatile is not None:1970            outfile.write(' volatile=%s' % (quote_attrib(self.volatile), ))1971        if self.const is not None:1972            outfile.write(' const=%s' % (quote_attrib(self.const), ))1973        if self.raisexx is not None:1974            outfile.write(' raise=%s' % (quote_attrib(self.raisexx), ))1975        if self.virt is not None:1976            outfile.write(' virt=%s' % (quote_attrib(self.virt), ))1977        if self.readable is not None:1978            outfile.write(' readable=%s' % (quote_attrib(self.readable), ))1979        if self.prot is not None:1980            outfile.write(' prot=%s' % (quote_attrib(self.prot), ))1981        if self.explicit is not None:1982            outfile.write(' explicit=%s' % (quote_attrib(self.explicit), ))1983        if self.new is not None:1984            outfile.write(' new=%s' % (quote_attrib(self.new), ))1985        if self.final is not None:1986            outfile.write(' final=%s' % (quote_attrib(self.final), ))1987        if self.writable is not None:1988            outfile.write(' writable=%s' % (quote_attrib(self.writable), ))1989        if self.add is not None:1990            outfile.write(' add=%s' % (quote_attrib(self.add), ))1991        if self.static is not None:1992            outfile.write(' static=%s' % (quote_attrib(self.static), ))1993        if self.remove is not None:1994            outfile.write(' remove=%s' % (quote_attrib(self.remove), ))1995        if self.sealed is not None:1996            outfile.write(' sealed=%s' % (quote_attrib(self.sealed), ))1997        if self.mutable is not None:1998            outfile.write(' mutable=%s' % (quote_attrib(self.mutable), ))1999        if self.gettable is not None:2000            outfile.write(' gettable=%s' % (quote_attrib(self.gettable), ))2001        if self.inline is not None:2002            outfile.write(' inline=%s' % (quote_attrib(self.inline), ))2003        if self.settable is not None:2004            outfile.write(' settable=%s' % (quote_attrib(self.settable), ))2005        if self.id is not None:2006            outfile.write(' id=%s' % (self.format_string(quote_attrib(2007                self.id).encode(ExternalEncoding), input_name='id'), ))2008    def exportChildren(self, outfile, level, namespace_='', name_='memberdefType'):2009        if self.templateparamlist:2010            self.templateparamlist.export(2011                outfile, level, namespace_, name_='templateparamlist')2012        if self.type_:2013            self.type_.export(outfile, level, namespace_, name_='type')2014        if self.definition is not None:2015            showIndent(outfile, level)2016            outfile.write('<%sdefinition>%s</%sdefinition>\n' % (namespace_, self.format_string(2017                quote_xml(self.definition).encode(ExternalEncoding), input_name='definition'), namespace_))2018        if self.argsstring is not None:2019            showIndent(outfile, level)2020            outfile.write('<%sargsstring>%s</%sargsstring>\n' % (namespace_, self.format_string(2021                quote_xml(self.argsstring).encode(ExternalEncoding), input_name='argsstring'), namespace_))2022        if self.name is not None:2023            showIndent(outfile, level)2024            outfile.write('<%sname>%s</%sname>\n' % (namespace_, self.format_string(2025                quote_xml(self.name).encode(ExternalEncoding), input_name='name'), namespace_))2026        if self.read is not None:2027            showIndent(outfile, level)2028            outfile.write('<%sread>%s</%sread>\n' % (namespace_, self.format_string(2029                quote_xml(self.read).encode(ExternalEncoding), input_name='read'), namespace_))2030        if self.write is not None:2031            showIndent(outfile, level)2032            outfile.write('<%swrite>%s</%swrite>\n' % (namespace_, self.format_string(2033                quote_xml(self.write).encode(ExternalEncoding), input_name='write'), namespace_))2034        if self.bitfield is not None:2035            showIndent(outfile, level)2036            outfile.write('<%sbitfield>%s</%sbitfield>\n' % (namespace_, self.format_string(2037                quote_xml(self.bitfield).encode(ExternalEncoding), input_name='bitfield'), namespace_))2038        for reimplements_ in self.reimplements:2039            reimplements_.export(2040                outfile, level, namespace_, name_='reimplements')2041        for reimplementedby_ in self.reimplementedby:2042            reimplementedby_.export(2043                outfile, level, namespace_, name_='reimplementedby')2044        for param_ in self.param:2045            param_.export(outfile, level, namespace_, name_='param')2046        for enumvalue_ in self.enumvalue:2047            enumvalue_.export(outfile, level, namespace_, name_='enumvalue')2048        if self.initializer:2049            self.initializer.export(2050                outfile, level, namespace_, name_='initializer')2051        if self.exceptions:2052            self.exceptions.export(2053                outfile, level, namespace_, name_='exceptions')2054        if self.briefdescription:2055            self.briefdescription.export(2056                outfile, level, namespace_, name_='briefdescription')2057        if self.detaileddescription:2058            self.detaileddescription.export(2059                outfile, level, namespace_, name_='detaileddescription')2060        if self.inbodydescription:2061            self.inbodydescription.export(2062                outfile, level, namespace_, name_='inbodydescription')2063        if self.location:2064            self.location.export(2065                outfile, level, namespace_, name_='location', )2066        for references_ in self.references:2067            references_.export(outfile, level, namespace_, name_='references')2068        for referencedby_ in self.referencedby:2069            referencedby_.export(2070                outfile, level, namespace_, name_='referencedby')2071    def hasContent_(self):2072        if (2073            self.templateparamlist is not None or2074            self.type_ is not None or2075            self.definition is not None or2076            self.argsstring is not None or2077            self.name is not None or2078            self.read is not None or2079            self.write is not None or2080            self.bitfield is not None or2081            self.reimplements is not None or2082            self.reimplementedby is not None or2083            self.param is not None or2084            self.enumvalue is not None or2085            self.initializer is not None or2086            self.exceptions is not None or2087            self.briefdescription is not None or2088            self.detaileddescription is not None or2089            self.inbodydescription is not None or2090            self.location is not None or2091            self.references is not None or2092            self.referencedby is not None2093        ):2094            return True2095        else:2096            return False2097    def exportLiteral(self, outfile, level, name_='memberdefType'):2098        level += 12099        self.exportLiteralAttributes(outfile, level, name_)2100        if self.hasContent_():2101            self.exportLiteralChildren(outfile, level, name_)2102    def exportLiteralAttributes(self, outfile, level, name_):2103        if self.initonly is not None:2104            showIndent(outfile, level)2105            outfile.write('initonly = "%s",\n' % (self.initonly,))2106        if self.kind is not None:2107            showIndent(outfile, level)2108            outfile.write('kind = "%s",\n' % (self.kind,))2109        if self.volatile is not None:2110            showIndent(outfile, level)2111            outfile.write('volatile = "%s",\n' % (self.volatile,))2112        if self.const is not None:2113            showIndent(outfile, level)2114            outfile.write('const = "%s",\n' % (self.const,))2115        if self.raisexx is not None:2116            showIndent(outfile, level)2117            outfile.write('raisexx = "%s",\n' % (self.raisexx,))2118        if self.virt is not None:2119            showIndent(outfile, level)2120            outfile.write('virt = "%s",\n' % (self.virt,))2121        if self.readable is not None:2122            showIndent(outfile, level)2123            outfile.write('readable = "%s",\n' % (self.readable,))2124        if self.prot is not None:2125            showIndent(outfile, level)2126            outfile.write('prot = "%s",\n' % (self.prot,))2127        if self.explicit is not None:2128            showIndent(outfile, level)2129            outfile.write('explicit = "%s",\n' % (self.explicit,))2130        if self.new is not None:2131            showIndent(outfile, level)2132            outfile.write('new = "%s",\n' % (self.new,))2133        if self.final is not None:2134            showIndent(outfile, level)2135            outfile.write('final = "%s",\n' % (self.final,))2136        if self.writable is not None:2137            showIndent(outfile, level)2138            outfile.write('writable = "%s",\n' % (self.writable,))2139        if self.add is not None:2140            showIndent(outfile, level)2141            outfile.write('add = "%s",\n' % (self.add,))2142        if self.static is not None:2143            showIndent(outfile, level)2144            outfile.write('static = "%s",\n' % (self.static,))2145        if self.remove is not None:2146            showIndent(outfile, level)2147            outfile.write('remove = "%s",\n' % (self.remove,))2148        if self.sealed is not None:2149            showIndent(outfile, level)2150            outfile.write('sealed = "%s",\n' % (self.sealed,))2151        if self.mutable is not None:2152            showIndent(outfile, level)2153            outfile.write('mutable = "%s",\n' % (self.mutable,))2154        if self.gettable is not None:2155            showIndent(outfile, level)2156            outfile.write('gettable = "%s",\n' % (self.gettable,))2157        if self.inline is not None:2158            showIndent(outfile, level)2159            outfile.write('inline = "%s",\n' % (self.inline,))2160        if self.settable is not None:2161            showIndent(outfile, level)2162            outfile.write('settable = "%s",\n' % (self.settable,))2163        if self.id is not None:2164            showIndent(outfile, level)2165            outfile.write('id = %s,\n' % (self.id,))2166    def exportLiteralChildren(self, outfile, level, name_):2167        if self.templateparamlist:2168            showIndent(outfile, level)2169            outfile.write('templateparamlist=model_.templateparamlistType(\n')2170            self.templateparamlist.exportLiteral(2171                outfile, level, name_='templateparamlist')2172            showIndent(outfile, level)2173            outfile.write('),\n')2174        if self.type_:2175            showIndent(outfile, level)2176            outfile.write('type_=model_.linkedTextType(\n')2177            self.type_.exportLiteral(outfile, level, name_='type')2178            showIndent(outfile, level)2179            outfile.write('),\n')2180        showIndent(outfile, level)2181        outfile.write('definition=%s,\n' % quote_python(2182            self.definition).encode(ExternalEncoding))2183        showIndent(outfile, level)2184        outfile.write('argsstring=%s,\n' % quote_python(2185            self.argsstring).encode(ExternalEncoding))2186        showIndent(outfile, level)2187        outfile.write('name=%s,\n' % quote_python(2188            self.name).encode(ExternalEncoding))2189        showIndent(outfile, level)2190        outfile.write('read=%s,\n' % quote_python(2191            self.read).encode(ExternalEncoding))2192        showIndent(outfile, level)2193        outfile.write('write=%s,\n' % quote_python(2194            self.write).encode(ExternalEncoding))2195        showIndent(outfile, level)2196        outfile.write('bitfield=%s,\n' % quote_python(2197            self.bitfield).encode(ExternalEncoding))2198        showIndent(outfile, level)2199        outfile.write('reimplements=[\n')2200        level += 12201        for reimplements in self.reimplements:2202            showIndent(outfile, level)2203            outfile.write('model_.reimplements(\n')2204            reimplements.exportLiteral(outfile, level, name_='reimplements')2205            showIndent(outfile, level)2206            outfile.write('),\n')2207        level -= 12208        showIndent(outfile, level)2209        outfile.write('],\n')2210        showIndent(outfile, level)2211        outfile.write('reimplementedby=[\n')2212        level += 12213        for reimplementedby in self.reimplementedby:2214            showIndent(outfile, level)2215            outfile.write('model_.reimplementedby(\n')2216            reimplementedby.exportLiteral(2217                outfile, level, name_='reimplementedby')2218            showIndent(outfile, level)2219            outfile.write('),\n')2220        level -= 12221        showIndent(outfile, level)2222        outfile.write('],\n')2223        showIndent(outfile, level)2224        outfile.write('param=[\n')2225        level += 12226        for param in self.param:2227            showIndent(outfile, level)2228            outfile.write('model_.param(\n')2229            param.exportLiteral(outfile, level, name_='param')2230            showIndent(outfile, level)2231            outfile.write('),\n')2232        level -= 12233        showIndent(outfile, level)2234        outfile.write('],\n')2235        showIndent(outfile, level)2236        outfile.write('enumvalue=[\n')2237        level += 12238        for enumvalue in self.enumvalue:2239            showIndent(outfile, level)2240            outfile.write('model_.enumvalue(\n')2241            enumvalue.exportLiteral(outfile, level, name_='enumvalue')2242            showIndent(outfile, level)2243            outfile.write('),\n')2244        level -= 12245        showIndent(outfile, level)2246        outfile.write('],\n')2247        if self.initializer:2248            showIndent(outfile, level)2249            outfile.write('initializer=model_.linkedTextType(\n')2250            self.initializer.exportLiteral(outfile, level, name_='initializer')2251            showIndent(outfile, level)2252            outfile.write('),\n')2253        if self.exceptions:2254            showIndent(outfile, level)2255            outfile.write('exceptions=model_.linkedTextType(\n')2256            self.exceptions.exportLiteral(outfile, level, name_='exceptions')2257            showIndent(outfile, level)2258            outfile.write('),\n')2259        if self.briefdescription:2260            showIndent(outfile, level)2261            outfile.write('briefdescription=model_.descriptionType(\n')2262            self.briefdescription.exportLiteral(2263                outfile, level, name_='briefdescription')2264            showIndent(outfile, level)2265            outfile.write('),\n')2266        if self.detaileddescription:2267            showIndent(outfile, level)2268            outfile.write('detaileddescription=model_.descriptionType(\n')2269            self.detaileddescription.exportLiteral(2270                outfile, level, name_='detaileddescription')2271            showIndent(outfile, level)2272            outfile.write('),\n')2273        if self.inbodydescription:2274            showIndent(outfile, level)2275            outfile.write('inbodydescription=model_.descriptionType(\n')2276            self.inbodydescription.exportLiteral(2277                outfile, level, name_='inbodydescription')2278            showIndent(outfile, level)2279            outfile.write('),\n')2280        if self.location:2281            showIndent(outfile, level)2282            outfile.write('location=model_.locationType(\n')2283            self.location.exportLiteral(outfile, level, name_='location')2284            showIndent(outfile, level)2285            outfile.write('),\n')2286        showIndent(outfile, level)2287        outfile.write('references=[\n')2288        level += 12289        for references in self.references:2290            showIndent(outfile, level)2291            outfile.write('model_.references(\n')2292            references.exportLiteral(outfile, level, name_='references')2293            showIndent(outfile, level)2294            outfile.write('),\n')2295        level -= 12296        showIndent(outfile, level)2297        outfile.write('],\n')2298        showIndent(outfile, level)2299        outfile.write('referencedby=[\n')2300        level += 12301        for referencedby in self.referencedby:2302            showIndent(outfile, level)2303            outfile.write('model_.referencedby(\n')2304            referencedby.exportLiteral(outfile, level, name_='referencedby')2305            showIndent(outfile, level)2306            outfile.write('),\n')2307        level -= 12308        showIndent(outfile, level)2309        outfile.write('],\n')2310    def build(self, node_):2311        attrs = node_.attributes2312        self.buildAttributes(attrs)2313        for child_ in node_.childNodes:2314            nodeName_ = child_.nodeName.split(':')[-1]2315            self.buildChildren(child_, nodeName_)2316    def buildAttributes(self, attrs):2317        if attrs.get('initonly'):2318            self.initonly = attrs.get('initonly').value2319        if attrs.get('kind'):2320            self.kind = attrs.get('kind').value2321        if attrs.get('volatile'):2322            self.volatile = attrs.get('volatile').value2323        if attrs.get('const'):2324            self.const = attrs.get('const').value2325        if attrs.get('raise'):2326            self.raisexx = attrs.get('raise').value2327        if attrs.get('virt'):2328            self.virt = attrs.get('virt').value2329        if attrs.get('readable'):2330            self.readable = attrs.get('readable').value2331        if attrs.get('prot'):2332            self.prot = attrs.get('prot').value2333        if attrs.get('explicit'):2334            self.explicit = attrs.get('explicit').value2335        if attrs.get('new'):2336            self.new = attrs.get('new').value2337        if attrs.get('final'):2338            self.final = attrs.get('final').value2339        if attrs.get('writable'):2340            self.writable = attrs.get('writable').value2341        if attrs.get('add'):2342            self.add = attrs.get('add').value2343        if attrs.get('static'):2344            self.static = attrs.get('static').value2345        if attrs.get('remove'):2346            self.remove = attrs.get('remove').value2347        if attrs.get('sealed'):2348            self.sealed = attrs.get('sealed').value2349        if attrs.get('mutable'):2350            self.mutable = attrs.get('mutable').value2351        if attrs.get('gettable'):2352            self.gettable = attrs.get('gettable').value2353        if attrs.get('inline'):2354            self.inline = attrs.get('inline').value2355        if attrs.get('settable'):2356            self.settable = attrs.get('settable').value2357        if attrs.get('id'):2358            self.id = attrs.get('id').value2359    def buildChildren(self, child_, nodeName_):2360        if child_.nodeType == Node.ELEMENT_NODE and \2361                nodeName_ == 'templateparamlist':2362            obj_ = templateparamlistType.factory()2363            obj_.build(child_)2364            self.set_templateparamlist(obj_)2365        elif child_.nodeType == Node.ELEMENT_NODE and \2366                nodeName_ == 'type':2367            obj_ = linkedTextType.factory()2368            obj_.build(child_)2369            self.set_type(obj_)2370        elif child_.nodeType == Node.ELEMENT_NODE and \2371                nodeName_ == 'definition':2372            definition_ = ''2373            for text__content_ in child_.childNodes:2374                definition_ += text__content_.nodeValue2375            self.definition = definition_2376        elif child_.nodeType == Node.ELEMENT_NODE and \2377                nodeName_ == 'argsstring':2378            argsstring_ = ''2379            for text__content_ in child_.childNodes:2380                argsstring_ += text__content_.nodeValue2381            self.argsstring = argsstring_2382        elif child_.nodeType == Node.ELEMENT_NODE and \2383                nodeName_ == 'name':2384            name_ = ''2385            for text__content_ in child_.childNodes:2386                name_ += text__content_.nodeValue2387            self.name = name_2388        elif child_.nodeType == Node.ELEMENT_NODE and \2389                nodeName_ == 'read':2390            read_ = ''2391            for text__content_ in child_.childNodes:2392                read_ += text__content_.nodeValue2393            self.read = read_2394        elif child_.nodeType == Node.ELEMENT_NODE and \2395                nodeName_ == 'write':2396            write_ = ''2397            for text__content_ in child_.childNodes:2398                write_ += text__content_.nodeValue2399            self.write = write_2400        elif child_.nodeType == Node.ELEMENT_NODE and \2401                nodeName_ == 'bitfield':2402            bitfield_ = ''2403            for text__content_ in child_.childNodes:2404                bitfield_ += text__content_.nodeValue2405            self.bitfield = bitfield_2406        elif child_.nodeType == Node.ELEMENT_NODE and \2407                nodeName_ == 'reimplements':2408            obj_ = reimplementType.factory()2409            obj_.build(child_)2410            self.reimplements.append(obj_)2411        elif child_.nodeType == Node.ELEMENT_NODE and \2412                nodeName_ == 'reimplementedby':2413            obj_ = reimplementType.factory()2414            obj_.build(child_)2415            self.reimplementedby.append(obj_)2416        elif child_.nodeType == Node.ELEMENT_NODE and \2417                nodeName_ == 'param':2418            obj_ = paramType.factory()2419            obj_.build(child_)2420            self.param.append(obj_)2421        elif child_.nodeType == Node.ELEMENT_NODE and \2422                nodeName_ == 'enumvalue':2423            obj_ = enumvalueType.factory()2424            obj_.build(child_)2425            self.enumvalue.append(obj_)2426        elif child_.nodeType == Node.ELEMENT_NODE and \2427                nodeName_ == 'initializer':2428            obj_ = linkedTextType.factory()2429            obj_.build(child_)2430            self.set_initializer(obj_)2431        elif child_.nodeType == Node.ELEMENT_NODE and \2432                nodeName_ == 'exceptions':2433            obj_ = linkedTextType.factory()2434            obj_.build(child_)2435            self.set_exceptions(obj_)2436        elif child_.nodeType == Node.ELEMENT_NODE and \2437                nodeName_ == 'briefdescription':2438            obj_ = descriptionType.factory()2439            obj_.build(child_)2440            self.set_briefdescription(obj_)2441        elif child_.nodeType == Node.ELEMENT_NODE and \2442                nodeName_ == 'detaileddescription':2443            obj_ = descriptionType.factory()2444            obj_.build(child_)2445            self.set_detaileddescription(obj_)2446        elif child_.nodeType == Node.ELEMENT_NODE and \2447                nodeName_ == 'inbodydescription':2448            obj_ = descriptionType.factory()2449            obj_.build(child_)2450            self.set_inbodydescription(obj_)2451        elif child_.nodeType == Node.ELEMENT_NODE and \2452                nodeName_ == 'location':2453            obj_ = locationType.factory()2454            obj_.build(child_)2455            self.set_location(obj_)2456        elif child_.nodeType == Node.ELEMENT_NODE and \2457                nodeName_ == 'references':2458            obj_ = referenceType.factory()2459            obj_.build(child_)2460            self.references.append(obj_)2461        elif child_.nodeType == Node.ELEMENT_NODE and \2462                nodeName_ == 'referencedby':2463            obj_ = referenceType.factory()2464            obj_.build(child_)2465            self.referencedby.append(obj_)2466# end class memberdefType2467class definition(GeneratedsSuper):2468    subclass = None2469    superclass = None2470    def __init__(self, valueOf_=''):2471        self.valueOf_ = valueOf_2472    def factory(*args_, **kwargs_):2473        if definition.subclass:2474            return definition.subclass(*args_, **kwargs_)2475        else:2476            return definition(*args_, **kwargs_)2477    factory = staticmethod(factory)2478    def getValueOf_(self): return self.valueOf_2479    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_2480    def export(self, outfile, level, namespace_='', name_='definition', namespacedef_=''):2481        showIndent(outfile, level)2482        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))2483        self.exportAttributes(outfile, level, namespace_, name_='definition')2484        if self.hasContent_():2485            outfile.write('>\n')2486            self.exportChildren(outfile, level + 1, namespace_, name_)2487            showIndent(outfile, level)2488            outfile.write('</%s%s>\n' % (namespace_, name_))2489        else:2490            outfile.write(' />\n')2491    def exportAttributes(self, outfile, level, namespace_='', name_='definition'):2492        pass2493    def exportChildren(self, outfile, level, namespace_='', name_='definition'):2494        if self.valueOf_.find('![CDATA') > -1:2495            value = quote_xml('%s' % self.valueOf_)2496            value = value.replace('![CDATA', '<![CDATA')2497            value = value.replace(']]', ']]>')2498            outfile.write(value)2499        else:2500            outfile.write(quote_xml('%s' % self.valueOf_))2501    def hasContent_(self):2502        if (2503            self.valueOf_ is not None2504        ):2505            return True2506        else:2507            return False2508    def exportLiteral(self, outfile, level, name_='definition'):2509        level += 12510        self.exportLiteralAttributes(outfile, level, name_)2511        if self.hasContent_():2512            self.exportLiteralChildren(outfile, level, name_)2513    def exportLiteralAttributes(self, outfile, level, name_):2514        pass2515    def exportLiteralChildren(self, outfile, level, name_):2516        showIndent(outfile, level)2517        outfile.write('valueOf_ = "%s",\n' % (self.valueOf_,))2518    def build(self, node_):2519        attrs = node_.attributes2520        self.buildAttributes(attrs)2521        self.valueOf_ = ''2522        for child_ in node_.childNodes:2523            nodeName_ = child_.nodeName.split(':')[-1]2524            self.buildChildren(child_, nodeName_)2525    def buildAttributes(self, attrs):2526        pass2527    def buildChildren(self, child_, nodeName_):2528        if child_.nodeType == Node.TEXT_NODE:2529            self.valueOf_ += child_.nodeValue2530        elif child_.nodeType == Node.CDATA_SECTION_NODE:2531            self.valueOf_ += '![CDATA[' + child_.nodeValue + ']]'2532# end class definition2533class argsstring(GeneratedsSuper):2534    subclass = None2535    superclass = None2536    def __init__(self, valueOf_=''):2537        self.valueOf_ = valueOf_2538    def factory(*args_, **kwargs_):2539        if argsstring.subclass:2540            return argsstring.subclass(*args_, **kwargs_)2541        else:2542            return argsstring(*args_, **kwargs_)2543    factory = staticmethod(factory)2544    def getValueOf_(self): return self.valueOf_2545    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_2546    def export(self, outfile, level, namespace_='', name_='argsstring', namespacedef_=''):2547        showIndent(outfile, level)2548        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))2549        self.exportAttributes(outfile, level, namespace_, name_='argsstring')2550        if self.hasContent_():2551            outfile.write('>\n')2552            self.exportChildren(outfile, level + 1, namespace_, name_)2553            showIndent(outfile, level)2554            outfile.write('</%s%s>\n' % (namespace_, name_))2555        else:2556            outfile.write(' />\n')2557    def exportAttributes(self, outfile, level, namespace_='', name_='argsstring'):2558        pass2559    def exportChildren(self, outfile, level, namespace_='', name_='argsstring'):2560        if self.valueOf_.find('![CDATA') > -1:2561            value = quote_xml('%s' % self.valueOf_)2562            value = value.replace('![CDATA', '<![CDATA')2563            value = value.replace(']]', ']]>')2564            outfile.write(value)2565        else:2566            outfile.write(quote_xml('%s' % self.valueOf_))2567    def hasContent_(self):2568        if (2569            self.valueOf_ is not None2570        ):2571            return True2572        else:2573            return False2574    def exportLiteral(self, outfile, level, name_='argsstring'):2575        level += 12576        self.exportLiteralAttributes(outfile, level, name_)2577        if self.hasContent_():2578            self.exportLiteralChildren(outfile, level, name_)2579    def exportLiteralAttributes(self, outfile, level, name_):2580        pass2581    def exportLiteralChildren(self, outfile, level, name_):2582        showIndent(outfile, level)2583        outfile.write('valueOf_ = "%s",\n' % (self.valueOf_,))2584    def build(self, node_):2585        attrs = node_.attributes2586        self.buildAttributes(attrs)2587        self.valueOf_ = ''2588        for child_ in node_.childNodes:2589            nodeName_ = child_.nodeName.split(':')[-1]2590            self.buildChildren(child_, nodeName_)2591    def buildAttributes(self, attrs):2592        pass2593    def buildChildren(self, child_, nodeName_):2594        if child_.nodeType == Node.TEXT_NODE:2595            self.valueOf_ += child_.nodeValue2596        elif child_.nodeType == Node.CDATA_SECTION_NODE:2597            self.valueOf_ += '![CDATA[' + child_.nodeValue + ']]'2598# end class argsstring2599class read(GeneratedsSuper):2600    subclass = None2601    superclass = None2602    def __init__(self, valueOf_=''):2603        self.valueOf_ = valueOf_2604    def factory(*args_, **kwargs_):2605        if read.subclass:2606            return read.subclass(*args_, **kwargs_)2607        else:2608            return read(*args_, **kwargs_)2609    factory = staticmethod(factory)2610    def getValueOf_(self): return self.valueOf_2611    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_2612    def export(self, outfile, level, namespace_='', name_='read', namespacedef_=''):2613        showIndent(outfile, level)2614        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))2615        self.exportAttributes(outfile, level, namespace_, name_='read')2616        if self.hasContent_():2617            outfile.write('>\n')2618            self.exportChildren(outfile, level + 1, namespace_, name_)2619            showIndent(outfile, level)2620            outfile.write('</%s%s>\n' % (namespace_, name_))2621        else:2622            outfile.write(' />\n')2623    def exportAttributes(self, outfile, level, namespace_='', name_='read'):2624        pass2625    def exportChildren(self, outfile, level, namespace_='', name_='read'):2626        if self.valueOf_.find('![CDATA') > -1:2627            value = quote_xml('%s' % self.valueOf_)2628            value = value.replace('![CDATA', '<![CDATA')2629            value = value.replace(']]', ']]>')2630            outfile.write(value)2631        else:2632            outfile.write(quote_xml('%s' % self.valueOf_))2633    def hasContent_(self):2634        if (2635            self.valueOf_ is not None2636        ):2637            return True2638        else:2639            return False2640    def exportLiteral(self, outfile, level, name_='read'):2641        level += 12642        self.exportLiteralAttributes(outfile, level, name_)2643        if self.hasContent_():2644            self.exportLiteralChildren(outfile, level, name_)2645    def exportLiteralAttributes(self, outfile, level, name_):2646        pass2647    def exportLiteralChildren(self, outfile, level, name_):2648        showIndent(outfile, level)2649        outfile.write('valueOf_ = "%s",\n' % (self.valueOf_,))2650    def build(self, node_):2651        attrs = node_.attributes2652        self.buildAttributes(attrs)2653        self.valueOf_ = ''2654        for child_ in node_.childNodes:2655            nodeName_ = child_.nodeName.split(':')[-1]2656            self.buildChildren(child_, nodeName_)2657    def buildAttributes(self, attrs):2658        pass2659    def buildChildren(self, child_, nodeName_):2660        if child_.nodeType == Node.TEXT_NODE:2661            self.valueOf_ += child_.nodeValue2662        elif child_.nodeType == Node.CDATA_SECTION_NODE:2663            self.valueOf_ += '![CDATA[' + child_.nodeValue + ']]'2664# end class read2665class write(GeneratedsSuper):2666    subclass = None2667    superclass = None2668    def __init__(self, valueOf_=''):2669        self.valueOf_ = valueOf_2670    def factory(*args_, **kwargs_):2671        if write.subclass:2672            return write.subclass(*args_, **kwargs_)2673        else:2674            return write(*args_, **kwargs_)2675    factory = staticmethod(factory)2676    def getValueOf_(self): return self.valueOf_2677    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_2678    def export(self, outfile, level, namespace_='', name_='write', namespacedef_=''):2679        showIndent(outfile, level)2680        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))2681        self.exportAttributes(outfile, level, namespace_, name_='write')2682        if self.hasContent_():2683            outfile.write('>\n')2684            self.exportChildren(outfile, level + 1, namespace_, name_)2685            showIndent(outfile, level)2686            outfile.write('</%s%s>\n' % (namespace_, name_))2687        else:2688            outfile.write(' />\n')2689    def exportAttributes(self, outfile, level, namespace_='', name_='write'):2690        pass2691    def exportChildren(self, outfile, level, namespace_='', name_='write'):2692        if self.valueOf_.find('![CDATA') > -1:2693            value = quote_xml('%s' % self.valueOf_)2694            value = value.replace('![CDATA', '<![CDATA')2695            value = value.replace(']]', ']]>')2696            outfile.write(value)2697        else:2698            outfile.write(quote_xml('%s' % self.valueOf_))2699    def hasContent_(self):2700        if (2701            self.valueOf_ is not None2702        ):2703            return True2704        else:2705            return False2706    def exportLiteral(self, outfile, level, name_='write'):2707        level += 12708        self.exportLiteralAttributes(outfile, level, name_)2709        if self.hasContent_():2710            self.exportLiteralChildren(outfile, level, name_)2711    def exportLiteralAttributes(self, outfile, level, name_):2712        pass2713    def exportLiteralChildren(self, outfile, level, name_):2714        showIndent(outfile, level)2715        outfile.write('valueOf_ = "%s",\n' % (self.valueOf_,))2716    def build(self, node_):2717        attrs = node_.attributes2718        self.buildAttributes(attrs)2719        self.valueOf_ = ''2720        for child_ in node_.childNodes:2721            nodeName_ = child_.nodeName.split(':')[-1]2722            self.buildChildren(child_, nodeName_)2723    def buildAttributes(self, attrs):2724        pass2725    def buildChildren(self, child_, nodeName_):2726        if child_.nodeType == Node.TEXT_NODE:2727            self.valueOf_ += child_.nodeValue2728        elif child_.nodeType == Node.CDATA_SECTION_NODE:2729            self.valueOf_ += '![CDATA[' + child_.nodeValue + ']]'2730# end class write2731class bitfield(GeneratedsSuper):2732    subclass = None2733    superclass = None2734    def __init__(self, valueOf_=''):2735        self.valueOf_ = valueOf_2736    def factory(*args_, **kwargs_):2737        if bitfield.subclass:2738            return bitfield.subclass(*args_, **kwargs_)2739        else:2740            return bitfield(*args_, **kwargs_)2741    factory = staticmethod(factory)2742    def getValueOf_(self): return self.valueOf_2743    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_2744    def export(self, outfile, level, namespace_='', name_='bitfield', namespacedef_=''):2745        showIndent(outfile, level)2746        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))2747        self.exportAttributes(outfile, level, namespace_, name_='bitfield')2748        if self.hasContent_():2749            outfile.write('>\n')2750            self.exportChildren(outfile, level + 1, namespace_, name_)2751            showIndent(outfile, level)2752            outfile.write('</%s%s>\n' % (namespace_, name_))2753        else:2754            outfile.write(' />\n')2755    def exportAttributes(self, outfile, level, namespace_='', name_='bitfield'):2756        pass2757    def exportChildren(self, outfile, level, namespace_='', name_='bitfield'):2758        if self.valueOf_.find('![CDATA') > -1:2759            value = quote_xml('%s' % self.valueOf_)2760            value = value.replace('![CDATA', '<![CDATA')2761            value = value.replace(']]', ']]>')2762            outfile.write(value)2763        else:2764            outfile.write(quote_xml('%s' % self.valueOf_))2765    def hasContent_(self):2766        if (2767            self.valueOf_ is not None2768        ):2769            return True2770        else:2771            return False2772    def exportLiteral(self, outfile, level, name_='bitfield'):2773        level += 12774        self.exportLiteralAttributes(outfile, level, name_)2775        if self.hasContent_():2776            self.exportLiteralChildren(outfile, level, name_)2777    def exportLiteralAttributes(self, outfile, level, name_):2778        pass2779    def exportLiteralChildren(self, outfile, level, name_):2780        showIndent(outfile, level)2781        outfile.write('valueOf_ = "%s",\n' % (self.valueOf_,))2782    def build(self, node_):2783        attrs = node_.attributes2784        self.buildAttributes(attrs)2785        self.valueOf_ = ''2786        for child_ in node_.childNodes:2787            nodeName_ = child_.nodeName.split(':')[-1]2788            self.buildChildren(child_, nodeName_)2789    def buildAttributes(self, attrs):2790        pass2791    def buildChildren(self, child_, nodeName_):2792        if child_.nodeType == Node.TEXT_NODE:2793            self.valueOf_ += child_.nodeValue2794        elif child_.nodeType == Node.CDATA_SECTION_NODE:2795            self.valueOf_ += '![CDATA[' + child_.nodeValue + ']]'2796# end class bitfield2797class descriptionType(GeneratedsSuper):2798    subclass = None2799    superclass = None2800    def __init__(self, title=None, para=None, sect1=None, internal=None, mixedclass_=None, content_=None):2801        if mixedclass_ is None:2802            self.mixedclass_ = MixedContainer2803        else:2804            self.mixedclass_ = mixedclass_2805        if content_ is None:2806            self.content_ = []2807        else:2808            self.content_ = content_2809    def factory(*args_, **kwargs_):2810        if descriptionType.subclass:2811            return descriptionType.subclass(*args_, **kwargs_)2812        else:2813            return descriptionType(*args_, **kwargs_)2814    factory = staticmethod(factory)2815    def get_title(self): return self.title2816    def set_title(self, title): self.title = title2817    def get_para(self): return self.para2818    def set_para(self, para): self.para = para2819    def add_para(self, value): self.para.append(value)2820    def insert_para(self, index, value): self.para[index] = value2821    def get_sect1(self): return self.sect12822    def set_sect1(self, sect1): self.sect1 = sect12823    def add_sect1(self, value): self.sect1.append(value)2824    def insert_sect1(self, index, value): self.sect1[index] = value2825    def get_internal(self): return self.internal2826    def set_internal(self, internal): self.internal = internal2827    def export(self, outfile, level, namespace_='', name_='descriptionType', namespacedef_=''):2828        showIndent(outfile, level)2829        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))2830        self.exportAttributes(outfile, level, namespace_,2831                              name_='descriptionType')2832        outfile.write('>')2833        self.exportChildren(outfile, level + 1, namespace_, name_)2834        outfile.write('</%s%s>\n' % (namespace_, name_))2835    def exportAttributes(self, outfile, level, namespace_='', name_='descriptionType'):2836        pass2837    def exportChildren(self, outfile, level, namespace_='', name_='descriptionType'):2838        for item_ in self.content_:2839            item_.export(outfile, level, item_.name, namespace_)2840    def hasContent_(self):2841        if (2842            self.title is not None or2843            self.para is not None or2844            self.sect1 is not None or2845            self.internal is not None2846        ):2847            return True2848        else:2849            return False2850    def exportLiteral(self, outfile, level, name_='descriptionType'):2851        level += 12852        self.exportLiteralAttributes(outfile, level, name_)2853        if self.hasContent_():2854            self.exportLiteralChildren(outfile, level, name_)2855    def exportLiteralAttributes(self, outfile, level, name_):2856        pass2857    def exportLiteralChildren(self, outfile, level, name_):2858        showIndent(outfile, level)2859        outfile.write('content_ = [\n')2860        for item_ in self.content_:2861            item_.exportLiteral(outfile, level, name_)2862        showIndent(outfile, level)2863        outfile.write('],\n')2864        showIndent(outfile, level)2865        outfile.write('content_ = [\n')2866        for item_ in self.content_:2867            item_.exportLiteral(outfile, level, name_)2868        showIndent(outfile, level)2869        outfile.write('],\n')2870        showIndent(outfile, level)2871        outfile.write('content_ = [\n')2872        for item_ in self.content_:2873            item_.exportLiteral(outfile, level, name_)2874        showIndent(outfile, level)2875        outfile.write('],\n')2876        showIndent(outfile, level)2877        outfile.write('content_ = [\n')2878        for item_ in self.content_:2879            item_.exportLiteral(outfile, level, name_)2880        showIndent(outfile, level)2881        outfile.write('],\n')2882    def build(self, node_):2883        attrs = node_.attributes2884        self.buildAttributes(attrs)2885        for child_ in node_.childNodes:2886            nodeName_ = child_.nodeName.split(':')[-1]2887            self.buildChildren(child_, nodeName_)2888    def buildAttributes(self, attrs):2889        pass2890    def buildChildren(self, child_, nodeName_):2891        if child_.nodeType == Node.ELEMENT_NODE and \2892                nodeName_ == 'title':2893            childobj_ = docTitleType.factory()2894            childobj_.build(child_)2895            obj_ = self.mixedclass_(MixedContainer.CategoryComplex,2896                                    MixedContainer.TypeNone, 'title', childobj_)2897            self.content_.append(obj_)2898        elif child_.nodeType == Node.ELEMENT_NODE and \2899                nodeName_ == 'para':2900            childobj_ = docParaType.factory()2901            childobj_.build(child_)2902            obj_ = self.mixedclass_(MixedContainer.CategoryComplex,2903                                    MixedContainer.TypeNone, 'para', childobj_)2904            self.content_.append(obj_)2905        elif child_.nodeType == Node.ELEMENT_NODE and \2906                nodeName_ == 'sect1':2907            childobj_ = docSect1Type.factory()2908            childobj_.build(child_)2909            obj_ = self.mixedclass_(MixedContainer.CategoryComplex,2910                                    MixedContainer.TypeNone, 'sect1', childobj_)2911            self.content_.append(obj_)2912        elif child_.nodeType == Node.ELEMENT_NODE and \2913                nodeName_ == 'internal':2914            childobj_ = docInternalType.factory()2915            childobj_.build(child_)2916            obj_ = self.mixedclass_(MixedContainer.CategoryComplex,2917                                    MixedContainer.TypeNone, 'internal', childobj_)2918            self.content_.append(obj_)2919        elif child_.nodeType == Node.TEXT_NODE:2920            obj_ = self.mixedclass_(MixedContainer.CategoryText,2921                                    MixedContainer.TypeNone, '', child_.nodeValue)2922            self.content_.append(obj_)2923# end class descriptionType2924class enumvalueType(GeneratedsSuper):2925    subclass = None2926    superclass = None2927    def __init__(self, prot=None, id=None, name=None, initializer=None, briefdescription=None, detaileddescription=None, mixedclass_=None, content_=None):2928        self.prot = prot2929        self.id = id2930        if mixedclass_ is None:2931            self.mixedclass_ = MixedContainer2932        else:2933            self.mixedclass_ = mixedclass_2934        if content_ is None:2935            self.content_ = []2936        else:2937            self.content_ = content_2938    def factory(*args_, **kwargs_):2939        if enumvalueType.subclass:2940            return enumvalueType.subclass(*args_, **kwargs_)2941        else:2942            return enumvalueType(*args_, **kwargs_)2943    factory = staticmethod(factory)2944    def get_name(self): return self.name2945    def set_name(self, name): self.name = name2946    def get_initializer(self): return self.initializer2947    def set_initializer(self, initializer): self.initializer = initializer2948    def get_briefdescription(self): return self.briefdescription2949    def set_briefdescription(2950        self, briefdescription): self.briefdescription = briefdescription2951    def get_detaileddescription(self): return self.detaileddescription2952    def set_detaileddescription(2953        self, detaileddescription): self.detaileddescription = detaileddescription2954    def get_prot(self): return self.prot2955    def set_prot(self, prot): self.prot = prot2956    def get_id(self): return self.id2957    def set_id(self, id): self.id = id2958    def export(self, outfile, level, namespace_='', name_='enumvalueType', namespacedef_=''):2959        showIndent(outfile, level)2960        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))2961        self.exportAttributes(outfile, level, namespace_,2962                              name_='enumvalueType')2963        outfile.write('>')2964        self.exportChildren(outfile, level + 1, namespace_, name_)2965        outfile.write('</%s%s>\n' % (namespace_, name_))2966    def exportAttributes(self, outfile, level, namespace_='', name_='enumvalueType'):2967        if self.prot is not None:2968            outfile.write(' prot=%s' % (quote_attrib(self.prot), ))2969        if self.id is not None:2970            outfile.write(' id=%s' % (self.format_string(quote_attrib(2971                self.id).encode(ExternalEncoding), input_name='id'), ))2972    def exportChildren(self, outfile, level, namespace_='', name_='enumvalueType'):2973        for item_ in self.content_:2974            item_.export(outfile, level, item_.name, namespace_)2975    def hasContent_(self):2976        if (2977            self.name is not None or2978            self.initializer is not None or2979            self.briefdescription is not None or2980            self.detaileddescription is not None2981        ):2982            return True2983        else:2984            return False2985    def exportLiteral(self, outfile, level, name_='enumvalueType'):2986        level += 12987        self.exportLiteralAttributes(outfile, level, name_)2988        if self.hasContent_():2989            self.exportLiteralChildren(outfile, level, name_)2990    def exportLiteralAttributes(self, outfile, level, name_):2991        if self.prot is not None:2992            showIndent(outfile, level)2993            outfile.write('prot = "%s",\n' % (self.prot,))2994        if self.id is not None:2995            showIndent(outfile, level)2996            outfile.write('id = %s,\n' % (self.id,))2997    def exportLiteralChildren(self, outfile, level, name_):2998        showIndent(outfile, level)2999        outfile.write('content_ = [\n')3000        for item_ in self.content_:3001            item_.exportLiteral(outfile, level, name_)3002        showIndent(outfile, level)3003        outfile.write('],\n')3004        showIndent(outfile, level)3005        outfile.write('content_ = [\n')3006        for item_ in self.content_:3007            item_.exportLiteral(outfile, level, name_)3008        showIndent(outfile, level)3009        outfile.write('],\n')3010        showIndent(outfile, level)3011        outfile.write('content_ = [\n')3012        for item_ in self.content_:3013            item_.exportLiteral(outfile, level, name_)3014        showIndent(outfile, level)3015        outfile.write('],\n')3016        showIndent(outfile, level)3017        outfile.write('content_ = [\n')3018        for item_ in self.content_:3019            item_.exportLiteral(outfile, level, name_)3020        showIndent(outfile, level)3021        outfile.write('],\n')3022    def build(self, node_):3023        attrs = node_.attributes3024        self.buildAttributes(attrs)3025        for child_ in node_.childNodes:3026            nodeName_ = child_.nodeName.split(':')[-1]3027            self.buildChildren(child_, nodeName_)3028    def buildAttributes(self, attrs):3029        if attrs.get('prot'):3030            self.prot = attrs.get('prot').value3031        if attrs.get('id'):3032            self.id = attrs.get('id').value3033    def buildChildren(self, child_, nodeName_):3034        if child_.nodeType == Node.ELEMENT_NODE and \3035                nodeName_ == 'name':3036            value_ = []3037            for text_ in child_.childNodes:3038                value_.append(text_.nodeValue)3039            valuestr_ = ''.join(value_)3040            obj_ = self.mixedclass_(MixedContainer.CategorySimple,3041                                    MixedContainer.TypeString, 'name', valuestr_)3042            self.content_.append(obj_)3043        elif child_.nodeType == Node.ELEMENT_NODE and \3044                nodeName_ == 'initializer':3045            childobj_ = linkedTextType.factory()3046            childobj_.build(child_)3047            obj_ = self.mixedclass_(MixedContainer.CategoryComplex,3048                                    MixedContainer.TypeNone, 'initializer', childobj_)3049            self.content_.append(obj_)3050        elif child_.nodeType == Node.ELEMENT_NODE and \3051                nodeName_ == 'briefdescription':3052            childobj_ = descriptionType.factory()3053            childobj_.build(child_)3054            obj_ = self.mixedclass_(MixedContainer.CategoryComplex,3055                                    MixedContainer.TypeNone, 'briefdescription', childobj_)3056            self.content_.append(obj_)3057        elif child_.nodeType == Node.ELEMENT_NODE and \3058                nodeName_ == 'detaileddescription':3059            childobj_ = descriptionType.factory()3060            childobj_.build(child_)3061            obj_ = self.mixedclass_(MixedContainer.CategoryComplex,3062                                    MixedContainer.TypeNone, 'detaileddescription', childobj_)3063            self.content_.append(obj_)3064        elif child_.nodeType == Node.TEXT_NODE:3065            obj_ = self.mixedclass_(MixedContainer.CategoryText,3066                                    MixedContainer.TypeNone, '', child_.nodeValue)3067            self.content_.append(obj_)3068# end class enumvalueType3069class templateparamlistType(GeneratedsSuper):3070    subclass = None3071    superclass = None3072    def __init__(self, param=None):3073        if param is None:3074            self.param = []3075        else:3076            self.param = param3077    def factory(*args_, **kwargs_):3078        if templateparamlistType.subclass:3079            return templateparamlistType.subclass(*args_, **kwargs_)3080        else:3081            return templateparamlistType(*args_, **kwargs_)3082    factory = staticmethod(factory)3083    def get_param(self): return self.param3084    def set_param(self, param): self.param = param3085    def add_param(self, value): self.param.append(value)3086    def insert_param(self, index, value): self.param[index] = value3087    def export(self, outfile, level, namespace_='', name_='templateparamlistType', namespacedef_=''):3088        showIndent(outfile, level)3089        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))3090        self.exportAttributes(outfile, level, namespace_,3091                              name_='templateparamlistType')3092        if self.hasContent_():3093            outfile.write('>\n')3094            self.exportChildren(outfile, level + 1, namespace_, name_)3095            showIndent(outfile, level)3096            outfile.write('</%s%s>\n' % (namespace_, name_))3097        else:3098            outfile.write(' />\n')3099    def exportAttributes(self, outfile, level, namespace_='', name_='templateparamlistType'):3100        pass3101    def exportChildren(self, outfile, level, namespace_='', name_='templateparamlistType'):3102        for param_ in self.param:3103            param_.export(outfile, level, namespace_, name_='param')3104    def hasContent_(self):3105        if (3106            self.param is not None3107        ):3108            return True3109        else:3110            return False3111    def exportLiteral(self, outfile, level, name_='templateparamlistType'):3112        level += 13113        self.exportLiteralAttributes(outfile, level, name_)3114        if self.hasContent_():3115            self.exportLiteralChildren(outfile, level, name_)3116    def exportLiteralAttributes(self, outfile, level, name_):3117        pass3118    def exportLiteralChildren(self, outfile, level, name_):3119        showIndent(outfile, level)3120        outfile.write('param=[\n')3121        level += 13122        for param in self.param:3123            showIndent(outfile, level)3124            outfile.write('model_.param(\n')3125            param.exportLiteral(outfile, level, name_='param')3126            showIndent(outfile, level)3127            outfile.write('),\n')3128        level -= 13129        showIndent(outfile, level)3130        outfile.write('],\n')3131    def build(self, node_):3132        attrs = node_.attributes3133        self.buildAttributes(attrs)3134        for child_ in node_.childNodes:3135            nodeName_ = child_.nodeName.split(':')[-1]3136            self.buildChildren(child_, nodeName_)3137    def buildAttributes(self, attrs):3138        pass3139    def buildChildren(self, child_, nodeName_):3140        if child_.nodeType == Node.ELEMENT_NODE and \3141                nodeName_ == 'param':3142            obj_ = paramType.factory()3143            obj_.build(child_)3144            self.param.append(obj_)3145# end class templateparamlistType3146class paramType(GeneratedsSuper):3147    subclass = None3148    superclass = None3149    def __init__(self, type_=None, declname=None, defname=None, array=None, defval=None, briefdescription=None):3150        self.type_ = type_3151        self.declname = declname3152        self.defname = defname3153        self.array = array3154        self.defval = defval3155        self.briefdescription = briefdescription3156    def factory(*args_, **kwargs_):3157        if paramType.subclass:3158            return paramType.subclass(*args_, **kwargs_)3159        else:3160            return paramType(*args_, **kwargs_)3161    factory = staticmethod(factory)3162    def get_type(self): return self.type_3163    def set_type(self, type_): self.type_ = type_3164    def get_declname(self): return self.declname3165    def set_declname(self, declname): self.declname = declname3166    def get_defname(self): return self.defname3167    def set_defname(self, defname): self.defname = defname3168    def get_array(self): return self.array3169    def set_array(self, array): self.array = array3170    def get_defval(self): return self.defval3171    def set_defval(self, defval): self.defval = defval3172    def get_briefdescription(self): return self.briefdescription3173    def set_briefdescription(3174        self, briefdescription): self.briefdescription = briefdescription3175    def export(self, outfile, level, namespace_='', name_='paramType', namespacedef_=''):3176        showIndent(outfile, level)3177        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))3178        self.exportAttributes(outfile, level, namespace_, name_='paramType')3179        if self.hasContent_():3180            outfile.write('>\n')3181            self.exportChildren(outfile, level + 1, namespace_, name_)3182            showIndent(outfile, level)3183            outfile.write('</%s%s>\n' % (namespace_, name_))3184        else:3185            outfile.write(' />\n')3186    def exportAttributes(self, outfile, level, namespace_='', name_='paramType'):3187        pass3188    def exportChildren(self, outfile, level, namespace_='', name_='paramType'):3189        if self.type_:3190            self.type_.export(outfile, level, namespace_, name_='type')3191        if self.declname is not None:3192            showIndent(outfile, level)3193            outfile.write('<%sdeclname>%s</%sdeclname>\n' % (namespace_, self.format_string(3194                quote_xml(self.declname).encode(ExternalEncoding), input_name='declname'), namespace_))3195        if self.defname is not None:3196            showIndent(outfile, level)3197            outfile.write('<%sdefname>%s</%sdefname>\n' % (namespace_, self.format_string(3198                quote_xml(self.defname).encode(ExternalEncoding), input_name='defname'), namespace_))3199        if self.array is not None:3200            showIndent(outfile, level)3201            outfile.write('<%sarray>%s</%sarray>\n' % (namespace_, self.format_string(3202                quote_xml(self.array).encode(ExternalEncoding), input_name='array'), namespace_))3203        if self.defval:3204            self.defval.export(outfile, level, namespace_, name_='defval')3205        if self.briefdescription:3206            self.briefdescription.export(3207                outfile, level, namespace_, name_='briefdescription')3208    def hasContent_(self):3209        if (3210            self.type_ is not None or3211            self.declname is not None or3212            self.defname is not None or3213            self.array is not None or3214            self.defval is not None or3215            self.briefdescription is not None3216        ):3217            return True3218        else:3219            return False3220    def exportLiteral(self, outfile, level, name_='paramType'):3221        level += 13222        self.exportLiteralAttributes(outfile, level, name_)3223        if self.hasContent_():3224            self.exportLiteralChildren(outfile, level, name_)3225    def exportLiteralAttributes(self, outfile, level, name_):3226        pass3227    def exportLiteralChildren(self, outfile, level, name_):3228        if self.type_:3229            showIndent(outfile, level)3230            outfile.write('type_=model_.linkedTextType(\n')3231            self.type_.exportLiteral(outfile, level, name_='type')3232            showIndent(outfile, level)3233            outfile.write('),\n')3234        showIndent(outfile, level)3235        outfile.write('declname=%s,\n' % quote_python(3236            self.declname).encode(ExternalEncoding))3237        showIndent(outfile, level)3238        outfile.write('defname=%s,\n' % quote_python(3239            self.defname).encode(ExternalEncoding))3240        showIndent(outfile, level)3241        outfile.write('array=%s,\n' % quote_python(3242            self.array).encode(ExternalEncoding))3243        if self.defval:3244            showIndent(outfile, level)3245            outfile.write('defval=model_.linkedTextType(\n')3246            self.defval.exportLiteral(outfile, level, name_='defval')3247            showIndent(outfile, level)3248            outfile.write('),\n')3249        if self.briefdescription:3250            showIndent(outfile, level)3251            outfile.write('briefdescription=model_.descriptionType(\n')3252            self.briefdescription.exportLiteral(3253                outfile, level, name_='briefdescription')3254            showIndent(outfile, level)3255            outfile.write('),\n')3256    def build(self, node_):3257        attrs = node_.attributes3258        self.buildAttributes(attrs)3259        for child_ in node_.childNodes:3260            nodeName_ = child_.nodeName.split(':')[-1]3261            self.buildChildren(child_, nodeName_)3262    def buildAttributes(self, attrs):3263        pass3264    def buildChildren(self, child_, nodeName_):3265        if child_.nodeType == Node.ELEMENT_NODE and \3266                nodeName_ == 'type':3267            obj_ = linkedTextType.factory()3268            obj_.build(child_)3269            self.set_type(obj_)3270        elif child_.nodeType == Node.ELEMENT_NODE and \3271                nodeName_ == 'declname':3272            declname_ = ''3273            for text__content_ in child_.childNodes:3274                declname_ += text__content_.nodeValue3275            self.declname = declname_3276        elif child_.nodeType == Node.ELEMENT_NODE and \3277                nodeName_ == 'defname':3278            defname_ = ''3279            for text__content_ in child_.childNodes:3280                defname_ += text__content_.nodeValue3281            self.defname = defname_3282        elif child_.nodeType == Node.ELEMENT_NODE and \3283                nodeName_ == 'array':3284            array_ = ''3285            for text__content_ in child_.childNodes:3286                array_ += text__content_.nodeValue3287            self.array = array_3288        elif child_.nodeType == Node.ELEMENT_NODE and \3289                nodeName_ == 'defval':3290            obj_ = linkedTextType.factory()3291            obj_.build(child_)3292            self.set_defval(obj_)3293        elif child_.nodeType == Node.ELEMENT_NODE and \3294                nodeName_ == 'briefdescription':3295            obj_ = descriptionType.factory()3296            obj_.build(child_)3297            self.set_briefdescription(obj_)3298# end class paramType3299class declname(GeneratedsSuper):3300    subclass = None3301    superclass = None3302    def __init__(self, valueOf_=''):3303        self.valueOf_ = valueOf_3304    def factory(*args_, **kwargs_):3305        if declname.subclass:3306            return declname.subclass(*args_, **kwargs_)3307        else:3308            return declname(*args_, **kwargs_)3309    factory = staticmethod(factory)3310    def getValueOf_(self): return self.valueOf_3311    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_3312    def export(self, outfile, level, namespace_='', name_='declname', namespacedef_=''):3313        showIndent(outfile, level)3314        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))3315        self.exportAttributes(outfile, level, namespace_, name_='declname')3316        if self.hasContent_():3317            outfile.write('>\n')3318            self.exportChildren(outfile, level + 1, namespace_, name_)3319            showIndent(outfile, level)3320            outfile.write('</%s%s>\n' % (namespace_, name_))3321        else:3322            outfile.write(' />\n')3323    def exportAttributes(self, outfile, level, namespace_='', name_='declname'):3324        pass3325    def exportChildren(self, outfile, level, namespace_='', name_='declname'):3326        if self.valueOf_.find('![CDATA') > -1:3327            value = quote_xml('%s' % self.valueOf_)3328            value = value.replace('![CDATA', '<![CDATA')3329            value = value.replace(']]', ']]>')3330            outfile.write(value)3331        else:3332            outfile.write(quote_xml('%s' % self.valueOf_))3333    def hasContent_(self):3334        if (3335            self.valueOf_ is not None3336        ):3337            return True3338        else:3339            return False3340    def exportLiteral(self, outfile, level, name_='declname'):3341        level += 13342        self.exportLiteralAttributes(outfile, level, name_)3343        if self.hasContent_():3344            self.exportLiteralChildren(outfile, level, name_)3345    def exportLiteralAttributes(self, outfile, level, name_):3346        pass3347    def exportLiteralChildren(self, outfile, level, name_):3348        showIndent(outfile, level)3349        outfile.write('valueOf_ = "%s",\n' % (self.valueOf_,))3350    def build(self, node_):3351        attrs = node_.attributes3352        self.buildAttributes(attrs)3353        self.valueOf_ = ''3354        for child_ in node_.childNodes:3355            nodeName_ = child_.nodeName.split(':')[-1]3356            self.buildChildren(child_, nodeName_)3357    def buildAttributes(self, attrs):3358        pass3359    def buildChildren(self, child_, nodeName_):3360        if child_.nodeType == Node.TEXT_NODE:3361            self.valueOf_ += child_.nodeValue3362        elif child_.nodeType == Node.CDATA_SECTION_NODE:3363            self.valueOf_ += '![CDATA[' + child_.nodeValue + ']]'3364# end class declname3365class defname(GeneratedsSuper):3366    subclass = None3367    superclass = None3368    def __init__(self, valueOf_=''):3369        self.valueOf_ = valueOf_3370    def factory(*args_, **kwargs_):3371        if defname.subclass:3372            return defname.subclass(*args_, **kwargs_)3373        else:3374            return defname(*args_, **kwargs_)3375    factory = staticmethod(factory)3376    def getValueOf_(self): return self.valueOf_3377    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_3378    def export(self, outfile, level, namespace_='', name_='defname', namespacedef_=''):3379        showIndent(outfile, level)3380        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))3381        self.exportAttributes(outfile, level, namespace_, name_='defname')3382        if self.hasContent_():3383            outfile.write('>\n')3384            self.exportChildren(outfile, level + 1, namespace_, name_)3385            showIndent(outfile, level)3386            outfile.write('</%s%s>\n' % (namespace_, name_))3387        else:3388            outfile.write(' />\n')3389    def exportAttributes(self, outfile, level, namespace_='', name_='defname'):3390        pass3391    def exportChildren(self, outfile, level, namespace_='', name_='defname'):3392        if self.valueOf_.find('![CDATA') > -1:3393            value = quote_xml('%s' % self.valueOf_)3394            value = value.replace('![CDATA', '<![CDATA')3395            value = value.replace(']]', ']]>')3396            outfile.write(value)3397        else:3398            outfile.write(quote_xml('%s' % self.valueOf_))3399    def hasContent_(self):3400        if (3401            self.valueOf_ is not None3402        ):3403            return True3404        else:3405            return False3406    def exportLiteral(self, outfile, level, name_='defname'):3407        level += 13408        self.exportLiteralAttributes(outfile, level, name_)3409        if self.hasContent_():3410            self.exportLiteralChildren(outfile, level, name_)3411    def exportLiteralAttributes(self, outfile, level, name_):3412        pass3413    def exportLiteralChildren(self, outfile, level, name_):3414        showIndent(outfile, level)3415        outfile.write('valueOf_ = "%s",\n' % (self.valueOf_,))3416    def build(self, node_):3417        attrs = node_.attributes3418        self.buildAttributes(attrs)3419        self.valueOf_ = ''3420        for child_ in node_.childNodes:3421            nodeName_ = child_.nodeName.split(':')[-1]3422            self.buildChildren(child_, nodeName_)3423    def buildAttributes(self, attrs):3424        pass3425    def buildChildren(self, child_, nodeName_):3426        if child_.nodeType == Node.TEXT_NODE:3427            self.valueOf_ += child_.nodeValue3428        elif child_.nodeType == Node.CDATA_SECTION_NODE:3429            self.valueOf_ += '![CDATA[' + child_.nodeValue + ']]'3430# end class defname3431class array(GeneratedsSuper):3432    subclass = None3433    superclass = None3434    def __init__(self, valueOf_=''):3435        self.valueOf_ = valueOf_3436    def factory(*args_, **kwargs_):3437        if array.subclass:3438            return array.subclass(*args_, **kwargs_)3439        else:3440            return array(*args_, **kwargs_)3441    factory = staticmethod(factory)3442    def getValueOf_(self): return self.valueOf_3443    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_3444    def export(self, outfile, level, namespace_='', name_='array', namespacedef_=''):3445        showIndent(outfile, level)3446        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))3447        self.exportAttributes(outfile, level, namespace_, name_='array')3448        if self.hasContent_():3449            outfile.write('>\n')3450            self.exportChildren(outfile, level + 1, namespace_, name_)3451            showIndent(outfile, level)3452            outfile.write('</%s%s>\n' % (namespace_, name_))3453        else:3454            outfile.write(' />\n')3455    def exportAttributes(self, outfile, level, namespace_='', name_='array'):3456        pass3457    def exportChildren(self, outfile, level, namespace_='', name_='array'):3458        if self.valueOf_.find('![CDATA') > -1:3459            value = quote_xml('%s' % self.valueOf_)3460            value = value.replace('![CDATA', '<![CDATA')3461            value = value.replace(']]', ']]>')3462            outfile.write(value)3463        else:3464            outfile.write(quote_xml('%s' % self.valueOf_))3465    def hasContent_(self):3466        if (3467            self.valueOf_ is not None3468        ):3469            return True3470        else:3471            return False3472    def exportLiteral(self, outfile, level, name_='array'):3473        level += 13474        self.exportLiteralAttributes(outfile, level, name_)3475        if self.hasContent_():3476            self.exportLiteralChildren(outfile, level, name_)3477    def exportLiteralAttributes(self, outfile, level, name_):3478        pass3479    def exportLiteralChildren(self, outfile, level, name_):3480        showIndent(outfile, level)3481        outfile.write('valueOf_ = "%s",\n' % (self.valueOf_,))3482    def build(self, node_):3483        attrs = node_.attributes3484        self.buildAttributes(attrs)3485        self.valueOf_ = ''3486        for child_ in node_.childNodes:3487            nodeName_ = child_.nodeName.split(':')[-1]3488            self.buildChildren(child_, nodeName_)3489    def buildAttributes(self, attrs):3490        pass3491    def buildChildren(self, child_, nodeName_):3492        if child_.nodeType == Node.TEXT_NODE:3493            self.valueOf_ += child_.nodeValue3494        elif child_.nodeType == Node.CDATA_SECTION_NODE:3495            self.valueOf_ += '![CDATA[' + child_.nodeValue + ']]'3496# end class array3497class linkedTextType(GeneratedsSuper):3498    subclass = None3499    superclass = None3500    def __init__(self, ref=None, mixedclass_=None, content_=None):3501        if mixedclass_ is None:3502            self.mixedclass_ = MixedContainer3503        else:3504            self.mixedclass_ = mixedclass_3505        if content_ is None:3506            self.content_ = []3507        else:3508            self.content_ = content_3509    def factory(*args_, **kwargs_):3510        if linkedTextType.subclass:3511            return linkedTextType.subclass(*args_, **kwargs_)3512        else:3513            return linkedTextType(*args_, **kwargs_)3514    factory = staticmethod(factory)3515    def get_ref(self): return self.ref3516    def set_ref(self, ref): self.ref = ref3517    def add_ref(self, value): self.ref.append(value)3518    def insert_ref(self, index, value): self.ref[index] = value3519    def export(self, outfile, level, namespace_='', name_='linkedTextType', namespacedef_=''):3520        showIndent(outfile, level)3521        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))3522        self.exportAttributes(outfile, level, namespace_,3523                              name_='linkedTextType')3524        outfile.write('>')3525        self.exportChildren(outfile, level + 1, namespace_, name_)3526        outfile.write('</%s%s>\n' % (namespace_, name_))3527    def exportAttributes(self, outfile, level, namespace_='', name_='linkedTextType'):3528        pass3529    def exportChildren(self, outfile, level, namespace_='', name_='linkedTextType'):3530        for item_ in self.content_:3531            item_.export(outfile, level, item_.name, namespace_)3532    def hasContent_(self):3533        if (3534            self.ref is not None3535        ):3536            return True3537        else:3538            return False3539    def exportLiteral(self, outfile, level, name_='linkedTextType'):3540        level += 13541        self.exportLiteralAttributes(outfile, level, name_)3542        if self.hasContent_():3543            self.exportLiteralChildren(outfile, level, name_)3544    def exportLiteralAttributes(self, outfile, level, name_):3545        pass3546    def exportLiteralChildren(self, outfile, level, name_):3547        showIndent(outfile, level)3548        outfile.write('content_ = [\n')3549        for item_ in self.content_:3550            item_.exportLiteral(outfile, level, name_)3551        showIndent(outfile, level)3552        outfile.write('],\n')3553    def build(self, node_):3554        attrs = node_.attributes3555        self.buildAttributes(attrs)3556        for child_ in node_.childNodes:3557            nodeName_ = child_.nodeName.split(':')[-1]3558            self.buildChildren(child_, nodeName_)3559    def buildAttributes(self, attrs):3560        pass3561    def buildChildren(self, child_, nodeName_):3562        if child_.nodeType == Node.ELEMENT_NODE and \3563                nodeName_ == 'ref':3564            childobj_ = docRefTextType.factory()3565            childobj_.build(child_)3566            obj_ = self.mixedclass_(MixedContainer.CategoryComplex,3567                                    MixedContainer.TypeNone, 'ref', childobj_)3568            self.content_.append(obj_)3569        elif child_.nodeType == Node.TEXT_NODE:3570            obj_ = self.mixedclass_(MixedContainer.CategoryText,3571                                    MixedContainer.TypeNone, '', child_.nodeValue)3572            self.content_.append(obj_)3573# end class linkedTextType3574class graphType(GeneratedsSuper):3575    subclass = None3576    superclass = None3577    def __init__(self, node=None):3578        if node is None:3579            self.node = []3580        else:3581            self.node = node3582    def factory(*args_, **kwargs_):3583        if graphType.subclass:3584            return graphType.subclass(*args_, **kwargs_)3585        else:3586            return graphType(*args_, **kwargs_)3587    factory = staticmethod(factory)3588    def get_node(self): return self.node3589    def set_node(self, node): self.node = node3590    def add_node(self, value): self.node.append(value)3591    def insert_node(self, index, value): self.node[index] = value3592    def export(self, outfile, level, namespace_='', name_='graphType', namespacedef_=''):3593        showIndent(outfile, level)3594        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))3595        self.exportAttributes(outfile, level, namespace_, name_='graphType')3596        if self.hasContent_():3597            outfile.write('>\n')3598            self.exportChildren(outfile, level + 1, namespace_, name_)3599            showIndent(outfile, level)3600            outfile.write('</%s%s>\n' % (namespace_, name_))3601        else:3602            outfile.write(' />\n')3603    def exportAttributes(self, outfile, level, namespace_='', name_='graphType'):3604        pass3605    def exportChildren(self, outfile, level, namespace_='', name_='graphType'):3606        for node_ in self.node:3607            node_.export(outfile, level, namespace_, name_='node')3608    def hasContent_(self):3609        if (3610            self.node is not None3611        ):3612            return True3613        else:3614            return False3615    def exportLiteral(self, outfile, level, name_='graphType'):3616        level += 13617        self.exportLiteralAttributes(outfile, level, name_)3618        if self.hasContent_():3619            self.exportLiteralChildren(outfile, level, name_)3620    def exportLiteralAttributes(self, outfile, level, name_):3621        pass3622    def exportLiteralChildren(self, outfile, level, name_):3623        showIndent(outfile, level)3624        outfile.write('node=[\n')3625        level += 13626        for node in self.node:3627            showIndent(outfile, level)3628            outfile.write('model_.node(\n')3629            node.exportLiteral(outfile, level, name_='node')3630            showIndent(outfile, level)3631            outfile.write('),\n')3632        level -= 13633        showIndent(outfile, level)3634        outfile.write('],\n')3635    def build(self, node_):3636        attrs = node_.attributes3637        self.buildAttributes(attrs)3638        for child_ in node_.childNodes:3639            nodeName_ = child_.nodeName.split(':')[-1]3640            self.buildChildren(child_, nodeName_)3641    def buildAttributes(self, attrs):3642        pass3643    def buildChildren(self, child_, nodeName_):3644        if child_.nodeType == Node.ELEMENT_NODE and \3645                nodeName_ == 'node':3646            obj_ = nodeType.factory()3647            obj_.build(child_)3648            self.node.append(obj_)3649# end class graphType3650class nodeType(GeneratedsSuper):3651    subclass = None3652    superclass = None3653    def __init__(self, id=None, label=None, link=None, childnode=None):3654        self.id = id3655        self.label = label3656        self.link = link3657        if childnode is None:3658            self.childnode = []3659        else:3660            self.childnode = childnode3661    def factory(*args_, **kwargs_):3662        if nodeType.subclass:3663            return nodeType.subclass(*args_, **kwargs_)3664        else:3665            return nodeType(*args_, **kwargs_)3666    factory = staticmethod(factory)3667    def get_label(self): return self.label3668    def set_label(self, label): self.label = label3669    def get_link(self): return self.link3670    def set_link(self, link): self.link = link3671    def get_childnode(self): return self.childnode3672    def set_childnode(self, childnode): self.childnode = childnode3673    def add_childnode(self, value): self.childnode.append(value)3674    def insert_childnode(self, index, value): self.childnode[index] = value3675    def get_id(self): return self.id3676    def set_id(self, id): self.id = id3677    def export(self, outfile, level, namespace_='', name_='nodeType', namespacedef_=''):3678        showIndent(outfile, level)3679        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))3680        self.exportAttributes(outfile, level, namespace_, name_='nodeType')3681        if self.hasContent_():3682            outfile.write('>\n')3683            self.exportChildren(outfile, level + 1, namespace_, name_)3684            showIndent(outfile, level)3685            outfile.write('</%s%s>\n' % (namespace_, name_))3686        else:3687            outfile.write(' />\n')3688    def exportAttributes(self, outfile, level, namespace_='', name_='nodeType'):3689        if self.id is not None:3690            outfile.write(' id=%s' % (self.format_string(quote_attrib(3691                self.id).encode(ExternalEncoding), input_name='id'), ))3692    def exportChildren(self, outfile, level, namespace_='', name_='nodeType'):3693        if self.label is not None:3694            showIndent(outfile, level)3695            outfile.write('<%slabel>%s</%slabel>\n' % (namespace_, self.format_string(3696                quote_xml(self.label).encode(ExternalEncoding), input_name='label'), namespace_))3697        if self.link:3698            self.link.export(outfile, level, namespace_, name_='link')3699        for childnode_ in self.childnode:3700            childnode_.export(outfile, level, namespace_, name_='childnode')3701    def hasContent_(self):3702        if (3703            self.label is not None or3704            self.link is not None or3705            self.childnode is not None3706        ):3707            return True3708        else:3709            return False3710    def exportLiteral(self, outfile, level, name_='nodeType'):3711        level += 13712        self.exportLiteralAttributes(outfile, level, name_)3713        if self.hasContent_():3714            self.exportLiteralChildren(outfile, level, name_)3715    def exportLiteralAttributes(self, outfile, level, name_):3716        if self.id is not None:3717            showIndent(outfile, level)3718            outfile.write('id = %s,\n' % (self.id,))3719    def exportLiteralChildren(self, outfile, level, name_):3720        showIndent(outfile, level)3721        outfile.write('label=%s,\n' % quote_python(3722            self.label).encode(ExternalEncoding))3723        if self.link:3724            showIndent(outfile, level)3725            outfile.write('link=model_.linkType(\n')3726            self.link.exportLiteral(outfile, level, name_='link')3727            showIndent(outfile, level)3728            outfile.write('),\n')3729        showIndent(outfile, level)3730        outfile.write('childnode=[\n')3731        level += 13732        for childnode in self.childnode:3733            showIndent(outfile, level)3734            outfile.write('model_.childnode(\n')3735            childnode.exportLiteral(outfile, level, name_='childnode')3736            showIndent(outfile, level)3737            outfile.write('),\n')3738        level -= 13739        showIndent(outfile, level)3740        outfile.write('],\n')3741    def build(self, node_):3742        attrs = node_.attributes3743        self.buildAttributes(attrs)3744        for child_ in node_.childNodes:3745            nodeName_ = child_.nodeName.split(':')[-1]3746            self.buildChildren(child_, nodeName_)3747    def buildAttributes(self, attrs):3748        if attrs.get('id'):3749            self.id = attrs.get('id').value3750    def buildChildren(self, child_, nodeName_):3751        if child_.nodeType == Node.ELEMENT_NODE and \3752                nodeName_ == 'label':3753            label_ = ''3754            for text__content_ in child_.childNodes:3755                label_ += text__content_.nodeValue3756            self.label = label_3757        elif child_.nodeType == Node.ELEMENT_NODE and \3758                nodeName_ == 'link':3759            obj_ = linkType.factory()3760            obj_.build(child_)3761            self.set_link(obj_)3762        elif child_.nodeType == Node.ELEMENT_NODE and \3763                nodeName_ == 'childnode':3764            obj_ = childnodeType.factory()3765            obj_.build(child_)3766            self.childnode.append(obj_)3767# end class nodeType3768class label(GeneratedsSuper):3769    subclass = None3770    superclass = None3771    def __init__(self, valueOf_=''):3772        self.valueOf_ = valueOf_3773    def factory(*args_, **kwargs_):3774        if label.subclass:3775            return label.subclass(*args_, **kwargs_)3776        else:3777            return label(*args_, **kwargs_)3778    factory = staticmethod(factory)3779    def getValueOf_(self): return self.valueOf_3780    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_3781    def export(self, outfile, level, namespace_='', name_='label', namespacedef_=''):3782        showIndent(outfile, level)3783        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))3784        self.exportAttributes(outfile, level, namespace_, name_='label')3785        if self.hasContent_():3786            outfile.write('>\n')3787            self.exportChildren(outfile, level + 1, namespace_, name_)3788            showIndent(outfile, level)3789            outfile.write('</%s%s>\n' % (namespace_, name_))3790        else:3791            outfile.write(' />\n')3792    def exportAttributes(self, outfile, level, namespace_='', name_='label'):3793        pass3794    def exportChildren(self, outfile, level, namespace_='', name_='label'):3795        if self.valueOf_.find('![CDATA') > -1:3796            value = quote_xml('%s' % self.valueOf_)3797            value = value.replace('![CDATA', '<![CDATA')3798            value = value.replace(']]', ']]>')3799            outfile.write(value)3800        else:3801            outfile.write(quote_xml('%s' % self.valueOf_))3802    def hasContent_(self):3803        if (3804            self.valueOf_ is not None3805        ):3806            return True3807        else:3808            return False3809    def exportLiteral(self, outfile, level, name_='label'):3810        level += 13811        self.exportLiteralAttributes(outfile, level, name_)3812        if self.hasContent_():3813            self.exportLiteralChildren(outfile, level, name_)3814    def exportLiteralAttributes(self, outfile, level, name_):3815        pass3816    def exportLiteralChildren(self, outfile, level, name_):3817        showIndent(outfile, level)3818        outfile.write('valueOf_ = "%s",\n' % (self.valueOf_,))3819    def build(self, node_):3820        attrs = node_.attributes3821        self.buildAttributes(attrs)3822        self.valueOf_ = ''3823        for child_ in node_.childNodes:3824            nodeName_ = child_.nodeName.split(':')[-1]3825            self.buildChildren(child_, nodeName_)3826    def buildAttributes(self, attrs):3827        pass3828    def buildChildren(self, child_, nodeName_):3829        if child_.nodeType == Node.TEXT_NODE:3830            self.valueOf_ += child_.nodeValue3831        elif child_.nodeType == Node.CDATA_SECTION_NODE:3832            self.valueOf_ += '![CDATA[' + child_.nodeValue + ']]'3833# end class label3834class childnodeType(GeneratedsSuper):3835    subclass = None3836    superclass = None3837    def __init__(self, relation=None, refid=None, edgelabel=None):3838        self.relation = relation3839        self.refid = refid3840        if edgelabel is None:3841            self.edgelabel = []3842        else:3843            self.edgelabel = edgelabel3844    def factory(*args_, **kwargs_):3845        if childnodeType.subclass:3846            return childnodeType.subclass(*args_, **kwargs_)3847        else:3848            return childnodeType(*args_, **kwargs_)3849    factory = staticmethod(factory)3850    def get_edgelabel(self): return self.edgelabel3851    def set_edgelabel(self, edgelabel): self.edgelabel = edgelabel3852    def add_edgelabel(self, value): self.edgelabel.append(value)3853    def insert_edgelabel(self, index, value): self.edgelabel[index] = value3854    def get_relation(self): return self.relation3855    def set_relation(self, relation): self.relation = relation3856    def get_refid(self): return self.refid3857    def set_refid(self, refid): self.refid = refid3858    def export(self, outfile, level, namespace_='', name_='childnodeType', namespacedef_=''):3859        showIndent(outfile, level)3860        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))3861        self.exportAttributes(outfile, level, namespace_,3862                              name_='childnodeType')3863        if self.hasContent_():3864            outfile.write('>\n')3865            self.exportChildren(outfile, level + 1, namespace_, name_)3866            showIndent(outfile, level)3867            outfile.write('</%s%s>\n' % (namespace_, name_))3868        else:3869            outfile.write(' />\n')3870    def exportAttributes(self, outfile, level, namespace_='', name_='childnodeType'):3871        if self.relation is not None:3872            outfile.write(' relation=%s' % (quote_attrib(self.relation), ))3873        if self.refid is not None:3874            outfile.write(' refid=%s' % (self.format_string(quote_attrib(3875                self.refid).encode(ExternalEncoding), input_name='refid'), ))3876    def exportChildren(self, outfile, level, namespace_='', name_='childnodeType'):3877        for edgelabel_ in self.edgelabel:3878            showIndent(outfile, level)3879            outfile.write('<%sedgelabel>%s</%sedgelabel>\n' % (namespace_, self.format_string(3880                quote_xml(edgelabel_).encode(ExternalEncoding), input_name='edgelabel'), namespace_))3881    def hasContent_(self):3882        if (3883            self.edgelabel is not None3884        ):3885            return True3886        else:3887            return False3888    def exportLiteral(self, outfile, level, name_='childnodeType'):3889        level += 13890        self.exportLiteralAttributes(outfile, level, name_)3891        if self.hasContent_():3892            self.exportLiteralChildren(outfile, level, name_)3893    def exportLiteralAttributes(self, outfile, level, name_):3894        if self.relation is not None:3895            showIndent(outfile, level)3896            outfile.write('relation = "%s",\n' % (self.relation,))3897        if self.refid is not None:3898            showIndent(outfile, level)3899            outfile.write('refid = %s,\n' % (self.refid,))3900    def exportLiteralChildren(self, outfile, level, name_):3901        showIndent(outfile, level)3902        outfile.write('edgelabel=[\n')3903        level += 13904        for edgelabel in self.edgelabel:3905            showIndent(outfile, level)3906            outfile.write('%s,\n' % quote_python(3907                edgelabel).encode(ExternalEncoding))3908        level -= 13909        showIndent(outfile, level)3910        outfile.write('],\n')3911    def build(self, node_):3912        attrs = node_.attributes3913        self.buildAttributes(attrs)3914        for child_ in node_.childNodes:3915            nodeName_ = child_.nodeName.split(':')[-1]3916            self.buildChildren(child_, nodeName_)3917    def buildAttributes(self, attrs):3918        if attrs.get('relation'):3919            self.relation = attrs.get('relation').value3920        if attrs.get('refid'):3921            self.refid = attrs.get('refid').value3922    def buildChildren(self, child_, nodeName_):3923        if child_.nodeType == Node.ELEMENT_NODE and \3924                nodeName_ == 'edgelabel':3925            edgelabel_ = ''3926            for text__content_ in child_.childNodes:3927                edgelabel_ += text__content_.nodeValue3928            self.edgelabel.append(edgelabel_)3929# end class childnodeType3930class edgelabel(GeneratedsSuper):3931    subclass = None3932    superclass = None3933    def __init__(self, valueOf_=''):3934        self.valueOf_ = valueOf_3935    def factory(*args_, **kwargs_):3936        if edgelabel.subclass:3937            return edgelabel.subclass(*args_, **kwargs_)3938        else:3939            return edgelabel(*args_, **kwargs_)3940    factory = staticmethod(factory)3941    def getValueOf_(self): return self.valueOf_3942    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_3943    def export(self, outfile, level, namespace_='', name_='edgelabel', namespacedef_=''):3944        showIndent(outfile, level)3945        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))3946        self.exportAttributes(outfile, level, namespace_, name_='edgelabel')3947        if self.hasContent_():3948            outfile.write('>\n')3949            self.exportChildren(outfile, level + 1, namespace_, name_)3950            showIndent(outfile, level)3951            outfile.write('</%s%s>\n' % (namespace_, name_))3952        else:3953            outfile.write(' />\n')3954    def exportAttributes(self, outfile, level, namespace_='', name_='edgelabel'):3955        pass3956    def exportChildren(self, outfile, level, namespace_='', name_='edgelabel'):3957        if self.valueOf_.find('![CDATA') > -1:3958            value = quote_xml('%s' % self.valueOf_)3959            value = value.replace('![CDATA', '<![CDATA')3960            value = value.replace(']]', ']]>')3961            outfile.write(value)3962        else:3963            outfile.write(quote_xml('%s' % self.valueOf_))3964    def hasContent_(self):3965        if (3966            self.valueOf_ is not None3967        ):3968            return True3969        else:3970            return False3971    def exportLiteral(self, outfile, level, name_='edgelabel'):3972        level += 13973        self.exportLiteralAttributes(outfile, level, name_)3974        if self.hasContent_():3975            self.exportLiteralChildren(outfile, level, name_)3976    def exportLiteralAttributes(self, outfile, level, name_):3977        pass3978    def exportLiteralChildren(self, outfile, level, name_):3979        showIndent(outfile, level)3980        outfile.write('valueOf_ = "%s",\n' % (self.valueOf_,))3981    def build(self, node_):3982        attrs = node_.attributes3983        self.buildAttributes(attrs)3984        self.valueOf_ = ''3985        for child_ in node_.childNodes:3986            nodeName_ = child_.nodeName.split(':')[-1]3987            self.buildChildren(child_, nodeName_)3988    def buildAttributes(self, attrs):3989        pass3990    def buildChildren(self, child_, nodeName_):3991        if child_.nodeType == Node.TEXT_NODE:3992            self.valueOf_ += child_.nodeValue3993        elif child_.nodeType == Node.CDATA_SECTION_NODE:3994            self.valueOf_ += '![CDATA[' + child_.nodeValue + ']]'3995# end class edgelabel3996class linkType(GeneratedsSuper):3997    subclass = None3998    superclass = None3999    def __init__(self, refid=None, external=None, valueOf_=''):4000        self.refid = refid4001        self.external = external4002        self.valueOf_ = valueOf_4003    def factory(*args_, **kwargs_):4004        if linkType.subclass:4005            return linkType.subclass(*args_, **kwargs_)4006        else:4007            return linkType(*args_, **kwargs_)4008    factory = staticmethod(factory)4009    def get_refid(self): return self.refid4010    def set_refid(self, refid): self.refid = refid4011    def get_external(self): return self.external4012    def set_external(self, external): self.external = external4013    def getValueOf_(self): return self.valueOf_4014    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_4015    def export(self, outfile, level, namespace_='', name_='linkType', namespacedef_=''):4016        showIndent(outfile, level)4017        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))4018        self.exportAttributes(outfile, level, namespace_, name_='linkType')4019        if self.hasContent_():4020            outfile.write('>\n')4021            self.exportChildren(outfile, level + 1, namespace_, name_)4022            showIndent(outfile, level)4023            outfile.write('</%s%s>\n' % (namespace_, name_))4024        else:4025            outfile.write(' />\n')4026    def exportAttributes(self, outfile, level, namespace_='', name_='linkType'):4027        if self.refid is not None:4028            outfile.write(' refid=%s' % (self.format_string(quote_attrib(4029                self.refid).encode(ExternalEncoding), input_name='refid'), ))4030        if self.external is not None:4031            outfile.write(' external=%s' % (self.format_string(quote_attrib(4032                self.external).encode(ExternalEncoding), input_name='external'), ))4033    def exportChildren(self, outfile, level, namespace_='', name_='linkType'):4034        if self.valueOf_.find('![CDATA') > -1:4035            value = quote_xml('%s' % self.valueOf_)4036            value = value.replace('![CDATA', '<![CDATA')4037            value = value.replace(']]', ']]>')4038            outfile.write(value)4039        else:4040            outfile.write(quote_xml('%s' % self.valueOf_))4041    def hasContent_(self):4042        if (4043            self.valueOf_ is not None4044        ):4045            return True4046        else:4047            return False4048    def exportLiteral(self, outfile, level, name_='linkType'):4049        level += 14050        self.exportLiteralAttributes(outfile, level, name_)4051        if self.hasContent_():4052            self.exportLiteralChildren(outfile, level, name_)4053    def exportLiteralAttributes(self, outfile, level, name_):4054        if self.refid is not None:4055            showIndent(outfile, level)4056            outfile.write('refid = %s,\n' % (self.refid,))4057        if self.external is not None:4058            showIndent(outfile, level)4059            outfile.write('external = %s,\n' % (self.external,))4060    def exportLiteralChildren(self, outfile, level, name_):4061        showIndent(outfile, level)4062        outfile.write('valueOf_ = "%s",\n' % (self.valueOf_,))4063    def build(self, node_):4064        attrs = node_.attributes4065        self.buildAttributes(attrs)4066        self.valueOf_ = ''4067        for child_ in node_.childNodes:4068            nodeName_ = child_.nodeName.split(':')[-1]4069            self.buildChildren(child_, nodeName_)4070    def buildAttributes(self, attrs):4071        if attrs.get('refid'):4072            self.refid = attrs.get('refid').value4073        if attrs.get('external'):4074            self.external = attrs.get('external').value4075    def buildChildren(self, child_, nodeName_):4076        if child_.nodeType == Node.TEXT_NODE:4077            self.valueOf_ += child_.nodeValue4078        elif child_.nodeType == Node.CDATA_SECTION_NODE:4079            self.valueOf_ += '![CDATA[' + child_.nodeValue + ']]'4080# end class linkType4081class listingType(GeneratedsSuper):4082    subclass = None4083    superclass = None4084    def __init__(self, codeline=None):4085        if codeline is None:4086            self.codeline = []4087        else:4088            self.codeline = codeline4089    def factory(*args_, **kwargs_):4090        if listingType.subclass:4091            return listingType.subclass(*args_, **kwargs_)4092        else:4093            return listingType(*args_, **kwargs_)4094    factory = staticmethod(factory)4095    def get_codeline(self): return self.codeline4096    def set_codeline(self, codeline): self.codeline = codeline4097    def add_codeline(self, value): self.codeline.append(value)4098    def insert_codeline(self, index, value): self.codeline[index] = value4099    def export(self, outfile, level, namespace_='', name_='listingType', namespacedef_=''):4100        showIndent(outfile, level)4101        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))4102        self.exportAttributes(outfile, level, namespace_, name_='listingType')4103        if self.hasContent_():4104            outfile.write('>\n')4105            self.exportChildren(outfile, level + 1, namespace_, name_)4106            showIndent(outfile, level)4107            outfile.write('</%s%s>\n' % (namespace_, name_))4108        else:4109            outfile.write(' />\n')4110    def exportAttributes(self, outfile, level, namespace_='', name_='listingType'):4111        pass4112    def exportChildren(self, outfile, level, namespace_='', name_='listingType'):4113        for codeline_ in self.codeline:4114            codeline_.export(outfile, level, namespace_, name_='codeline')4115    def hasContent_(self):4116        if (4117            self.codeline is not None4118        ):4119            return True4120        else:4121            return False4122    def exportLiteral(self, outfile, level, name_='listingType'):4123        level += 14124        self.exportLiteralAttributes(outfile, level, name_)4125        if self.hasContent_():4126            self.exportLiteralChildren(outfile, level, name_)4127    def exportLiteralAttributes(self, outfile, level, name_):4128        pass4129    def exportLiteralChildren(self, outfile, level, name_):4130        showIndent(outfile, level)4131        outfile.write('codeline=[\n')4132        level += 14133        for codeline in self.codeline:4134            showIndent(outfile, level)4135            outfile.write('model_.codeline(\n')4136            codeline.exportLiteral(outfile, level, name_='codeline')4137            showIndent(outfile, level)4138            outfile.write('),\n')4139        level -= 14140        showIndent(outfile, level)4141        outfile.write('],\n')4142    def build(self, node_):4143        attrs = node_.attributes4144        self.buildAttributes(attrs)4145        for child_ in node_.childNodes:4146            nodeName_ = child_.nodeName.split(':')[-1]4147            self.buildChildren(child_, nodeName_)4148    def buildAttributes(self, attrs):4149        pass4150    def buildChildren(self, child_, nodeName_):4151        if child_.nodeType == Node.ELEMENT_NODE and \4152                nodeName_ == 'codeline':4153            obj_ = codelineType.factory()4154            obj_.build(child_)4155            self.codeline.append(obj_)4156# end class listingType4157class codelineType(GeneratedsSuper):4158    subclass = None4159    superclass = None4160    def __init__(self, external=None, lineno=None, refkind=None, refid=None, highlight=None):4161        self.external = external4162        self.lineno = lineno4163        self.refkind = refkind4164        self.refid = refid4165        if highlight is None:4166            self.highlight = []4167        else:4168            self.highlight = highlight4169    def factory(*args_, **kwargs_):4170        if codelineType.subclass:4171            return codelineType.subclass(*args_, **kwargs_)4172        else:4173            return codelineType(*args_, **kwargs_)4174    factory = staticmethod(factory)4175    def get_highlight(self): return self.highlight4176    def set_highlight(self, highlight): self.highlight = highlight4177    def add_highlight(self, value): self.highlight.append(value)4178    def insert_highlight(self, index, value): self.highlight[index] = value4179    def get_external(self): return self.external4180    def set_external(self, external): self.external = external4181    def get_lineno(self): return self.lineno4182    def set_lineno(self, lineno): self.lineno = lineno4183    def get_refkind(self): return self.refkind4184    def set_refkind(self, refkind): self.refkind = refkind4185    def get_refid(self): return self.refid4186    def set_refid(self, refid): self.refid = refid4187    def export(self, outfile, level, namespace_='', name_='codelineType', namespacedef_=''):4188        showIndent(outfile, level)4189        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))4190        self.exportAttributes(outfile, level, namespace_, name_='codelineType')4191        if self.hasContent_():4192            outfile.write('>\n')4193            self.exportChildren(outfile, level + 1, namespace_, name_)4194            showIndent(outfile, level)4195            outfile.write('</%s%s>\n' % (namespace_, name_))4196        else:4197            outfile.write(' />\n')4198    def exportAttributes(self, outfile, level, namespace_='', name_='codelineType'):4199        if self.external is not None:4200            outfile.write(' external=%s' % (quote_attrib(self.external), ))4201        if self.lineno is not None:4202            outfile.write(' lineno="%s"' % self.format_integer(4203                self.lineno, input_name='lineno'))4204        if self.refkind is not None:4205            outfile.write(' refkind=%s' % (quote_attrib(self.refkind), ))4206        if self.refid is not None:4207            outfile.write(' refid=%s' % (self.format_string(quote_attrib(4208                self.refid).encode(ExternalEncoding), input_name='refid'), ))4209    def exportChildren(self, outfile, level, namespace_='', name_='codelineType'):4210        for highlight_ in self.highlight:4211            highlight_.export(outfile, level, namespace_, name_='highlight')4212    def hasContent_(self):4213        if (4214            self.highlight is not None4215        ):4216            return True4217        else:4218            return False4219    def exportLiteral(self, outfile, level, name_='codelineType'):4220        level += 14221        self.exportLiteralAttributes(outfile, level, name_)4222        if self.hasContent_():4223            self.exportLiteralChildren(outfile, level, name_)4224    def exportLiteralAttributes(self, outfile, level, name_):4225        if self.external is not None:4226            showIndent(outfile, level)4227            outfile.write('external = "%s",\n' % (self.external,))4228        if self.lineno is not None:4229            showIndent(outfile, level)4230            outfile.write('lineno = %s,\n' % (self.lineno,))4231        if self.refkind is not None:4232            showIndent(outfile, level)4233            outfile.write('refkind = "%s",\n' % (self.refkind,))4234        if self.refid is not None:4235            showIndent(outfile, level)4236            outfile.write('refid = %s,\n' % (self.refid,))4237    def exportLiteralChildren(self, outfile, level, name_):4238        showIndent(outfile, level)4239        outfile.write('highlight=[\n')4240        level += 14241        for highlight in self.highlight:4242            showIndent(outfile, level)4243            outfile.write('model_.highlight(\n')4244            highlight.exportLiteral(outfile, level, name_='highlight')4245            showIndent(outfile, level)4246            outfile.write('),\n')4247        level -= 14248        showIndent(outfile, level)4249        outfile.write('],\n')4250    def build(self, node_):4251        attrs = node_.attributes4252        self.buildAttributes(attrs)4253        for child_ in node_.childNodes:4254            nodeName_ = child_.nodeName.split(':')[-1]4255            self.buildChildren(child_, nodeName_)4256    def buildAttributes(self, attrs):4257        if attrs.get('external'):4258            self.external = attrs.get('external').value4259        if attrs.get('lineno'):4260            try:4261                self.lineno = int(attrs.get('lineno').value)4262            except ValueError as exp:4263                raise ValueError('Bad integer attribute (lineno): %s' % exp)4264        if attrs.get('refkind'):4265            self.refkind = attrs.get('refkind').value4266        if attrs.get('refid'):4267            self.refid = attrs.get('refid').value4268    def buildChildren(self, child_, nodeName_):4269        if child_.nodeType == Node.ELEMENT_NODE and \4270                nodeName_ == 'highlight':4271            obj_ = highlightType.factory()4272            obj_.build(child_)4273            self.highlight.append(obj_)4274# end class codelineType4275class highlightType(GeneratedsSuper):4276    subclass = None4277    superclass = None4278    def __init__(self, classxx=None, sp=None, ref=None, mixedclass_=None, content_=None):4279        self.classxx = classxx4280        if mixedclass_ is None:4281            self.mixedclass_ = MixedContainer4282        else:4283            self.mixedclass_ = mixedclass_4284        if content_ is None:4285            self.content_ = []4286        else:4287            self.content_ = content_4288    def factory(*args_, **kwargs_):4289        if highlightType.subclass:4290            return highlightType.subclass(*args_, **kwargs_)4291        else:4292            return highlightType(*args_, **kwargs_)4293    factory = staticmethod(factory)4294    def get_sp(self): return self.sp4295    def set_sp(self, sp): self.sp = sp4296    def add_sp(self, value): self.sp.append(value)4297    def insert_sp(self, index, value): self.sp[index] = value4298    def get_ref(self): return self.ref4299    def set_ref(self, ref): self.ref = ref4300    def add_ref(self, value): self.ref.append(value)4301    def insert_ref(self, index, value): self.ref[index] = value4302    def get_class(self): return self.classxx4303    def set_class(self, classxx): self.classxx = classxx4304    def export(self, outfile, level, namespace_='', name_='highlightType', namespacedef_=''):4305        showIndent(outfile, level)4306        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))4307        self.exportAttributes(outfile, level, namespace_,4308                              name_='highlightType')4309        outfile.write('>')4310        self.exportChildren(outfile, level + 1, namespace_, name_)4311        outfile.write('</%s%s>\n' % (namespace_, name_))4312    def exportAttributes(self, outfile, level, namespace_='', name_='highlightType'):4313        if self.classxx is not None:4314            outfile.write(' class=%s' % (quote_attrib(self.classxx), ))4315    def exportChildren(self, outfile, level, namespace_='', name_='highlightType'):4316        for item_ in self.content_:4317            item_.export(outfile, level, item_.name, namespace_)4318    def hasContent_(self):4319        if (4320            self.sp is not None or4321            self.ref is not None4322        ):4323            return True4324        else:4325            return False4326    def exportLiteral(self, outfile, level, name_='highlightType'):4327        level += 14328        self.exportLiteralAttributes(outfile, level, name_)4329        if self.hasContent_():4330            self.exportLiteralChildren(outfile, level, name_)4331    def exportLiteralAttributes(self, outfile, level, name_):4332        if self.classxx is not None:4333            showIndent(outfile, level)4334            outfile.write('classxx = "%s",\n' % (self.classxx,))4335    def exportLiteralChildren(self, outfile, level, name_):4336        showIndent(outfile, level)4337        outfile.write('content_ = [\n')4338        for item_ in self.content_:4339            item_.exportLiteral(outfile, level, name_)4340        showIndent(outfile, level)4341        outfile.write('],\n')4342        showIndent(outfile, level)4343        outfile.write('content_ = [\n')4344        for item_ in self.content_:4345            item_.exportLiteral(outfile, level, name_)4346        showIndent(outfile, level)4347        outfile.write('],\n')4348    def build(self, node_):4349        attrs = node_.attributes4350        self.buildAttributes(attrs)4351        for child_ in node_.childNodes:4352            nodeName_ = child_.nodeName.split(':')[-1]4353            self.buildChildren(child_, nodeName_)4354    def buildAttributes(self, attrs):4355        if attrs.get('class'):4356            self.classxx = attrs.get('class').value4357    def buildChildren(self, child_, nodeName_):4358        if child_.nodeType == Node.ELEMENT_NODE and \4359                nodeName_ == 'sp':4360            value_ = []4361            for text_ in child_.childNodes:4362                value_.append(text_.nodeValue)4363            valuestr_ = ''.join(value_)4364            obj_ = self.mixedclass_(MixedContainer.CategorySimple,4365                                    MixedContainer.TypeString, 'sp', valuestr_)4366            self.content_.append(obj_)4367        elif child_.nodeType == Node.ELEMENT_NODE and \4368                nodeName_ == 'ref':4369            childobj_ = docRefTextType.factory()4370            childobj_.build(child_)4371            obj_ = self.mixedclass_(MixedContainer.CategoryComplex,4372                                    MixedContainer.TypeNone, 'ref', childobj_)4373            self.content_.append(obj_)4374        elif child_.nodeType == Node.TEXT_NODE:4375            obj_ = self.mixedclass_(MixedContainer.CategoryText,4376                                    MixedContainer.TypeNone, '', child_.nodeValue)4377            self.content_.append(obj_)4378# end class highlightType4379class sp(GeneratedsSuper):4380    subclass = None4381    superclass = None4382    def __init__(self, valueOf_=''):4383        self.valueOf_ = valueOf_4384    def factory(*args_, **kwargs_):4385        if sp.subclass:4386            return sp.subclass(*args_, **kwargs_)4387        else:4388            return sp(*args_, **kwargs_)4389    factory = staticmethod(factory)4390    def getValueOf_(self): return self.valueOf_4391    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_4392    def export(self, outfile, level, namespace_='', name_='sp', namespacedef_=''):4393        showIndent(outfile, level)4394        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))4395        self.exportAttributes(outfile, level, namespace_, name_='sp')4396        if self.hasContent_():4397            outfile.write('>\n')4398            self.exportChildren(outfile, level + 1, namespace_, name_)4399            showIndent(outfile, level)4400            outfile.write('</%s%s>\n' % (namespace_, name_))4401        else:4402            outfile.write(' />\n')4403    def exportAttributes(self, outfile, level, namespace_='', name_='sp'):4404        pass4405    def exportChildren(self, outfile, level, namespace_='', name_='sp'):4406        if self.valueOf_.find('![CDATA') > -1:4407            value = quote_xml('%s' % self.valueOf_)4408            value = value.replace('![CDATA', '<![CDATA')4409            value = value.replace(']]', ']]>')4410            outfile.write(value)4411        else:4412            outfile.write(quote_xml('%s' % self.valueOf_))4413    def hasContent_(self):4414        if (4415            self.valueOf_ is not None4416        ):4417            return True4418        else:4419            return False4420    def exportLiteral(self, outfile, level, name_='sp'):4421        level += 14422        self.exportLiteralAttributes(outfile, level, name_)4423        if self.hasContent_():4424            self.exportLiteralChildren(outfile, level, name_)4425    def exportLiteralAttributes(self, outfile, level, name_):4426        pass4427    def exportLiteralChildren(self, outfile, level, name_):4428        showIndent(outfile, level)4429        outfile.write('valueOf_ = "%s",\n' % (self.valueOf_,))4430    def build(self, node_):4431        attrs = node_.attributes4432        self.buildAttributes(attrs)4433        self.valueOf_ = ''4434        for child_ in node_.childNodes:4435            nodeName_ = child_.nodeName.split(':')[-1]4436            self.buildChildren(child_, nodeName_)4437    def buildAttributes(self, attrs):4438        pass4439    def buildChildren(self, child_, nodeName_):4440        if child_.nodeType == Node.TEXT_NODE:4441            self.valueOf_ += child_.nodeValue4442        elif child_.nodeType == Node.CDATA_SECTION_NODE:4443            self.valueOf_ += '![CDATA[' + child_.nodeValue + ']]'4444# end class sp4445class referenceType(GeneratedsSuper):4446    subclass = None4447    superclass = None4448    def __init__(self, endline=None, startline=None, refid=None, compoundref=None, valueOf_='', mixedclass_=None, content_=None):4449        self.endline = endline4450        self.startline = startline4451        self.refid = refid4452        self.compoundref = compoundref4453        if mixedclass_ is None:4454            self.mixedclass_ = MixedContainer4455        else:4456            self.mixedclass_ = mixedclass_4457        if content_ is None:4458            self.content_ = []4459        else:4460            self.content_ = content_4461    def factory(*args_, **kwargs_):4462        if referenceType.subclass:4463            return referenceType.subclass(*args_, **kwargs_)4464        else:4465            return referenceType(*args_, **kwargs_)4466    factory = staticmethod(factory)4467    def get_endline(self): return self.endline4468    def set_endline(self, endline): self.endline = endline4469    def get_startline(self): return self.startline4470    def set_startline(self, startline): self.startline = startline4471    def get_refid(self): return self.refid4472    def set_refid(self, refid): self.refid = refid4473    def get_compoundref(self): return self.compoundref4474    def set_compoundref(self, compoundref): self.compoundref = compoundref4475    def getValueOf_(self): return self.valueOf_4476    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_4477    def export(self, outfile, level, namespace_='', name_='referenceType', namespacedef_=''):4478        showIndent(outfile, level)4479        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))4480        self.exportAttributes(outfile, level, namespace_,4481                              name_='referenceType')4482        outfile.write('>')4483        self.exportChildren(outfile, level + 1, namespace_, name_)4484        outfile.write('</%s%s>\n' % (namespace_, name_))4485    def exportAttributes(self, outfile, level, namespace_='', name_='referenceType'):4486        if self.endline is not None:4487            outfile.write(' endline="%s"' % self.format_integer(4488                self.endline, input_name='endline'))4489        if self.startline is not None:4490            outfile.write(' startline="%s"' % self.format_integer(4491                self.startline, input_name='startline'))4492        if self.refid is not None:4493            outfile.write(' refid=%s' % (self.format_string(quote_attrib(4494                self.refid).encode(ExternalEncoding), input_name='refid'), ))4495        if self.compoundref is not None:4496            outfile.write(' compoundref=%s' % (self.format_string(quote_attrib(4497                self.compoundref).encode(ExternalEncoding), input_name='compoundref'), ))4498    def exportChildren(self, outfile, level, namespace_='', name_='referenceType'):4499        if self.valueOf_.find('![CDATA') > -1:4500            value = quote_xml('%s' % self.valueOf_)4501            value = value.replace('![CDATA', '<![CDATA')4502            value = value.replace(']]', ']]>')4503            outfile.write(value)4504        else:4505            outfile.write(quote_xml('%s' % self.valueOf_))4506    def hasContent_(self):4507        if (4508            self.valueOf_ is not None4509        ):4510            return True4511        else:4512            return False4513    def exportLiteral(self, outfile, level, name_='referenceType'):4514        level += 14515        self.exportLiteralAttributes(outfile, level, name_)4516        if self.hasContent_():4517            self.exportLiteralChildren(outfile, level, name_)4518    def exportLiteralAttributes(self, outfile, level, name_):4519        if self.endline is not None:4520            showIndent(outfile, level)4521            outfile.write('endline = %s,\n' % (self.endline,))4522        if self.startline is not None:4523            showIndent(outfile, level)4524            outfile.write('startline = %s,\n' % (self.startline,))4525        if self.refid is not None:4526            showIndent(outfile, level)4527            outfile.write('refid = %s,\n' % (self.refid,))4528        if self.compoundref is not None:4529            showIndent(outfile, level)4530            outfile.write('compoundref = %s,\n' % (self.compoundref,))4531    def exportLiteralChildren(self, outfile, level, name_):4532        showIndent(outfile, level)4533        outfile.write('valueOf_ = "%s",\n' % (self.valueOf_,))4534    def build(self, node_):4535        attrs = node_.attributes4536        self.buildAttributes(attrs)4537        self.valueOf_ = ''4538        for child_ in node_.childNodes:4539            nodeName_ = child_.nodeName.split(':')[-1]4540            self.buildChildren(child_, nodeName_)4541    def buildAttributes(self, attrs):4542        if attrs.get('endline'):4543            try:4544                self.endline = int(attrs.get('endline').value)4545            except ValueError as exp:4546                raise ValueError('Bad integer attribute (endline): %s' % exp)4547        if attrs.get('startline'):4548            try:4549                self.startline = int(attrs.get('startline').value)4550            except ValueError as exp:4551                raise ValueError('Bad integer attribute (startline): %s' % exp)4552        if attrs.get('refid'):4553            self.refid = attrs.get('refid').value4554        if attrs.get('compoundref'):4555            self.compoundref = attrs.get('compoundref').value4556    def buildChildren(self, child_, nodeName_):4557        if child_.nodeType == Node.TEXT_NODE:4558            obj_ = self.mixedclass_(MixedContainer.CategoryText,4559                                    MixedContainer.TypeNone, '', child_.nodeValue)4560            self.content_.append(obj_)4561        if child_.nodeType == Node.TEXT_NODE:4562            self.valueOf_ += child_.nodeValue4563        elif child_.nodeType == Node.CDATA_SECTION_NODE:4564            self.valueOf_ += '![CDATA[' + child_.nodeValue + ']]'4565# end class referenceType4566class locationType(GeneratedsSuper):4567    subclass = None4568    superclass = None4569    def __init__(self, bodystart=None, line=None, bodyend=None, bodyfile=None, file=None, valueOf_=''):4570        self.bodystart = bodystart4571        self.line = line4572        self.bodyend = bodyend4573        self.bodyfile = bodyfile4574        self.file = file4575        self.valueOf_ = valueOf_4576    def factory(*args_, **kwargs_):4577        if locationType.subclass:4578            return locationType.subclass(*args_, **kwargs_)4579        else:4580            return locationType(*args_, **kwargs_)4581    factory = staticmethod(factory)4582    def get_bodystart(self): return self.bodystart4583    def set_bodystart(self, bodystart): self.bodystart = bodystart4584    def get_line(self): return self.line4585    def set_line(self, line): self.line = line4586    def get_bodyend(self): return self.bodyend4587    def set_bodyend(self, bodyend): self.bodyend = bodyend4588    def get_bodyfile(self): return self.bodyfile4589    def set_bodyfile(self, bodyfile): self.bodyfile = bodyfile4590    def get_file(self): return self.file4591    def set_file(self, file): self.file = file4592    def getValueOf_(self): return self.valueOf_4593    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_4594    def export(self, outfile, level, namespace_='', name_='locationType', namespacedef_=''):4595        showIndent(outfile, level)4596        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))4597        self.exportAttributes(outfile, level, namespace_, name_='locationType')4598        if self.hasContent_():4599            outfile.write('>\n')4600            self.exportChildren(outfile, level + 1, namespace_, name_)4601            showIndent(outfile, level)4602            outfile.write('</%s%s>\n' % (namespace_, name_))4603        else:4604            outfile.write(' />\n')4605    def exportAttributes(self, outfile, level, namespace_='', name_='locationType'):4606        if self.bodystart is not None:4607            outfile.write(' bodystart="%s"' % self.format_integer(4608                self.bodystart, input_name='bodystart'))4609        if self.line is not None:4610            outfile.write(' line="%s"' % self.format_integer(4611                self.line, input_name='line'))4612        if self.bodyend is not None:4613            outfile.write(' bodyend="%s"' % self.format_integer(4614                self.bodyend, input_name='bodyend'))4615        if self.bodyfile is not None:4616            outfile.write(' bodyfile=%s' % (self.format_string(quote_attrib(4617                self.bodyfile).encode(ExternalEncoding), input_name='bodyfile'), ))4618        if self.file is not None:4619            outfile.write(' file=%s' % (self.format_string(quote_attrib(4620                self.file).encode(ExternalEncoding), input_name='file'), ))4621    def exportChildren(self, outfile, level, namespace_='', name_='locationType'):4622        if self.valueOf_.find('![CDATA') > -1:4623            value = quote_xml('%s' % self.valueOf_)4624            value = value.replace('![CDATA', '<![CDATA')4625            value = value.replace(']]', ']]>')4626            outfile.write(value)4627        else:4628            outfile.write(quote_xml('%s' % self.valueOf_))4629    def hasContent_(self):4630        if (4631            self.valueOf_ is not None4632        ):4633            return True4634        else:4635            return False4636    def exportLiteral(self, outfile, level, name_='locationType'):4637        level += 14638        self.exportLiteralAttributes(outfile, level, name_)4639        if self.hasContent_():4640            self.exportLiteralChildren(outfile, level, name_)4641    def exportLiteralAttributes(self, outfile, level, name_):4642        if self.bodystart is not None:4643            showIndent(outfile, level)4644            outfile.write('bodystart = %s,\n' % (self.bodystart,))4645        if self.line is not None:4646            showIndent(outfile, level)4647            outfile.write('line = %s,\n' % (self.line,))4648        if self.bodyend is not None:4649            showIndent(outfile, level)4650            outfile.write('bodyend = %s,\n' % (self.bodyend,))4651        if self.bodyfile is not None:4652            showIndent(outfile, level)4653            outfile.write('bodyfile = %s,\n' % (self.bodyfile,))4654        if self.file is not None:4655            showIndent(outfile, level)4656            outfile.write('file = %s,\n' % (self.file,))4657    def exportLiteralChildren(self, outfile, level, name_):4658        showIndent(outfile, level)4659        outfile.write('valueOf_ = "%s",\n' % (self.valueOf_,))4660    def build(self, node_):4661        attrs = node_.attributes4662        self.buildAttributes(attrs)4663        self.valueOf_ = ''4664        for child_ in node_.childNodes:4665            nodeName_ = child_.nodeName.split(':')[-1]4666            self.buildChildren(child_, nodeName_)4667    def buildAttributes(self, attrs):4668        if attrs.get('bodystart'):4669            try:4670                self.bodystart = int(attrs.get('bodystart').value)4671            except ValueError as exp:4672                raise ValueError('Bad integer attribute (bodystart): %s' % exp)4673        if attrs.get('line'):4674            try:4675                self.line = int(attrs.get('line').value)4676            except ValueError as exp:4677                raise ValueError('Bad integer attribute (line): %s' % exp)4678        if attrs.get('bodyend'):4679            try:4680                self.bodyend = int(attrs.get('bodyend').value)4681            except ValueError as exp:4682                raise ValueError('Bad integer attribute (bodyend): %s' % exp)4683        if attrs.get('bodyfile'):4684            self.bodyfile = attrs.get('bodyfile').value4685        if attrs.get('file'):4686            self.file = attrs.get('file').value4687    def buildChildren(self, child_, nodeName_):4688        if child_.nodeType == Node.TEXT_NODE:4689            self.valueOf_ += child_.nodeValue4690        elif child_.nodeType == Node.CDATA_SECTION_NODE:4691            self.valueOf_ += '![CDATA[' + child_.nodeValue + ']]'4692# end class locationType4693class docSect1Type(GeneratedsSuper):4694    subclass = None4695    superclass = None4696    def __init__(self, id=None, title=None, para=None, sect2=None, internal=None, mixedclass_=None, content_=None):4697        self.id = id4698        if mixedclass_ is None:4699            self.mixedclass_ = MixedContainer4700        else:4701            self.mixedclass_ = mixedclass_4702        if content_ is None:4703            self.content_ = []4704        else:4705            self.content_ = content_4706    def factory(*args_, **kwargs_):4707        if docSect1Type.subclass:4708            return docSect1Type.subclass(*args_, **kwargs_)4709        else:4710            return docSect1Type(*args_, **kwargs_)4711    factory = staticmethod(factory)4712    def get_title(self): return self.title4713    def set_title(self, title): self.title = title4714    def get_para(self): return self.para4715    def set_para(self, para): self.para = para4716    def add_para(self, value): self.para.append(value)4717    def insert_para(self, index, value): self.para[index] = value4718    def get_sect2(self): return self.sect24719    def set_sect2(self, sect2): self.sect2 = sect24720    def add_sect2(self, value): self.sect2.append(value)4721    def insert_sect2(self, index, value): self.sect2[index] = value4722    def get_internal(self): return self.internal4723    def set_internal(self, internal): self.internal = internal4724    def get_id(self): return self.id4725    def set_id(self, id): self.id = id4726    def export(self, outfile, level, namespace_='', name_='docSect1Type', namespacedef_=''):4727        showIndent(outfile, level)4728        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))4729        self.exportAttributes(outfile, level, namespace_, name_='docSect1Type')4730        outfile.write('>')4731        self.exportChildren(outfile, level + 1, namespace_, name_)4732        outfile.write('</%s%s>\n' % (namespace_, name_))4733    def exportAttributes(self, outfile, level, namespace_='', name_='docSect1Type'):4734        if self.id is not None:4735            outfile.write(' id=%s' % (self.format_string(quote_attrib(4736                self.id).encode(ExternalEncoding), input_name='id'), ))4737    def exportChildren(self, outfile, level, namespace_='', name_='docSect1Type'):4738        for item_ in self.content_:4739            item_.export(outfile, level, item_.name, namespace_)4740    def hasContent_(self):4741        if (4742            self.title is not None or4743            self.para is not None or4744            self.sect2 is not None or4745            self.internal is not None4746        ):4747            return True4748        else:4749            return False4750    def exportLiteral(self, outfile, level, name_='docSect1Type'):4751        level += 14752        self.exportLiteralAttributes(outfile, level, name_)4753        if self.hasContent_():4754            self.exportLiteralChildren(outfile, level, name_)4755    def exportLiteralAttributes(self, outfile, level, name_):4756        if self.id is not None:4757            showIndent(outfile, level)4758            outfile.write('id = %s,\n' % (self.id,))4759    def exportLiteralChildren(self, outfile, level, name_):4760        showIndent(outfile, level)4761        outfile.write('content_ = [\n')4762        for item_ in self.content_:4763            item_.exportLiteral(outfile, level, name_)4764        showIndent(outfile, level)4765        outfile.write('],\n')4766        showIndent(outfile, level)4767        outfile.write('content_ = [\n')4768        for item_ in self.content_:4769            item_.exportLiteral(outfile, level, name_)4770        showIndent(outfile, level)4771        outfile.write('],\n')4772        showIndent(outfile, level)4773        outfile.write('content_ = [\n')4774        for item_ in self.content_:4775            item_.exportLiteral(outfile, level, name_)4776        showIndent(outfile, level)4777        outfile.write('],\n')4778        showIndent(outfile, level)4779        outfile.write('content_ = [\n')4780        for item_ in self.content_:4781            item_.exportLiteral(outfile, level, name_)4782        showIndent(outfile, level)4783        outfile.write('],\n')4784    def build(self, node_):4785        attrs = node_.attributes4786        self.buildAttributes(attrs)4787        for child_ in node_.childNodes:4788            nodeName_ = child_.nodeName.split(':')[-1]4789            self.buildChildren(child_, nodeName_)4790    def buildAttributes(self, attrs):4791        if attrs.get('id'):4792            self.id = attrs.get('id').value4793    def buildChildren(self, child_, nodeName_):4794        if child_.nodeType == Node.ELEMENT_NODE and \4795                nodeName_ == 'title':4796            childobj_ = docTitleType.factory()4797            childobj_.build(child_)4798            obj_ = self.mixedclass_(MixedContainer.CategoryComplex,4799                                    MixedContainer.TypeNone, 'title', childobj_)4800            self.content_.append(obj_)4801        elif child_.nodeType == Node.ELEMENT_NODE and \4802                nodeName_ == 'para':4803            childobj_ = docParaType.factory()4804            childobj_.build(child_)4805            obj_ = self.mixedclass_(MixedContainer.CategoryComplex,4806                                    MixedContainer.TypeNone, 'para', childobj_)4807            self.content_.append(obj_)4808        elif child_.nodeType == Node.ELEMENT_NODE and \4809                nodeName_ == 'sect2':4810            childobj_ = docSect2Type.factory()4811            childobj_.build(child_)4812            obj_ = self.mixedclass_(MixedContainer.CategoryComplex,4813                                    MixedContainer.TypeNone, 'sect2', childobj_)4814            self.content_.append(obj_)4815        elif child_.nodeType == Node.ELEMENT_NODE and \4816                nodeName_ == 'internal':4817            childobj_ = docInternalS1Type.factory()4818            childobj_.build(child_)4819            obj_ = self.mixedclass_(MixedContainer.CategoryComplex,4820                                    MixedContainer.TypeNone, 'internal', childobj_)4821            self.content_.append(obj_)4822        elif child_.nodeType == Node.TEXT_NODE:4823            obj_ = self.mixedclass_(MixedContainer.CategoryText,4824                                    MixedContainer.TypeNone, '', child_.nodeValue)4825            self.content_.append(obj_)4826# end class docSect1Type4827class docSect2Type(GeneratedsSuper):4828    subclass = None4829    superclass = None4830    def __init__(self, id=None, title=None, para=None, sect3=None, internal=None, mixedclass_=None, content_=None):4831        self.id = id4832        if mixedclass_ is None:4833            self.mixedclass_ = MixedContainer4834        else:4835            self.mixedclass_ = mixedclass_4836        if content_ is None:4837            self.content_ = []4838        else:4839            self.content_ = content_4840    def factory(*args_, **kwargs_):4841        if docSect2Type.subclass:4842            return docSect2Type.subclass(*args_, **kwargs_)4843        else:4844            return docSect2Type(*args_, **kwargs_)4845    factory = staticmethod(factory)4846    def get_title(self): return self.title4847    def set_title(self, title): self.title = title4848    def get_para(self): return self.para4849    def set_para(self, para): self.para = para4850    def add_para(self, value): self.para.append(value)4851    def insert_para(self, index, value): self.para[index] = value4852    def get_sect3(self): return self.sect34853    def set_sect3(self, sect3): self.sect3 = sect34854    def add_sect3(self, value): self.sect3.append(value)4855    def insert_sect3(self, index, value): self.sect3[index] = value4856    def get_internal(self): return self.internal4857    def set_internal(self, internal): self.internal = internal4858    def get_id(self): return self.id4859    def set_id(self, id): self.id = id4860    def export(self, outfile, level, namespace_='', name_='docSect2Type', namespacedef_=''):4861        showIndent(outfile, level)4862        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))4863        self.exportAttributes(outfile, level, namespace_, name_='docSect2Type')4864        outfile.write('>')4865        self.exportChildren(outfile, level + 1, namespace_, name_)4866        outfile.write('</%s%s>\n' % (namespace_, name_))4867    def exportAttributes(self, outfile, level, namespace_='', name_='docSect2Type'):4868        if self.id is not None:4869            outfile.write(' id=%s' % (self.format_string(quote_attrib(4870                self.id).encode(ExternalEncoding), input_name='id'), ))4871    def exportChildren(self, outfile, level, namespace_='', name_='docSect2Type'):4872        for item_ in self.content_:4873            item_.export(outfile, level, item_.name, namespace_)4874    def hasContent_(self):4875        if (4876            self.title is not None or4877            self.para is not None or4878            self.sect3 is not None or4879            self.internal is not None4880        ):4881            return True4882        else:4883            return False4884    def exportLiteral(self, outfile, level, name_='docSect2Type'):4885        level += 14886        self.exportLiteralAttributes(outfile, level, name_)4887        if self.hasContent_():4888            self.exportLiteralChildren(outfile, level, name_)4889    def exportLiteralAttributes(self, outfile, level, name_):4890        if self.id is not None:4891            showIndent(outfile, level)4892            outfile.write('id = %s,\n' % (self.id,))4893    def exportLiteralChildren(self, outfile, level, name_):4894        showIndent(outfile, level)4895        outfile.write('content_ = [\n')4896        for item_ in self.content_:4897            item_.exportLiteral(outfile, level, name_)4898        showIndent(outfile, level)4899        outfile.write('],\n')4900        showIndent(outfile, level)4901        outfile.write('content_ = [\n')4902        for item_ in self.content_:4903            item_.exportLiteral(outfile, level, name_)4904        showIndent(outfile, level)4905        outfile.write('],\n')4906        showIndent(outfile, level)4907        outfile.write('content_ = [\n')4908        for item_ in self.content_:4909            item_.exportLiteral(outfile, level, name_)4910        showIndent(outfile, level)4911        outfile.write('],\n')4912        showIndent(outfile, level)4913        outfile.write('content_ = [\n')4914        for item_ in self.content_:4915            item_.exportLiteral(outfile, level, name_)4916        showIndent(outfile, level)4917        outfile.write('],\n')4918    def build(self, node_):4919        attrs = node_.attributes4920        self.buildAttributes(attrs)4921        for child_ in node_.childNodes:4922            nodeName_ = child_.nodeName.split(':')[-1]4923            self.buildChildren(child_, nodeName_)4924    def buildAttributes(self, attrs):4925        if attrs.get('id'):4926            self.id = attrs.get('id').value4927    def buildChildren(self, child_, nodeName_):4928        if child_.nodeType == Node.ELEMENT_NODE and \4929                nodeName_ == 'title':4930            childobj_ = docTitleType.factory()4931            childobj_.build(child_)4932            obj_ = self.mixedclass_(MixedContainer.CategoryComplex,4933                                    MixedContainer.TypeNone, 'title', childobj_)4934            self.content_.append(obj_)4935        elif child_.nodeType == Node.ELEMENT_NODE and \4936                nodeName_ == 'para':4937            childobj_ = docParaType.factory()4938            childobj_.build(child_)4939            obj_ = self.mixedclass_(MixedContainer.CategoryComplex,4940                                    MixedContainer.TypeNone, 'para', childobj_)4941            self.content_.append(obj_)4942        elif child_.nodeType == Node.ELEMENT_NODE and \4943                nodeName_ == 'sect3':4944            childobj_ = docSect3Type.factory()4945            childobj_.build(child_)4946            obj_ = self.mixedclass_(MixedContainer.CategoryComplex,4947                                    MixedContainer.TypeNone, 'sect3', childobj_)4948            self.content_.append(obj_)4949        elif child_.nodeType == Node.ELEMENT_NODE and \4950                nodeName_ == 'internal':4951            childobj_ = docInternalS2Type.factory()4952            childobj_.build(child_)4953            obj_ = self.mixedclass_(MixedContainer.CategoryComplex,4954                                    MixedContainer.TypeNone, 'internal', childobj_)4955            self.content_.append(obj_)4956        elif child_.nodeType == Node.TEXT_NODE:4957            obj_ = self.mixedclass_(MixedContainer.CategoryText,4958                                    MixedContainer.TypeNone, '', child_.nodeValue)4959            self.content_.append(obj_)4960# end class docSect2Type4961class docSect3Type(GeneratedsSuper):4962    subclass = None4963    superclass = None4964    def __init__(self, id=None, title=None, para=None, sect4=None, internal=None, mixedclass_=None, content_=None):4965        self.id = id4966        if mixedclass_ is None:4967            self.mixedclass_ = MixedContainer4968        else:4969            self.mixedclass_ = mixedclass_4970        if content_ is None:4971            self.content_ = []4972        else:4973            self.content_ = content_4974    def factory(*args_, **kwargs_):4975        if docSect3Type.subclass:4976            return docSect3Type.subclass(*args_, **kwargs_)4977        else:4978            return docSect3Type(*args_, **kwargs_)4979    factory = staticmethod(factory)4980    def get_title(self): return self.title4981    def set_title(self, title): self.title = title4982    def get_para(self): return self.para4983    def set_para(self, para): self.para = para4984    def add_para(self, value): self.para.append(value)4985    def insert_para(self, index, value): self.para[index] = value4986    def get_sect4(self): return self.sect44987    def set_sect4(self, sect4): self.sect4 = sect44988    def add_sect4(self, value): self.sect4.append(value)4989    def insert_sect4(self, index, value): self.sect4[index] = value4990    def get_internal(self): return self.internal4991    def set_internal(self, internal): self.internal = internal4992    def get_id(self): return self.id4993    def set_id(self, id): self.id = id4994    def export(self, outfile, level, namespace_='', name_='docSect3Type', namespacedef_=''):4995        showIndent(outfile, level)4996        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))4997        self.exportAttributes(outfile, level, namespace_, name_='docSect3Type')4998        outfile.write('>')4999        self.exportChildren(outfile, level + 1, namespace_, name_)5000        outfile.write('</%s%s>\n' % (namespace_, name_))5001    def exportAttributes(self, outfile, level, namespace_='', name_='docSect3Type'):5002        if self.id is not None:5003            outfile.write(' id=%s' % (self.format_string(quote_attrib(5004                self.id).encode(ExternalEncoding), input_name='id'), ))5005    def exportChildren(self, outfile, level, namespace_='', name_='docSect3Type'):5006        for item_ in self.content_:5007            item_.export(outfile, level, item_.name, namespace_)5008    def hasContent_(self):5009        if (5010            self.title is not None or5011            self.para is not None or5012            self.sect4 is not None or5013            self.internal is not None5014        ):5015            return True5016        else:5017            return False5018    def exportLiteral(self, outfile, level, name_='docSect3Type'):5019        level += 15020        self.exportLiteralAttributes(outfile, level, name_)5021        if self.hasContent_():5022            self.exportLiteralChildren(outfile, level, name_)5023    def exportLiteralAttributes(self, outfile, level, name_):5024        if self.id is not None:5025            showIndent(outfile, level)5026            outfile.write('id = %s,\n' % (self.id,))5027    def exportLiteralChildren(self, outfile, level, name_):5028        showIndent(outfile, level)5029        outfile.write('content_ = [\n')5030        for item_ in self.content_:5031            item_.exportLiteral(outfile, level, name_)5032        showIndent(outfile, level)5033        outfile.write('],\n')5034        showIndent(outfile, level)5035        outfile.write('content_ = [\n')5036        for item_ in self.content_:5037            item_.exportLiteral(outfile, level, name_)5038        showIndent(outfile, level)5039        outfile.write('],\n')5040        showIndent(outfile, level)5041        outfile.write('content_ = [\n')5042        for item_ in self.content_:5043            item_.exportLiteral(outfile, level, name_)5044        showIndent(outfile, level)5045        outfile.write('],\n')5046        showIndent(outfile, level)5047        outfile.write('content_ = [\n')5048        for item_ in self.content_:5049            item_.exportLiteral(outfile, level, name_)5050        showIndent(outfile, level)5051        outfile.write('],\n')5052    def build(self, node_):5053        attrs = node_.attributes5054        self.buildAttributes(attrs)5055        for child_ in node_.childNodes:5056            nodeName_ = child_.nodeName.split(':')[-1]5057            self.buildChildren(child_, nodeName_)5058    def buildAttributes(self, attrs):5059        if attrs.get('id'):5060            self.id = attrs.get('id').value5061    def buildChildren(self, child_, nodeName_):5062        if child_.nodeType == Node.ELEMENT_NODE and \5063                nodeName_ == 'title':5064            childobj_ = docTitleType.factory()5065            childobj_.build(child_)5066            obj_ = self.mixedclass_(MixedContainer.CategoryComplex,5067                                    MixedContainer.TypeNone, 'title', childobj_)5068            self.content_.append(obj_)5069        elif child_.nodeType == Node.ELEMENT_NODE and \5070                nodeName_ == 'para':5071            childobj_ = docParaType.factory()5072            childobj_.build(child_)5073            obj_ = self.mixedclass_(MixedContainer.CategoryComplex,5074                                    MixedContainer.TypeNone, 'para', childobj_)5075            self.content_.append(obj_)5076        elif child_.nodeType == Node.ELEMENT_NODE and \5077                nodeName_ == 'sect4':5078            childobj_ = docSect4Type.factory()5079            childobj_.build(child_)5080            obj_ = self.mixedclass_(MixedContainer.CategoryComplex,5081                                    MixedContainer.TypeNone, 'sect4', childobj_)5082            self.content_.append(obj_)5083        elif child_.nodeType == Node.ELEMENT_NODE and \5084                nodeName_ == 'internal':5085            childobj_ = docInternalS3Type.factory()5086            childobj_.build(child_)5087            obj_ = self.mixedclass_(MixedContainer.CategoryComplex,5088                                    MixedContainer.TypeNone, 'internal', childobj_)5089            self.content_.append(obj_)5090        elif child_.nodeType == Node.TEXT_NODE:5091            obj_ = self.mixedclass_(MixedContainer.CategoryText,5092                                    MixedContainer.TypeNone, '', child_.nodeValue)5093            self.content_.append(obj_)5094# end class docSect3Type5095class docSect4Type(GeneratedsSuper):5096    subclass = None5097    superclass = None5098    def __init__(self, id=None, title=None, para=None, internal=None, mixedclass_=None, content_=None):5099        self.id = id5100        if mixedclass_ is None:5101            self.mixedclass_ = MixedContainer5102        else:5103            self.mixedclass_ = mixedclass_5104        if content_ is None:5105            self.content_ = []5106        else:5107            self.content_ = content_5108    def factory(*args_, **kwargs_):5109        if docSect4Type.subclass:5110            return docSect4Type.subclass(*args_, **kwargs_)5111        else:5112            return docSect4Type(*args_, **kwargs_)5113    factory = staticmethod(factory)5114    def get_title(self): return self.title5115    def set_title(self, title): self.title = title5116    def get_para(self): return self.para5117    def set_para(self, para): self.para = para5118    def add_para(self, value): self.para.append(value)5119    def insert_para(self, index, value): self.para[index] = value5120    def get_internal(self): return self.internal5121    def set_internal(self, internal): self.internal = internal5122    def get_id(self): return self.id5123    def set_id(self, id): self.id = id5124    def export(self, outfile, level, namespace_='', name_='docSect4Type', namespacedef_=''):5125        showIndent(outfile, level)5126        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))5127        self.exportAttributes(outfile, level, namespace_, name_='docSect4Type')5128        outfile.write('>')5129        self.exportChildren(outfile, level + 1, namespace_, name_)5130        outfile.write('</%s%s>\n' % (namespace_, name_))5131    def exportAttributes(self, outfile, level, namespace_='', name_='docSect4Type'):5132        if self.id is not None:5133            outfile.write(' id=%s' % (self.format_string(quote_attrib(5134                self.id).encode(ExternalEncoding), input_name='id'), ))5135    def exportChildren(self, outfile, level, namespace_='', name_='docSect4Type'):5136        for item_ in self.content_:5137            item_.export(outfile, level, item_.name, namespace_)5138    def hasContent_(self):5139        if (5140            self.title is not None or5141            self.para is not None or5142            self.internal is not None5143        ):5144            return True5145        else:5146            return False5147    def exportLiteral(self, outfile, level, name_='docSect4Type'):5148        level += 15149        self.exportLiteralAttributes(outfile, level, name_)5150        if self.hasContent_():5151            self.exportLiteralChildren(outfile, level, name_)5152    def exportLiteralAttributes(self, outfile, level, name_):5153        if self.id is not None:5154            showIndent(outfile, level)5155            outfile.write('id = %s,\n' % (self.id,))5156    def exportLiteralChildren(self, outfile, level, name_):5157        showIndent(outfile, level)5158        outfile.write('content_ = [\n')5159        for item_ in self.content_:5160            item_.exportLiteral(outfile, level, name_)5161        showIndent(outfile, level)5162        outfile.write('],\n')5163        showIndent(outfile, level)5164        outfile.write('content_ = [\n')5165        for item_ in self.content_:5166            item_.exportLiteral(outfile, level, name_)5167        showIndent(outfile, level)5168        outfile.write('],\n')5169        showIndent(outfile, level)5170        outfile.write('content_ = [\n')5171        for item_ in self.content_:5172            item_.exportLiteral(outfile, level, name_)5173        showIndent(outfile, level)5174        outfile.write('],\n')5175    def build(self, node_):5176        attrs = node_.attributes5177        self.buildAttributes(attrs)5178        for child_ in node_.childNodes:5179            nodeName_ = child_.nodeName.split(':')[-1]5180            self.buildChildren(child_, nodeName_)5181    def buildAttributes(self, attrs):5182        if attrs.get('id'):5183            self.id = attrs.get('id').value5184    def buildChildren(self, child_, nodeName_):5185        if child_.nodeType == Node.ELEMENT_NODE and \5186                nodeName_ == 'title':5187            childobj_ = docTitleType.factory()5188            childobj_.build(child_)5189            obj_ = self.mixedclass_(MixedContainer.CategoryComplex,5190                                    MixedContainer.TypeNone, 'title', childobj_)5191            self.content_.append(obj_)5192        elif child_.nodeType == Node.ELEMENT_NODE and \5193                nodeName_ == 'para':5194            childobj_ = docParaType.factory()5195            childobj_.build(child_)5196            obj_ = self.mixedclass_(MixedContainer.CategoryComplex,5197                                    MixedContainer.TypeNone, 'para', childobj_)5198            self.content_.append(obj_)5199        elif child_.nodeType == Node.ELEMENT_NODE and \5200                nodeName_ == 'internal':5201            childobj_ = docInternalS4Type.factory()5202            childobj_.build(child_)5203            obj_ = self.mixedclass_(MixedContainer.CategoryComplex,5204                                    MixedContainer.TypeNone, 'internal', childobj_)5205            self.content_.append(obj_)5206        elif child_.nodeType == Node.TEXT_NODE:5207            obj_ = self.mixedclass_(MixedContainer.CategoryText,5208                                    MixedContainer.TypeNone, '', child_.nodeValue)5209            self.content_.append(obj_)5210# end class docSect4Type5211class docInternalType(GeneratedsSuper):5212    subclass = None5213    superclass = None5214    def __init__(self, para=None, sect1=None, mixedclass_=None, content_=None):5215        if mixedclass_ is None:5216            self.mixedclass_ = MixedContainer5217        else:5218            self.mixedclass_ = mixedclass_5219        if content_ is None:5220            self.content_ = []5221        else:5222            self.content_ = content_5223    def factory(*args_, **kwargs_):5224        if docInternalType.subclass:5225            return docInternalType.subclass(*args_, **kwargs_)5226        else:5227            return docInternalType(*args_, **kwargs_)5228    factory = staticmethod(factory)5229    def get_para(self): return self.para5230    def set_para(self, para): self.para = para5231    def add_para(self, value): self.para.append(value)5232    def insert_para(self, index, value): self.para[index] = value5233    def get_sect1(self): return self.sect15234    def set_sect1(self, sect1): self.sect1 = sect15235    def add_sect1(self, value): self.sect1.append(value)5236    def insert_sect1(self, index, value): self.sect1[index] = value5237    def export(self, outfile, level, namespace_='', name_='docInternalType', namespacedef_=''):5238        showIndent(outfile, level)5239        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))5240        self.exportAttributes(outfile, level, namespace_,5241                              name_='docInternalType')5242        outfile.write('>')5243        self.exportChildren(outfile, level + 1, namespace_, name_)5244        outfile.write('</%s%s>\n' % (namespace_, name_))5245    def exportAttributes(self, outfile, level, namespace_='', name_='docInternalType'):5246        pass5247    def exportChildren(self, outfile, level, namespace_='', name_='docInternalType'):5248        for item_ in self.content_:5249            item_.export(outfile, level, item_.name, namespace_)5250    def hasContent_(self):5251        if (5252            self.para is not None or5253            self.sect1 is not None5254        ):5255            return True5256        else:5257            return False5258    def exportLiteral(self, outfile, level, name_='docInternalType'):5259        level += 15260        self.exportLiteralAttributes(outfile, level, name_)5261        if self.hasContent_():5262            self.exportLiteralChildren(outfile, level, name_)5263    def exportLiteralAttributes(self, outfile, level, name_):5264        pass5265    def exportLiteralChildren(self, outfile, level, name_):5266        showIndent(outfile, level)5267        outfile.write('content_ = [\n')5268        for item_ in self.content_:5269            item_.exportLiteral(outfile, level, name_)5270        showIndent(outfile, level)5271        outfile.write('],\n')5272        showIndent(outfile, level)5273        outfile.write('content_ = [\n')5274        for item_ in self.content_:5275            item_.exportLiteral(outfile, level, name_)5276        showIndent(outfile, level)5277        outfile.write('],\n')5278    def build(self, node_):5279        attrs = node_.attributes5280        self.buildAttributes(attrs)5281        for child_ in node_.childNodes:5282            nodeName_ = child_.nodeName.split(':')[-1]5283            self.buildChildren(child_, nodeName_)5284    def buildAttributes(self, attrs):5285        pass5286    def buildChildren(self, child_, nodeName_):5287        if child_.nodeType == Node.ELEMENT_NODE and \5288                nodeName_ == 'para':5289            childobj_ = docParaType.factory()5290            childobj_.build(child_)5291            obj_ = self.mixedclass_(MixedContainer.CategoryComplex,5292                                    MixedContainer.TypeNone, 'para', childobj_)5293            self.content_.append(obj_)5294        elif child_.nodeType == Node.ELEMENT_NODE and \5295                nodeName_ == 'sect1':5296            childobj_ = docSect1Type.factory()5297            childobj_.build(child_)5298            obj_ = self.mixedclass_(MixedContainer.CategoryComplex,5299                                    MixedContainer.TypeNone, 'sect1', childobj_)5300            self.content_.append(obj_)5301        elif child_.nodeType == Node.TEXT_NODE:5302            obj_ = self.mixedclass_(MixedContainer.CategoryText,5303                                    MixedContainer.TypeNone, '', child_.nodeValue)5304            self.content_.append(obj_)5305# end class docInternalType5306class docInternalS1Type(GeneratedsSuper):5307    subclass = None5308    superclass = None5309    def __init__(self, para=None, sect2=None, mixedclass_=None, content_=None):5310        if mixedclass_ is None:5311            self.mixedclass_ = MixedContainer5312        else:5313            self.mixedclass_ = mixedclass_5314        if content_ is None:5315            self.content_ = []5316        else:5317            self.content_ = content_5318    def factory(*args_, **kwargs_):5319        if docInternalS1Type.subclass:5320            return docInternalS1Type.subclass(*args_, **kwargs_)5321        else:5322            return docInternalS1Type(*args_, **kwargs_)5323    factory = staticmethod(factory)5324    def get_para(self): return self.para5325    def set_para(self, para): self.para = para5326    def add_para(self, value): self.para.append(value)5327    def insert_para(self, index, value): self.para[index] = value5328    def get_sect2(self): return self.sect25329    def set_sect2(self, sect2): self.sect2 = sect25330    def add_sect2(self, value): self.sect2.append(value)5331    def insert_sect2(self, index, value): self.sect2[index] = value5332    def export(self, outfile, level, namespace_='', name_='docInternalS1Type', namespacedef_=''):5333        showIndent(outfile, level)5334        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))5335        self.exportAttributes(outfile, level, namespace_,5336                              name_='docInternalS1Type')5337        outfile.write('>')5338        self.exportChildren(outfile, level + 1, namespace_, name_)5339        outfile.write('</%s%s>\n' % (namespace_, name_))5340    def exportAttributes(self, outfile, level, namespace_='', name_='docInternalS1Type'):5341        pass5342    def exportChildren(self, outfile, level, namespace_='', name_='docInternalS1Type'):5343        for item_ in self.content_:5344            item_.export(outfile, level, item_.name, namespace_)5345    def hasContent_(self):5346        if (5347            self.para is not None or5348            self.sect2 is not None5349        ):5350            return True5351        else:5352            return False5353    def exportLiteral(self, outfile, level, name_='docInternalS1Type'):5354        level += 15355        self.exportLiteralAttributes(outfile, level, name_)5356        if self.hasContent_():5357            self.exportLiteralChildren(outfile, level, name_)5358    def exportLiteralAttributes(self, outfile, level, name_):5359        pass5360    def exportLiteralChildren(self, outfile, level, name_):5361        showIndent(outfile, level)5362        outfile.write('content_ = [\n')5363        for item_ in self.content_:5364            item_.exportLiteral(outfile, level, name_)5365        showIndent(outfile, level)5366        outfile.write('],\n')5367        showIndent(outfile, level)5368        outfile.write('content_ = [\n')5369        for item_ in self.content_:5370            item_.exportLiteral(outfile, level, name_)5371        showIndent(outfile, level)5372        outfile.write('],\n')5373    def build(self, node_):5374        attrs = node_.attributes5375        self.buildAttributes(attrs)5376        for child_ in node_.childNodes:5377            nodeName_ = child_.nodeName.split(':')[-1]5378            self.buildChildren(child_, nodeName_)5379    def buildAttributes(self, attrs):5380        pass5381    def buildChildren(self, child_, nodeName_):5382        if child_.nodeType == Node.ELEMENT_NODE and \5383                nodeName_ == 'para':5384            childobj_ = docParaType.factory()5385            childobj_.build(child_)5386            obj_ = self.mixedclass_(MixedContainer.CategoryComplex,5387                                    MixedContainer.TypeNone, 'para', childobj_)5388            self.content_.append(obj_)5389        elif child_.nodeType == Node.ELEMENT_NODE and \5390                nodeName_ == 'sect2':5391            childobj_ = docSect2Type.factory()5392            childobj_.build(child_)5393            obj_ = self.mixedclass_(MixedContainer.CategoryComplex,5394                                    MixedContainer.TypeNone, 'sect2', childobj_)5395            self.content_.append(obj_)5396        elif child_.nodeType == Node.TEXT_NODE:5397            obj_ = self.mixedclass_(MixedContainer.CategoryText,5398                                    MixedContainer.TypeNone, '', child_.nodeValue)5399            self.content_.append(obj_)5400# end class docInternalS1Type5401class docInternalS2Type(GeneratedsSuper):5402    subclass = None5403    superclass = None5404    def __init__(self, para=None, sect3=None, mixedclass_=None, content_=None):5405        if mixedclass_ is None:5406            self.mixedclass_ = MixedContainer5407        else:5408            self.mixedclass_ = mixedclass_5409        if content_ is None:5410            self.content_ = []5411        else:5412            self.content_ = content_5413    def factory(*args_, **kwargs_):5414        if docInternalS2Type.subclass:5415            return docInternalS2Type.subclass(*args_, **kwargs_)5416        else:5417            return docInternalS2Type(*args_, **kwargs_)5418    factory = staticmethod(factory)5419    def get_para(self): return self.para5420    def set_para(self, para): self.para = para5421    def add_para(self, value): self.para.append(value)5422    def insert_para(self, index, value): self.para[index] = value5423    def get_sect3(self): return self.sect35424    def set_sect3(self, sect3): self.sect3 = sect35425    def add_sect3(self, value): self.sect3.append(value)5426    def insert_sect3(self, index, value): self.sect3[index] = value5427    def export(self, outfile, level, namespace_='', name_='docInternalS2Type', namespacedef_=''):5428        showIndent(outfile, level)5429        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))5430        self.exportAttributes(outfile, level, namespace_,5431                              name_='docInternalS2Type')5432        outfile.write('>')5433        self.exportChildren(outfile, level + 1, namespace_, name_)5434        outfile.write('</%s%s>\n' % (namespace_, name_))5435    def exportAttributes(self, outfile, level, namespace_='', name_='docInternalS2Type'):5436        pass5437    def exportChildren(self, outfile, level, namespace_='', name_='docInternalS2Type'):5438        for item_ in self.content_:5439            item_.export(outfile, level, item_.name, namespace_)5440    def hasContent_(self):5441        if (5442            self.para is not None or5443            self.sect3 is not None5444        ):5445            return True5446        else:5447            return False5448    def exportLiteral(self, outfile, level, name_='docInternalS2Type'):5449        level += 15450        self.exportLiteralAttributes(outfile, level, name_)5451        if self.hasContent_():5452            self.exportLiteralChildren(outfile, level, name_)5453    def exportLiteralAttributes(self, outfile, level, name_):5454        pass5455    def exportLiteralChildren(self, outfile, level, name_):5456        showIndent(outfile, level)5457        outfile.write('content_ = [\n')5458        for item_ in self.content_:5459            item_.exportLiteral(outfile, level, name_)5460        showIndent(outfile, level)5461        outfile.write('],\n')5462        showIndent(outfile, level)5463        outfile.write('content_ = [\n')5464        for item_ in self.content_:5465            item_.exportLiteral(outfile, level, name_)5466        showIndent(outfile, level)5467        outfile.write('],\n')5468    def build(self, node_):5469        attrs = node_.attributes5470        self.buildAttributes(attrs)5471        for child_ in node_.childNodes:5472            nodeName_ = child_.nodeName.split(':')[-1]5473            self.buildChildren(child_, nodeName_)5474    def buildAttributes(self, attrs):5475        pass5476    def buildChildren(self, child_, nodeName_):5477        if child_.nodeType == Node.ELEMENT_NODE and \5478                nodeName_ == 'para':5479            childobj_ = docParaType.factory()5480            childobj_.build(child_)5481            obj_ = self.mixedclass_(MixedContainer.CategoryComplex,5482                                    MixedContainer.TypeNone, 'para', childobj_)5483            self.content_.append(obj_)5484        elif child_.nodeType == Node.ELEMENT_NODE and \5485                nodeName_ == 'sect3':5486            childobj_ = docSect3Type.factory()5487            childobj_.build(child_)5488            obj_ = self.mixedclass_(MixedContainer.CategoryComplex,5489                                    MixedContainer.TypeNone, 'sect3', childobj_)5490            self.content_.append(obj_)5491        elif child_.nodeType == Node.TEXT_NODE:5492            obj_ = self.mixedclass_(MixedContainer.CategoryText,5493                                    MixedContainer.TypeNone, '', child_.nodeValue)5494            self.content_.append(obj_)5495# end class docInternalS2Type5496class docInternalS3Type(GeneratedsSuper):5497    subclass = None5498    superclass = None5499    def __init__(self, para=None, sect3=None, mixedclass_=None, content_=None):5500        if mixedclass_ is None:5501            self.mixedclass_ = MixedContainer5502        else:5503            self.mixedclass_ = mixedclass_5504        if content_ is None:5505            self.content_ = []5506        else:5507            self.content_ = content_5508    def factory(*args_, **kwargs_):5509        if docInternalS3Type.subclass:5510            return docInternalS3Type.subclass(*args_, **kwargs_)5511        else:5512            return docInternalS3Type(*args_, **kwargs_)5513    factory = staticmethod(factory)5514    def get_para(self): return self.para5515    def set_para(self, para): self.para = para5516    def add_para(self, value): self.para.append(value)5517    def insert_para(self, index, value): self.para[index] = value5518    def get_sect3(self): return self.sect35519    def set_sect3(self, sect3): self.sect3 = sect35520    def add_sect3(self, value): self.sect3.append(value)5521    def insert_sect3(self, index, value): self.sect3[index] = value5522    def export(self, outfile, level, namespace_='', name_='docInternalS3Type', namespacedef_=''):5523        showIndent(outfile, level)5524        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))5525        self.exportAttributes(outfile, level, namespace_,5526                              name_='docInternalS3Type')5527        outfile.write('>')5528        self.exportChildren(outfile, level + 1, namespace_, name_)5529        outfile.write('</%s%s>\n' % (namespace_, name_))5530    def exportAttributes(self, outfile, level, namespace_='', name_='docInternalS3Type'):5531        pass5532    def exportChildren(self, outfile, level, namespace_='', name_='docInternalS3Type'):5533        for item_ in self.content_:5534            item_.export(outfile, level, item_.name, namespace_)5535    def hasContent_(self):5536        if (5537            self.para is not None or5538            self.sect3 is not None5539        ):5540            return True5541        else:5542            return False5543    def exportLiteral(self, outfile, level, name_='docInternalS3Type'):5544        level += 15545        self.exportLiteralAttributes(outfile, level, name_)5546        if self.hasContent_():5547            self.exportLiteralChildren(outfile, level, name_)5548    def exportLiteralAttributes(self, outfile, level, name_):5549        pass5550    def exportLiteralChildren(self, outfile, level, name_):5551        showIndent(outfile, level)5552        outfile.write('content_ = [\n')5553        for item_ in self.content_:5554            item_.exportLiteral(outfile, level, name_)5555        showIndent(outfile, level)5556        outfile.write('],\n')5557        showIndent(outfile, level)5558        outfile.write('content_ = [\n')5559        for item_ in self.content_:5560            item_.exportLiteral(outfile, level, name_)5561        showIndent(outfile, level)5562        outfile.write('],\n')5563    def build(self, node_):5564        attrs = node_.attributes5565        self.buildAttributes(attrs)5566        for child_ in node_.childNodes:5567            nodeName_ = child_.nodeName.split(':')[-1]5568            self.buildChildren(child_, nodeName_)5569    def buildAttributes(self, attrs):5570        pass5571    def buildChildren(self, child_, nodeName_):5572        if child_.nodeType == Node.ELEMENT_NODE and \5573                nodeName_ == 'para':5574            childobj_ = docParaType.factory()5575            childobj_.build(child_)5576            obj_ = self.mixedclass_(MixedContainer.CategoryComplex,5577                                    MixedContainer.TypeNone, 'para', childobj_)5578            self.content_.append(obj_)5579        elif child_.nodeType == Node.ELEMENT_NODE and \5580                nodeName_ == 'sect3':5581            childobj_ = docSect4Type.factory()5582            childobj_.build(child_)5583            obj_ = self.mixedclass_(MixedContainer.CategoryComplex,5584                                    MixedContainer.TypeNone, 'sect3', childobj_)5585            self.content_.append(obj_)5586        elif child_.nodeType == Node.TEXT_NODE:5587            obj_ = self.mixedclass_(MixedContainer.CategoryText,5588                                    MixedContainer.TypeNone, '', child_.nodeValue)5589            self.content_.append(obj_)5590# end class docInternalS3Type5591class docInternalS4Type(GeneratedsSuper):5592    subclass = None5593    superclass = None5594    def __init__(self, para=None, mixedclass_=None, content_=None):5595        if mixedclass_ is None:5596            self.mixedclass_ = MixedContainer5597        else:5598            self.mixedclass_ = mixedclass_5599        if content_ is None:5600            self.content_ = []5601        else:5602            self.content_ = content_5603    def factory(*args_, **kwargs_):5604        if docInternalS4Type.subclass:5605            return docInternalS4Type.subclass(*args_, **kwargs_)5606        else:5607            return docInternalS4Type(*args_, **kwargs_)5608    factory = staticmethod(factory)5609    def get_para(self): return self.para5610    def set_para(self, para): self.para = para5611    def add_para(self, value): self.para.append(value)5612    def insert_para(self, index, value): self.para[index] = value5613    def export(self, outfile, level, namespace_='', name_='docInternalS4Type', namespacedef_=''):5614        showIndent(outfile, level)5615        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))5616        self.exportAttributes(outfile, level, namespace_,5617                              name_='docInternalS4Type')5618        outfile.write('>')5619        self.exportChildren(outfile, level + 1, namespace_, name_)5620        outfile.write('</%s%s>\n' % (namespace_, name_))5621    def exportAttributes(self, outfile, level, namespace_='', name_='docInternalS4Type'):5622        pass5623    def exportChildren(self, outfile, level, namespace_='', name_='docInternalS4Type'):5624        for item_ in self.content_:5625            item_.export(outfile, level, item_.name, namespace_)5626    def hasContent_(self):5627        if (5628            self.para is not None5629        ):5630            return True5631        else:5632            return False5633    def exportLiteral(self, outfile, level, name_='docInternalS4Type'):5634        level += 15635        self.exportLiteralAttributes(outfile, level, name_)5636        if self.hasContent_():5637            self.exportLiteralChildren(outfile, level, name_)5638    def exportLiteralAttributes(self, outfile, level, name_):5639        pass5640    def exportLiteralChildren(self, outfile, level, name_):5641        showIndent(outfile, level)5642        outfile.write('content_ = [\n')5643        for item_ in self.content_:5644            item_.exportLiteral(outfile, level, name_)5645        showIndent(outfile, level)5646        outfile.write('],\n')5647    def build(self, node_):5648        attrs = node_.attributes5649        self.buildAttributes(attrs)5650        for child_ in node_.childNodes:5651            nodeName_ = child_.nodeName.split(':')[-1]5652            self.buildChildren(child_, nodeName_)5653    def buildAttributes(self, attrs):5654        pass5655    def buildChildren(self, child_, nodeName_):5656        if child_.nodeType == Node.ELEMENT_NODE and \5657                nodeName_ == 'para':5658            childobj_ = docParaType.factory()5659            childobj_.build(child_)5660            obj_ = self.mixedclass_(MixedContainer.CategoryComplex,5661                                    MixedContainer.TypeNone, 'para', childobj_)5662            self.content_.append(obj_)5663        elif child_.nodeType == Node.TEXT_NODE:5664            obj_ = self.mixedclass_(MixedContainer.CategoryText,5665                                    MixedContainer.TypeNone, '', child_.nodeValue)5666            self.content_.append(obj_)5667# end class docInternalS4Type5668class docTitleType(GeneratedsSuper):5669    subclass = None5670    superclass = None5671    def __init__(self, valueOf_='', mixedclass_=None, content_=None):5672        if mixedclass_ is None:5673            self.mixedclass_ = MixedContainer5674        else:5675            self.mixedclass_ = mixedclass_5676        if content_ is None:5677            self.content_ = []5678        else:5679            self.content_ = content_5680    def factory(*args_, **kwargs_):5681        if docTitleType.subclass:5682            return docTitleType.subclass(*args_, **kwargs_)5683        else:5684            return docTitleType(*args_, **kwargs_)5685    factory = staticmethod(factory)5686    def getValueOf_(self): return self.valueOf_5687    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_5688    def export(self, outfile, level, namespace_='', name_='docTitleType', namespacedef_=''):5689        showIndent(outfile, level)5690        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))5691        self.exportAttributes(outfile, level, namespace_, name_='docTitleType')5692        outfile.write('>')5693        self.exportChildren(outfile, level + 1, namespace_, name_)5694        outfile.write('</%s%s>\n' % (namespace_, name_))5695    def exportAttributes(self, outfile, level, namespace_='', name_='docTitleType'):5696        pass5697    def exportChildren(self, outfile, level, namespace_='', name_='docTitleType'):5698        if self.valueOf_.find('![CDATA') > -1:5699            value = quote_xml('%s' % self.valueOf_)5700            value = value.replace('![CDATA', '<![CDATA')5701            value = value.replace(']]', ']]>')5702            outfile.write(value)5703        else:5704            outfile.write(quote_xml('%s' % self.valueOf_))5705    def hasContent_(self):5706        if (5707            self.valueOf_ is not None5708        ):5709            return True5710        else:5711            return False5712    def exportLiteral(self, outfile, level, name_='docTitleType'):5713        level += 15714        self.exportLiteralAttributes(outfile, level, name_)5715        if self.hasContent_():5716            self.exportLiteralChildren(outfile, level, name_)5717    def exportLiteralAttributes(self, outfile, level, name_):5718        pass5719    def exportLiteralChildren(self, outfile, level, name_):5720        showIndent(outfile, level)5721        outfile.write('valueOf_ = "%s",\n' % (self.valueOf_,))5722    def build(self, node_):5723        attrs = node_.attributes5724        self.buildAttributes(attrs)5725        self.valueOf_ = ''5726        for child_ in node_.childNodes:5727            nodeName_ = child_.nodeName.split(':')[-1]5728            self.buildChildren(child_, nodeName_)5729    def buildAttributes(self, attrs):5730        pass5731    def buildChildren(self, child_, nodeName_):5732        if child_.nodeType == Node.TEXT_NODE:5733            obj_ = self.mixedclass_(MixedContainer.CategoryText,5734                                    MixedContainer.TypeNone, '', child_.nodeValue)5735            self.content_.append(obj_)5736        if child_.nodeType == Node.TEXT_NODE:5737            self.valueOf_ += child_.nodeValue5738        elif child_.nodeType == Node.CDATA_SECTION_NODE:5739            self.valueOf_ += '![CDATA[' + child_.nodeValue + ']]'5740# end class docTitleType5741class docParaType(GeneratedsSuper):5742    subclass = None5743    superclass = None5744    def __init__(self, valueOf_='', mixedclass_=None, content_=None):5745        if mixedclass_ is None:5746            self.mixedclass_ = MixedContainer5747        else:5748            self.mixedclass_ = mixedclass_5749        if content_ is None:5750            self.content_ = []5751        else:5752            self.content_ = content_5753    def factory(*args_, **kwargs_):5754        if docParaType.subclass:5755            return docParaType.subclass(*args_, **kwargs_)5756        else:5757            return docParaType(*args_, **kwargs_)5758    factory = staticmethod(factory)5759    def getValueOf_(self): return self.valueOf_5760    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_5761    def export(self, outfile, level, namespace_='', name_='docParaType', namespacedef_=''):5762        showIndent(outfile, level)5763        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))5764        self.exportAttributes(outfile, level, namespace_, name_='docParaType')5765        outfile.write('>')5766        self.exportChildren(outfile, level + 1, namespace_, name_)5767        outfile.write('</%s%s>\n' % (namespace_, name_))5768    def exportAttributes(self, outfile, level, namespace_='', name_='docParaType'):5769        pass5770    def exportChildren(self, outfile, level, namespace_='', name_='docParaType'):5771        if self.valueOf_.find('![CDATA') > -1:5772            value = quote_xml('%s' % self.valueOf_)5773            value = value.replace('![CDATA', '<![CDATA')5774            value = value.replace(']]', ']]>')5775            outfile.write(value)5776        else:5777            outfile.write(quote_xml('%s' % self.valueOf_))5778    def hasContent_(self):5779        if (5780            self.valueOf_ is not None5781        ):5782            return True5783        else:5784            return False5785    def exportLiteral(self, outfile, level, name_='docParaType'):5786        level += 15787        self.exportLiteralAttributes(outfile, level, name_)5788        if self.hasContent_():5789            self.exportLiteralChildren(outfile, level, name_)5790    def exportLiteralAttributes(self, outfile, level, name_):5791        pass5792    def exportLiteralChildren(self, outfile, level, name_):5793        showIndent(outfile, level)5794        outfile.write('valueOf_ = "%s",\n' % (self.valueOf_,))5795    def build(self, node_):5796        attrs = node_.attributes5797        self.buildAttributes(attrs)5798        self.valueOf_ = ''5799        for child_ in node_.childNodes:5800            nodeName_ = child_.nodeName.split(':')[-1]5801            self.buildChildren(child_, nodeName_)5802    def buildAttributes(self, attrs):5803        pass5804    def buildChildren(self, child_, nodeName_):5805        if child_.nodeType == Node.TEXT_NODE:5806            obj_ = self.mixedclass_(MixedContainer.CategoryText,5807                                    MixedContainer.TypeNone, '', child_.nodeValue)5808            self.content_.append(obj_)5809        if child_.nodeType == Node.TEXT_NODE:5810            self.valueOf_ += child_.nodeValue5811        elif child_.nodeType == Node.CDATA_SECTION_NODE:5812            self.valueOf_ += '![CDATA[' + child_.nodeValue + ']]'5813# end class docParaType5814class docMarkupType(GeneratedsSuper):5815    subclass = None5816    superclass = None5817    def __init__(self, valueOf_='', mixedclass_=None, content_=None):5818        if mixedclass_ is None:5819            self.mixedclass_ = MixedContainer5820        else:5821            self.mixedclass_ = mixedclass_5822        if content_ is None:5823            self.content_ = []5824        else:5825            self.content_ = content_5826    def factory(*args_, **kwargs_):5827        if docMarkupType.subclass:5828            return docMarkupType.subclass(*args_, **kwargs_)5829        else:5830            return docMarkupType(*args_, **kwargs_)5831    factory = staticmethod(factory)5832    def getValueOf_(self): return self.valueOf_5833    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_5834    def export(self, outfile, level, namespace_='', name_='docMarkupType', namespacedef_=''):5835        showIndent(outfile, level)5836        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))5837        self.exportAttributes(outfile, level, namespace_,5838                              name_='docMarkupType')5839        outfile.write('>')5840        self.exportChildren(outfile, level + 1, namespace_, name_)5841        outfile.write('</%s%s>\n' % (namespace_, name_))5842    def exportAttributes(self, outfile, level, namespace_='', name_='docMarkupType'):5843        pass5844    def exportChildren(self, outfile, level, namespace_='', name_='docMarkupType'):5845        if self.valueOf_.find('![CDATA') > -1:5846            value = quote_xml('%s' % self.valueOf_)5847            value = value.replace('![CDATA', '<![CDATA')5848            value = value.replace(']]', ']]>')5849            outfile.write(value)5850        else:5851            outfile.write(quote_xml('%s' % self.valueOf_))5852    def hasContent_(self):5853        if (5854            self.valueOf_ is not None5855        ):5856            return True5857        else:5858            return False5859    def exportLiteral(self, outfile, level, name_='docMarkupType'):5860        level += 15861        self.exportLiteralAttributes(outfile, level, name_)5862        if self.hasContent_():5863            self.exportLiteralChildren(outfile, level, name_)5864    def exportLiteralAttributes(self, outfile, level, name_):5865        pass5866    def exportLiteralChildren(self, outfile, level, name_):5867        showIndent(outfile, level)5868        outfile.write('valueOf_ = "%s",\n' % (self.valueOf_,))5869    def build(self, node_):5870        attrs = node_.attributes5871        self.buildAttributes(attrs)5872        self.valueOf_ = ''5873        for child_ in node_.childNodes:5874            nodeName_ = child_.nodeName.split(':')[-1]5875            self.buildChildren(child_, nodeName_)5876    def buildAttributes(self, attrs):5877        pass5878    def buildChildren(self, child_, nodeName_):5879        if child_.nodeType == Node.TEXT_NODE:5880            obj_ = self.mixedclass_(MixedContainer.CategoryText,5881                                    MixedContainer.TypeNone, '', child_.nodeValue)5882            self.content_.append(obj_)5883        if child_.nodeType == Node.TEXT_NODE:5884            self.valueOf_ += child_.nodeValue5885        elif child_.nodeType == Node.CDATA_SECTION_NODE:5886            self.valueOf_ += '![CDATA[' + child_.nodeValue + ']]'5887# end class docMarkupType5888class docURLLink(GeneratedsSuper):5889    subclass = None5890    superclass = None5891    def __init__(self, url=None, valueOf_='', mixedclass_=None, content_=None):5892        self.url = url5893        if mixedclass_ is None:5894            self.mixedclass_ = MixedContainer5895        else:5896            self.mixedclass_ = mixedclass_5897        if content_ is None:5898            self.content_ = []5899        else:5900            self.content_ = content_5901    def factory(*args_, **kwargs_):5902        if docURLLink.subclass:5903            return docURLLink.subclass(*args_, **kwargs_)5904        else:5905            return docURLLink(*args_, **kwargs_)5906    factory = staticmethod(factory)5907    def get_url(self): return self.url5908    def set_url(self, url): self.url = url5909    def getValueOf_(self): return self.valueOf_5910    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_5911    def export(self, outfile, level, namespace_='', name_='docURLLink', namespacedef_=''):5912        showIndent(outfile, level)5913        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))5914        self.exportAttributes(outfile, level, namespace_, name_='docURLLink')5915        outfile.write('>')5916        self.exportChildren(outfile, level + 1, namespace_, name_)5917        outfile.write('</%s%s>\n' % (namespace_, name_))5918    def exportAttributes(self, outfile, level, namespace_='', name_='docURLLink'):5919        if self.url is not None:5920            outfile.write(' url=%s' % (self.format_string(quote_attrib(5921                self.url).encode(ExternalEncoding), input_name='url'), ))5922    def exportChildren(self, outfile, level, namespace_='', name_='docURLLink'):5923        if self.valueOf_.find('![CDATA') > -1:5924            value = quote_xml('%s' % self.valueOf_)5925            value = value.replace('![CDATA', '<![CDATA')5926            value = value.replace(']]', ']]>')5927            outfile.write(value)5928        else:5929            outfile.write(quote_xml('%s' % self.valueOf_))5930    def hasContent_(self):5931        if (5932            self.valueOf_ is not None5933        ):5934            return True5935        else:5936            return False5937    def exportLiteral(self, outfile, level, name_='docURLLink'):5938        level += 15939        self.exportLiteralAttributes(outfile, level, name_)5940        if self.hasContent_():5941            self.exportLiteralChildren(outfile, level, name_)5942    def exportLiteralAttributes(self, outfile, level, name_):5943        if self.url is not None:5944            showIndent(outfile, level)5945            outfile.write('url = %s,\n' % (self.url,))5946    def exportLiteralChildren(self, outfile, level, name_):5947        showIndent(outfile, level)5948        outfile.write('valueOf_ = "%s",\n' % (self.valueOf_,))5949    def build(self, node_):5950        attrs = node_.attributes5951        self.buildAttributes(attrs)5952        self.valueOf_ = ''5953        for child_ in node_.childNodes:5954            nodeName_ = child_.nodeName.split(':')[-1]5955            self.buildChildren(child_, nodeName_)5956    def buildAttributes(self, attrs):5957        if attrs.get('url'):5958            self.url = attrs.get('url').value5959    def buildChildren(self, child_, nodeName_):5960        if child_.nodeType == Node.TEXT_NODE:5961            obj_ = self.mixedclass_(MixedContainer.CategoryText,5962                                    MixedContainer.TypeNone, '', child_.nodeValue)5963            self.content_.append(obj_)5964        if child_.nodeType == Node.TEXT_NODE:5965            self.valueOf_ += child_.nodeValue5966        elif child_.nodeType == Node.CDATA_SECTION_NODE:5967            self.valueOf_ += '![CDATA[' + child_.nodeValue + ']]'5968# end class docURLLink5969class docAnchorType(GeneratedsSuper):5970    subclass = None5971    superclass = None5972    def __init__(self, id=None, valueOf_='', mixedclass_=None, content_=None):5973        self.id = id5974        if mixedclass_ is None:5975            self.mixedclass_ = MixedContainer5976        else:5977            self.mixedclass_ = mixedclass_5978        if content_ is None:5979            self.content_ = []5980        else:5981            self.content_ = content_5982    def factory(*args_, **kwargs_):5983        if docAnchorType.subclass:5984            return docAnchorType.subclass(*args_, **kwargs_)5985        else:5986            return docAnchorType(*args_, **kwargs_)5987    factory = staticmethod(factory)5988    def get_id(self): return self.id5989    def set_id(self, id): self.id = id5990    def getValueOf_(self): return self.valueOf_5991    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_5992    def export(self, outfile, level, namespace_='', name_='docAnchorType', namespacedef_=''):5993        showIndent(outfile, level)5994        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))5995        self.exportAttributes(outfile, level, namespace_,5996                              name_='docAnchorType')5997        outfile.write('>')5998        self.exportChildren(outfile, level + 1, namespace_, name_)5999        outfile.write('</%s%s>\n' % (namespace_, name_))6000    def exportAttributes(self, outfile, level, namespace_='', name_='docAnchorType'):6001        if self.id is not None:6002            outfile.write(' id=%s' % (self.format_string(quote_attrib(6003                self.id).encode(ExternalEncoding), input_name='id'), ))6004    def exportChildren(self, outfile, level, namespace_='', name_='docAnchorType'):6005        if self.valueOf_.find('![CDATA') > -1:6006            value = quote_xml('%s' % self.valueOf_)6007            value = value.replace('![CDATA', '<![CDATA')6008            value = value.replace(']]', ']]>')6009            outfile.write(value)6010        else:6011            outfile.write(quote_xml('%s' % self.valueOf_))6012    def hasContent_(self):6013        if (6014            self.valueOf_ is not None6015        ):6016            return True6017        else:6018            return False6019    def exportLiteral(self, outfile, level, name_='docAnchorType'):6020        level += 16021        self.exportLiteralAttributes(outfile, level, name_)6022        if self.hasContent_():6023            self.exportLiteralChildren(outfile, level, name_)6024    def exportLiteralAttributes(self, outfile, level, name_):6025        if self.id is not None:6026            showIndent(outfile, level)6027            outfile.write('id = %s,\n' % (self.id,))6028    def exportLiteralChildren(self, outfile, level, name_):6029        showIndent(outfile, level)6030        outfile.write('valueOf_ = "%s",\n' % (self.valueOf_,))6031    def build(self, node_):6032        attrs = node_.attributes6033        self.buildAttributes(attrs)6034        self.valueOf_ = ''6035        for child_ in node_.childNodes:6036            nodeName_ = child_.nodeName.split(':')[-1]6037            self.buildChildren(child_, nodeName_)6038    def buildAttributes(self, attrs):6039        if attrs.get('id'):6040            self.id = attrs.get('id').value6041    def buildChildren(self, child_, nodeName_):6042        if child_.nodeType == Node.TEXT_NODE:6043            obj_ = self.mixedclass_(MixedContainer.CategoryText,6044                                    MixedContainer.TypeNone, '', child_.nodeValue)6045            self.content_.append(obj_)6046        if child_.nodeType == Node.TEXT_NODE:6047            self.valueOf_ += child_.nodeValue6048        elif child_.nodeType == Node.CDATA_SECTION_NODE:6049            self.valueOf_ += '![CDATA[' + child_.nodeValue + ']]'6050# end class docAnchorType6051class docFormulaType(GeneratedsSuper):6052    subclass = None6053    superclass = None6054    def __init__(self, id=None, valueOf_='', mixedclass_=None, content_=None):6055        self.id = id6056        if mixedclass_ is None:6057            self.mixedclass_ = MixedContainer6058        else:6059            self.mixedclass_ = mixedclass_6060        if content_ is None:6061            self.content_ = []6062        else:6063            self.content_ = content_6064    def factory(*args_, **kwargs_):6065        if docFormulaType.subclass:6066            return docFormulaType.subclass(*args_, **kwargs_)6067        else:6068            return docFormulaType(*args_, **kwargs_)6069    factory = staticmethod(factory)6070    def get_id(self): return self.id6071    def set_id(self, id): self.id = id6072    def getValueOf_(self): return self.valueOf_6073    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_6074    def export(self, outfile, level, namespace_='', name_='docFormulaType', namespacedef_=''):6075        showIndent(outfile, level)6076        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))6077        self.exportAttributes(outfile, level, namespace_,6078                              name_='docFormulaType')6079        outfile.write('>')6080        self.exportChildren(outfile, level + 1, namespace_, name_)6081        outfile.write('</%s%s>\n' % (namespace_, name_))6082    def exportAttributes(self, outfile, level, namespace_='', name_='docFormulaType'):6083        if self.id is not None:6084            outfile.write(' id=%s' % (self.format_string(quote_attrib(6085                self.id).encode(ExternalEncoding), input_name='id'), ))6086    def exportChildren(self, outfile, level, namespace_='', name_='docFormulaType'):6087        if self.valueOf_.find('![CDATA') > -1:6088            value = quote_xml('%s' % self.valueOf_)6089            value = value.replace('![CDATA', '<![CDATA')6090            value = value.replace(']]', ']]>')6091            outfile.write(value)6092        else:6093            outfile.write(quote_xml('%s' % self.valueOf_))6094    def hasContent_(self):6095        if (6096            self.valueOf_ is not None6097        ):6098            return True6099        else:6100            return False6101    def exportLiteral(self, outfile, level, name_='docFormulaType'):6102        level += 16103        self.exportLiteralAttributes(outfile, level, name_)6104        if self.hasContent_():6105            self.exportLiteralChildren(outfile, level, name_)6106    def exportLiteralAttributes(self, outfile, level, name_):6107        if self.id is not None:6108            showIndent(outfile, level)6109            outfile.write('id = %s,\n' % (self.id,))6110    def exportLiteralChildren(self, outfile, level, name_):6111        showIndent(outfile, level)6112        outfile.write('valueOf_ = "%s",\n' % (self.valueOf_,))6113    def build(self, node_):6114        attrs = node_.attributes6115        self.buildAttributes(attrs)6116        self.valueOf_ = ''6117        for child_ in node_.childNodes:6118            nodeName_ = child_.nodeName.split(':')[-1]6119            self.buildChildren(child_, nodeName_)6120    def buildAttributes(self, attrs):6121        if attrs.get('id'):6122            self.id = attrs.get('id').value6123    def buildChildren(self, child_, nodeName_):6124        if child_.nodeType == Node.TEXT_NODE:6125            obj_ = self.mixedclass_(MixedContainer.CategoryText,6126                                    MixedContainer.TypeNone, '', child_.nodeValue)6127            self.content_.append(obj_)6128        if child_.nodeType == Node.TEXT_NODE:6129            self.valueOf_ += child_.nodeValue6130        elif child_.nodeType == Node.CDATA_SECTION_NODE:6131            self.valueOf_ += '![CDATA[' + child_.nodeValue + ']]'6132# end class docFormulaType6133class docIndexEntryType(GeneratedsSuper):6134    subclass = None6135    superclass = None6136    def __init__(self, primaryie=None, secondaryie=None):6137        self.primaryie = primaryie6138        self.secondaryie = secondaryie6139    def factory(*args_, **kwargs_):6140        if docIndexEntryType.subclass:6141            return docIndexEntryType.subclass(*args_, **kwargs_)6142        else:6143            return docIndexEntryType(*args_, **kwargs_)6144    factory = staticmethod(factory)6145    def get_primaryie(self): return self.primaryie6146    def set_primaryie(self, primaryie): self.primaryie = primaryie6147    def get_secondaryie(self): return self.secondaryie6148    def set_secondaryie(self, secondaryie): self.secondaryie = secondaryie6149    def export(self, outfile, level, namespace_='', name_='docIndexEntryType', namespacedef_=''):6150        showIndent(outfile, level)6151        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))6152        self.exportAttributes(outfile, level, namespace_,6153                              name_='docIndexEntryType')6154        if self.hasContent_():6155            outfile.write('>\n')6156            self.exportChildren(outfile, level + 1, namespace_, name_)6157            showIndent(outfile, level)6158            outfile.write('</%s%s>\n' % (namespace_, name_))6159        else:6160            outfile.write(' />\n')6161    def exportAttributes(self, outfile, level, namespace_='', name_='docIndexEntryType'):6162        pass6163    def exportChildren(self, outfile, level, namespace_='', name_='docIndexEntryType'):6164        if self.primaryie is not None:6165            showIndent(outfile, level)6166            outfile.write('<%sprimaryie>%s</%sprimaryie>\n' % (namespace_, self.format_string(6167                quote_xml(self.primaryie).encode(ExternalEncoding), input_name='primaryie'), namespace_))6168        if self.secondaryie is not None:6169            showIndent(outfile, level)6170            outfile.write('<%ssecondaryie>%s</%ssecondaryie>\n' % (namespace_, self.format_string(6171                quote_xml(self.secondaryie).encode(ExternalEncoding), input_name='secondaryie'), namespace_))6172    def hasContent_(self):6173        if (6174            self.primaryie is not None or6175            self.secondaryie is not None6176        ):6177            return True6178        else:6179            return False6180    def exportLiteral(self, outfile, level, name_='docIndexEntryType'):6181        level += 16182        self.exportLiteralAttributes(outfile, level, name_)6183        if self.hasContent_():6184            self.exportLiteralChildren(outfile, level, name_)6185    def exportLiteralAttributes(self, outfile, level, name_):6186        pass6187    def exportLiteralChildren(self, outfile, level, name_):6188        showIndent(outfile, level)6189        outfile.write('primaryie=%s,\n' % quote_python(6190            self.primaryie).encode(ExternalEncoding))6191        showIndent(outfile, level)6192        outfile.write('secondaryie=%s,\n' % quote_python(6193            self.secondaryie).encode(ExternalEncoding))6194    def build(self, node_):6195        attrs = node_.attributes6196        self.buildAttributes(attrs)6197        for child_ in node_.childNodes:6198            nodeName_ = child_.nodeName.split(':')[-1]6199            self.buildChildren(child_, nodeName_)6200    def buildAttributes(self, attrs):6201        pass6202    def buildChildren(self, child_, nodeName_):6203        if child_.nodeType == Node.ELEMENT_NODE and \6204                nodeName_ == 'primaryie':6205            primaryie_ = ''6206            for text__content_ in child_.childNodes:6207                primaryie_ += text__content_.nodeValue6208            self.primaryie = primaryie_6209        elif child_.nodeType == Node.ELEMENT_NODE and \6210                nodeName_ == 'secondaryie':6211            secondaryie_ = ''6212            for text__content_ in child_.childNodes:6213                secondaryie_ += text__content_.nodeValue6214            self.secondaryie = secondaryie_6215# end class docIndexEntryType6216class docListType(GeneratedsSuper):6217    subclass = None6218    superclass = None6219    def __init__(self, listitem=None):6220        if listitem is None:6221            self.listitem = []6222        else:6223            self.listitem = listitem6224    def factory(*args_, **kwargs_):6225        if docListType.subclass:6226            return docListType.subclass(*args_, **kwargs_)6227        else:6228            return docListType(*args_, **kwargs_)6229    factory = staticmethod(factory)6230    def get_listitem(self): return self.listitem6231    def set_listitem(self, listitem): self.listitem = listitem6232    def add_listitem(self, value): self.listitem.append(value)6233    def insert_listitem(self, index, value): self.listitem[index] = value6234    def export(self, outfile, level, namespace_='', name_='docListType', namespacedef_=''):6235        showIndent(outfile, level)6236        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))6237        self.exportAttributes(outfile, level, namespace_, name_='docListType')6238        if self.hasContent_():6239            outfile.write('>\n')6240            self.exportChildren(outfile, level + 1, namespace_, name_)6241            showIndent(outfile, level)6242            outfile.write('</%s%s>\n' % (namespace_, name_))6243        else:6244            outfile.write(' />\n')6245    def exportAttributes(self, outfile, level, namespace_='', name_='docListType'):6246        pass6247    def exportChildren(self, outfile, level, namespace_='', name_='docListType'):6248        for listitem_ in self.listitem:6249            listitem_.export(outfile, level, namespace_, name_='listitem')6250    def hasContent_(self):6251        if (6252            self.listitem is not None6253        ):6254            return True6255        else:6256            return False6257    def exportLiteral(self, outfile, level, name_='docListType'):6258        level += 16259        self.exportLiteralAttributes(outfile, level, name_)6260        if self.hasContent_():6261            self.exportLiteralChildren(outfile, level, name_)6262    def exportLiteralAttributes(self, outfile, level, name_):6263        pass6264    def exportLiteralChildren(self, outfile, level, name_):6265        showIndent(outfile, level)6266        outfile.write('listitem=[\n')6267        level += 16268        for listitem in self.listitem:6269            showIndent(outfile, level)6270            outfile.write('model_.listitem(\n')6271            listitem.exportLiteral(outfile, level, name_='listitem')6272            showIndent(outfile, level)6273            outfile.write('),\n')6274        level -= 16275        showIndent(outfile, level)6276        outfile.write('],\n')6277    def build(self, node_):6278        attrs = node_.attributes6279        self.buildAttributes(attrs)6280        for child_ in node_.childNodes:6281            nodeName_ = child_.nodeName.split(':')[-1]6282            self.buildChildren(child_, nodeName_)6283    def buildAttributes(self, attrs):6284        pass6285    def buildChildren(self, child_, nodeName_):6286        if child_.nodeType == Node.ELEMENT_NODE and \6287                nodeName_ == 'listitem':6288            obj_ = docListItemType.factory()6289            obj_.build(child_)6290            self.listitem.append(obj_)6291# end class docListType6292class docListItemType(GeneratedsSuper):6293    subclass = None6294    superclass = None6295    def __init__(self, para=None):6296        if para is None:6297            self.para = []6298        else:6299            self.para = para6300    def factory(*args_, **kwargs_):6301        if docListItemType.subclass:6302            return docListItemType.subclass(*args_, **kwargs_)6303        else:6304            return docListItemType(*args_, **kwargs_)6305    factory = staticmethod(factory)6306    def get_para(self): return self.para6307    def set_para(self, para): self.para = para6308    def add_para(self, value): self.para.append(value)6309    def insert_para(self, index, value): self.para[index] = value6310    def export(self, outfile, level, namespace_='', name_='docListItemType', namespacedef_=''):6311        showIndent(outfile, level)6312        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))6313        self.exportAttributes(outfile, level, namespace_,6314                              name_='docListItemType')6315        if self.hasContent_():6316            outfile.write('>\n')6317            self.exportChildren(outfile, level + 1, namespace_, name_)6318            showIndent(outfile, level)6319            outfile.write('</%s%s>\n' % (namespace_, name_))6320        else:6321            outfile.write(' />\n')6322    def exportAttributes(self, outfile, level, namespace_='', name_='docListItemType'):6323        pass6324    def exportChildren(self, outfile, level, namespace_='', name_='docListItemType'):6325        for para_ in self.para:6326            para_.export(outfile, level, namespace_, name_='para')6327    def hasContent_(self):6328        if (6329            self.para is not None6330        ):6331            return True6332        else:6333            return False6334    def exportLiteral(self, outfile, level, name_='docListItemType'):6335        level += 16336        self.exportLiteralAttributes(outfile, level, name_)6337        if self.hasContent_():6338            self.exportLiteralChildren(outfile, level, name_)6339    def exportLiteralAttributes(self, outfile, level, name_):6340        pass6341    def exportLiteralChildren(self, outfile, level, name_):6342        showIndent(outfile, level)6343        outfile.write('para=[\n')6344        level += 16345        for para in self.para:6346            showIndent(outfile, level)6347            outfile.write('model_.para(\n')6348            para.exportLiteral(outfile, level, name_='para')6349            showIndent(outfile, level)6350            outfile.write('),\n')6351        level -= 16352        showIndent(outfile, level)6353        outfile.write('],\n')6354    def build(self, node_):6355        attrs = node_.attributes6356        self.buildAttributes(attrs)6357        for child_ in node_.childNodes:6358            nodeName_ = child_.nodeName.split(':')[-1]6359            self.buildChildren(child_, nodeName_)6360    def buildAttributes(self, attrs):6361        pass6362    def buildChildren(self, child_, nodeName_):6363        if child_.nodeType == Node.ELEMENT_NODE and \6364                nodeName_ == 'para':6365            obj_ = docParaType.factory()6366            obj_.build(child_)6367            self.para.append(obj_)6368# end class docListItemType6369class docSimpleSectType(GeneratedsSuper):6370    subclass = None6371    superclass = None6372    def __init__(self, kind=None, title=None, para=None):6373        self.kind = kind6374        self.title = title6375        if para is None:6376            self.para = []6377        else:6378            self.para = para6379    def factory(*args_, **kwargs_):6380        if docSimpleSectType.subclass:6381            return docSimpleSectType.subclass(*args_, **kwargs_)6382        else:6383            return docSimpleSectType(*args_, **kwargs_)6384    factory = staticmethod(factory)6385    def get_title(self): return self.title6386    def set_title(self, title): self.title = title6387    def get_para(self): return self.para6388    def set_para(self, para): self.para = para6389    def add_para(self, value): self.para.append(value)6390    def insert_para(self, index, value): self.para[index] = value6391    def get_kind(self): return self.kind6392    def set_kind(self, kind): self.kind = kind6393    def export(self, outfile, level, namespace_='', name_='docSimpleSectType', namespacedef_=''):6394        showIndent(outfile, level)6395        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))6396        self.exportAttributes(outfile, level, namespace_,6397                              name_='docSimpleSectType')6398        if self.hasContent_():6399            outfile.write('>\n')6400            self.exportChildren(outfile, level + 1, namespace_, name_)6401            showIndent(outfile, level)6402            outfile.write('</%s%s>\n' % (namespace_, name_))6403        else:6404            outfile.write(' />\n')6405    def exportAttributes(self, outfile, level, namespace_='', name_='docSimpleSectType'):6406        if self.kind is not None:6407            outfile.write(' kind=%s' % (quote_attrib(self.kind), ))6408    def exportChildren(self, outfile, level, namespace_='', name_='docSimpleSectType'):6409        if self.title:6410            self.title.export(outfile, level, namespace_, name_='title')6411        for para_ in self.para:6412            para_.export(outfile, level, namespace_, name_='para')6413    def hasContent_(self):6414        if (6415            self.title is not None or6416            self.para is not None6417        ):6418            return True6419        else:6420            return False6421    def exportLiteral(self, outfile, level, name_='docSimpleSectType'):6422        level += 16423        self.exportLiteralAttributes(outfile, level, name_)6424        if self.hasContent_():6425            self.exportLiteralChildren(outfile, level, name_)6426    def exportLiteralAttributes(self, outfile, level, name_):6427        if self.kind is not None:6428            showIndent(outfile, level)6429            outfile.write('kind = "%s",\n' % (self.kind,))6430    def exportLiteralChildren(self, outfile, level, name_):6431        if self.title:6432            showIndent(outfile, level)6433            outfile.write('title=model_.docTitleType(\n')6434            self.title.exportLiteral(outfile, level, name_='title')6435            showIndent(outfile, level)6436            outfile.write('),\n')6437        showIndent(outfile, level)6438        outfile.write('para=[\n')6439        level += 16440        for para in self.para:6441            showIndent(outfile, level)6442            outfile.write('model_.para(\n')6443            para.exportLiteral(outfile, level, name_='para')6444            showIndent(outfile, level)6445            outfile.write('),\n')6446        level -= 16447        showIndent(outfile, level)6448        outfile.write('],\n')6449    def build(self, node_):6450        attrs = node_.attributes6451        self.buildAttributes(attrs)6452        for child_ in node_.childNodes:6453            nodeName_ = child_.nodeName.split(':')[-1]6454            self.buildChildren(child_, nodeName_)6455    def buildAttributes(self, attrs):6456        if attrs.get('kind'):6457            self.kind = attrs.get('kind').value6458    def buildChildren(self, child_, nodeName_):6459        if child_.nodeType == Node.ELEMENT_NODE and \6460                nodeName_ == 'title':6461            obj_ = docTitleType.factory()6462            obj_.build(child_)6463            self.set_title(obj_)6464        elif child_.nodeType == Node.ELEMENT_NODE and \6465                nodeName_ == 'para':6466            obj_ = docParaType.factory()6467            obj_.build(child_)6468            self.para.append(obj_)6469# end class docSimpleSectType6470class docVarListEntryType(GeneratedsSuper):6471    subclass = None6472    superclass = None6473    def __init__(self, term=None):6474        self.term = term6475    def factory(*args_, **kwargs_):6476        if docVarListEntryType.subclass:6477            return docVarListEntryType.subclass(*args_, **kwargs_)6478        else:6479            return docVarListEntryType(*args_, **kwargs_)6480    factory = staticmethod(factory)6481    def get_term(self): return self.term6482    def set_term(self, term): self.term = term6483    def export(self, outfile, level, namespace_='', name_='docVarListEntryType', namespacedef_=''):6484        showIndent(outfile, level)6485        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))6486        self.exportAttributes(outfile, level, namespace_,6487                              name_='docVarListEntryType')6488        if self.hasContent_():6489            outfile.write('>\n')6490            self.exportChildren(outfile, level + 1, namespace_, name_)6491            showIndent(outfile, level)6492            outfile.write('</%s%s>\n' % (namespace_, name_))6493        else:6494            outfile.write(' />\n')6495    def exportAttributes(self, outfile, level, namespace_='', name_='docVarListEntryType'):6496        pass6497    def exportChildren(self, outfile, level, namespace_='', name_='docVarListEntryType'):6498        if self.term:6499            self.term.export(outfile, level, namespace_, name_='term', )6500    def hasContent_(self):6501        if (6502            self.term is not None6503        ):6504            return True6505        else:6506            return False6507    def exportLiteral(self, outfile, level, name_='docVarListEntryType'):6508        level += 16509        self.exportLiteralAttributes(outfile, level, name_)6510        if self.hasContent_():6511            self.exportLiteralChildren(outfile, level, name_)6512    def exportLiteralAttributes(self, outfile, level, name_):6513        pass6514    def exportLiteralChildren(self, outfile, level, name_):6515        if self.term:6516            showIndent(outfile, level)6517            outfile.write('term=model_.docTitleType(\n')6518            self.term.exportLiteral(outfile, level, name_='term')6519            showIndent(outfile, level)6520            outfile.write('),\n')6521    def build(self, node_):6522        attrs = node_.attributes6523        self.buildAttributes(attrs)6524        for child_ in node_.childNodes:6525            nodeName_ = child_.nodeName.split(':')[-1]6526            self.buildChildren(child_, nodeName_)6527    def buildAttributes(self, attrs):6528        pass6529    def buildChildren(self, child_, nodeName_):6530        if child_.nodeType == Node.ELEMENT_NODE and \6531                nodeName_ == 'term':6532            obj_ = docTitleType.factory()6533            obj_.build(child_)6534            self.set_term(obj_)6535# end class docVarListEntryType6536class docVariableListType(GeneratedsSuper):6537    subclass = None6538    superclass = None6539    def __init__(self, valueOf_=''):6540        self.valueOf_ = valueOf_6541    def factory(*args_, **kwargs_):6542        if docVariableListType.subclass:6543            return docVariableListType.subclass(*args_, **kwargs_)6544        else:6545            return docVariableListType(*args_, **kwargs_)6546    factory = staticmethod(factory)6547    def getValueOf_(self): return self.valueOf_6548    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_6549    def export(self, outfile, level, namespace_='', name_='docVariableListType', namespacedef_=''):6550        showIndent(outfile, level)6551        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))6552        self.exportAttributes(outfile, level, namespace_,6553                              name_='docVariableListType')6554        if self.hasContent_():6555            outfile.write('>\n')6556            self.exportChildren(outfile, level + 1, namespace_, name_)6557            showIndent(outfile, level)6558            outfile.write('</%s%s>\n' % (namespace_, name_))6559        else:6560            outfile.write(' />\n')6561    def exportAttributes(self, outfile, level, namespace_='', name_='docVariableListType'):6562        pass6563    def exportChildren(self, outfile, level, namespace_='', name_='docVariableListType'):6564        if self.valueOf_.find('![CDATA') > -1:6565            value = quote_xml('%s' % self.valueOf_)6566            value = value.replace('![CDATA', '<![CDATA')6567            value = value.replace(']]', ']]>')6568            outfile.write(value)6569        else:6570            outfile.write(quote_xml('%s' % self.valueOf_))6571    def hasContent_(self):6572        if (6573            self.valueOf_ is not None6574        ):6575            return True6576        else:6577            return False6578    def exportLiteral(self, outfile, level, name_='docVariableListType'):6579        level += 16580        self.exportLiteralAttributes(outfile, level, name_)6581        if self.hasContent_():6582            self.exportLiteralChildren(outfile, level, name_)6583    def exportLiteralAttributes(self, outfile, level, name_):6584        pass6585    def exportLiteralChildren(self, outfile, level, name_):6586        showIndent(outfile, level)6587        outfile.write('valueOf_ = "%s",\n' % (self.valueOf_,))6588    def build(self, node_):6589        attrs = node_.attributes6590        self.buildAttributes(attrs)6591        self.valueOf_ = ''6592        for child_ in node_.childNodes:6593            nodeName_ = child_.nodeName.split(':')[-1]6594            self.buildChildren(child_, nodeName_)6595    def buildAttributes(self, attrs):6596        pass6597    def buildChildren(self, child_, nodeName_):6598        if child_.nodeType == Node.TEXT_NODE:6599            self.valueOf_ += child_.nodeValue6600        elif child_.nodeType == Node.CDATA_SECTION_NODE:6601            self.valueOf_ += '![CDATA[' + child_.nodeValue + ']]'6602# end class docVariableListType6603class docRefTextType(GeneratedsSuper):6604    subclass = None6605    superclass = None6606    def __init__(self, refid=None, kindref=None, external=None, valueOf_='', mixedclass_=None, content_=None):6607        self.refid = refid6608        self.kindref = kindref6609        self.external = external6610        if mixedclass_ is None:6611            self.mixedclass_ = MixedContainer6612        else:6613            self.mixedclass_ = mixedclass_6614        if content_ is None:6615            self.content_ = []6616        else:6617            self.content_ = content_6618    def factory(*args_, **kwargs_):6619        if docRefTextType.subclass:6620            return docRefTextType.subclass(*args_, **kwargs_)6621        else:6622            return docRefTextType(*args_, **kwargs_)6623    factory = staticmethod(factory)6624    def get_refid(self): return self.refid6625    def set_refid(self, refid): self.refid = refid6626    def get_kindref(self): return self.kindref6627    def set_kindref(self, kindref): self.kindref = kindref6628    def get_external(self): return self.external6629    def set_external(self, external): self.external = external6630    def getValueOf_(self): return self.valueOf_6631    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_6632    def export(self, outfile, level, namespace_='', name_='docRefTextType', namespacedef_=''):6633        showIndent(outfile, level)6634        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))6635        self.exportAttributes(outfile, level, namespace_,6636                              name_='docRefTextType')6637        outfile.write('>')6638        self.exportChildren(outfile, level + 1, namespace_, name_)6639        outfile.write('</%s%s>\n' % (namespace_, name_))6640    def exportAttributes(self, outfile, level, namespace_='', name_='docRefTextType'):6641        if self.refid is not None:6642            outfile.write(' refid=%s' % (self.format_string(quote_attrib(6643                self.refid).encode(ExternalEncoding), input_name='refid'), ))6644        if self.kindref is not None:6645            outfile.write(' kindref=%s' % (quote_attrib(self.kindref), ))6646        if self.external is not None:6647            outfile.write(' external=%s' % (self.format_string(quote_attrib(6648                self.external).encode(ExternalEncoding), input_name='external'), ))6649    def exportChildren(self, outfile, level, namespace_='', name_='docRefTextType'):6650        if self.valueOf_.find('![CDATA') > -1:6651            value = quote_xml('%s' % self.valueOf_)6652            value = value.replace('![CDATA', '<![CDATA')6653            value = value.replace(']]', ']]>')6654            outfile.write(value)6655        else:6656            outfile.write(quote_xml('%s' % self.valueOf_))6657    def hasContent_(self):6658        if (6659            self.valueOf_ is not None6660        ):6661            return True6662        else:6663            return False6664    def exportLiteral(self, outfile, level, name_='docRefTextType'):6665        level += 16666        self.exportLiteralAttributes(outfile, level, name_)6667        if self.hasContent_():6668            self.exportLiteralChildren(outfile, level, name_)6669    def exportLiteralAttributes(self, outfile, level, name_):6670        if self.refid is not None:6671            showIndent(outfile, level)6672            outfile.write('refid = %s,\n' % (self.refid,))6673        if self.kindref is not None:6674            showIndent(outfile, level)6675            outfile.write('kindref = "%s",\n' % (self.kindref,))6676        if self.external is not None:6677            showIndent(outfile, level)6678            outfile.write('external = %s,\n' % (self.external,))6679    def exportLiteralChildren(self, outfile, level, name_):6680        showIndent(outfile, level)6681        outfile.write('valueOf_ = "%s",\n' % (self.valueOf_,))6682    def build(self, node_):6683        attrs = node_.attributes6684        self.buildAttributes(attrs)6685        self.valueOf_ = ''6686        for child_ in node_.childNodes:6687            nodeName_ = child_.nodeName.split(':')[-1]6688            self.buildChildren(child_, nodeName_)6689    def buildAttributes(self, attrs):6690        if attrs.get('refid'):6691            self.refid = attrs.get('refid').value6692        if attrs.get('kindref'):6693            self.kindref = attrs.get('kindref').value6694        if attrs.get('external'):6695            self.external = attrs.get('external').value6696    def buildChildren(self, child_, nodeName_):6697        if child_.nodeType == Node.TEXT_NODE:6698            obj_ = self.mixedclass_(MixedContainer.CategoryText,6699                                    MixedContainer.TypeNone, '', child_.nodeValue)6700            self.content_.append(obj_)6701        if child_.nodeType == Node.TEXT_NODE:6702            self.valueOf_ += child_.nodeValue6703        elif child_.nodeType == Node.CDATA_SECTION_NODE:6704            self.valueOf_ += '![CDATA[' + child_.nodeValue + ']]'6705# end class docRefTextType6706class docTableType(GeneratedsSuper):6707    subclass = None6708    superclass = None6709    def __init__(self, rows=None, cols=None, row=None, caption=None):6710        self.rows = rows6711        self.cols = cols6712        if row is None:6713            self.row = []6714        else:6715            self.row = row6716        self.caption = caption6717    def factory(*args_, **kwargs_):6718        if docTableType.subclass:6719            return docTableType.subclass(*args_, **kwargs_)6720        else:6721            return docTableType(*args_, **kwargs_)6722    factory = staticmethod(factory)6723    def get_row(self): return self.row6724    def set_row(self, row): self.row = row6725    def add_row(self, value): self.row.append(value)6726    def insert_row(self, index, value): self.row[index] = value6727    def get_caption(self): return self.caption6728    def set_caption(self, caption): self.caption = caption6729    def get_rows(self): return self.rows6730    def set_rows(self, rows): self.rows = rows6731    def get_cols(self): return self.cols6732    def set_cols(self, cols): self.cols = cols6733    def export(self, outfile, level, namespace_='', name_='docTableType', namespacedef_=''):6734        showIndent(outfile, level)6735        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))6736        self.exportAttributes(outfile, level, namespace_, name_='docTableType')6737        if self.hasContent_():6738            outfile.write('>\n')6739            self.exportChildren(outfile, level + 1, namespace_, name_)6740            showIndent(outfile, level)6741            outfile.write('</%s%s>\n' % (namespace_, name_))6742        else:6743            outfile.write(' />\n')6744    def exportAttributes(self, outfile, level, namespace_='', name_='docTableType'):6745        if self.rows is not None:6746            outfile.write(' rows="%s"' % self.format_integer(6747                self.rows, input_name='rows'))6748        if self.cols is not None:6749            outfile.write(' cols="%s"' % self.format_integer(6750                self.cols, input_name='cols'))6751    def exportChildren(self, outfile, level, namespace_='', name_='docTableType'):6752        for row_ in self.row:6753            row_.export(outfile, level, namespace_, name_='row')6754        if self.caption:6755            self.caption.export(outfile, level, namespace_, name_='caption')6756    def hasContent_(self):6757        if (6758            self.row is not None or6759            self.caption is not None6760        ):6761            return True6762        else:6763            return False6764    def exportLiteral(self, outfile, level, name_='docTableType'):6765        level += 16766        self.exportLiteralAttributes(outfile, level, name_)6767        if self.hasContent_():6768            self.exportLiteralChildren(outfile, level, name_)6769    def exportLiteralAttributes(self, outfile, level, name_):6770        if self.rows is not None:6771            showIndent(outfile, level)6772            outfile.write('rows = %s,\n' % (self.rows,))6773        if self.cols is not None:6774            showIndent(outfile, level)6775            outfile.write('cols = %s,\n' % (self.cols,))6776    def exportLiteralChildren(self, outfile, level, name_):6777        showIndent(outfile, level)6778        outfile.write('row=[\n')6779        level += 16780        for row in self.row:6781            showIndent(outfile, level)6782            outfile.write('model_.row(\n')6783            row.exportLiteral(outfile, level, name_='row')6784            showIndent(outfile, level)6785            outfile.write('),\n')6786        level -= 16787        showIndent(outfile, level)6788        outfile.write('],\n')6789        if self.caption:6790            showIndent(outfile, level)6791            outfile.write('caption=model_.docCaptionType(\n')6792            self.caption.exportLiteral(outfile, level, name_='caption')6793            showIndent(outfile, level)6794            outfile.write('),\n')6795    def build(self, node_):6796        attrs = node_.attributes6797        self.buildAttributes(attrs)6798        for child_ in node_.childNodes:6799            nodeName_ = child_.nodeName.split(':')[-1]6800            self.buildChildren(child_, nodeName_)6801    def buildAttributes(self, attrs):6802        if attrs.get('rows'):6803            try:6804                self.rows = int(attrs.get('rows').value)6805            except ValueError as exp:6806                raise ValueError('Bad integer attribute (rows): %s' % exp)6807        if attrs.get('cols'):6808            try:6809                self.cols = int(attrs.get('cols').value)6810            except ValueError as exp:6811                raise ValueError('Bad integer attribute (cols): %s' % exp)6812    def buildChildren(self, child_, nodeName_):6813        if child_.nodeType == Node.ELEMENT_NODE and \6814                nodeName_ == 'row':6815            obj_ = docRowType.factory()6816            obj_.build(child_)6817            self.row.append(obj_)6818        elif child_.nodeType == Node.ELEMENT_NODE and \6819                nodeName_ == 'caption':6820            obj_ = docCaptionType.factory()6821            obj_.build(child_)6822            self.set_caption(obj_)6823# end class docTableType6824class docRowType(GeneratedsSuper):6825    subclass = None6826    superclass = None6827    def __init__(self, entry=None):6828        if entry is None:6829            self.entry = []6830        else:6831            self.entry = entry6832    def factory(*args_, **kwargs_):6833        if docRowType.subclass:6834            return docRowType.subclass(*args_, **kwargs_)6835        else:6836            return docRowType(*args_, **kwargs_)6837    factory = staticmethod(factory)6838    def get_entry(self): return self.entry6839    def set_entry(self, entry): self.entry = entry6840    def add_entry(self, value): self.entry.append(value)6841    def insert_entry(self, index, value): self.entry[index] = value6842    def export(self, outfile, level, namespace_='', name_='docRowType', namespacedef_=''):6843        showIndent(outfile, level)6844        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))6845        self.exportAttributes(outfile, level, namespace_, name_='docRowType')6846        if self.hasContent_():6847            outfile.write('>\n')6848            self.exportChildren(outfile, level + 1, namespace_, name_)6849            showIndent(outfile, level)6850            outfile.write('</%s%s>\n' % (namespace_, name_))6851        else:6852            outfile.write(' />\n')6853    def exportAttributes(self, outfile, level, namespace_='', name_='docRowType'):6854        pass6855    def exportChildren(self, outfile, level, namespace_='', name_='docRowType'):6856        for entry_ in self.entry:6857            entry_.export(outfile, level, namespace_, name_='entry')6858    def hasContent_(self):6859        if (6860            self.entry is not None6861        ):6862            return True6863        else:6864            return False6865    def exportLiteral(self, outfile, level, name_='docRowType'):6866        level += 16867        self.exportLiteralAttributes(outfile, level, name_)6868        if self.hasContent_():6869            self.exportLiteralChildren(outfile, level, name_)6870    def exportLiteralAttributes(self, outfile, level, name_):6871        pass6872    def exportLiteralChildren(self, outfile, level, name_):6873        showIndent(outfile, level)6874        outfile.write('entry=[\n')6875        level += 16876        for entry in self.entry:6877            showIndent(outfile, level)6878            outfile.write('model_.entry(\n')6879            entry.exportLiteral(outfile, level, name_='entry')6880            showIndent(outfile, level)6881            outfile.write('),\n')6882        level -= 16883        showIndent(outfile, level)6884        outfile.write('],\n')6885    def build(self, node_):6886        attrs = node_.attributes6887        self.buildAttributes(attrs)6888        for child_ in node_.childNodes:6889            nodeName_ = child_.nodeName.split(':')[-1]6890            self.buildChildren(child_, nodeName_)6891    def buildAttributes(self, attrs):6892        pass6893    def buildChildren(self, child_, nodeName_):6894        if child_.nodeType == Node.ELEMENT_NODE and \6895                nodeName_ == 'entry':6896            obj_ = docEntryType.factory()6897            obj_.build(child_)6898            self.entry.append(obj_)6899# end class docRowType6900class docEntryType(GeneratedsSuper):6901    subclass = None6902    superclass = None6903    def __init__(self, thead=None, para=None):6904        self.thead = thead6905        if para is None:6906            self.para = []6907        else:6908            self.para = para6909    def factory(*args_, **kwargs_):6910        if docEntryType.subclass:6911            return docEntryType.subclass(*args_, **kwargs_)6912        else:6913            return docEntryType(*args_, **kwargs_)6914    factory = staticmethod(factory)6915    def get_para(self): return self.para6916    def set_para(self, para): self.para = para6917    def add_para(self, value): self.para.append(value)6918    def insert_para(self, index, value): self.para[index] = value6919    def get_thead(self): return self.thead6920    def set_thead(self, thead): self.thead = thead6921    def export(self, outfile, level, namespace_='', name_='docEntryType', namespacedef_=''):6922        showIndent(outfile, level)6923        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))6924        self.exportAttributes(outfile, level, namespace_, name_='docEntryType')6925        if self.hasContent_():6926            outfile.write('>\n')6927            self.exportChildren(outfile, level + 1, namespace_, name_)6928            showIndent(outfile, level)6929            outfile.write('</%s%s>\n' % (namespace_, name_))6930        else:6931            outfile.write(' />\n')6932    def exportAttributes(self, outfile, level, namespace_='', name_='docEntryType'):6933        if self.thead is not None:6934            outfile.write(' thead=%s' % (quote_attrib(self.thead), ))6935    def exportChildren(self, outfile, level, namespace_='', name_='docEntryType'):6936        for para_ in self.para:6937            para_.export(outfile, level, namespace_, name_='para')6938    def hasContent_(self):6939        if (6940            self.para is not None6941        ):6942            return True6943        else:6944            return False6945    def exportLiteral(self, outfile, level, name_='docEntryType'):6946        level += 16947        self.exportLiteralAttributes(outfile, level, name_)6948        if self.hasContent_():6949            self.exportLiteralChildren(outfile, level, name_)6950    def exportLiteralAttributes(self, outfile, level, name_):6951        if self.thead is not None:6952            showIndent(outfile, level)6953            outfile.write('thead = "%s",\n' % (self.thead,))6954    def exportLiteralChildren(self, outfile, level, name_):6955        showIndent(outfile, level)6956        outfile.write('para=[\n')6957        level += 16958        for para in self.para:6959            showIndent(outfile, level)6960            outfile.write('model_.para(\n')6961            para.exportLiteral(outfile, level, name_='para')6962            showIndent(outfile, level)6963            outfile.write('),\n')6964        level -= 16965        showIndent(outfile, level)6966        outfile.write('],\n')6967    def build(self, node_):6968        attrs = node_.attributes6969        self.buildAttributes(attrs)6970        for child_ in node_.childNodes:6971            nodeName_ = child_.nodeName.split(':')[-1]6972            self.buildChildren(child_, nodeName_)6973    def buildAttributes(self, attrs):6974        if attrs.get('thead'):6975            self.thead = attrs.get('thead').value6976    def buildChildren(self, child_, nodeName_):6977        if child_.nodeType == Node.ELEMENT_NODE and \6978                nodeName_ == 'para':6979            obj_ = docParaType.factory()6980            obj_.build(child_)6981            self.para.append(obj_)6982# end class docEntryType6983class docCaptionType(GeneratedsSuper):6984    subclass = None6985    superclass = None6986    def __init__(self, valueOf_='', mixedclass_=None, content_=None):6987        if mixedclass_ is None:6988            self.mixedclass_ = MixedContainer6989        else:6990            self.mixedclass_ = mixedclass_6991        if content_ is None:6992            self.content_ = []6993        else:6994            self.content_ = content_6995    def factory(*args_, **kwargs_):6996        if docCaptionType.subclass:6997            return docCaptionType.subclass(*args_, **kwargs_)6998        else:6999            return docCaptionType(*args_, **kwargs_)7000    factory = staticmethod(factory)7001    def getValueOf_(self): return self.valueOf_7002    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_7003    def export(self, outfile, level, namespace_='', name_='docCaptionType', namespacedef_=''):7004        showIndent(outfile, level)7005        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))7006        self.exportAttributes(outfile, level, namespace_,7007                              name_='docCaptionType')7008        outfile.write('>')7009        self.exportChildren(outfile, level + 1, namespace_, name_)7010        outfile.write('</%s%s>\n' % (namespace_, name_))7011    def exportAttributes(self, outfile, level, namespace_='', name_='docCaptionType'):7012        pass7013    def exportChildren(self, outfile, level, namespace_='', name_='docCaptionType'):7014        if self.valueOf_.find('![CDATA') > -1:7015            value = quote_xml('%s' % self.valueOf_)7016            value = value.replace('![CDATA', '<![CDATA')7017            value = value.replace(']]', ']]>')7018            outfile.write(value)7019        else:7020            outfile.write(quote_xml('%s' % self.valueOf_))7021    def hasContent_(self):7022        if (7023            self.valueOf_ is not None7024        ):7025            return True7026        else:7027            return False7028    def exportLiteral(self, outfile, level, name_='docCaptionType'):7029        level += 17030        self.exportLiteralAttributes(outfile, level, name_)7031        if self.hasContent_():7032            self.exportLiteralChildren(outfile, level, name_)7033    def exportLiteralAttributes(self, outfile, level, name_):7034        pass7035    def exportLiteralChildren(self, outfile, level, name_):7036        showIndent(outfile, level)7037        outfile.write('valueOf_ = "%s",\n' % (self.valueOf_,))7038    def build(self, node_):7039        attrs = node_.attributes7040        self.buildAttributes(attrs)7041        self.valueOf_ = ''7042        for child_ in node_.childNodes:7043            nodeName_ = child_.nodeName.split(':')[-1]7044            self.buildChildren(child_, nodeName_)7045    def buildAttributes(self, attrs):7046        pass7047    def buildChildren(self, child_, nodeName_):7048        if child_.nodeType == Node.TEXT_NODE:7049            obj_ = self.mixedclass_(MixedContainer.CategoryText,7050                                    MixedContainer.TypeNone, '', child_.nodeValue)7051            self.content_.append(obj_)7052        if child_.nodeType == Node.TEXT_NODE:7053            self.valueOf_ += child_.nodeValue7054        elif child_.nodeType == Node.CDATA_SECTION_NODE:7055            self.valueOf_ += '![CDATA[' + child_.nodeValue + ']]'7056# end class docCaptionType7057class docHeadingType(GeneratedsSuper):7058    subclass = None7059    superclass = None7060    def __init__(self, level=None, valueOf_='', mixedclass_=None, content_=None):7061        self.level = level7062        if mixedclass_ is None:7063            self.mixedclass_ = MixedContainer7064        else:7065            self.mixedclass_ = mixedclass_7066        if content_ is None:7067            self.content_ = []7068        else:7069            self.content_ = content_7070    def factory(*args_, **kwargs_):7071        if docHeadingType.subclass:7072            return docHeadingType.subclass(*args_, **kwargs_)7073        else:7074            return docHeadingType(*args_, **kwargs_)7075    factory = staticmethod(factory)7076    def get_level(self): return self.level7077    def set_level(self, level): self.level = level7078    def getValueOf_(self): return self.valueOf_7079    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_7080    def export(self, outfile, level, namespace_='', name_='docHeadingType', namespacedef_=''):7081        showIndent(outfile, level)7082        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))7083        self.exportAttributes(outfile, level, namespace_,7084                              name_='docHeadingType')7085        outfile.write('>')7086        self.exportChildren(outfile, level + 1, namespace_, name_)7087        outfile.write('</%s%s>\n' % (namespace_, name_))7088    def exportAttributes(self, outfile, level, namespace_='', name_='docHeadingType'):7089        if self.level is not None:7090            outfile.write(' level="%s"' % self.format_integer(7091                self.level, input_name='level'))7092    def exportChildren(self, outfile, level, namespace_='', name_='docHeadingType'):7093        if self.valueOf_.find('![CDATA') > -1:7094            value = quote_xml('%s' % self.valueOf_)7095            value = value.replace('![CDATA', '<![CDATA')7096            value = value.replace(']]', ']]>')7097            outfile.write(value)7098        else:7099            outfile.write(quote_xml('%s' % self.valueOf_))7100    def hasContent_(self):7101        if (7102            self.valueOf_ is not None7103        ):7104            return True7105        else:7106            return False7107    def exportLiteral(self, outfile, level, name_='docHeadingType'):7108        level += 17109        self.exportLiteralAttributes(outfile, level, name_)7110        if self.hasContent_():7111            self.exportLiteralChildren(outfile, level, name_)7112    def exportLiteralAttributes(self, outfile, level, name_):7113        if self.level is not None:7114            showIndent(outfile, level)7115            outfile.write('level = %s,\n' % (self.level,))7116    def exportLiteralChildren(self, outfile, level, name_):7117        showIndent(outfile, level)7118        outfile.write('valueOf_ = "%s",\n' % (self.valueOf_,))7119    def build(self, node_):7120        attrs = node_.attributes7121        self.buildAttributes(attrs)7122        self.valueOf_ = ''7123        for child_ in node_.childNodes:7124            nodeName_ = child_.nodeName.split(':')[-1]7125            self.buildChildren(child_, nodeName_)7126    def buildAttributes(self, attrs):7127        if attrs.get('level'):7128            try:7129                self.level = int(attrs.get('level').value)7130            except ValueError as exp:7131                raise ValueError('Bad integer attribute (level): %s' % exp)7132    def buildChildren(self, child_, nodeName_):7133        if child_.nodeType == Node.TEXT_NODE:7134            obj_ = self.mixedclass_(MixedContainer.CategoryText,7135                                    MixedContainer.TypeNone, '', child_.nodeValue)7136            self.content_.append(obj_)7137        if child_.nodeType == Node.TEXT_NODE:7138            self.valueOf_ += child_.nodeValue7139        elif child_.nodeType == Node.CDATA_SECTION_NODE:7140            self.valueOf_ += '![CDATA[' + child_.nodeValue + ']]'7141# end class docHeadingType7142class docImageType(GeneratedsSuper):7143    subclass = None7144    superclass = None7145    def __init__(self, width=None, type_=None, name=None, height=None, valueOf_='', mixedclass_=None, content_=None):7146        self.width = width7147        self.type_ = type_7148        self.name = name7149        self.height = height7150        if mixedclass_ is None:7151            self.mixedclass_ = MixedContainer7152        else:7153            self.mixedclass_ = mixedclass_7154        if content_ is None:7155            self.content_ = []7156        else:7157            self.content_ = content_7158    def factory(*args_, **kwargs_):7159        if docImageType.subclass:7160            return docImageType.subclass(*args_, **kwargs_)7161        else:7162            return docImageType(*args_, **kwargs_)7163    factory = staticmethod(factory)7164    def get_width(self): return self.width7165    def set_width(self, width): self.width = width7166    def get_type(self): return self.type_7167    def set_type(self, type_): self.type_ = type_7168    def get_name(self): return self.name7169    def set_name(self, name): self.name = name7170    def get_height(self): return self.height7171    def set_height(self, height): self.height = height7172    def getValueOf_(self): return self.valueOf_7173    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_7174    def export(self, outfile, level, namespace_='', name_='docImageType', namespacedef_=''):7175        showIndent(outfile, level)7176        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))7177        self.exportAttributes(outfile, level, namespace_, name_='docImageType')7178        outfile.write('>')7179        self.exportChildren(outfile, level + 1, namespace_, name_)7180        outfile.write('</%s%s>\n' % (namespace_, name_))7181    def exportAttributes(self, outfile, level, namespace_='', name_='docImageType'):7182        if self.width is not None:7183            outfile.write(' width=%s' % (self.format_string(quote_attrib(7184                self.width).encode(ExternalEncoding), input_name='width'), ))7185        if self.type_ is not None:7186            outfile.write(' type=%s' % (quote_attrib(self.type_), ))7187        if self.name is not None:7188            outfile.write(' name=%s' % (self.format_string(quote_attrib(7189                self.name).encode(ExternalEncoding), input_name='name'), ))7190        if self.height is not None:7191            outfile.write(' height=%s' % (self.format_string(quote_attrib(7192                self.height).encode(ExternalEncoding), input_name='height'), ))7193    def exportChildren(self, outfile, level, namespace_='', name_='docImageType'):7194        if self.valueOf_.find('![CDATA') > -1:7195            value = quote_xml('%s' % self.valueOf_)7196            value = value.replace('![CDATA', '<![CDATA')7197            value = value.replace(']]', ']]>')7198            outfile.write(value)7199        else:7200            outfile.write(quote_xml('%s' % self.valueOf_))7201    def hasContent_(self):7202        if (7203            self.valueOf_ is not None7204        ):7205            return True7206        else:7207            return False7208    def exportLiteral(self, outfile, level, name_='docImageType'):7209        level += 17210        self.exportLiteralAttributes(outfile, level, name_)7211        if self.hasContent_():7212            self.exportLiteralChildren(outfile, level, name_)7213    def exportLiteralAttributes(self, outfile, level, name_):7214        if self.width is not None:7215            showIndent(outfile, level)7216            outfile.write('width = %s,\n' % (self.width,))7217        if self.type_ is not None:7218            showIndent(outfile, level)7219            outfile.write('type_ = "%s",\n' % (self.type_,))7220        if self.name is not None:7221            showIndent(outfile, level)7222            outfile.write('name = %s,\n' % (self.name,))7223        if self.height is not None:7224            showIndent(outfile, level)7225            outfile.write('height = %s,\n' % (self.height,))7226    def exportLiteralChildren(self, outfile, level, name_):7227        showIndent(outfile, level)7228        outfile.write('valueOf_ = "%s",\n' % (self.valueOf_,))7229    def build(self, node_):7230        attrs = node_.attributes7231        self.buildAttributes(attrs)7232        self.valueOf_ = ''7233        for child_ in node_.childNodes:7234            nodeName_ = child_.nodeName.split(':')[-1]7235            self.buildChildren(child_, nodeName_)7236    def buildAttributes(self, attrs):7237        if attrs.get('width'):7238            self.width = attrs.get('width').value7239        if attrs.get('type'):7240            self.type_ = attrs.get('type').value7241        if attrs.get('name'):7242            self.name = attrs.get('name').value7243        if attrs.get('height'):7244            self.height = attrs.get('height').value7245    def buildChildren(self, child_, nodeName_):7246        if child_.nodeType == Node.TEXT_NODE:7247            obj_ = self.mixedclass_(MixedContainer.CategoryText,7248                                    MixedContainer.TypeNone, '', child_.nodeValue)7249            self.content_.append(obj_)7250        if child_.nodeType == Node.TEXT_NODE:7251            self.valueOf_ += child_.nodeValue7252        elif child_.nodeType == Node.CDATA_SECTION_NODE:7253            self.valueOf_ += '![CDATA[' + child_.nodeValue + ']]'7254# end class docImageType7255class docDotFileType(GeneratedsSuper):7256    subclass = None7257    superclass = None7258    def __init__(self, name=None, valueOf_='', mixedclass_=None, content_=None):7259        self.name = name7260        if mixedclass_ is None:7261            self.mixedclass_ = MixedContainer7262        else:7263            self.mixedclass_ = mixedclass_7264        if content_ is None:7265            self.content_ = []7266        else:7267            self.content_ = content_7268    def factory(*args_, **kwargs_):7269        if docDotFileType.subclass:7270            return docDotFileType.subclass(*args_, **kwargs_)7271        else:7272            return docDotFileType(*args_, **kwargs_)7273    factory = staticmethod(factory)7274    def get_name(self): return self.name7275    def set_name(self, name): self.name = name7276    def getValueOf_(self): return self.valueOf_7277    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_7278    def export(self, outfile, level, namespace_='', name_='docDotFileType', namespacedef_=''):7279        showIndent(outfile, level)7280        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))7281        self.exportAttributes(outfile, level, namespace_,7282                              name_='docDotFileType')7283        outfile.write('>')7284        self.exportChildren(outfile, level + 1, namespace_, name_)7285        outfile.write('</%s%s>\n' % (namespace_, name_))7286    def exportAttributes(self, outfile, level, namespace_='', name_='docDotFileType'):7287        if self.name is not None:7288            outfile.write(' name=%s' % (self.format_string(quote_attrib(7289                self.name).encode(ExternalEncoding), input_name='name'), ))7290    def exportChildren(self, outfile, level, namespace_='', name_='docDotFileType'):7291        if self.valueOf_.find('![CDATA') > -1:7292            value = quote_xml('%s' % self.valueOf_)7293            value = value.replace('![CDATA', '<![CDATA')7294            value = value.replace(']]', ']]>')7295            outfile.write(value)7296        else:7297            outfile.write(quote_xml('%s' % self.valueOf_))7298    def hasContent_(self):7299        if (7300            self.valueOf_ is not None7301        ):7302            return True7303        else:7304            return False7305    def exportLiteral(self, outfile, level, name_='docDotFileType'):7306        level += 17307        self.exportLiteralAttributes(outfile, level, name_)7308        if self.hasContent_():7309            self.exportLiteralChildren(outfile, level, name_)7310    def exportLiteralAttributes(self, outfile, level, name_):7311        if self.name is not None:7312            showIndent(outfile, level)7313            outfile.write('name = %s,\n' % (self.name,))7314    def exportLiteralChildren(self, outfile, level, name_):7315        showIndent(outfile, level)7316        outfile.write('valueOf_ = "%s",\n' % (self.valueOf_,))7317    def build(self, node_):7318        attrs = node_.attributes7319        self.buildAttributes(attrs)7320        self.valueOf_ = ''7321        for child_ in node_.childNodes:7322            nodeName_ = child_.nodeName.split(':')[-1]7323            self.buildChildren(child_, nodeName_)7324    def buildAttributes(self, attrs):7325        if attrs.get('name'):7326            self.name = attrs.get('name').value7327    def buildChildren(self, child_, nodeName_):7328        if child_.nodeType == Node.TEXT_NODE:7329            obj_ = self.mixedclass_(MixedContainer.CategoryText,7330                                    MixedContainer.TypeNone, '', child_.nodeValue)7331            self.content_.append(obj_)7332        if child_.nodeType == Node.TEXT_NODE:7333            self.valueOf_ += child_.nodeValue7334        elif child_.nodeType == Node.CDATA_SECTION_NODE:7335            self.valueOf_ += '![CDATA[' + child_.nodeValue + ']]'7336# end class docDotFileType7337class docTocItemType(GeneratedsSuper):7338    subclass = None7339    superclass = None7340    def __init__(self, id=None, valueOf_='', mixedclass_=None, content_=None):7341        self.id = id7342        if mixedclass_ is None:7343            self.mixedclass_ = MixedContainer7344        else:7345            self.mixedclass_ = mixedclass_7346        if content_ is None:7347            self.content_ = []7348        else:7349            self.content_ = content_7350    def factory(*args_, **kwargs_):7351        if docTocItemType.subclass:7352            return docTocItemType.subclass(*args_, **kwargs_)7353        else:7354            return docTocItemType(*args_, **kwargs_)7355    factory = staticmethod(factory)7356    def get_id(self): return self.id7357    def set_id(self, id): self.id = id7358    def getValueOf_(self): return self.valueOf_7359    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_7360    def export(self, outfile, level, namespace_='', name_='docTocItemType', namespacedef_=''):7361        showIndent(outfile, level)7362        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))7363        self.exportAttributes(outfile, level, namespace_,7364                              name_='docTocItemType')7365        outfile.write('>')7366        self.exportChildren(outfile, level + 1, namespace_, name_)7367        outfile.write('</%s%s>\n' % (namespace_, name_))7368    def exportAttributes(self, outfile, level, namespace_='', name_='docTocItemType'):7369        if self.id is not None:7370            outfile.write(' id=%s' % (self.format_string(quote_attrib(7371                self.id).encode(ExternalEncoding), input_name='id'), ))7372    def exportChildren(self, outfile, level, namespace_='', name_='docTocItemType'):7373        if self.valueOf_.find('![CDATA') > -1:7374            value = quote_xml('%s' % self.valueOf_)7375            value = value.replace('![CDATA', '<![CDATA')7376            value = value.replace(']]', ']]>')7377            outfile.write(value)7378        else:7379            outfile.write(quote_xml('%s' % self.valueOf_))7380    def hasContent_(self):7381        if (7382            self.valueOf_ is not None7383        ):7384            return True7385        else:7386            return False7387    def exportLiteral(self, outfile, level, name_='docTocItemType'):7388        level += 17389        self.exportLiteralAttributes(outfile, level, name_)7390        if self.hasContent_():7391            self.exportLiteralChildren(outfile, level, name_)7392    def exportLiteralAttributes(self, outfile, level, name_):7393        if self.id is not None:7394            showIndent(outfile, level)7395            outfile.write('id = %s,\n' % (self.id,))7396    def exportLiteralChildren(self, outfile, level, name_):7397        showIndent(outfile, level)7398        outfile.write('valueOf_ = "%s",\n' % (self.valueOf_,))7399    def build(self, node_):7400        attrs = node_.attributes7401        self.buildAttributes(attrs)7402        self.valueOf_ = ''7403        for child_ in node_.childNodes:7404            nodeName_ = child_.nodeName.split(':')[-1]7405            self.buildChildren(child_, nodeName_)7406    def buildAttributes(self, attrs):7407        if attrs.get('id'):7408            self.id = attrs.get('id').value7409    def buildChildren(self, child_, nodeName_):7410        if child_.nodeType == Node.TEXT_NODE:7411            obj_ = self.mixedclass_(MixedContainer.CategoryText,7412                                    MixedContainer.TypeNone, '', child_.nodeValue)7413            self.content_.append(obj_)7414        if child_.nodeType == Node.TEXT_NODE:7415            self.valueOf_ += child_.nodeValue7416        elif child_.nodeType == Node.CDATA_SECTION_NODE:7417            self.valueOf_ += '![CDATA[' + child_.nodeValue + ']]'7418# end class docTocItemType7419class docTocListType(GeneratedsSuper):7420    subclass = None7421    superclass = None7422    def __init__(self, tocitem=None):7423        if tocitem is None:7424            self.tocitem = []7425        else:7426            self.tocitem = tocitem7427    def factory(*args_, **kwargs_):7428        if docTocListType.subclass:7429            return docTocListType.subclass(*args_, **kwargs_)7430        else:7431            return docTocListType(*args_, **kwargs_)7432    factory = staticmethod(factory)7433    def get_tocitem(self): return self.tocitem7434    def set_tocitem(self, tocitem): self.tocitem = tocitem7435    def add_tocitem(self, value): self.tocitem.append(value)7436    def insert_tocitem(self, index, value): self.tocitem[index] = value7437    def export(self, outfile, level, namespace_='', name_='docTocListType', namespacedef_=''):7438        showIndent(outfile, level)7439        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))7440        self.exportAttributes(outfile, level, namespace_,7441                              name_='docTocListType')7442        if self.hasContent_():7443            outfile.write('>\n')7444            self.exportChildren(outfile, level + 1, namespace_, name_)7445            showIndent(outfile, level)7446            outfile.write('</%s%s>\n' % (namespace_, name_))7447        else:7448            outfile.write(' />\n')7449    def exportAttributes(self, outfile, level, namespace_='', name_='docTocListType'):7450        pass7451    def exportChildren(self, outfile, level, namespace_='', name_='docTocListType'):7452        for tocitem_ in self.tocitem:7453            tocitem_.export(outfile, level, namespace_, name_='tocitem')7454    def hasContent_(self):7455        if (7456            self.tocitem is not None7457        ):7458            return True7459        else:7460            return False7461    def exportLiteral(self, outfile, level, name_='docTocListType'):7462        level += 17463        self.exportLiteralAttributes(outfile, level, name_)7464        if self.hasContent_():7465            self.exportLiteralChildren(outfile, level, name_)7466    def exportLiteralAttributes(self, outfile, level, name_):7467        pass7468    def exportLiteralChildren(self, outfile, level, name_):7469        showIndent(outfile, level)7470        outfile.write('tocitem=[\n')7471        level += 17472        for tocitem in self.tocitem:7473            showIndent(outfile, level)7474            outfile.write('model_.tocitem(\n')7475            tocitem.exportLiteral(outfile, level, name_='tocitem')7476            showIndent(outfile, level)7477            outfile.write('),\n')7478        level -= 17479        showIndent(outfile, level)7480        outfile.write('],\n')7481    def build(self, node_):7482        attrs = node_.attributes7483        self.buildAttributes(attrs)7484        for child_ in node_.childNodes:7485            nodeName_ = child_.nodeName.split(':')[-1]7486            self.buildChildren(child_, nodeName_)7487    def buildAttributes(self, attrs):7488        pass7489    def buildChildren(self, child_, nodeName_):7490        if child_.nodeType == Node.ELEMENT_NODE and \7491                nodeName_ == 'tocitem':7492            obj_ = docTocItemType.factory()7493            obj_.build(child_)7494            self.tocitem.append(obj_)7495# end class docTocListType7496class docLanguageType(GeneratedsSuper):7497    subclass = None7498    superclass = None7499    def __init__(self, langid=None, para=None):7500        self.langid = langid7501        if para is None:7502            self.para = []7503        else:7504            self.para = para7505    def factory(*args_, **kwargs_):7506        if docLanguageType.subclass:7507            return docLanguageType.subclass(*args_, **kwargs_)7508        else:7509            return docLanguageType(*args_, **kwargs_)7510    factory = staticmethod(factory)7511    def get_para(self): return self.para7512    def set_para(self, para): self.para = para7513    def add_para(self, value): self.para.append(value)7514    def insert_para(self, index, value): self.para[index] = value7515    def get_langid(self): return self.langid7516    def set_langid(self, langid): self.langid = langid7517    def export(self, outfile, level, namespace_='', name_='docLanguageType', namespacedef_=''):7518        showIndent(outfile, level)7519        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))7520        self.exportAttributes(outfile, level, namespace_,7521                              name_='docLanguageType')7522        if self.hasContent_():7523            outfile.write('>\n')7524            self.exportChildren(outfile, level + 1, namespace_, name_)7525            showIndent(outfile, level)7526            outfile.write('</%s%s>\n' % (namespace_, name_))7527        else:7528            outfile.write(' />\n')7529    def exportAttributes(self, outfile, level, namespace_='', name_='docLanguageType'):7530        if self.langid is not None:7531            outfile.write(' langid=%s' % (self.format_string(quote_attrib(7532                self.langid).encode(ExternalEncoding), input_name='langid'), ))7533    def exportChildren(self, outfile, level, namespace_='', name_='docLanguageType'):7534        for para_ in self.para:7535            para_.export(outfile, level, namespace_, name_='para')7536    def hasContent_(self):7537        if (7538            self.para is not None7539        ):7540            return True7541        else:7542            return False7543    def exportLiteral(self, outfile, level, name_='docLanguageType'):7544        level += 17545        self.exportLiteralAttributes(outfile, level, name_)7546        if self.hasContent_():7547            self.exportLiteralChildren(outfile, level, name_)7548    def exportLiteralAttributes(self, outfile, level, name_):7549        if self.langid is not None:7550            showIndent(outfile, level)7551            outfile.write('langid = %s,\n' % (self.langid,))7552    def exportLiteralChildren(self, outfile, level, name_):7553        showIndent(outfile, level)7554        outfile.write('para=[\n')7555        level += 17556        for para in self.para:7557            showIndent(outfile, level)7558            outfile.write('model_.para(\n')7559            para.exportLiteral(outfile, level, name_='para')7560            showIndent(outfile, level)7561            outfile.write('),\n')7562        level -= 17563        showIndent(outfile, level)7564        outfile.write('],\n')7565    def build(self, node_):7566        attrs = node_.attributes7567        self.buildAttributes(attrs)7568        for child_ in node_.childNodes:7569            nodeName_ = child_.nodeName.split(':')[-1]7570            self.buildChildren(child_, nodeName_)7571    def buildAttributes(self, attrs):7572        if attrs.get('langid'):7573            self.langid = attrs.get('langid').value7574    def buildChildren(self, child_, nodeName_):7575        if child_.nodeType == Node.ELEMENT_NODE and \7576                nodeName_ == 'para':7577            obj_ = docParaType.factory()7578            obj_.build(child_)7579            self.para.append(obj_)7580# end class docLanguageType7581class docParamListType(GeneratedsSuper):7582    subclass = None7583    superclass = None7584    def __init__(self, kind=None, parameteritem=None):7585        self.kind = kind7586        if parameteritem is None:7587            self.parameteritem = []7588        else:7589            self.parameteritem = parameteritem7590    def factory(*args_, **kwargs_):7591        if docParamListType.subclass:7592            return docParamListType.subclass(*args_, **kwargs_)7593        else:7594            return docParamListType(*args_, **kwargs_)7595    factory = staticmethod(factory)7596    def get_parameteritem(self): return self.parameteritem7597    def set_parameteritem(7598        self, parameteritem): self.parameteritem = parameteritem7599    def add_parameteritem(self, value): self.parameteritem.append(value)7600    def insert_parameteritem(7601        self, index, value): self.parameteritem[index] = value7602    def get_kind(self): return self.kind7603    def set_kind(self, kind): self.kind = kind7604    def export(self, outfile, level, namespace_='', name_='docParamListType', namespacedef_=''):7605        showIndent(outfile, level)7606        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))7607        self.exportAttributes(outfile, level, namespace_,7608                              name_='docParamListType')7609        if self.hasContent_():7610            outfile.write('>\n')7611            self.exportChildren(outfile, level + 1, namespace_, name_)7612            showIndent(outfile, level)7613            outfile.write('</%s%s>\n' % (namespace_, name_))7614        else:7615            outfile.write(' />\n')7616    def exportAttributes(self, outfile, level, namespace_='', name_='docParamListType'):7617        if self.kind is not None:7618            outfile.write(' kind=%s' % (quote_attrib(self.kind), ))7619    def exportChildren(self, outfile, level, namespace_='', name_='docParamListType'):7620        for parameteritem_ in self.parameteritem:7621            parameteritem_.export(7622                outfile, level, namespace_, name_='parameteritem')7623    def hasContent_(self):7624        if (7625            self.parameteritem is not None7626        ):7627            return True7628        else:7629            return False7630    def exportLiteral(self, outfile, level, name_='docParamListType'):7631        level += 17632        self.exportLiteralAttributes(outfile, level, name_)7633        if self.hasContent_():7634            self.exportLiteralChildren(outfile, level, name_)7635    def exportLiteralAttributes(self, outfile, level, name_):7636        if self.kind is not None:7637            showIndent(outfile, level)7638            outfile.write('kind = "%s",\n' % (self.kind,))7639    def exportLiteralChildren(self, outfile, level, name_):7640        showIndent(outfile, level)7641        outfile.write('parameteritem=[\n')7642        level += 17643        for parameteritem in self.parameteritem:7644            showIndent(outfile, level)7645            outfile.write('model_.parameteritem(\n')7646            parameteritem.exportLiteral(outfile, level, name_='parameteritem')7647            showIndent(outfile, level)7648            outfile.write('),\n')7649        level -= 17650        showIndent(outfile, level)7651        outfile.write('],\n')7652    def build(self, node_):7653        attrs = node_.attributes7654        self.buildAttributes(attrs)7655        for child_ in node_.childNodes:7656            nodeName_ = child_.nodeName.split(':')[-1]7657            self.buildChildren(child_, nodeName_)7658    def buildAttributes(self, attrs):7659        if attrs.get('kind'):7660            self.kind = attrs.get('kind').value7661    def buildChildren(self, child_, nodeName_):7662        if child_.nodeType == Node.ELEMENT_NODE and \7663                nodeName_ == 'parameteritem':7664            obj_ = docParamListItem.factory()7665            obj_.build(child_)7666            self.parameteritem.append(obj_)7667# end class docParamListType7668class docParamListItem(GeneratedsSuper):7669    subclass = None7670    superclass = None7671    def __init__(self, parameternamelist=None, parameterdescription=None):7672        if parameternamelist is None:7673            self.parameternamelist = []7674        else:7675            self.parameternamelist = parameternamelist7676        self.parameterdescription = parameterdescription7677    def factory(*args_, **kwargs_):7678        if docParamListItem.subclass:7679            return docParamListItem.subclass(*args_, **kwargs_)7680        else:7681            return docParamListItem(*args_, **kwargs_)7682    factory = staticmethod(factory)7683    def get_parameternamelist(self): return self.parameternamelist7684    def set_parameternamelist(7685        self, parameternamelist): self.parameternamelist = parameternamelist7686    def add_parameternamelist(7687        self, value): self.parameternamelist.append(value)7688    def insert_parameternamelist(7689        self, index, value): self.parameternamelist[index] = value7690    def get_parameterdescription(self): return self.parameterdescription7691    def set_parameterdescription(7692        self, parameterdescription): self.parameterdescription = parameterdescription7693    def export(self, outfile, level, namespace_='', name_='docParamListItem', namespacedef_=''):7694        showIndent(outfile, level)7695        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))7696        self.exportAttributes(outfile, level, namespace_,7697                              name_='docParamListItem')7698        if self.hasContent_():7699            outfile.write('>\n')7700            self.exportChildren(outfile, level + 1, namespace_, name_)7701            showIndent(outfile, level)7702            outfile.write('</%s%s>\n' % (namespace_, name_))7703        else:7704            outfile.write(' />\n')7705    def exportAttributes(self, outfile, level, namespace_='', name_='docParamListItem'):7706        pass7707    def exportChildren(self, outfile, level, namespace_='', name_='docParamListItem'):7708        for parameternamelist_ in self.parameternamelist:7709            parameternamelist_.export(7710                outfile, level, namespace_, name_='parameternamelist')7711        if self.parameterdescription:7712            self.parameterdescription.export(7713                outfile, level, namespace_, name_='parameterdescription', )7714    def hasContent_(self):7715        if (7716            self.parameternamelist is not None or7717            self.parameterdescription is not None7718        ):7719            return True7720        else:7721            return False7722    def exportLiteral(self, outfile, level, name_='docParamListItem'):7723        level += 17724        self.exportLiteralAttributes(outfile, level, name_)7725        if self.hasContent_():7726            self.exportLiteralChildren(outfile, level, name_)7727    def exportLiteralAttributes(self, outfile, level, name_):7728        pass7729    def exportLiteralChildren(self, outfile, level, name_):7730        showIndent(outfile, level)7731        outfile.write('parameternamelist=[\n')7732        level += 17733        for parameternamelist in self.parameternamelist:7734            showIndent(outfile, level)7735            outfile.write('model_.parameternamelist(\n')7736            parameternamelist.exportLiteral(7737                outfile, level, name_='parameternamelist')7738            showIndent(outfile, level)7739            outfile.write('),\n')7740        level -= 17741        showIndent(outfile, level)7742        outfile.write('],\n')7743        if self.parameterdescription:7744            showIndent(outfile, level)7745            outfile.write('parameterdescription=model_.descriptionType(\n')7746            self.parameterdescription.exportLiteral(7747                outfile, level, name_='parameterdescription')7748            showIndent(outfile, level)7749            outfile.write('),\n')7750    def build(self, node_):7751        attrs = node_.attributes7752        self.buildAttributes(attrs)7753        for child_ in node_.childNodes:7754            nodeName_ = child_.nodeName.split(':')[-1]7755            self.buildChildren(child_, nodeName_)7756    def buildAttributes(self, attrs):7757        pass7758    def buildChildren(self, child_, nodeName_):7759        if child_.nodeType == Node.ELEMENT_NODE and \7760                nodeName_ == 'parameternamelist':7761            obj_ = docParamNameList.factory()7762            obj_.build(child_)7763            self.parameternamelist.append(obj_)7764        elif child_.nodeType == Node.ELEMENT_NODE and \7765                nodeName_ == 'parameterdescription':7766            obj_ = descriptionType.factory()7767            obj_.build(child_)7768            self.set_parameterdescription(obj_)7769# end class docParamListItem7770class docParamNameList(GeneratedsSuper):7771    subclass = None7772    superclass = None7773    def __init__(self, parametername=None):7774        if parametername is None:7775            self.parametername = []7776        else:7777            self.parametername = parametername7778    def factory(*args_, **kwargs_):7779        if docParamNameList.subclass:7780            return docParamNameList.subclass(*args_, **kwargs_)7781        else:7782            return docParamNameList(*args_, **kwargs_)7783    factory = staticmethod(factory)7784    def get_parametername(self): return self.parametername7785    def set_parametername(7786        self, parametername): self.parametername = parametername7787    def add_parametername(self, value): self.parametername.append(value)7788    def insert_parametername(7789        self, index, value): self.parametername[index] = value7790    def export(self, outfile, level, namespace_='', name_='docParamNameList', namespacedef_=''):7791        showIndent(outfile, level)7792        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))7793        self.exportAttributes(outfile, level, namespace_,7794                              name_='docParamNameList')7795        if self.hasContent_():7796            outfile.write('>\n')7797            self.exportChildren(outfile, level + 1, namespace_, name_)7798            showIndent(outfile, level)7799            outfile.write('</%s%s>\n' % (namespace_, name_))7800        else:7801            outfile.write(' />\n')7802    def exportAttributes(self, outfile, level, namespace_='', name_='docParamNameList'):7803        pass7804    def exportChildren(self, outfile, level, namespace_='', name_='docParamNameList'):7805        for parametername_ in self.parametername:7806            parametername_.export(7807                outfile, level, namespace_, name_='parametername')7808    def hasContent_(self):7809        if (7810            self.parametername is not None7811        ):7812            return True7813        else:7814            return False7815    def exportLiteral(self, outfile, level, name_='docParamNameList'):7816        level += 17817        self.exportLiteralAttributes(outfile, level, name_)7818        if self.hasContent_():7819            self.exportLiteralChildren(outfile, level, name_)7820    def exportLiteralAttributes(self, outfile, level, name_):7821        pass7822    def exportLiteralChildren(self, outfile, level, name_):7823        showIndent(outfile, level)7824        outfile.write('parametername=[\n')7825        level += 17826        for parametername in self.parametername:7827            showIndent(outfile, level)7828            outfile.write('model_.parametername(\n')7829            parametername.exportLiteral(outfile, level, name_='parametername')7830            showIndent(outfile, level)7831            outfile.write('),\n')7832        level -= 17833        showIndent(outfile, level)7834        outfile.write('],\n')7835    def build(self, node_):7836        attrs = node_.attributes7837        self.buildAttributes(attrs)7838        for child_ in node_.childNodes:7839            nodeName_ = child_.nodeName.split(':')[-1]7840            self.buildChildren(child_, nodeName_)7841    def buildAttributes(self, attrs):7842        pass7843    def buildChildren(self, child_, nodeName_):7844        if child_.nodeType == Node.ELEMENT_NODE and \7845                nodeName_ == 'parametername':7846            obj_ = docParamName.factory()7847            obj_.build(child_)7848            self.parametername.append(obj_)7849# end class docParamNameList7850class docParamName(GeneratedsSuper):7851    subclass = None7852    superclass = None7853    def __init__(self, direction=None, ref=None, mixedclass_=None, content_=None):7854        self.direction = direction7855        if mixedclass_ is None:7856            self.mixedclass_ = MixedContainer7857        else:7858            self.mixedclass_ = mixedclass_7859        if content_ is None:7860            self.content_ = []7861        else:7862            self.content_ = content_7863    def factory(*args_, **kwargs_):7864        if docParamName.subclass:7865            return docParamName.subclass(*args_, **kwargs_)7866        else:7867            return docParamName(*args_, **kwargs_)7868    factory = staticmethod(factory)7869    def get_ref(self): return self.ref7870    def set_ref(self, ref): self.ref = ref7871    def get_direction(self): return self.direction7872    def set_direction(self, direction): self.direction = direction7873    def export(self, outfile, level, namespace_='', name_='docParamName', namespacedef_=''):7874        showIndent(outfile, level)7875        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))7876        self.exportAttributes(outfile, level, namespace_, name_='docParamName')7877        outfile.write('>')7878        self.exportChildren(outfile, level + 1, namespace_, name_)7879        outfile.write('</%s%s>\n' % (namespace_, name_))7880    def exportAttributes(self, outfile, level, namespace_='', name_='docParamName'):7881        if self.direction is not None:7882            outfile.write(' direction=%s' % (quote_attrib(self.direction), ))7883    def exportChildren(self, outfile, level, namespace_='', name_='docParamName'):7884        for item_ in self.content_:7885            item_.export(outfile, level, item_.name, namespace_)7886    def hasContent_(self):7887        if (7888            self.ref is not None7889        ):7890            return True7891        else:7892            return False7893    def exportLiteral(self, outfile, level, name_='docParamName'):7894        level += 17895        self.exportLiteralAttributes(outfile, level, name_)7896        if self.hasContent_():7897            self.exportLiteralChildren(outfile, level, name_)7898    def exportLiteralAttributes(self, outfile, level, name_):7899        if self.direction is not None:7900            showIndent(outfile, level)7901            outfile.write('direction = "%s",\n' % (self.direction,))7902    def exportLiteralChildren(self, outfile, level, name_):7903        showIndent(outfile, level)7904        outfile.write('content_ = [\n')7905        for item_ in self.content_:7906            item_.exportLiteral(outfile, level, name_)7907        showIndent(outfile, level)7908        outfile.write('],\n')7909    def build(self, node_):7910        attrs = node_.attributes7911        self.buildAttributes(attrs)7912        for child_ in node_.childNodes:7913            nodeName_ = child_.nodeName.split(':')[-1]7914            self.buildChildren(child_, nodeName_)7915    def buildAttributes(self, attrs):7916        if attrs.get('direction'):7917            self.direction = attrs.get('direction').value7918    def buildChildren(self, child_, nodeName_):7919        if child_.nodeType == Node.ELEMENT_NODE and \7920                nodeName_ == 'ref':7921            childobj_ = docRefTextType.factory()7922            childobj_.build(child_)7923            obj_ = self.mixedclass_(MixedContainer.CategoryComplex,7924                                    MixedContainer.TypeNone, 'ref', childobj_)7925            self.content_.append(obj_)7926        elif child_.nodeType == Node.TEXT_NODE:7927            obj_ = self.mixedclass_(MixedContainer.CategoryText,7928                                    MixedContainer.TypeNone, '', child_.nodeValue)7929            self.content_.append(obj_)7930# end class docParamName7931class docXRefSectType(GeneratedsSuper):7932    subclass = None7933    superclass = None7934    def __init__(self, id=None, xreftitle=None, xrefdescription=None):7935        self.id = id7936        if xreftitle is None:7937            self.xreftitle = []7938        else:7939            self.xreftitle = xreftitle7940        self.xrefdescription = xrefdescription7941    def factory(*args_, **kwargs_):7942        if docXRefSectType.subclass:7943            return docXRefSectType.subclass(*args_, **kwargs_)7944        else:7945            return docXRefSectType(*args_, **kwargs_)7946    factory = staticmethod(factory)7947    def get_xreftitle(self): return self.xreftitle7948    def set_xreftitle(self, xreftitle): self.xreftitle = xreftitle7949    def add_xreftitle(self, value): self.xreftitle.append(value)7950    def insert_xreftitle(self, index, value): self.xreftitle[index] = value7951    def get_xrefdescription(self): return self.xrefdescription7952    def set_xrefdescription(7953        self, xrefdescription): self.xrefdescription = xrefdescription7954    def get_id(self): return self.id7955    def set_id(self, id): self.id = id7956    def export(self, outfile, level, namespace_='', name_='docXRefSectType', namespacedef_=''):7957        showIndent(outfile, level)7958        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))7959        self.exportAttributes(outfile, level, namespace_,7960                              name_='docXRefSectType')7961        if self.hasContent_():7962            outfile.write('>\n')7963            self.exportChildren(outfile, level + 1, namespace_, name_)7964            showIndent(outfile, level)7965            outfile.write('</%s%s>\n' % (namespace_, name_))7966        else:7967            outfile.write(' />\n')7968    def exportAttributes(self, outfile, level, namespace_='', name_='docXRefSectType'):7969        if self.id is not None:7970            outfile.write(' id=%s' % (self.format_string(quote_attrib(7971                self.id).encode(ExternalEncoding), input_name='id'), ))7972    def exportChildren(self, outfile, level, namespace_='', name_='docXRefSectType'):7973        for xreftitle_ in self.xreftitle:7974            showIndent(outfile, level)7975            outfile.write('<%sxreftitle>%s</%sxreftitle>\n' % (namespace_, self.format_string(7976                quote_xml(xreftitle_).encode(ExternalEncoding), input_name='xreftitle'), namespace_))7977        if self.xrefdescription:7978            self.xrefdescription.export(7979                outfile, level, namespace_, name_='xrefdescription', )7980    def hasContent_(self):7981        if (7982            self.xreftitle is not None or7983            self.xrefdescription is not None7984        ):7985            return True7986        else:7987            return False7988    def exportLiteral(self, outfile, level, name_='docXRefSectType'):7989        level += 17990        self.exportLiteralAttributes(outfile, level, name_)7991        if self.hasContent_():7992            self.exportLiteralChildren(outfile, level, name_)7993    def exportLiteralAttributes(self, outfile, level, name_):7994        if self.id is not None:7995            showIndent(outfile, level)7996            outfile.write('id = %s,\n' % (self.id,))7997    def exportLiteralChildren(self, outfile, level, name_):7998        showIndent(outfile, level)7999        outfile.write('xreftitle=[\n')8000        level += 18001        for xreftitle in self.xreftitle:8002            showIndent(outfile, level)8003            outfile.write('%s,\n' % quote_python(8004                xreftitle).encode(ExternalEncoding))8005        level -= 18006        showIndent(outfile, level)8007        outfile.write('],\n')8008        if self.xrefdescription:8009            showIndent(outfile, level)8010            outfile.write('xrefdescription=model_.descriptionType(\n')8011            self.xrefdescription.exportLiteral(8012                outfile, level, name_='xrefdescription')8013            showIndent(outfile, level)8014            outfile.write('),\n')8015    def build(self, node_):8016        attrs = node_.attributes8017        self.buildAttributes(attrs)8018        for child_ in node_.childNodes:8019            nodeName_ = child_.nodeName.split(':')[-1]8020            self.buildChildren(child_, nodeName_)8021    def buildAttributes(self, attrs):8022        if attrs.get('id'):8023            self.id = attrs.get('id').value8024    def buildChildren(self, child_, nodeName_):8025        if child_.nodeType == Node.ELEMENT_NODE and \8026                nodeName_ == 'xreftitle':8027            xreftitle_ = ''8028            for text__content_ in child_.childNodes:8029                xreftitle_ += text__content_.nodeValue8030            self.xreftitle.append(xreftitle_)8031        elif child_.nodeType == Node.ELEMENT_NODE and \8032                nodeName_ == 'xrefdescription':8033            obj_ = descriptionType.factory()8034            obj_.build(child_)8035            self.set_xrefdescription(obj_)8036# end class docXRefSectType8037class docCopyType(GeneratedsSuper):8038    subclass = None8039    superclass = None8040    def __init__(self, link=None, para=None, sect1=None, internal=None):8041        self.link = link8042        if para is None:8043            self.para = []8044        else:8045            self.para = para8046        if sect1 is None:8047            self.sect1 = []8048        else:8049            self.sect1 = sect18050        self.internal = internal8051    def factory(*args_, **kwargs_):8052        if docCopyType.subclass:8053            return docCopyType.subclass(*args_, **kwargs_)8054        else:8055            return docCopyType(*args_, **kwargs_)8056    factory = staticmethod(factory)8057    def get_para(self): return self.para8058    def set_para(self, para): self.para = para8059    def add_para(self, value): self.para.append(value)8060    def insert_para(self, index, value): self.para[index] = value8061    def get_sect1(self): return self.sect18062    def set_sect1(self, sect1): self.sect1 = sect18063    def add_sect1(self, value): self.sect1.append(value)8064    def insert_sect1(self, index, value): self.sect1[index] = value8065    def get_internal(self): return self.internal8066    def set_internal(self, internal): self.internal = internal8067    def get_link(self): return self.link8068    def set_link(self, link): self.link = link8069    def export(self, outfile, level, namespace_='', name_='docCopyType', namespacedef_=''):8070        showIndent(outfile, level)8071        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))8072        self.exportAttributes(outfile, level, namespace_, name_='docCopyType')8073        if self.hasContent_():8074            outfile.write('>\n')8075            self.exportChildren(outfile, level + 1, namespace_, name_)8076            showIndent(outfile, level)8077            outfile.write('</%s%s>\n' % (namespace_, name_))8078        else:8079            outfile.write(' />\n')8080    def exportAttributes(self, outfile, level, namespace_='', name_='docCopyType'):8081        if self.link is not None:8082            outfile.write(' link=%s' % (self.format_string(quote_attrib(8083                self.link).encode(ExternalEncoding), input_name='link'), ))8084    def exportChildren(self, outfile, level, namespace_='', name_='docCopyType'):8085        for para_ in self.para:8086            para_.export(outfile, level, namespace_, name_='para')8087        for sect1_ in self.sect1:8088            sect1_.export(outfile, level, namespace_, name_='sect1')8089        if self.internal:8090            self.internal.export(outfile, level, namespace_, name_='internal')8091    def hasContent_(self):8092        if (8093            self.para is not None or8094            self.sect1 is not None or8095            self.internal is not None8096        ):8097            return True8098        else:8099            return False8100    def exportLiteral(self, outfile, level, name_='docCopyType'):8101        level += 18102        self.exportLiteralAttributes(outfile, level, name_)8103        if self.hasContent_():8104            self.exportLiteralChildren(outfile, level, name_)8105    def exportLiteralAttributes(self, outfile, level, name_):8106        if self.link is not None:8107            showIndent(outfile, level)8108            outfile.write('link = %s,\n' % (self.link,))8109    def exportLiteralChildren(self, outfile, level, name_):8110        showIndent(outfile, level)8111        outfile.write('para=[\n')8112        level += 18113        for para in self.para:8114            showIndent(outfile, level)8115            outfile.write('model_.para(\n')8116            para.exportLiteral(outfile, level, name_='para')8117            showIndent(outfile, level)8118            outfile.write('),\n')8119        level -= 18120        showIndent(outfile, level)8121        outfile.write('],\n')8122        showIndent(outfile, level)8123        outfile.write('sect1=[\n')8124        level += 18125        for sect1 in self.sect1:8126            showIndent(outfile, level)8127            outfile.write('model_.sect1(\n')8128            sect1.exportLiteral(outfile, level, name_='sect1')8129            showIndent(outfile, level)8130            outfile.write('),\n')8131        level -= 18132        showIndent(outfile, level)8133        outfile.write('],\n')8134        if self.internal:8135            showIndent(outfile, level)8136            outfile.write('internal=model_.docInternalType(\n')8137            self.internal.exportLiteral(outfile, level, name_='internal')8138            showIndent(outfile, level)8139            outfile.write('),\n')8140    def build(self, node_):8141        attrs = node_.attributes8142        self.buildAttributes(attrs)8143        for child_ in node_.childNodes:8144            nodeName_ = child_.nodeName.split(':')[-1]8145            self.buildChildren(child_, nodeName_)8146    def buildAttributes(self, attrs):8147        if attrs.get('link'):8148            self.link = attrs.get('link').value8149    def buildChildren(self, child_, nodeName_):8150        if child_.nodeType == Node.ELEMENT_NODE and \8151                nodeName_ == 'para':8152            obj_ = docParaType.factory()8153            obj_.build(child_)8154            self.para.append(obj_)8155        elif child_.nodeType == Node.ELEMENT_NODE and \8156                nodeName_ == 'sect1':8157            obj_ = docSect1Type.factory()8158            obj_.build(child_)8159            self.sect1.append(obj_)8160        elif child_.nodeType == Node.ELEMENT_NODE and \8161                nodeName_ == 'internal':8162            obj_ = docInternalType.factory()8163            obj_.build(child_)8164            self.set_internal(obj_)8165# end class docCopyType8166class docCharType(GeneratedsSuper):8167    subclass = None8168    superclass = None8169    def __init__(self, char=None, valueOf_=''):8170        self.char = char8171        self.valueOf_ = valueOf_8172    def factory(*args_, **kwargs_):8173        if docCharType.subclass:8174            return docCharType.subclass(*args_, **kwargs_)8175        else:8176            return docCharType(*args_, **kwargs_)8177    factory = staticmethod(factory)8178    def get_char(self): return self.char8179    def set_char(self, char): self.char = char8180    def getValueOf_(self): return self.valueOf_8181    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_8182    def export(self, outfile, level, namespace_='', name_='docCharType', namespacedef_=''):8183        showIndent(outfile, level)8184        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))8185        self.exportAttributes(outfile, level, namespace_, name_='docCharType')8186        if self.hasContent_():8187            outfile.write('>\n')8188            self.exportChildren(outfile, level + 1, namespace_, name_)8189            showIndent(outfile, level)8190            outfile.write('</%s%s>\n' % (namespace_, name_))8191        else:8192            outfile.write(' />\n')8193    def exportAttributes(self, outfile, level, namespace_='', name_='docCharType'):8194        if self.char is not None:8195            outfile.write(' char=%s' % (quote_attrib(self.char), ))8196    def exportChildren(self, outfile, level, namespace_='', name_='docCharType'):8197        if self.valueOf_.find('![CDATA') > -1:8198            value = quote_xml('%s' % self.valueOf_)8199            value = value.replace('![CDATA', '<![CDATA')8200            value = value.replace(']]', ']]>')8201            outfile.write(value)8202        else:8203            outfile.write(quote_xml('%s' % self.valueOf_))8204    def hasContent_(self):8205        if (8206            self.valueOf_ is not None8207        ):8208            return True8209        else:8210            return False8211    def exportLiteral(self, outfile, level, name_='docCharType'):8212        level += 18213        self.exportLiteralAttributes(outfile, level, name_)8214        if self.hasContent_():8215            self.exportLiteralChildren(outfile, level, name_)8216    def exportLiteralAttributes(self, outfile, level, name_):8217        if self.char is not None:8218            showIndent(outfile, level)8219            outfile.write('char = "%s",\n' % (self.char,))8220    def exportLiteralChildren(self, outfile, level, name_):8221        showIndent(outfile, level)8222        outfile.write('valueOf_ = "%s",\n' % (self.valueOf_,))8223    def build(self, node_):8224        attrs = node_.attributes8225        self.buildAttributes(attrs)8226        self.valueOf_ = ''8227        for child_ in node_.childNodes:8228            nodeName_ = child_.nodeName.split(':')[-1]8229            self.buildChildren(child_, nodeName_)8230    def buildAttributes(self, attrs):8231        if attrs.get('char'):8232            self.char = attrs.get('char').value8233    def buildChildren(self, child_, nodeName_):8234        if child_.nodeType == Node.TEXT_NODE:8235            self.valueOf_ += child_.nodeValue8236        elif child_.nodeType == Node.CDATA_SECTION_NODE:8237            self.valueOf_ += '![CDATA[' + child_.nodeValue + ']]'8238# end class docCharType8239class docEmptyType(GeneratedsSuper):8240    subclass = None8241    superclass = None8242    def __init__(self, valueOf_=''):8243        self.valueOf_ = valueOf_8244    def factory(*args_, **kwargs_):8245        if docEmptyType.subclass:8246            return docEmptyType.subclass(*args_, **kwargs_)8247        else:8248            return docEmptyType(*args_, **kwargs_)8249    factory = staticmethod(factory)8250    def getValueOf_(self): return self.valueOf_8251    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_8252    def export(self, outfile, level, namespace_='', name_='docEmptyType', namespacedef_=''):8253        showIndent(outfile, level)8254        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))8255        self.exportAttributes(outfile, level, namespace_, name_='docEmptyType')8256        if self.hasContent_():8257            outfile.write('>\n')8258            self.exportChildren(outfile, level + 1, namespace_, name_)8259            showIndent(outfile, level)8260            outfile.write('</%s%s>\n' % (namespace_, name_))8261        else:8262            outfile.write(' />\n')8263    def exportAttributes(self, outfile, level, namespace_='', name_='docEmptyType'):8264        pass8265    def exportChildren(self, outfile, level, namespace_='', name_='docEmptyType'):8266        if self.valueOf_.find('![CDATA') > -1:8267            value = quote_xml('%s' % self.valueOf_)8268            value = value.replace('![CDATA', '<![CDATA')8269            value = value.replace(']]', ']]>')8270            outfile.write(value)8271        else:8272            outfile.write(quote_xml('%s' % self.valueOf_))8273    def hasContent_(self):8274        if (8275            self.valueOf_ is not None8276        ):8277            return True8278        else:8279            return False...Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!
