Best Python code snippet using autotest_python
compoundsuper.py
Source:compoundsuper.py  
...178    def set_version(self, version): self.version = version179    def export(self, outfile, level, namespace_='', name_='DoxygenType', namespacedef_=''):180        showIndent(outfile, level)181        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))182        self.exportAttributes(outfile, level, namespace_, name_='DoxygenType')183        if self.hasContent_():184            outfile.write('>\n')185            self.exportChildren(outfile, level + 1, namespace_, name_)186            showIndent(outfile, level)187            outfile.write('</%s%s>\n' % (namespace_, name_))188        else:189            outfile.write(' />\n')190    def exportAttributes(self, outfile, level, namespace_='', name_='DoxygenType'):191        outfile.write(' version=%s' % (quote_attrib(self.version), ))192    def exportChildren(self, outfile, level, namespace_='', name_='DoxygenType'):193        if self.compounddef:194            self.compounddef.export(outfile, level, namespace_, name_='compounddef')195    def hasContent_(self):196        if (197            self.compounddef is not None198            ):199            return True200        else:201            return False202    def exportLiteral(self, outfile, level, name_='DoxygenType'):203        level += 1204        self.exportLiteralAttributes(outfile, level, name_)205        if self.hasContent_():206            self.exportLiteralChildren(outfile, level, name_)207    def exportLiteralAttributes(self, outfile, level, name_):208        if self.version is not None:209            showIndent(outfile, level)210            outfile.write('version = "%s",\n' % (self.version,))211    def exportLiteralChildren(self, outfile, level, name_):212        if self.compounddef:213            showIndent(outfile, level)214            outfile.write('compounddef=model_.compounddefType(\n')215            self.compounddef.exportLiteral(outfile, level, name_='compounddef')216            showIndent(outfile, level)217            outfile.write('),\n')218    def build(self, node_):219        attrs = node_.attributes220        self.buildAttributes(attrs)221        for child_ in node_.childNodes:222            nodeName_ = child_.nodeName.split(':')[-1]223            self.buildChildren(child_, nodeName_)224    def buildAttributes(self, attrs):225        if attrs.get('version'):226            self.version = attrs.get('version').value227    def buildChildren(self, child_, nodeName_):228        if child_.nodeType == Node.ELEMENT_NODE and \229            nodeName_ == 'compounddef':230            obj_ = compounddefType.factory()231            obj_.build(child_)232            self.set_compounddef(obj_)233# end class DoxygenType234class compounddefType(GeneratedsSuper):235    subclass = None236    superclass = None237    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):238        self.kind = kind239        self.prot = prot240        self.id = id241        self.compoundname = compoundname242        self.title = title243        if basecompoundref is None:244            self.basecompoundref = []245        else:246            self.basecompoundref = basecompoundref247        if derivedcompoundref is None:248            self.derivedcompoundref = []249        else:250            self.derivedcompoundref = derivedcompoundref251        if includes is None:252            self.includes = []253        else:254            self.includes = includes255        if includedby is None:256            self.includedby = []257        else:258            self.includedby = includedby259        self.incdepgraph = incdepgraph260        self.invincdepgraph = invincdepgraph261        if innerdir is None:262            self.innerdir = []263        else:264            self.innerdir = innerdir265        if innerfile is None:266            self.innerfile = []267        else:268            self.innerfile = innerfile269        if innerclass is None:270            self.innerclass = []271        else:272            self.innerclass = innerclass273        if innernamespace is None:274            self.innernamespace = []275        else:276            self.innernamespace = innernamespace277        if innerpage is None:278            self.innerpage = []279        else:280            self.innerpage = innerpage281        if innergroup is None:282            self.innergroup = []283        else:284            self.innergroup = innergroup285        self.templateparamlist = templateparamlist286        if sectiondef is None:287            self.sectiondef = []288        else:289            self.sectiondef = sectiondef290        self.briefdescription = briefdescription291        self.detaileddescription = detaileddescription292        self.inheritancegraph = inheritancegraph293        self.collaborationgraph = collaborationgraph294        self.programlisting = programlisting295        self.location = location296        self.listofallmembers = listofallmembers297    def factory(*args_, **kwargs_):298        if compounddefType.subclass:299            return compounddefType.subclass(*args_, **kwargs_)300        else:301            return compounddefType(*args_, **kwargs_)302    factory = staticmethod(factory)303    def get_compoundname(self): return self.compoundname304    def set_compoundname(self, compoundname): self.compoundname = compoundname305    def get_title(self): return self.title306    def set_title(self, title): self.title = title307    def get_basecompoundref(self): return self.basecompoundref308    def set_basecompoundref(self, basecompoundref): self.basecompoundref = basecompoundref309    def add_basecompoundref(self, value): self.basecompoundref.append(value)310    def insert_basecompoundref(self, index, value): self.basecompoundref[index] = value311    def get_derivedcompoundref(self): return self.derivedcompoundref312    def set_derivedcompoundref(self, derivedcompoundref): self.derivedcompoundref = derivedcompoundref313    def add_derivedcompoundref(self, value): self.derivedcompoundref.append(value)314    def insert_derivedcompoundref(self, index, value): self.derivedcompoundref[index] = value315    def get_includes(self): return self.includes316    def set_includes(self, includes): self.includes = includes317    def add_includes(self, value): self.includes.append(value)318    def insert_includes(self, index, value): self.includes[index] = value319    def get_includedby(self): return self.includedby320    def set_includedby(self, includedby): self.includedby = includedby321    def add_includedby(self, value): self.includedby.append(value)322    def insert_includedby(self, index, value): self.includedby[index] = value323    def get_incdepgraph(self): return self.incdepgraph324    def set_incdepgraph(self, incdepgraph): self.incdepgraph = incdepgraph325    def get_invincdepgraph(self): return self.invincdepgraph326    def set_invincdepgraph(self, invincdepgraph): self.invincdepgraph = invincdepgraph327    def get_innerdir(self): return self.innerdir328    def set_innerdir(self, innerdir): self.innerdir = innerdir329    def add_innerdir(self, value): self.innerdir.append(value)330    def insert_innerdir(self, index, value): self.innerdir[index] = value331    def get_innerfile(self): return self.innerfile332    def set_innerfile(self, innerfile): self.innerfile = innerfile333    def add_innerfile(self, value): self.innerfile.append(value)334    def insert_innerfile(self, index, value): self.innerfile[index] = value335    def get_innerclass(self): return self.innerclass336    def set_innerclass(self, innerclass): self.innerclass = innerclass337    def add_innerclass(self, value): self.innerclass.append(value)338    def insert_innerclass(self, index, value): self.innerclass[index] = value339    def get_innernamespace(self): return self.innernamespace340    def set_innernamespace(self, innernamespace): self.innernamespace = innernamespace341    def add_innernamespace(self, value): self.innernamespace.append(value)342    def insert_innernamespace(self, index, value): self.innernamespace[index] = value343    def get_innerpage(self): return self.innerpage344    def set_innerpage(self, innerpage): self.innerpage = innerpage345    def add_innerpage(self, value): self.innerpage.append(value)346    def insert_innerpage(self, index, value): self.innerpage[index] = value347    def get_innergroup(self): return self.innergroup348    def set_innergroup(self, innergroup): self.innergroup = innergroup349    def add_innergroup(self, value): self.innergroup.append(value)350    def insert_innergroup(self, index, value): self.innergroup[index] = value351    def get_templateparamlist(self): return self.templateparamlist352    def set_templateparamlist(self, templateparamlist): self.templateparamlist = templateparamlist353    def get_sectiondef(self): return self.sectiondef354    def set_sectiondef(self, sectiondef): self.sectiondef = sectiondef355    def add_sectiondef(self, value): self.sectiondef.append(value)356    def insert_sectiondef(self, index, value): self.sectiondef[index] = value357    def get_briefdescription(self): return self.briefdescription358    def set_briefdescription(self, briefdescription): self.briefdescription = briefdescription359    def get_detaileddescription(self): return self.detaileddescription360    def set_detaileddescription(self, detaileddescription): self.detaileddescription = detaileddescription361    def get_inheritancegraph(self): return self.inheritancegraph362    def set_inheritancegraph(self, inheritancegraph): self.inheritancegraph = inheritancegraph363    def get_collaborationgraph(self): return self.collaborationgraph364    def set_collaborationgraph(self, collaborationgraph): self.collaborationgraph = collaborationgraph365    def get_programlisting(self): return self.programlisting366    def set_programlisting(self, programlisting): self.programlisting = programlisting367    def get_location(self): return self.location368    def set_location(self, location): self.location = location369    def get_listofallmembers(self): return self.listofallmembers370    def set_listofallmembers(self, listofallmembers): self.listofallmembers = listofallmembers371    def get_kind(self): return self.kind372    def set_kind(self, kind): self.kind = kind373    def get_prot(self): return self.prot374    def set_prot(self, prot): self.prot = prot375    def get_id(self): return self.id376    def set_id(self, id): self.id = id377    def export(self, outfile, level, namespace_='', name_='compounddefType', namespacedef_=''):378        showIndent(outfile, level)379        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))380        self.exportAttributes(outfile, level, namespace_, name_='compounddefType')381        if self.hasContent_():382            outfile.write('>\n')383            self.exportChildren(outfile, level + 1, namespace_, name_)384            showIndent(outfile, level)385            outfile.write('</%s%s>\n' % (namespace_, name_))386        else:387            outfile.write(' />\n')388    def exportAttributes(self, outfile, level, namespace_='', name_='compounddefType'):389        if self.kind is not None:390            outfile.write(' kind=%s' % (quote_attrib(self.kind), ))391        if self.prot is not None:392            outfile.write(' prot=%s' % (quote_attrib(self.prot), ))393        if self.id is not None:394            outfile.write(' id=%s' % (self.format_string(quote_attrib(self.id).encode(ExternalEncoding), input_name='id'), ))395    def exportChildren(self, outfile, level, namespace_='', name_='compounddefType'):396        if self.compoundname is not None:397            showIndent(outfile, level)398            outfile.write('<%scompoundname>%s</%scompoundname>\n' % (namespace_, self.format_string(quote_xml(self.compoundname).encode(ExternalEncoding), input_name='compoundname'), namespace_))399        if self.title is not None:400            showIndent(outfile, level)401            outfile.write('<%stitle>%s</%stitle>\n' % (namespace_, self.format_string(quote_xml(self.title).encode(ExternalEncoding), input_name='title'), namespace_))402        for basecompoundref_ in self.basecompoundref:403            basecompoundref_.export(outfile, level, namespace_, name_='basecompoundref')404        for derivedcompoundref_ in self.derivedcompoundref:405            derivedcompoundref_.export(outfile, level, namespace_, name_='derivedcompoundref')406        for includes_ in self.includes:407            includes_.export(outfile, level, namespace_, name_='includes')408        for includedby_ in self.includedby:409            includedby_.export(outfile, level, namespace_, name_='includedby')410        if self.incdepgraph:411            self.incdepgraph.export(outfile, level, namespace_, name_='incdepgraph')412        if self.invincdepgraph:413            self.invincdepgraph.export(outfile, level, namespace_, name_='invincdepgraph')414        for innerdir_ in self.innerdir:415            innerdir_.export(outfile, level, namespace_, name_='innerdir')416        for innerfile_ in self.innerfile:417            innerfile_.export(outfile, level, namespace_, name_='innerfile')418        for innerclass_ in self.innerclass:419            innerclass_.export(outfile, level, namespace_, name_='innerclass')420        for innernamespace_ in self.innernamespace:421            innernamespace_.export(outfile, level, namespace_, name_='innernamespace')422        for innerpage_ in self.innerpage:423            innerpage_.export(outfile, level, namespace_, name_='innerpage')424        for innergroup_ in self.innergroup:425            innergroup_.export(outfile, level, namespace_, name_='innergroup')426        if self.templateparamlist:427            self.templateparamlist.export(outfile, level, namespace_, name_='templateparamlist')428        for sectiondef_ in self.sectiondef:429            sectiondef_.export(outfile, level, namespace_, name_='sectiondef')430        if self.briefdescription:431            self.briefdescription.export(outfile, level, namespace_, name_='briefdescription')432        if self.detaileddescription:433            self.detaileddescription.export(outfile, level, namespace_, name_='detaileddescription')434        if self.inheritancegraph:435            self.inheritancegraph.export(outfile, level, namespace_, name_='inheritancegraph')436        if self.collaborationgraph:437            self.collaborationgraph.export(outfile, level, namespace_, name_='collaborationgraph')438        if self.programlisting:439            self.programlisting.export(outfile, level, namespace_, name_='programlisting')440        if self.location:441            self.location.export(outfile, level, namespace_, name_='location')442        if self.listofallmembers:443            self.listofallmembers.export(outfile, level, namespace_, name_='listofallmembers')444    def hasContent_(self):445        if (446            self.compoundname is not None or447            self.title is not None or448            self.basecompoundref is not None or449            self.derivedcompoundref is not None or450            self.includes is not None or451            self.includedby is not None or452            self.incdepgraph is not None or453            self.invincdepgraph is not None or454            self.innerdir is not None or455            self.innerfile is not None or456            self.innerclass is not None or457            self.innernamespace is not None or458            self.innerpage is not None or459            self.innergroup is not None or460            self.templateparamlist is not None or461            self.sectiondef is not None or462            self.briefdescription is not None or463            self.detaileddescription is not None or464            self.inheritancegraph is not None or465            self.collaborationgraph is not None or466            self.programlisting is not None or467            self.location is not None or468            self.listofallmembers is not None469            ):470            return True471        else:472            return False473    def exportLiteral(self, outfile, level, name_='compounddefType'):474        level += 1475        self.exportLiteralAttributes(outfile, level, name_)476        if self.hasContent_():477            self.exportLiteralChildren(outfile, level, name_)478    def exportLiteralAttributes(self, outfile, level, name_):479        if self.kind is not None:480            showIndent(outfile, level)481            outfile.write('kind = "%s",\n' % (self.kind,))482        if self.prot is not None:483            showIndent(outfile, level)484            outfile.write('prot = "%s",\n' % (self.prot,))485        if self.id is not None:486            showIndent(outfile, level)487            outfile.write('id = %s,\n' % (self.id,))488    def exportLiteralChildren(self, outfile, level, name_):489        showIndent(outfile, level)490        outfile.write('compoundname=%s,\n' % quote_python(self.compoundname).encode(ExternalEncoding))491        if self.title:492            showIndent(outfile, level)493            outfile.write('title=model_.xsd_string(\n')494            self.title.exportLiteral(outfile, level, name_='title')495            showIndent(outfile, level)496            outfile.write('),\n')497        showIndent(outfile, level)498        outfile.write('basecompoundref=[\n')499        level += 1500        for basecompoundref in self.basecompoundref:501            showIndent(outfile, level)502            outfile.write('model_.basecompoundref(\n')503            basecompoundref.exportLiteral(outfile, level, name_='basecompoundref')504            showIndent(outfile, level)505            outfile.write('),\n')506        level -= 1507        showIndent(outfile, level)508        outfile.write('],\n')509        showIndent(outfile, level)510        outfile.write('derivedcompoundref=[\n')511        level += 1512        for derivedcompoundref in self.derivedcompoundref:513            showIndent(outfile, level)514            outfile.write('model_.derivedcompoundref(\n')515            derivedcompoundref.exportLiteral(outfile, level, name_='derivedcompoundref')516            showIndent(outfile, level)517            outfile.write('),\n')518        level -= 1519        showIndent(outfile, level)520        outfile.write('],\n')521        showIndent(outfile, level)522        outfile.write('includes=[\n')523        level += 1524        for includes in self.includes:525            showIndent(outfile, level)526            outfile.write('model_.includes(\n')527            includes.exportLiteral(outfile, level, name_='includes')528            showIndent(outfile, level)529            outfile.write('),\n')530        level -= 1531        showIndent(outfile, level)532        outfile.write('],\n')533        showIndent(outfile, level)534        outfile.write('includedby=[\n')535        level += 1536        for includedby in self.includedby:537            showIndent(outfile, level)538            outfile.write('model_.includedby(\n')539            includedby.exportLiteral(outfile, level, name_='includedby')540            showIndent(outfile, level)541            outfile.write('),\n')542        level -= 1543        showIndent(outfile, level)544        outfile.write('],\n')545        if self.incdepgraph:546            showIndent(outfile, level)547            outfile.write('incdepgraph=model_.graphType(\n')548            self.incdepgraph.exportLiteral(outfile, level, name_='incdepgraph')549            showIndent(outfile, level)550            outfile.write('),\n')551        if self.invincdepgraph:552            showIndent(outfile, level)553            outfile.write('invincdepgraph=model_.graphType(\n')554            self.invincdepgraph.exportLiteral(outfile, level, name_='invincdepgraph')555            showIndent(outfile, level)556            outfile.write('),\n')557        showIndent(outfile, level)558        outfile.write('innerdir=[\n')559        level += 1560        for innerdir in self.innerdir:561            showIndent(outfile, level)562            outfile.write('model_.innerdir(\n')563            innerdir.exportLiteral(outfile, level, name_='innerdir')564            showIndent(outfile, level)565            outfile.write('),\n')566        level -= 1567        showIndent(outfile, level)568        outfile.write('],\n')569        showIndent(outfile, level)570        outfile.write('innerfile=[\n')571        level += 1572        for innerfile in self.innerfile:573            showIndent(outfile, level)574            outfile.write('model_.innerfile(\n')575            innerfile.exportLiteral(outfile, level, name_='innerfile')576            showIndent(outfile, level)577            outfile.write('),\n')578        level -= 1579        showIndent(outfile, level)580        outfile.write('],\n')581        showIndent(outfile, level)582        outfile.write('innerclass=[\n')583        level += 1584        for innerclass in self.innerclass:585            showIndent(outfile, level)586            outfile.write('model_.innerclass(\n')587            innerclass.exportLiteral(outfile, level, name_='innerclass')588            showIndent(outfile, level)589            outfile.write('),\n')590        level -= 1591        showIndent(outfile, level)592        outfile.write('],\n')593        showIndent(outfile, level)594        outfile.write('innernamespace=[\n')595        level += 1596        for innernamespace in self.innernamespace:597            showIndent(outfile, level)598            outfile.write('model_.innernamespace(\n')599            innernamespace.exportLiteral(outfile, level, name_='innernamespace')600            showIndent(outfile, level)601            outfile.write('),\n')602        level -= 1603        showIndent(outfile, level)604        outfile.write('],\n')605        showIndent(outfile, level)606        outfile.write('innerpage=[\n')607        level += 1608        for innerpage in self.innerpage:609            showIndent(outfile, level)610            outfile.write('model_.innerpage(\n')611            innerpage.exportLiteral(outfile, level, name_='innerpage')612            showIndent(outfile, level)613            outfile.write('),\n')614        level -= 1615        showIndent(outfile, level)616        outfile.write('],\n')617        showIndent(outfile, level)618        outfile.write('innergroup=[\n')619        level += 1620        for innergroup in self.innergroup:621            showIndent(outfile, level)622            outfile.write('model_.innergroup(\n')623            innergroup.exportLiteral(outfile, level, name_='innergroup')624            showIndent(outfile, level)625            outfile.write('),\n')626        level -= 1627        showIndent(outfile, level)628        outfile.write('],\n')629        if self.templateparamlist:630            showIndent(outfile, level)631            outfile.write('templateparamlist=model_.templateparamlistType(\n')632            self.templateparamlist.exportLiteral(outfile, level, name_='templateparamlist')633            showIndent(outfile, level)634            outfile.write('),\n')635        showIndent(outfile, level)636        outfile.write('sectiondef=[\n')637        level += 1638        for sectiondef in self.sectiondef:639            showIndent(outfile, level)640            outfile.write('model_.sectiondef(\n')641            sectiondef.exportLiteral(outfile, level, name_='sectiondef')642            showIndent(outfile, level)643            outfile.write('),\n')644        level -= 1645        showIndent(outfile, level)646        outfile.write('],\n')647        if self.briefdescription:648            showIndent(outfile, level)649            outfile.write('briefdescription=model_.descriptionType(\n')650            self.briefdescription.exportLiteral(outfile, level, name_='briefdescription')651            showIndent(outfile, level)652            outfile.write('),\n')653        if self.detaileddescription:654            showIndent(outfile, level)655            outfile.write('detaileddescription=model_.descriptionType(\n')656            self.detaileddescription.exportLiteral(outfile, level, name_='detaileddescription')657            showIndent(outfile, level)658            outfile.write('),\n')659        if self.inheritancegraph:660            showIndent(outfile, level)661            outfile.write('inheritancegraph=model_.graphType(\n')662            self.inheritancegraph.exportLiteral(outfile, level, name_='inheritancegraph')663            showIndent(outfile, level)664            outfile.write('),\n')665        if self.collaborationgraph:666            showIndent(outfile, level)667            outfile.write('collaborationgraph=model_.graphType(\n')668            self.collaborationgraph.exportLiteral(outfile, level, name_='collaborationgraph')669            showIndent(outfile, level)670            outfile.write('),\n')671        if self.programlisting:672            showIndent(outfile, level)673            outfile.write('programlisting=model_.listingType(\n')674            self.programlisting.exportLiteral(outfile, level, name_='programlisting')675            showIndent(outfile, level)676            outfile.write('),\n')677        if self.location:678            showIndent(outfile, level)679            outfile.write('location=model_.locationType(\n')680            self.location.exportLiteral(outfile, level, name_='location')681            showIndent(outfile, level)682            outfile.write('),\n')683        if self.listofallmembers:684            showIndent(outfile, level)685            outfile.write('listofallmembers=model_.listofallmembersType(\n')686            self.listofallmembers.exportLiteral(outfile, level, name_='listofallmembers')687            showIndent(outfile, level)688            outfile.write('),\n')689    def build(self, node_):690        attrs = node_.attributes691        self.buildAttributes(attrs)692        for child_ in node_.childNodes:693            nodeName_ = child_.nodeName.split(':')[-1]694            self.buildChildren(child_, nodeName_)695    def buildAttributes(self, attrs):696        if attrs.get('kind'):697            self.kind = attrs.get('kind').value698        if attrs.get('prot'):699            self.prot = attrs.get('prot').value700        if attrs.get('id'):701            self.id = attrs.get('id').value702    def buildChildren(self, child_, nodeName_):703        if child_.nodeType == Node.ELEMENT_NODE and \704            nodeName_ == 'compoundname':705            compoundname_ = ''706            for text__content_ in child_.childNodes:707                compoundname_ += text__content_.nodeValue708            self.compoundname = compoundname_709        elif child_.nodeType == Node.ELEMENT_NODE and \710            nodeName_ == 'title':711            obj_ = docTitleType.factory()712            obj_.build(child_)713            self.set_title(obj_)714        elif child_.nodeType == Node.ELEMENT_NODE and \715            nodeName_ == 'basecompoundref':716            obj_ = compoundRefType.factory()717            obj_.build(child_)718            self.basecompoundref.append(obj_)719        elif child_.nodeType == Node.ELEMENT_NODE and \720            nodeName_ == 'derivedcompoundref':721            obj_ = compoundRefType.factory()722            obj_.build(child_)723            self.derivedcompoundref.append(obj_)724        elif child_.nodeType == Node.ELEMENT_NODE and \725            nodeName_ == 'includes':726            obj_ = incType.factory()727            obj_.build(child_)728            self.includes.append(obj_)729        elif child_.nodeType == Node.ELEMENT_NODE and \730            nodeName_ == 'includedby':731            obj_ = incType.factory()732            obj_.build(child_)733            self.includedby.append(obj_)734        elif child_.nodeType == Node.ELEMENT_NODE and \735            nodeName_ == 'incdepgraph':736            obj_ = graphType.factory()737            obj_.build(child_)738            self.set_incdepgraph(obj_)739        elif child_.nodeType == Node.ELEMENT_NODE and \740            nodeName_ == 'invincdepgraph':741            obj_ = graphType.factory()742            obj_.build(child_)743            self.set_invincdepgraph(obj_)744        elif child_.nodeType == Node.ELEMENT_NODE and \745            nodeName_ == 'innerdir':746            obj_ = refType.factory()747            obj_.build(child_)748            self.innerdir.append(obj_)749        elif child_.nodeType == Node.ELEMENT_NODE and \750            nodeName_ == 'innerfile':751            obj_ = refType.factory()752            obj_.build(child_)753            self.innerfile.append(obj_)754        elif child_.nodeType == Node.ELEMENT_NODE and \755            nodeName_ == 'innerclass':756            obj_ = refType.factory()757            obj_.build(child_)758            self.innerclass.append(obj_)759        elif child_.nodeType == Node.ELEMENT_NODE and \760            nodeName_ == 'innernamespace':761            obj_ = refType.factory()762            obj_.build(child_)763            self.innernamespace.append(obj_)764        elif child_.nodeType == Node.ELEMENT_NODE and \765            nodeName_ == 'innerpage':766            obj_ = refType.factory()767            obj_.build(child_)768            self.innerpage.append(obj_)769        elif child_.nodeType == Node.ELEMENT_NODE and \770            nodeName_ == 'innergroup':771            obj_ = refType.factory()772            obj_.build(child_)773            self.innergroup.append(obj_)774        elif child_.nodeType == Node.ELEMENT_NODE and \775            nodeName_ == 'templateparamlist':776            obj_ = templateparamlistType.factory()777            obj_.build(child_)778            self.set_templateparamlist(obj_)779        elif child_.nodeType == Node.ELEMENT_NODE and \780            nodeName_ == 'sectiondef':781            obj_ = sectiondefType.factory()782            obj_.build(child_)783            self.sectiondef.append(obj_)784        elif child_.nodeType == Node.ELEMENT_NODE and \785            nodeName_ == 'briefdescription':786            obj_ = descriptionType.factory()787            obj_.build(child_)788            self.set_briefdescription(obj_)789        elif child_.nodeType == Node.ELEMENT_NODE and \790            nodeName_ == 'detaileddescription':791            obj_ = descriptionType.factory()792            obj_.build(child_)793            self.set_detaileddescription(obj_)794        elif child_.nodeType == Node.ELEMENT_NODE and \795            nodeName_ == 'inheritancegraph':796            obj_ = graphType.factory()797            obj_.build(child_)798            self.set_inheritancegraph(obj_)799        elif child_.nodeType == Node.ELEMENT_NODE and \800            nodeName_ == 'collaborationgraph':801            obj_ = graphType.factory()802            obj_.build(child_)803            self.set_collaborationgraph(obj_)804        elif child_.nodeType == Node.ELEMENT_NODE and \805            nodeName_ == 'programlisting':806            obj_ = listingType.factory()807            obj_.build(child_)808            self.set_programlisting(obj_)809        elif child_.nodeType == Node.ELEMENT_NODE and \810            nodeName_ == 'location':811            obj_ = locationType.factory()812            obj_.build(child_)813            self.set_location(obj_)814        elif child_.nodeType == Node.ELEMENT_NODE and \815            nodeName_ == 'listofallmembers':816            obj_ = listofallmembersType.factory()817            obj_.build(child_)818            self.set_listofallmembers(obj_)819# end class compounddefType820class listofallmembersType(GeneratedsSuper):821    subclass = None822    superclass = None823    def __init__(self, member=None):824        if member is None:825            self.member = []826        else:827            self.member = member828    def factory(*args_, **kwargs_):829        if listofallmembersType.subclass:830            return listofallmembersType.subclass(*args_, **kwargs_)831        else:832            return listofallmembersType(*args_, **kwargs_)833    factory = staticmethod(factory)834    def get_member(self): return self.member835    def set_member(self, member): self.member = member836    def add_member(self, value): self.member.append(value)837    def insert_member(self, index, value): self.member[index] = value838    def export(self, outfile, level, namespace_='', name_='listofallmembersType', namespacedef_=''):839        showIndent(outfile, level)840        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))841        self.exportAttributes(outfile, level, namespace_, name_='listofallmembersType')842        if self.hasContent_():843            outfile.write('>\n')844            self.exportChildren(outfile, level + 1, namespace_, name_)845            showIndent(outfile, level)846            outfile.write('</%s%s>\n' % (namespace_, name_))847        else:848            outfile.write(' />\n')849    def exportAttributes(self, outfile, level, namespace_='', name_='listofallmembersType'):850        pass851    def exportChildren(self, outfile, level, namespace_='', name_='listofallmembersType'):852        for member_ in self.member:853            member_.export(outfile, level, namespace_, name_='member')854    def hasContent_(self):855        if (856            self.member is not None857            ):858            return True859        else:860            return False861    def exportLiteral(self, outfile, level, name_='listofallmembersType'):862        level += 1863        self.exportLiteralAttributes(outfile, level, name_)864        if self.hasContent_():865            self.exportLiteralChildren(outfile, level, name_)866    def exportLiteralAttributes(self, outfile, level, name_):867        pass868    def exportLiteralChildren(self, outfile, level, name_):869        showIndent(outfile, level)870        outfile.write('member=[\n')871        level += 1872        for member in self.member:873            showIndent(outfile, level)874            outfile.write('model_.member(\n')875            member.exportLiteral(outfile, level, name_='member')876            showIndent(outfile, level)877            outfile.write('),\n')878        level -= 1879        showIndent(outfile, level)880        outfile.write('],\n')881    def build(self, node_):882        attrs = node_.attributes883        self.buildAttributes(attrs)884        for child_ in node_.childNodes:885            nodeName_ = child_.nodeName.split(':')[-1]886            self.buildChildren(child_, nodeName_)887    def buildAttributes(self, attrs):888        pass889    def buildChildren(self, child_, nodeName_):890        if child_.nodeType == Node.ELEMENT_NODE and \891            nodeName_ == 'member':892            obj_ = memberRefType.factory()893            obj_.build(child_)894            self.member.append(obj_)895# end class listofallmembersType896class memberRefType(GeneratedsSuper):897    subclass = None898    superclass = None899    def __init__(self, virt=None, prot=None, refid=None, ambiguityscope=None, scope=None, name=None):900        self.virt = virt901        self.prot = prot902        self.refid = refid903        self.ambiguityscope = ambiguityscope904        self.scope = scope905        self.name = name906    def factory(*args_, **kwargs_):907        if memberRefType.subclass:908            return memberRefType.subclass(*args_, **kwargs_)909        else:910            return memberRefType(*args_, **kwargs_)911    factory = staticmethod(factory)912    def get_scope(self): return self.scope913    def set_scope(self, scope): self.scope = scope914    def get_name(self): return self.name915    def set_name(self, name): self.name = name916    def get_virt(self): return self.virt917    def set_virt(self, virt): self.virt = virt918    def get_prot(self): return self.prot919    def set_prot(self, prot): self.prot = prot920    def get_refid(self): return self.refid921    def set_refid(self, refid): self.refid = refid922    def get_ambiguityscope(self): return self.ambiguityscope923    def set_ambiguityscope(self, ambiguityscope): self.ambiguityscope = ambiguityscope924    def export(self, outfile, level, namespace_='', name_='memberRefType', namespacedef_=''):925        showIndent(outfile, level)926        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))927        self.exportAttributes(outfile, level, namespace_, name_='memberRefType')928        if self.hasContent_():929            outfile.write('>\n')930            self.exportChildren(outfile, level + 1, namespace_, name_)931            showIndent(outfile, level)932            outfile.write('</%s%s>\n' % (namespace_, name_))933        else:934            outfile.write(' />\n')935    def exportAttributes(self, outfile, level, namespace_='', name_='memberRefType'):936        if self.virt is not None:937            outfile.write(' virt=%s' % (quote_attrib(self.virt), ))938        if self.prot is not None:939            outfile.write(' prot=%s' % (quote_attrib(self.prot), ))940        if self.refid is not None:941            outfile.write(' refid=%s' % (self.format_string(quote_attrib(self.refid).encode(ExternalEncoding), input_name='refid'), ))942        if self.ambiguityscope is not None:943            outfile.write(' ambiguityscope=%s' % (self.format_string(quote_attrib(self.ambiguityscope).encode(ExternalEncoding), input_name='ambiguityscope'), ))944    def exportChildren(self, outfile, level, namespace_='', name_='memberRefType'):945        if self.scope is not None:946            showIndent(outfile, level)947            outfile.write('<%sscope>%s</%sscope>\n' % (namespace_, self.format_string(quote_xml(self.scope).encode(ExternalEncoding), input_name='scope'), namespace_))948        if self.name is not None:949            showIndent(outfile, level)950            outfile.write('<%sname>%s</%sname>\n' % (namespace_, self.format_string(quote_xml(self.name).encode(ExternalEncoding), input_name='name'), namespace_))951    def hasContent_(self):952        if (953            self.scope is not None or954            self.name is not None955            ):956            return True957        else:958            return False959    def exportLiteral(self, outfile, level, name_='memberRefType'):960        level += 1961        self.exportLiteralAttributes(outfile, level, name_)962        if self.hasContent_():963            self.exportLiteralChildren(outfile, level, name_)964    def exportLiteralAttributes(self, outfile, level, name_):965        if self.virt is not None:966            showIndent(outfile, level)967            outfile.write('virt = "%s",\n' % (self.virt,))968        if self.prot is not None:969            showIndent(outfile, level)970            outfile.write('prot = "%s",\n' % (self.prot,))971        if self.refid is not None:972            showIndent(outfile, level)973            outfile.write('refid = %s,\n' % (self.refid,))974        if self.ambiguityscope is not None:975            showIndent(outfile, level)976            outfile.write('ambiguityscope = %s,\n' % (self.ambiguityscope,))977    def exportLiteralChildren(self, outfile, level, name_):978        showIndent(outfile, level)979        outfile.write('scope=%s,\n' % quote_python(self.scope).encode(ExternalEncoding))980        showIndent(outfile, level)981        outfile.write('name=%s,\n' % quote_python(self.name).encode(ExternalEncoding))982    def build(self, node_):983        attrs = node_.attributes984        self.buildAttributes(attrs)985        for child_ in node_.childNodes:986            nodeName_ = child_.nodeName.split(':')[-1]987            self.buildChildren(child_, nodeName_)988    def buildAttributes(self, attrs):989        if attrs.get('virt'):990            self.virt = attrs.get('virt').value991        if attrs.get('prot'):992            self.prot = attrs.get('prot').value993        if attrs.get('refid'):994            self.refid = attrs.get('refid').value995        if attrs.get('ambiguityscope'):996            self.ambiguityscope = attrs.get('ambiguityscope').value997    def buildChildren(self, child_, nodeName_):998        if child_.nodeType == Node.ELEMENT_NODE and \999            nodeName_ == 'scope':1000            scope_ = ''1001            for text__content_ in child_.childNodes:1002                scope_ += text__content_.nodeValue1003            self.scope = scope_1004        elif child_.nodeType == Node.ELEMENT_NODE and \1005            nodeName_ == 'name':1006            name_ = ''1007            for text__content_ in child_.childNodes:1008                name_ += text__content_.nodeValue1009            self.name = name_1010# end class memberRefType1011class scope(GeneratedsSuper):1012    subclass = None1013    superclass = None1014    def __init__(self, valueOf_=''):1015        self.valueOf_ = valueOf_1016    def factory(*args_, **kwargs_):1017        if scope.subclass:1018            return scope.subclass(*args_, **kwargs_)1019        else:1020            return scope(*args_, **kwargs_)1021    factory = staticmethod(factory)1022    def getValueOf_(self): return self.valueOf_1023    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_1024    def export(self, outfile, level, namespace_='', name_='scope', namespacedef_=''):1025        showIndent(outfile, level)1026        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))1027        self.exportAttributes(outfile, level, namespace_, name_='scope')1028        if self.hasContent_():1029            outfile.write('>\n')1030            self.exportChildren(outfile, level + 1, namespace_, name_)1031            showIndent(outfile, level)1032            outfile.write('</%s%s>\n' % (namespace_, name_))1033        else:1034            outfile.write(' />\n')1035    def exportAttributes(self, outfile, level, namespace_='', name_='scope'):1036        pass1037    def exportChildren(self, outfile, level, namespace_='', name_='scope'):1038        if self.valueOf_.find('![CDATA')>-1:1039            value=quote_xml('%s' % self.valueOf_)1040            value=value.replace('![CDATA','<![CDATA')1041            value=value.replace(']]',']]>')1042            outfile.write(value)1043        else:1044            outfile.write(quote_xml('%s' % self.valueOf_))1045    def hasContent_(self):1046        if (1047            self.valueOf_ is not None1048            ):1049            return True1050        else:1051            return False1052    def exportLiteral(self, outfile, level, name_='scope'):1053        level += 11054        self.exportLiteralAttributes(outfile, level, name_)1055        if self.hasContent_():1056            self.exportLiteralChildren(outfile, level, name_)1057    def exportLiteralAttributes(self, outfile, level, name_):1058        pass1059    def exportLiteralChildren(self, outfile, level, name_):1060        showIndent(outfile, level)1061        outfile.write('valueOf_ = "%s",\n' % (self.valueOf_,))1062    def build(self, node_):1063        attrs = node_.attributes1064        self.buildAttributes(attrs)1065        self.valueOf_ = ''1066        for child_ in node_.childNodes:1067            nodeName_ = child_.nodeName.split(':')[-1]1068            self.buildChildren(child_, nodeName_)1069    def buildAttributes(self, attrs):1070        pass1071    def buildChildren(self, child_, nodeName_):1072        if child_.nodeType == Node.TEXT_NODE:1073            self.valueOf_ += child_.nodeValue1074        elif child_.nodeType == Node.CDATA_SECTION_NODE:1075            self.valueOf_ += '![CDATA['+child_.nodeValue+']]'1076# end class scope1077class name(GeneratedsSuper):1078    subclass = None1079    superclass = None1080    def __init__(self, valueOf_=''):1081        self.valueOf_ = valueOf_1082    def factory(*args_, **kwargs_):1083        if name.subclass:1084            return name.subclass(*args_, **kwargs_)1085        else:1086            return name(*args_, **kwargs_)1087    factory = staticmethod(factory)1088    def getValueOf_(self): return self.valueOf_1089    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_1090    def export(self, outfile, level, namespace_='', name_='name', namespacedef_=''):1091        showIndent(outfile, level)1092        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))1093        self.exportAttributes(outfile, level, namespace_, name_='name')1094        if self.hasContent_():1095            outfile.write('>\n')1096            self.exportChildren(outfile, level + 1, namespace_, name_)1097            showIndent(outfile, level)1098            outfile.write('</%s%s>\n' % (namespace_, name_))1099        else:1100            outfile.write(' />\n')1101    def exportAttributes(self, outfile, level, namespace_='', name_='name'):1102        pass1103    def exportChildren(self, outfile, level, namespace_='', name_='name'):1104        if self.valueOf_.find('![CDATA')>-1:1105            value=quote_xml('%s' % self.valueOf_)1106            value=value.replace('![CDATA','<![CDATA')1107            value=value.replace(']]',']]>')1108            outfile.write(value)1109        else:1110            outfile.write(quote_xml('%s' % self.valueOf_))1111    def hasContent_(self):1112        if (1113            self.valueOf_ is not None1114            ):1115            return True1116        else:1117            return False1118    def exportLiteral(self, outfile, level, name_='name'):1119        level += 11120        self.exportLiteralAttributes(outfile, level, name_)1121        if self.hasContent_():1122            self.exportLiteralChildren(outfile, level, name_)1123    def exportLiteralAttributes(self, outfile, level, name_):1124        pass1125    def exportLiteralChildren(self, outfile, level, name_):1126        showIndent(outfile, level)1127        outfile.write('valueOf_ = "%s",\n' % (self.valueOf_,))1128    def build(self, node_):1129        attrs = node_.attributes1130        self.buildAttributes(attrs)1131        self.valueOf_ = ''1132        for child_ in node_.childNodes:1133            nodeName_ = child_.nodeName.split(':')[-1]1134            self.buildChildren(child_, nodeName_)1135    def buildAttributes(self, attrs):1136        pass1137    def buildChildren(self, child_, nodeName_):1138        if child_.nodeType == Node.TEXT_NODE:1139            self.valueOf_ += child_.nodeValue1140        elif child_.nodeType == Node.CDATA_SECTION_NODE:1141            self.valueOf_ += '![CDATA['+child_.nodeValue+']]'1142# end class name1143class compoundRefType(GeneratedsSuper):1144    subclass = None1145    superclass = None1146    def __init__(self, virt=None, prot=None, refid=None, valueOf_='', mixedclass_=None, content_=None):1147        self.virt = virt1148        self.prot = prot1149        self.refid = refid1150        if mixedclass_ is None:1151            self.mixedclass_ = MixedContainer1152        else:1153            self.mixedclass_ = mixedclass_1154        if content_ is None:1155            self.content_ = []1156        else:1157            self.content_ = content_1158    def factory(*args_, **kwargs_):1159        if compoundRefType.subclass:1160            return compoundRefType.subclass(*args_, **kwargs_)1161        else:1162            return compoundRefType(*args_, **kwargs_)1163    factory = staticmethod(factory)1164    def get_virt(self): return self.virt1165    def set_virt(self, virt): self.virt = virt1166    def get_prot(self): return self.prot1167    def set_prot(self, prot): self.prot = prot1168    def get_refid(self): return self.refid1169    def set_refid(self, refid): self.refid = refid1170    def getValueOf_(self): return self.valueOf_1171    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_1172    def export(self, outfile, level, namespace_='', name_='compoundRefType', namespacedef_=''):1173        showIndent(outfile, level)1174        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))1175        self.exportAttributes(outfile, level, namespace_, name_='compoundRefType')1176        outfile.write('>')1177        self.exportChildren(outfile, level + 1, namespace_, name_)1178        outfile.write('</%s%s>\n' % (namespace_, name_))1179    def exportAttributes(self, outfile, level, namespace_='', name_='compoundRefType'):1180        if self.virt is not None:1181            outfile.write(' virt=%s' % (quote_attrib(self.virt), ))1182        if self.prot is not None:1183            outfile.write(' prot=%s' % (quote_attrib(self.prot), ))1184        if self.refid is not None:1185            outfile.write(' refid=%s' % (self.format_string(quote_attrib(self.refid).encode(ExternalEncoding), input_name='refid'), ))1186    def exportChildren(self, outfile, level, namespace_='', name_='compoundRefType'):1187        if self.valueOf_.find('![CDATA')>-1:1188            value=quote_xml('%s' % self.valueOf_)1189            value=value.replace('![CDATA','<![CDATA')1190            value=value.replace(']]',']]>')1191            outfile.write(value)1192        else:1193            outfile.write(quote_xml('%s' % self.valueOf_))1194    def hasContent_(self):1195        if (1196            self.valueOf_ is not None1197            ):1198            return True1199        else:1200            return False1201    def exportLiteral(self, outfile, level, name_='compoundRefType'):1202        level += 11203        self.exportLiteralAttributes(outfile, level, name_)1204        if self.hasContent_():1205            self.exportLiteralChildren(outfile, level, name_)1206    def exportLiteralAttributes(self, outfile, level, name_):1207        if self.virt is not None:1208            showIndent(outfile, level)1209            outfile.write('virt = "%s",\n' % (self.virt,))1210        if self.prot is not None:1211            showIndent(outfile, level)1212            outfile.write('prot = "%s",\n' % (self.prot,))1213        if self.refid is not None:1214            showIndent(outfile, level)1215            outfile.write('refid = %s,\n' % (self.refid,))1216    def exportLiteralChildren(self, outfile, level, name_):1217        showIndent(outfile, level)1218        outfile.write('valueOf_ = "%s",\n' % (self.valueOf_,))1219    def build(self, node_):1220        attrs = node_.attributes1221        self.buildAttributes(attrs)1222        self.valueOf_ = ''1223        for child_ in node_.childNodes:1224            nodeName_ = child_.nodeName.split(':')[-1]1225            self.buildChildren(child_, nodeName_)1226    def buildAttributes(self, attrs):1227        if attrs.get('virt'):1228            self.virt = attrs.get('virt').value1229        if attrs.get('prot'):1230            self.prot = attrs.get('prot').value1231        if attrs.get('refid'):1232            self.refid = attrs.get('refid').value1233    def buildChildren(self, child_, nodeName_):1234        if child_.nodeType == Node.TEXT_NODE:1235            obj_ = self.mixedclass_(MixedContainer.CategoryText,1236                MixedContainer.TypeNone, '', child_.nodeValue)1237            self.content_.append(obj_)1238        if child_.nodeType == Node.TEXT_NODE:1239            self.valueOf_ += child_.nodeValue1240        elif child_.nodeType == Node.CDATA_SECTION_NODE:1241            self.valueOf_ += '![CDATA['+child_.nodeValue+']]'1242# end class compoundRefType1243class reimplementType(GeneratedsSuper):1244    subclass = None1245    superclass = None1246    def __init__(self, refid=None, valueOf_='', mixedclass_=None, content_=None):1247        self.refid = refid1248        if mixedclass_ is None:1249            self.mixedclass_ = MixedContainer1250        else:1251            self.mixedclass_ = mixedclass_1252        if content_ is None:1253            self.content_ = []1254        else:1255            self.content_ = content_1256    def factory(*args_, **kwargs_):1257        if reimplementType.subclass:1258            return reimplementType.subclass(*args_, **kwargs_)1259        else:1260            return reimplementType(*args_, **kwargs_)1261    factory = staticmethod(factory)1262    def get_refid(self): return self.refid1263    def set_refid(self, refid): self.refid = refid1264    def getValueOf_(self): return self.valueOf_1265    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_1266    def export(self, outfile, level, namespace_='', name_='reimplementType', namespacedef_=''):1267        showIndent(outfile, level)1268        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))1269        self.exportAttributes(outfile, level, namespace_, name_='reimplementType')1270        outfile.write('>')1271        self.exportChildren(outfile, level + 1, namespace_, name_)1272        outfile.write('</%s%s>\n' % (namespace_, name_))1273    def exportAttributes(self, outfile, level, namespace_='', name_='reimplementType'):1274        if self.refid is not None:1275            outfile.write(' refid=%s' % (self.format_string(quote_attrib(self.refid).encode(ExternalEncoding), input_name='refid'), ))1276    def exportChildren(self, outfile, level, namespace_='', name_='reimplementType'):1277        if self.valueOf_.find('![CDATA')>-1:1278            value=quote_xml('%s' % self.valueOf_)1279            value=value.replace('![CDATA','<![CDATA')1280            value=value.replace(']]',']]>')1281            outfile.write(value)1282        else:1283            outfile.write(quote_xml('%s' % self.valueOf_))1284    def hasContent_(self):1285        if (1286            self.valueOf_ is not None1287            ):1288            return True1289        else:1290            return False1291    def exportLiteral(self, outfile, level, name_='reimplementType'):1292        level += 11293        self.exportLiteralAttributes(outfile, level, name_)1294        if self.hasContent_():1295            self.exportLiteralChildren(outfile, level, name_)1296    def exportLiteralAttributes(self, outfile, level, name_):1297        if self.refid is not None:1298            showIndent(outfile, level)1299            outfile.write('refid = %s,\n' % (self.refid,))1300    def exportLiteralChildren(self, outfile, level, name_):1301        showIndent(outfile, level)1302        outfile.write('valueOf_ = "%s",\n' % (self.valueOf_,))1303    def build(self, node_):1304        attrs = node_.attributes1305        self.buildAttributes(attrs)1306        self.valueOf_ = ''1307        for child_ in node_.childNodes:1308            nodeName_ = child_.nodeName.split(':')[-1]1309            self.buildChildren(child_, nodeName_)1310    def buildAttributes(self, attrs):1311        if attrs.get('refid'):1312            self.refid = attrs.get('refid').value1313    def buildChildren(self, child_, nodeName_):1314        if child_.nodeType == Node.TEXT_NODE:1315            obj_ = self.mixedclass_(MixedContainer.CategoryText,1316                MixedContainer.TypeNone, '', child_.nodeValue)1317            self.content_.append(obj_)1318        if child_.nodeType == Node.TEXT_NODE:1319            self.valueOf_ += child_.nodeValue1320        elif child_.nodeType == Node.CDATA_SECTION_NODE:1321            self.valueOf_ += '![CDATA['+child_.nodeValue+']]'1322# end class reimplementType1323class incType(GeneratedsSuper):1324    subclass = None1325    superclass = None1326    def __init__(self, local=None, refid=None, valueOf_='', mixedclass_=None, content_=None):1327        self.local = local1328        self.refid = refid1329        if mixedclass_ is None:1330            self.mixedclass_ = MixedContainer1331        else:1332            self.mixedclass_ = mixedclass_1333        if content_ is None:1334            self.content_ = []1335        else:1336            self.content_ = content_1337    def factory(*args_, **kwargs_):1338        if incType.subclass:1339            return incType.subclass(*args_, **kwargs_)1340        else:1341            return incType(*args_, **kwargs_)1342    factory = staticmethod(factory)1343    def get_local(self): return self.local1344    def set_local(self, local): self.local = local1345    def get_refid(self): return self.refid1346    def set_refid(self, refid): self.refid = refid1347    def getValueOf_(self): return self.valueOf_1348    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_1349    def export(self, outfile, level, namespace_='', name_='incType', namespacedef_=''):1350        showIndent(outfile, level)1351        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))1352        self.exportAttributes(outfile, level, namespace_, name_='incType')1353        outfile.write('>')1354        self.exportChildren(outfile, level + 1, namespace_, name_)1355        outfile.write('</%s%s>\n' % (namespace_, name_))1356    def exportAttributes(self, outfile, level, namespace_='', name_='incType'):1357        if self.local is not None:1358            outfile.write(' local=%s' % (quote_attrib(self.local), ))1359        if self.refid is not None:1360            outfile.write(' refid=%s' % (self.format_string(quote_attrib(self.refid).encode(ExternalEncoding), input_name='refid'), ))1361    def exportChildren(self, outfile, level, namespace_='', name_='incType'):1362        if self.valueOf_.find('![CDATA')>-1:1363            value=quote_xml('%s' % self.valueOf_)1364            value=value.replace('![CDATA','<![CDATA')1365            value=value.replace(']]',']]>')1366            outfile.write(value)1367        else:1368            outfile.write(quote_xml('%s' % self.valueOf_))1369    def hasContent_(self):1370        if (1371            self.valueOf_ is not None1372            ):1373            return True1374        else:1375            return False1376    def exportLiteral(self, outfile, level, name_='incType'):1377        level += 11378        self.exportLiteralAttributes(outfile, level, name_)1379        if self.hasContent_():1380            self.exportLiteralChildren(outfile, level, name_)1381    def exportLiteralAttributes(self, outfile, level, name_):1382        if self.local is not None:1383            showIndent(outfile, level)1384            outfile.write('local = "%s",\n' % (self.local,))1385        if self.refid is not None:1386            showIndent(outfile, level)1387            outfile.write('refid = %s,\n' % (self.refid,))1388    def exportLiteralChildren(self, outfile, level, name_):1389        showIndent(outfile, level)1390        outfile.write('valueOf_ = "%s",\n' % (self.valueOf_,))1391    def build(self, node_):1392        attrs = node_.attributes1393        self.buildAttributes(attrs)1394        self.valueOf_ = ''1395        for child_ in node_.childNodes:1396            nodeName_ = child_.nodeName.split(':')[-1]1397            self.buildChildren(child_, nodeName_)1398    def buildAttributes(self, attrs):1399        if attrs.get('local'):1400            self.local = attrs.get('local').value1401        if attrs.get('refid'):1402            self.refid = attrs.get('refid').value1403    def buildChildren(self, child_, nodeName_):1404        if child_.nodeType == Node.TEXT_NODE:1405            obj_ = self.mixedclass_(MixedContainer.CategoryText,1406                MixedContainer.TypeNone, '', child_.nodeValue)1407            self.content_.append(obj_)1408        if child_.nodeType == Node.TEXT_NODE:1409            self.valueOf_ += child_.nodeValue1410        elif child_.nodeType == Node.CDATA_SECTION_NODE:1411            self.valueOf_ += '![CDATA['+child_.nodeValue+']]'1412# end class incType1413class refType(GeneratedsSuper):1414    subclass = None1415    superclass = None1416    def __init__(self, prot=None, refid=None, valueOf_='', mixedclass_=None, content_=None):1417        self.prot = prot1418        self.refid = refid1419        if mixedclass_ is None:1420            self.mixedclass_ = MixedContainer1421        else:1422            self.mixedclass_ = mixedclass_1423        if content_ is None:1424            self.content_ = []1425        else:1426            self.content_ = content_1427    def factory(*args_, **kwargs_):1428        if refType.subclass:1429            return refType.subclass(*args_, **kwargs_)1430        else:1431            return refType(*args_, **kwargs_)1432    factory = staticmethod(factory)1433    def get_prot(self): return self.prot1434    def set_prot(self, prot): self.prot = prot1435    def get_refid(self): return self.refid1436    def set_refid(self, refid): self.refid = refid1437    def getValueOf_(self): return self.valueOf_1438    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_1439    def export(self, outfile, level, namespace_='', name_='refType', namespacedef_=''):1440        showIndent(outfile, level)1441        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))1442        self.exportAttributes(outfile, level, namespace_, name_='refType')1443        outfile.write('>')1444        self.exportChildren(outfile, level + 1, namespace_, name_)1445        outfile.write('</%s%s>\n' % (namespace_, name_))1446    def exportAttributes(self, outfile, level, namespace_='', name_='refType'):1447        if self.prot is not None:1448            outfile.write(' prot=%s' % (quote_attrib(self.prot), ))1449        if self.refid is not None:1450            outfile.write(' refid=%s' % (self.format_string(quote_attrib(self.refid).encode(ExternalEncoding), input_name='refid'), ))1451    def exportChildren(self, outfile, level, namespace_='', name_='refType'):1452        if self.valueOf_.find('![CDATA')>-1:1453            value=quote_xml('%s' % self.valueOf_)1454            value=value.replace('![CDATA','<![CDATA')1455            value=value.replace(']]',']]>')1456            outfile.write(value)1457        else:1458            outfile.write(quote_xml('%s' % self.valueOf_))1459    def hasContent_(self):1460        if (1461            self.valueOf_ is not None1462            ):1463            return True1464        else:1465            return False1466    def exportLiteral(self, outfile, level, name_='refType'):1467        level += 11468        self.exportLiteralAttributes(outfile, level, name_)1469        if self.hasContent_():1470            self.exportLiteralChildren(outfile, level, name_)1471    def exportLiteralAttributes(self, outfile, level, name_):1472        if self.prot is not None:1473            showIndent(outfile, level)1474            outfile.write('prot = "%s",\n' % (self.prot,))1475        if self.refid is not None:1476            showIndent(outfile, level)1477            outfile.write('refid = %s,\n' % (self.refid,))1478    def exportLiteralChildren(self, outfile, level, name_):1479        showIndent(outfile, level)1480        outfile.write('valueOf_ = "%s",\n' % (self.valueOf_,))1481    def build(self, node_):1482        attrs = node_.attributes1483        self.buildAttributes(attrs)1484        self.valueOf_ = ''1485        for child_ in node_.childNodes:1486            nodeName_ = child_.nodeName.split(':')[-1]1487            self.buildChildren(child_, nodeName_)1488    def buildAttributes(self, attrs):1489        if attrs.get('prot'):1490            self.prot = attrs.get('prot').value1491        if attrs.get('refid'):1492            self.refid = attrs.get('refid').value1493    def buildChildren(self, child_, nodeName_):1494        if child_.nodeType == Node.TEXT_NODE:1495            obj_ = self.mixedclass_(MixedContainer.CategoryText,1496                MixedContainer.TypeNone, '', child_.nodeValue)1497            self.content_.append(obj_)1498        if child_.nodeType == Node.TEXT_NODE:1499            self.valueOf_ += child_.nodeValue1500        elif child_.nodeType == Node.CDATA_SECTION_NODE:1501            self.valueOf_ += '![CDATA['+child_.nodeValue+']]'1502# end class refType1503class refTextType(GeneratedsSuper):1504    subclass = None1505    superclass = None1506    def __init__(self, refid=None, kindref=None, external=None, valueOf_='', mixedclass_=None, content_=None):1507        self.refid = refid1508        self.kindref = kindref1509        self.external = external1510        if mixedclass_ is None:1511            self.mixedclass_ = MixedContainer1512        else:1513            self.mixedclass_ = mixedclass_1514        if content_ is None:1515            self.content_ = []1516        else:1517            self.content_ = content_1518    def factory(*args_, **kwargs_):1519        if refTextType.subclass:1520            return refTextType.subclass(*args_, **kwargs_)1521        else:1522            return refTextType(*args_, **kwargs_)1523    factory = staticmethod(factory)1524    def get_refid(self): return self.refid1525    def set_refid(self, refid): self.refid = refid1526    def get_kindref(self): return self.kindref1527    def set_kindref(self, kindref): self.kindref = kindref1528    def get_external(self): return self.external1529    def set_external(self, external): self.external = external1530    def getValueOf_(self): return self.valueOf_1531    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_1532    def export(self, outfile, level, namespace_='', name_='refTextType', namespacedef_=''):1533        showIndent(outfile, level)1534        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))1535        self.exportAttributes(outfile, level, namespace_, name_='refTextType')1536        outfile.write('>')1537        self.exportChildren(outfile, level + 1, namespace_, name_)1538        outfile.write('</%s%s>\n' % (namespace_, name_))1539    def exportAttributes(self, outfile, level, namespace_='', name_='refTextType'):1540        if self.refid is not None:1541            outfile.write(' refid=%s' % (self.format_string(quote_attrib(self.refid).encode(ExternalEncoding), input_name='refid'), ))1542        if self.kindref is not None:1543            outfile.write(' kindref=%s' % (quote_attrib(self.kindref), ))1544        if self.external is not None:1545            outfile.write(' external=%s' % (self.format_string(quote_attrib(self.external).encode(ExternalEncoding), input_name='external'), ))1546    def exportChildren(self, outfile, level, namespace_='', name_='refTextType'):1547        if self.valueOf_.find('![CDATA')>-1:1548            value=quote_xml('%s' % self.valueOf_)1549            value=value.replace('![CDATA','<![CDATA')1550            value=value.replace(']]',']]>')1551            outfile.write(value)1552        else:1553            outfile.write(quote_xml('%s' % self.valueOf_))1554    def hasContent_(self):1555        if (1556            self.valueOf_ is not None1557            ):1558            return True1559        else:1560            return False1561    def exportLiteral(self, outfile, level, name_='refTextType'):1562        level += 11563        self.exportLiteralAttributes(outfile, level, name_)1564        if self.hasContent_():1565            self.exportLiteralChildren(outfile, level, name_)1566    def exportLiteralAttributes(self, outfile, level, name_):1567        if self.refid is not None:1568            showIndent(outfile, level)1569            outfile.write('refid = %s,\n' % (self.refid,))1570        if self.kindref is not None:1571            showIndent(outfile, level)1572            outfile.write('kindref = "%s",\n' % (self.kindref,))1573        if self.external is not None:1574            showIndent(outfile, level)1575            outfile.write('external = %s,\n' % (self.external,))1576    def exportLiteralChildren(self, outfile, level, name_):1577        showIndent(outfile, level)1578        outfile.write('valueOf_ = "%s",\n' % (self.valueOf_,))1579    def build(self, node_):1580        attrs = node_.attributes1581        self.buildAttributes(attrs)1582        self.valueOf_ = ''1583        for child_ in node_.childNodes:1584            nodeName_ = child_.nodeName.split(':')[-1]1585            self.buildChildren(child_, nodeName_)1586    def buildAttributes(self, attrs):1587        if attrs.get('refid'):1588            self.refid = attrs.get('refid').value1589        if attrs.get('kindref'):1590            self.kindref = attrs.get('kindref').value1591        if attrs.get('external'):1592            self.external = attrs.get('external').value1593    def buildChildren(self, child_, nodeName_):1594        if child_.nodeType == Node.TEXT_NODE:1595            obj_ = self.mixedclass_(MixedContainer.CategoryText,1596                MixedContainer.TypeNone, '', child_.nodeValue)1597            self.content_.append(obj_)1598        if child_.nodeType == Node.TEXT_NODE:1599            self.valueOf_ += child_.nodeValue1600        elif child_.nodeType == Node.CDATA_SECTION_NODE:1601            self.valueOf_ += '![CDATA['+child_.nodeValue+']]'1602# end class refTextType1603class sectiondefType(GeneratedsSuper):1604    subclass = None1605    superclass = None1606    def __init__(self, kind=None, header=None, description=None, memberdef=None):1607        self.kind = kind1608        self.header = header1609        self.description = description1610        if memberdef is None:1611            self.memberdef = []1612        else:1613            self.memberdef = memberdef1614    def factory(*args_, **kwargs_):1615        if sectiondefType.subclass:1616            return sectiondefType.subclass(*args_, **kwargs_)1617        else:1618            return sectiondefType(*args_, **kwargs_)1619    factory = staticmethod(factory)1620    def get_header(self): return self.header1621    def set_header(self, header): self.header = header1622    def get_description(self): return self.description1623    def set_description(self, description): self.description = description1624    def get_memberdef(self): return self.memberdef1625    def set_memberdef(self, memberdef): self.memberdef = memberdef1626    def add_memberdef(self, value): self.memberdef.append(value)1627    def insert_memberdef(self, index, value): self.memberdef[index] = value1628    def get_kind(self): return self.kind1629    def set_kind(self, kind): self.kind = kind1630    def export(self, outfile, level, namespace_='', name_='sectiondefType', namespacedef_=''):1631        showIndent(outfile, level)1632        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))1633        self.exportAttributes(outfile, level, namespace_, name_='sectiondefType')1634        if self.hasContent_():1635            outfile.write('>\n')1636            self.exportChildren(outfile, level + 1, namespace_, name_)1637            showIndent(outfile, level)1638            outfile.write('</%s%s>\n' % (namespace_, name_))1639        else:1640            outfile.write(' />\n')1641    def exportAttributes(self, outfile, level, namespace_='', name_='sectiondefType'):1642        if self.kind is not None:1643            outfile.write(' kind=%s' % (quote_attrib(self.kind), ))1644    def exportChildren(self, outfile, level, namespace_='', name_='sectiondefType'):1645        if self.header is not None:1646            showIndent(outfile, level)1647            outfile.write('<%sheader>%s</%sheader>\n' % (namespace_, self.format_string(quote_xml(self.header).encode(ExternalEncoding), input_name='header'), namespace_))1648        if self.description:1649            self.description.export(outfile, level, namespace_, name_='description')1650        for memberdef_ in self.memberdef:1651            memberdef_.export(outfile, level, namespace_, name_='memberdef')1652    def hasContent_(self):1653        if (1654            self.header is not None or1655            self.description is not None or1656            self.memberdef is not None1657            ):1658            return True1659        else:1660            return False1661    def exportLiteral(self, outfile, level, name_='sectiondefType'):1662        level += 11663        self.exportLiteralAttributes(outfile, level, name_)1664        if self.hasContent_():1665            self.exportLiteralChildren(outfile, level, name_)1666    def exportLiteralAttributes(self, outfile, level, name_):1667        if self.kind is not None:1668            showIndent(outfile, level)1669            outfile.write('kind = "%s",\n' % (self.kind,))1670    def exportLiteralChildren(self, outfile, level, name_):1671        showIndent(outfile, level)1672        outfile.write('header=%s,\n' % quote_python(self.header).encode(ExternalEncoding))1673        if self.description:1674            showIndent(outfile, level)1675            outfile.write('description=model_.descriptionType(\n')1676            self.description.exportLiteral(outfile, level, name_='description')1677            showIndent(outfile, level)1678            outfile.write('),\n')1679        showIndent(outfile, level)1680        outfile.write('memberdef=[\n')1681        level += 11682        for memberdef in self.memberdef:1683            showIndent(outfile, level)1684            outfile.write('model_.memberdef(\n')1685            memberdef.exportLiteral(outfile, level, name_='memberdef')1686            showIndent(outfile, level)1687            outfile.write('),\n')1688        level -= 11689        showIndent(outfile, level)1690        outfile.write('],\n')1691    def build(self, node_):1692        attrs = node_.attributes1693        self.buildAttributes(attrs)1694        for child_ in node_.childNodes:1695            nodeName_ = child_.nodeName.split(':')[-1]1696            self.buildChildren(child_, nodeName_)1697    def buildAttributes(self, attrs):1698        if attrs.get('kind'):1699            self.kind = attrs.get('kind').value1700    def buildChildren(self, child_, nodeName_):1701        if child_.nodeType == Node.ELEMENT_NODE and \1702            nodeName_ == 'header':1703            header_ = ''1704            for text__content_ in child_.childNodes:1705                header_ += text__content_.nodeValue1706            self.header = header_1707        elif child_.nodeType == Node.ELEMENT_NODE and \1708            nodeName_ == 'description':1709            obj_ = descriptionType.factory()1710            obj_.build(child_)1711            self.set_description(obj_)1712        elif child_.nodeType == Node.ELEMENT_NODE and \1713            nodeName_ == 'memberdef':1714            obj_ = memberdefType.factory()1715            obj_.build(child_)1716            self.memberdef.append(obj_)1717# end class sectiondefType1718class memberdefType(GeneratedsSuper):1719    subclass = None1720    superclass = None1721    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):1722        self.initonly = initonly1723        self.kind = kind1724        self.volatile = volatile1725        self.const = const1726        self.raisexx = raisexx1727        self.virt = virt1728        self.readable = readable1729        self.prot = prot1730        self.explicit = explicit1731        self.new = new1732        self.final = final1733        self.writable = writable1734        self.add = add1735        self.static = static1736        self.remove = remove1737        self.sealed = sealed1738        self.mutable = mutable1739        self.gettable = gettable1740        self.inline = inline1741        self.settable = settable1742        self.id = id1743        self.templateparamlist = templateparamlist1744        self.type_ = type_1745        self.definition = definition1746        self.argsstring = argsstring1747        self.name = name1748        self.read = read1749        self.write = write1750        self.bitfield = bitfield1751        if reimplements is None:1752            self.reimplements = []1753        else:1754            self.reimplements = reimplements1755        if reimplementedby is None:1756            self.reimplementedby = []1757        else:1758            self.reimplementedby = reimplementedby1759        if param is None:1760            self.param = []1761        else:1762            self.param = param1763        if enumvalue is None:1764            self.enumvalue = []1765        else:1766            self.enumvalue = enumvalue1767        self.initializer = initializer1768        self.exceptions = exceptions1769        self.briefdescription = briefdescription1770        self.detaileddescription = detaileddescription1771        self.inbodydescription = inbodydescription1772        self.location = location1773        if references is None:1774            self.references = []1775        else:1776            self.references = references1777        if referencedby is None:1778            self.referencedby = []1779        else:1780            self.referencedby = referencedby1781    def factory(*args_, **kwargs_):1782        if memberdefType.subclass:1783            return memberdefType.subclass(*args_, **kwargs_)1784        else:1785            return memberdefType(*args_, **kwargs_)1786    factory = staticmethod(factory)1787    def get_templateparamlist(self): return self.templateparamlist1788    def set_templateparamlist(self, templateparamlist): self.templateparamlist = templateparamlist1789    def get_type(self): return self.type_1790    def set_type(self, type_): self.type_ = type_1791    def get_definition(self): return self.definition1792    def set_definition(self, definition): self.definition = definition1793    def get_argsstring(self): return self.argsstring1794    def set_argsstring(self, argsstring): self.argsstring = argsstring1795    def get_name(self): return self.name1796    def set_name(self, name): self.name = name1797    def get_read(self): return self.read1798    def set_read(self, read): self.read = read1799    def get_write(self): return self.write1800    def set_write(self, write): self.write = write1801    def get_bitfield(self): return self.bitfield1802    def set_bitfield(self, bitfield): self.bitfield = bitfield1803    def get_reimplements(self): return self.reimplements1804    def set_reimplements(self, reimplements): self.reimplements = reimplements1805    def add_reimplements(self, value): self.reimplements.append(value)1806    def insert_reimplements(self, index, value): self.reimplements[index] = value1807    def get_reimplementedby(self): return self.reimplementedby1808    def set_reimplementedby(self, reimplementedby): self.reimplementedby = reimplementedby1809    def add_reimplementedby(self, value): self.reimplementedby.append(value)1810    def insert_reimplementedby(self, index, value): self.reimplementedby[index] = value1811    def get_param(self): return self.param1812    def set_param(self, param): self.param = param1813    def add_param(self, value): self.param.append(value)1814    def insert_param(self, index, value): self.param[index] = value1815    def get_enumvalue(self): return self.enumvalue1816    def set_enumvalue(self, enumvalue): self.enumvalue = enumvalue1817    def add_enumvalue(self, value): self.enumvalue.append(value)1818    def insert_enumvalue(self, index, value): self.enumvalue[index] = value1819    def get_initializer(self): return self.initializer1820    def set_initializer(self, initializer): self.initializer = initializer1821    def get_exceptions(self): return self.exceptions1822    def set_exceptions(self, exceptions): self.exceptions = exceptions1823    def get_briefdescription(self): return self.briefdescription1824    def set_briefdescription(self, briefdescription): self.briefdescription = briefdescription1825    def get_detaileddescription(self): return self.detaileddescription1826    def set_detaileddescription(self, detaileddescription): self.detaileddescription = detaileddescription1827    def get_inbodydescription(self): return self.inbodydescription1828    def set_inbodydescription(self, inbodydescription): self.inbodydescription = inbodydescription1829    def get_location(self): return self.location1830    def set_location(self, location): self.location = location1831    def get_references(self): return self.references1832    def set_references(self, references): self.references = references1833    def add_references(self, value): self.references.append(value)1834    def insert_references(self, index, value): self.references[index] = value1835    def get_referencedby(self): return self.referencedby1836    def set_referencedby(self, referencedby): self.referencedby = referencedby1837    def add_referencedby(self, value): self.referencedby.append(value)1838    def insert_referencedby(self, index, value): self.referencedby[index] = value1839    def get_initonly(self): return self.initonly1840    def set_initonly(self, initonly): self.initonly = initonly1841    def get_kind(self): return self.kind1842    def set_kind(self, kind): self.kind = kind1843    def get_volatile(self): return self.volatile1844    def set_volatile(self, volatile): self.volatile = volatile1845    def get_const(self): return self.const1846    def set_const(self, const): self.const = const1847    def get_raise(self): return self.raisexx1848    def set_raise(self, raisexx): self.raisexx = raisexx1849    def get_virt(self): return self.virt1850    def set_virt(self, virt): self.virt = virt1851    def get_readable(self): return self.readable1852    def set_readable(self, readable): self.readable = readable1853    def get_prot(self): return self.prot1854    def set_prot(self, prot): self.prot = prot1855    def get_explicit(self): return self.explicit1856    def set_explicit(self, explicit): self.explicit = explicit1857    def get_new(self): return self.new1858    def set_new(self, new): self.new = new1859    def get_final(self): return self.final1860    def set_final(self, final): self.final = final1861    def get_writable(self): return self.writable1862    def set_writable(self, writable): self.writable = writable1863    def get_add(self): return self.add1864    def set_add(self, add): self.add = add1865    def get_static(self): return self.static1866    def set_static(self, static): self.static = static1867    def get_remove(self): return self.remove1868    def set_remove(self, remove): self.remove = remove1869    def get_sealed(self): return self.sealed1870    def set_sealed(self, sealed): self.sealed = sealed1871    def get_mutable(self): return self.mutable1872    def set_mutable(self, mutable): self.mutable = mutable1873    def get_gettable(self): return self.gettable1874    def set_gettable(self, gettable): self.gettable = gettable1875    def get_inline(self): return self.inline1876    def set_inline(self, inline): self.inline = inline1877    def get_settable(self): return self.settable1878    def set_settable(self, settable): self.settable = settable1879    def get_id(self): return self.id1880    def set_id(self, id): self.id = id1881    def export(self, outfile, level, namespace_='', name_='memberdefType', namespacedef_=''):1882        showIndent(outfile, level)1883        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))1884        self.exportAttributes(outfile, level, namespace_, name_='memberdefType')1885        if self.hasContent_():1886            outfile.write('>\n')1887            self.exportChildren(outfile, level + 1, namespace_, name_)1888            showIndent(outfile, level)1889            outfile.write('</%s%s>\n' % (namespace_, name_))1890        else:1891            outfile.write(' />\n')1892    def exportAttributes(self, outfile, level, namespace_='', name_='memberdefType'):1893        if self.initonly is not None:1894            outfile.write(' initonly=%s' % (quote_attrib(self.initonly), ))1895        if self.kind is not None:1896            outfile.write(' kind=%s' % (quote_attrib(self.kind), ))1897        if self.volatile is not None:1898            outfile.write(' volatile=%s' % (quote_attrib(self.volatile), ))1899        if self.const is not None:1900            outfile.write(' const=%s' % (quote_attrib(self.const), ))1901        if self.raisexx is not None:1902            outfile.write(' raise=%s' % (quote_attrib(self.raisexx), ))1903        if self.virt is not None:1904            outfile.write(' virt=%s' % (quote_attrib(self.virt), ))1905        if self.readable is not None:1906            outfile.write(' readable=%s' % (quote_attrib(self.readable), ))1907        if self.prot is not None:1908            outfile.write(' prot=%s' % (quote_attrib(self.prot), ))1909        if self.explicit is not None:1910            outfile.write(' explicit=%s' % (quote_attrib(self.explicit), ))1911        if self.new is not None:1912            outfile.write(' new=%s' % (quote_attrib(self.new), ))1913        if self.final is not None:1914            outfile.write(' final=%s' % (quote_attrib(self.final), ))1915        if self.writable is not None:1916            outfile.write(' writable=%s' % (quote_attrib(self.writable), ))1917        if self.add is not None:1918            outfile.write(' add=%s' % (quote_attrib(self.add), ))1919        if self.static is not None:1920            outfile.write(' static=%s' % (quote_attrib(self.static), ))1921        if self.remove is not None:1922            outfile.write(' remove=%s' % (quote_attrib(self.remove), ))1923        if self.sealed is not None:1924            outfile.write(' sealed=%s' % (quote_attrib(self.sealed), ))1925        if self.mutable is not None:1926            outfile.write(' mutable=%s' % (quote_attrib(self.mutable), ))1927        if self.gettable is not None:1928            outfile.write(' gettable=%s' % (quote_attrib(self.gettable), ))1929        if self.inline is not None:1930            outfile.write(' inline=%s' % (quote_attrib(self.inline), ))1931        if self.settable is not None:1932            outfile.write(' settable=%s' % (quote_attrib(self.settable), ))1933        if self.id is not None:1934            outfile.write(' id=%s' % (self.format_string(quote_attrib(self.id).encode(ExternalEncoding), input_name='id'), ))1935    def exportChildren(self, outfile, level, namespace_='', name_='memberdefType'):1936        if self.templateparamlist:1937            self.templateparamlist.export(outfile, level, namespace_, name_='templateparamlist')1938        if self.type_:1939            self.type_.export(outfile, level, namespace_, name_='type')1940        if self.definition is not None:1941            showIndent(outfile, level)1942            outfile.write('<%sdefinition>%s</%sdefinition>\n' % (namespace_, self.format_string(quote_xml(self.definition).encode(ExternalEncoding), input_name='definition'), namespace_))1943        if self.argsstring is not None:1944            showIndent(outfile, level)1945            outfile.write('<%sargsstring>%s</%sargsstring>\n' % (namespace_, self.format_string(quote_xml(self.argsstring).encode(ExternalEncoding), input_name='argsstring'), namespace_))1946        if self.name is not None:1947            showIndent(outfile, level)1948            outfile.write('<%sname>%s</%sname>\n' % (namespace_, self.format_string(quote_xml(self.name).encode(ExternalEncoding), input_name='name'), namespace_))1949        if self.read is not None:1950            showIndent(outfile, level)1951            outfile.write('<%sread>%s</%sread>\n' % (namespace_, self.format_string(quote_xml(self.read).encode(ExternalEncoding), input_name='read'), namespace_))1952        if self.write is not None:1953            showIndent(outfile, level)1954            outfile.write('<%swrite>%s</%swrite>\n' % (namespace_, self.format_string(quote_xml(self.write).encode(ExternalEncoding), input_name='write'), namespace_))1955        if self.bitfield is not None:1956            showIndent(outfile, level)1957            outfile.write('<%sbitfield>%s</%sbitfield>\n' % (namespace_, self.format_string(quote_xml(self.bitfield).encode(ExternalEncoding), input_name='bitfield'), namespace_))1958        for reimplements_ in self.reimplements:1959            reimplements_.export(outfile, level, namespace_, name_='reimplements')1960        for reimplementedby_ in self.reimplementedby:1961            reimplementedby_.export(outfile, level, namespace_, name_='reimplementedby')1962        for param_ in self.param:1963            param_.export(outfile, level, namespace_, name_='param')1964        for enumvalue_ in self.enumvalue:1965            enumvalue_.export(outfile, level, namespace_, name_='enumvalue')1966        if self.initializer:1967            self.initializer.export(outfile, level, namespace_, name_='initializer')1968        if self.exceptions:1969            self.exceptions.export(outfile, level, namespace_, name_='exceptions')1970        if self.briefdescription:1971            self.briefdescription.export(outfile, level, namespace_, name_='briefdescription')1972        if self.detaileddescription:1973            self.detaileddescription.export(outfile, level, namespace_, name_='detaileddescription')1974        if self.inbodydescription:1975            self.inbodydescription.export(outfile, level, namespace_, name_='inbodydescription')1976        if self.location:1977            self.location.export(outfile, level, namespace_, name_='location', )1978        for references_ in self.references:1979            references_.export(outfile, level, namespace_, name_='references')1980        for referencedby_ in self.referencedby:1981            referencedby_.export(outfile, level, namespace_, name_='referencedby')1982    def hasContent_(self):1983        if (1984            self.templateparamlist is not None or1985            self.type_ is not None or1986            self.definition is not None or1987            self.argsstring is not None or1988            self.name is not None or1989            self.read is not None or1990            self.write is not None or1991            self.bitfield is not None or1992            self.reimplements is not None or1993            self.reimplementedby is not None or1994            self.param is not None or1995            self.enumvalue is not None or1996            self.initializer is not None or1997            self.exceptions is not None or1998            self.briefdescription is not None or1999            self.detaileddescription is not None or2000            self.inbodydescription is not None or2001            self.location is not None or2002            self.references is not None or2003            self.referencedby is not None2004            ):2005            return True2006        else:2007            return False2008    def exportLiteral(self, outfile, level, name_='memberdefType'):2009        level += 12010        self.exportLiteralAttributes(outfile, level, name_)2011        if self.hasContent_():2012            self.exportLiteralChildren(outfile, level, name_)2013    def exportLiteralAttributes(self, outfile, level, name_):2014        if self.initonly is not None:2015            showIndent(outfile, level)2016            outfile.write('initonly = "%s",\n' % (self.initonly,))2017        if self.kind is not None:2018            showIndent(outfile, level)2019            outfile.write('kind = "%s",\n' % (self.kind,))2020        if self.volatile is not None:2021            showIndent(outfile, level)2022            outfile.write('volatile = "%s",\n' % (self.volatile,))2023        if self.const is not None:2024            showIndent(outfile, level)2025            outfile.write('const = "%s",\n' % (self.const,))2026        if self.raisexx is not None:2027            showIndent(outfile, level)2028            outfile.write('raisexx = "%s",\n' % (self.raisexx,))2029        if self.virt is not None:2030            showIndent(outfile, level)2031            outfile.write('virt = "%s",\n' % (self.virt,))2032        if self.readable is not None:2033            showIndent(outfile, level)2034            outfile.write('readable = "%s",\n' % (self.readable,))2035        if self.prot is not None:2036            showIndent(outfile, level)2037            outfile.write('prot = "%s",\n' % (self.prot,))2038        if self.explicit is not None:2039            showIndent(outfile, level)2040            outfile.write('explicit = "%s",\n' % (self.explicit,))2041        if self.new is not None:2042            showIndent(outfile, level)2043            outfile.write('new = "%s",\n' % (self.new,))2044        if self.final is not None:2045            showIndent(outfile, level)2046            outfile.write('final = "%s",\n' % (self.final,))2047        if self.writable is not None:2048            showIndent(outfile, level)2049            outfile.write('writable = "%s",\n' % (self.writable,))2050        if self.add is not None:2051            showIndent(outfile, level)2052            outfile.write('add = "%s",\n' % (self.add,))2053        if self.static is not None:2054            showIndent(outfile, level)2055            outfile.write('static = "%s",\n' % (self.static,))2056        if self.remove is not None:2057            showIndent(outfile, level)2058            outfile.write('remove = "%s",\n' % (self.remove,))2059        if self.sealed is not None:2060            showIndent(outfile, level)2061            outfile.write('sealed = "%s",\n' % (self.sealed,))2062        if self.mutable is not None:2063            showIndent(outfile, level)2064            outfile.write('mutable = "%s",\n' % (self.mutable,))2065        if self.gettable is not None:2066            showIndent(outfile, level)2067            outfile.write('gettable = "%s",\n' % (self.gettable,))2068        if self.inline is not None:2069            showIndent(outfile, level)2070            outfile.write('inline = "%s",\n' % (self.inline,))2071        if self.settable is not None:2072            showIndent(outfile, level)2073            outfile.write('settable = "%s",\n' % (self.settable,))2074        if self.id is not None:2075            showIndent(outfile, level)2076            outfile.write('id = %s,\n' % (self.id,))2077    def exportLiteralChildren(self, outfile, level, name_):2078        if self.templateparamlist:2079            showIndent(outfile, level)2080            outfile.write('templateparamlist=model_.templateparamlistType(\n')2081            self.templateparamlist.exportLiteral(outfile, level, name_='templateparamlist')2082            showIndent(outfile, level)2083            outfile.write('),\n')2084        if self.type_:2085            showIndent(outfile, level)2086            outfile.write('type_=model_.linkedTextType(\n')2087            self.type_.exportLiteral(outfile, level, name_='type')2088            showIndent(outfile, level)2089            outfile.write('),\n')2090        showIndent(outfile, level)2091        outfile.write('definition=%s,\n' % quote_python(self.definition).encode(ExternalEncoding))2092        showIndent(outfile, level)2093        outfile.write('argsstring=%s,\n' % quote_python(self.argsstring).encode(ExternalEncoding))2094        showIndent(outfile, level)2095        outfile.write('name=%s,\n' % quote_python(self.name).encode(ExternalEncoding))2096        showIndent(outfile, level)2097        outfile.write('read=%s,\n' % quote_python(self.read).encode(ExternalEncoding))2098        showIndent(outfile, level)2099        outfile.write('write=%s,\n' % quote_python(self.write).encode(ExternalEncoding))2100        showIndent(outfile, level)2101        outfile.write('bitfield=%s,\n' % quote_python(self.bitfield).encode(ExternalEncoding))2102        showIndent(outfile, level)2103        outfile.write('reimplements=[\n')2104        level += 12105        for reimplements in self.reimplements:2106            showIndent(outfile, level)2107            outfile.write('model_.reimplements(\n')2108            reimplements.exportLiteral(outfile, level, name_='reimplements')2109            showIndent(outfile, level)2110            outfile.write('),\n')2111        level -= 12112        showIndent(outfile, level)2113        outfile.write('],\n')2114        showIndent(outfile, level)2115        outfile.write('reimplementedby=[\n')2116        level += 12117        for reimplementedby in self.reimplementedby:2118            showIndent(outfile, level)2119            outfile.write('model_.reimplementedby(\n')2120            reimplementedby.exportLiteral(outfile, level, name_='reimplementedby')2121            showIndent(outfile, level)2122            outfile.write('),\n')2123        level -= 12124        showIndent(outfile, level)2125        outfile.write('],\n')2126        showIndent(outfile, level)2127        outfile.write('param=[\n')2128        level += 12129        for param in self.param:2130            showIndent(outfile, level)2131            outfile.write('model_.param(\n')2132            param.exportLiteral(outfile, level, name_='param')2133            showIndent(outfile, level)2134            outfile.write('),\n')2135        level -= 12136        showIndent(outfile, level)2137        outfile.write('],\n')2138        showIndent(outfile, level)2139        outfile.write('enumvalue=[\n')2140        level += 12141        for enumvalue in self.enumvalue:2142            showIndent(outfile, level)2143            outfile.write('model_.enumvalue(\n')2144            enumvalue.exportLiteral(outfile, level, name_='enumvalue')2145            showIndent(outfile, level)2146            outfile.write('),\n')2147        level -= 12148        showIndent(outfile, level)2149        outfile.write('],\n')2150        if self.initializer:2151            showIndent(outfile, level)2152            outfile.write('initializer=model_.linkedTextType(\n')2153            self.initializer.exportLiteral(outfile, level, name_='initializer')2154            showIndent(outfile, level)2155            outfile.write('),\n')2156        if self.exceptions:2157            showIndent(outfile, level)2158            outfile.write('exceptions=model_.linkedTextType(\n')2159            self.exceptions.exportLiteral(outfile, level, name_='exceptions')2160            showIndent(outfile, level)2161            outfile.write('),\n')2162        if self.briefdescription:2163            showIndent(outfile, level)2164            outfile.write('briefdescription=model_.descriptionType(\n')2165            self.briefdescription.exportLiteral(outfile, level, name_='briefdescription')2166            showIndent(outfile, level)2167            outfile.write('),\n')2168        if self.detaileddescription:2169            showIndent(outfile, level)2170            outfile.write('detaileddescription=model_.descriptionType(\n')2171            self.detaileddescription.exportLiteral(outfile, level, name_='detaileddescription')2172            showIndent(outfile, level)2173            outfile.write('),\n')2174        if self.inbodydescription:2175            showIndent(outfile, level)2176            outfile.write('inbodydescription=model_.descriptionType(\n')2177            self.inbodydescription.exportLiteral(outfile, level, name_='inbodydescription')2178            showIndent(outfile, level)2179            outfile.write('),\n')2180        if self.location:2181            showIndent(outfile, level)2182            outfile.write('location=model_.locationType(\n')2183            self.location.exportLiteral(outfile, level, name_='location')2184            showIndent(outfile, level)2185            outfile.write('),\n')2186        showIndent(outfile, level)2187        outfile.write('references=[\n')2188        level += 12189        for references in self.references:2190            showIndent(outfile, level)2191            outfile.write('model_.references(\n')2192            references.exportLiteral(outfile, level, name_='references')2193            showIndent(outfile, level)2194            outfile.write('),\n')2195        level -= 12196        showIndent(outfile, level)2197        outfile.write('],\n')2198        showIndent(outfile, level)2199        outfile.write('referencedby=[\n')2200        level += 12201        for referencedby in self.referencedby:2202            showIndent(outfile, level)2203            outfile.write('model_.referencedby(\n')2204            referencedby.exportLiteral(outfile, level, name_='referencedby')2205            showIndent(outfile, level)2206            outfile.write('),\n')2207        level -= 12208        showIndent(outfile, level)2209        outfile.write('],\n')2210    def build(self, node_):2211        attrs = node_.attributes2212        self.buildAttributes(attrs)2213        for child_ in node_.childNodes:2214            nodeName_ = child_.nodeName.split(':')[-1]2215            self.buildChildren(child_, nodeName_)2216    def buildAttributes(self, attrs):2217        if attrs.get('initonly'):2218            self.initonly = attrs.get('initonly').value2219        if attrs.get('kind'):2220            self.kind = attrs.get('kind').value2221        if attrs.get('volatile'):2222            self.volatile = attrs.get('volatile').value2223        if attrs.get('const'):2224            self.const = attrs.get('const').value2225        if attrs.get('raise'):2226            self.raisexx = attrs.get('raise').value2227        if attrs.get('virt'):2228            self.virt = attrs.get('virt').value2229        if attrs.get('readable'):2230            self.readable = attrs.get('readable').value2231        if attrs.get('prot'):2232            self.prot = attrs.get('prot').value2233        if attrs.get('explicit'):2234            self.explicit = attrs.get('explicit').value2235        if attrs.get('new'):2236            self.new = attrs.get('new').value2237        if attrs.get('final'):2238            self.final = attrs.get('final').value2239        if attrs.get('writable'):2240            self.writable = attrs.get('writable').value2241        if attrs.get('add'):2242            self.add = attrs.get('add').value2243        if attrs.get('static'):2244            self.static = attrs.get('static').value2245        if attrs.get('remove'):2246            self.remove = attrs.get('remove').value2247        if attrs.get('sealed'):2248            self.sealed = attrs.get('sealed').value2249        if attrs.get('mutable'):2250            self.mutable = attrs.get('mutable').value2251        if attrs.get('gettable'):2252            self.gettable = attrs.get('gettable').value2253        if attrs.get('inline'):2254            self.inline = attrs.get('inline').value2255        if attrs.get('settable'):2256            self.settable = attrs.get('settable').value2257        if attrs.get('id'):2258            self.id = attrs.get('id').value2259    def buildChildren(self, child_, nodeName_):2260        if child_.nodeType == Node.ELEMENT_NODE and \2261            nodeName_ == 'templateparamlist':2262            obj_ = templateparamlistType.factory()2263            obj_.build(child_)2264            self.set_templateparamlist(obj_)2265        elif child_.nodeType == Node.ELEMENT_NODE and \2266            nodeName_ == 'type':2267            obj_ = linkedTextType.factory()2268            obj_.build(child_)2269            self.set_type(obj_)2270        elif child_.nodeType == Node.ELEMENT_NODE and \2271            nodeName_ == 'definition':2272            definition_ = ''2273            for text__content_ in child_.childNodes:2274                definition_ += text__content_.nodeValue2275            self.definition = definition_2276        elif child_.nodeType == Node.ELEMENT_NODE and \2277            nodeName_ == 'argsstring':2278            argsstring_ = ''2279            for text__content_ in child_.childNodes:2280                argsstring_ += text__content_.nodeValue2281            self.argsstring = argsstring_2282        elif child_.nodeType == Node.ELEMENT_NODE and \2283            nodeName_ == 'name':2284            name_ = ''2285            for text__content_ in child_.childNodes:2286                name_ += text__content_.nodeValue2287            self.name = name_2288        elif child_.nodeType == Node.ELEMENT_NODE and \2289            nodeName_ == 'read':2290            read_ = ''2291            for text__content_ in child_.childNodes:2292                read_ += text__content_.nodeValue2293            self.read = read_2294        elif child_.nodeType == Node.ELEMENT_NODE and \2295            nodeName_ == 'write':2296            write_ = ''2297            for text__content_ in child_.childNodes:2298                write_ += text__content_.nodeValue2299            self.write = write_2300        elif child_.nodeType == Node.ELEMENT_NODE and \2301            nodeName_ == 'bitfield':2302            bitfield_ = ''2303            for text__content_ in child_.childNodes:2304                bitfield_ += text__content_.nodeValue2305            self.bitfield = bitfield_2306        elif child_.nodeType == Node.ELEMENT_NODE and \2307            nodeName_ == 'reimplements':2308            obj_ = reimplementType.factory()2309            obj_.build(child_)2310            self.reimplements.append(obj_)2311        elif child_.nodeType == Node.ELEMENT_NODE and \2312            nodeName_ == 'reimplementedby':2313            obj_ = reimplementType.factory()2314            obj_.build(child_)2315            self.reimplementedby.append(obj_)2316        elif child_.nodeType == Node.ELEMENT_NODE and \2317            nodeName_ == 'param':2318            obj_ = paramType.factory()2319            obj_.build(child_)2320            self.param.append(obj_)2321        elif child_.nodeType == Node.ELEMENT_NODE and \2322            nodeName_ == 'enumvalue':2323            obj_ = enumvalueType.factory()2324            obj_.build(child_)2325            self.enumvalue.append(obj_)2326        elif child_.nodeType == Node.ELEMENT_NODE and \2327            nodeName_ == 'initializer':2328            obj_ = linkedTextType.factory()2329            obj_.build(child_)2330            self.set_initializer(obj_)2331        elif child_.nodeType == Node.ELEMENT_NODE and \2332            nodeName_ == 'exceptions':2333            obj_ = linkedTextType.factory()2334            obj_.build(child_)2335            self.set_exceptions(obj_)2336        elif child_.nodeType == Node.ELEMENT_NODE and \2337            nodeName_ == 'briefdescription':2338            obj_ = descriptionType.factory()2339            obj_.build(child_)2340            self.set_briefdescription(obj_)2341        elif child_.nodeType == Node.ELEMENT_NODE and \2342            nodeName_ == 'detaileddescription':2343            obj_ = descriptionType.factory()2344            obj_.build(child_)2345            self.set_detaileddescription(obj_)2346        elif child_.nodeType == Node.ELEMENT_NODE and \2347            nodeName_ == 'inbodydescription':2348            obj_ = descriptionType.factory()2349            obj_.build(child_)2350            self.set_inbodydescription(obj_)2351        elif child_.nodeType == Node.ELEMENT_NODE and \2352            nodeName_ == 'location':2353            obj_ = locationType.factory()2354            obj_.build(child_)2355            self.set_location(obj_)2356        elif child_.nodeType == Node.ELEMENT_NODE and \2357            nodeName_ == 'references':2358            obj_ = referenceType.factory()2359            obj_.build(child_)2360            self.references.append(obj_)2361        elif child_.nodeType == Node.ELEMENT_NODE and \2362            nodeName_ == 'referencedby':2363            obj_ = referenceType.factory()2364            obj_.build(child_)2365            self.referencedby.append(obj_)2366# end class memberdefType2367class definition(GeneratedsSuper):2368    subclass = None2369    superclass = None2370    def __init__(self, valueOf_=''):2371        self.valueOf_ = valueOf_2372    def factory(*args_, **kwargs_):2373        if definition.subclass:2374            return definition.subclass(*args_, **kwargs_)2375        else:2376            return definition(*args_, **kwargs_)2377    factory = staticmethod(factory)2378    def getValueOf_(self): return self.valueOf_2379    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_2380    def export(self, outfile, level, namespace_='', name_='definition', namespacedef_=''):2381        showIndent(outfile, level)2382        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))2383        self.exportAttributes(outfile, level, namespace_, name_='definition')2384        if self.hasContent_():2385            outfile.write('>\n')2386            self.exportChildren(outfile, level + 1, namespace_, name_)2387            showIndent(outfile, level)2388            outfile.write('</%s%s>\n' % (namespace_, name_))2389        else:2390            outfile.write(' />\n')2391    def exportAttributes(self, outfile, level, namespace_='', name_='definition'):2392        pass2393    def exportChildren(self, outfile, level, namespace_='', name_='definition'):2394        if self.valueOf_.find('![CDATA')>-1:2395            value=quote_xml('%s' % self.valueOf_)2396            value=value.replace('![CDATA','<![CDATA')2397            value=value.replace(']]',']]>')2398            outfile.write(value)2399        else:2400            outfile.write(quote_xml('%s' % self.valueOf_))2401    def hasContent_(self):2402        if (2403            self.valueOf_ is not None2404            ):2405            return True2406        else:2407            return False2408    def exportLiteral(self, outfile, level, name_='definition'):2409        level += 12410        self.exportLiteralAttributes(outfile, level, name_)2411        if self.hasContent_():2412            self.exportLiteralChildren(outfile, level, name_)2413    def exportLiteralAttributes(self, outfile, level, name_):2414        pass2415    def exportLiteralChildren(self, outfile, level, name_):2416        showIndent(outfile, level)2417        outfile.write('valueOf_ = "%s",\n' % (self.valueOf_,))2418    def build(self, node_):2419        attrs = node_.attributes2420        self.buildAttributes(attrs)2421        self.valueOf_ = ''2422        for child_ in node_.childNodes:2423            nodeName_ = child_.nodeName.split(':')[-1]2424            self.buildChildren(child_, nodeName_)2425    def buildAttributes(self, attrs):2426        pass2427    def buildChildren(self, child_, nodeName_):2428        if child_.nodeType == Node.TEXT_NODE:2429            self.valueOf_ += child_.nodeValue2430        elif child_.nodeType == Node.CDATA_SECTION_NODE:2431            self.valueOf_ += '![CDATA['+child_.nodeValue+']]'2432# end class definition2433class argsstring(GeneratedsSuper):2434    subclass = None2435    superclass = None2436    def __init__(self, valueOf_=''):2437        self.valueOf_ = valueOf_2438    def factory(*args_, **kwargs_):2439        if argsstring.subclass:2440            return argsstring.subclass(*args_, **kwargs_)2441        else:2442            return argsstring(*args_, **kwargs_)2443    factory = staticmethod(factory)2444    def getValueOf_(self): return self.valueOf_2445    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_2446    def export(self, outfile, level, namespace_='', name_='argsstring', namespacedef_=''):2447        showIndent(outfile, level)2448        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))2449        self.exportAttributes(outfile, level, namespace_, name_='argsstring')2450        if self.hasContent_():2451            outfile.write('>\n')2452            self.exportChildren(outfile, level + 1, namespace_, name_)2453            showIndent(outfile, level)2454            outfile.write('</%s%s>\n' % (namespace_, name_))2455        else:2456            outfile.write(' />\n')2457    def exportAttributes(self, outfile, level, namespace_='', name_='argsstring'):2458        pass2459    def exportChildren(self, outfile, level, namespace_='', name_='argsstring'):2460        if self.valueOf_.find('![CDATA')>-1:2461            value=quote_xml('%s' % self.valueOf_)2462            value=value.replace('![CDATA','<![CDATA')2463            value=value.replace(']]',']]>')2464            outfile.write(value)2465        else:2466            outfile.write(quote_xml('%s' % self.valueOf_))2467    def hasContent_(self):2468        if (2469            self.valueOf_ is not None2470            ):2471            return True2472        else:2473            return False2474    def exportLiteral(self, outfile, level, name_='argsstring'):2475        level += 12476        self.exportLiteralAttributes(outfile, level, name_)2477        if self.hasContent_():2478            self.exportLiteralChildren(outfile, level, name_)2479    def exportLiteralAttributes(self, outfile, level, name_):2480        pass2481    def exportLiteralChildren(self, outfile, level, name_):2482        showIndent(outfile, level)2483        outfile.write('valueOf_ = "%s",\n' % (self.valueOf_,))2484    def build(self, node_):2485        attrs = node_.attributes2486        self.buildAttributes(attrs)2487        self.valueOf_ = ''2488        for child_ in node_.childNodes:2489            nodeName_ = child_.nodeName.split(':')[-1]2490            self.buildChildren(child_, nodeName_)2491    def buildAttributes(self, attrs):2492        pass2493    def buildChildren(self, child_, nodeName_):2494        if child_.nodeType == Node.TEXT_NODE:2495            self.valueOf_ += child_.nodeValue2496        elif child_.nodeType == Node.CDATA_SECTION_NODE:2497            self.valueOf_ += '![CDATA['+child_.nodeValue+']]'2498# end class argsstring2499class read(GeneratedsSuper):2500    subclass = None2501    superclass = None2502    def __init__(self, valueOf_=''):2503        self.valueOf_ = valueOf_2504    def factory(*args_, **kwargs_):2505        if read.subclass:2506            return read.subclass(*args_, **kwargs_)2507        else:2508            return read(*args_, **kwargs_)2509    factory = staticmethod(factory)2510    def getValueOf_(self): return self.valueOf_2511    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_2512    def export(self, outfile, level, namespace_='', name_='read', namespacedef_=''):2513        showIndent(outfile, level)2514        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))2515        self.exportAttributes(outfile, level, namespace_, name_='read')2516        if self.hasContent_():2517            outfile.write('>\n')2518            self.exportChildren(outfile, level + 1, namespace_, name_)2519            showIndent(outfile, level)2520            outfile.write('</%s%s>\n' % (namespace_, name_))2521        else:2522            outfile.write(' />\n')2523    def exportAttributes(self, outfile, level, namespace_='', name_='read'):2524        pass2525    def exportChildren(self, outfile, level, namespace_='', name_='read'):2526        if self.valueOf_.find('![CDATA')>-1:2527            value=quote_xml('%s' % self.valueOf_)2528            value=value.replace('![CDATA','<![CDATA')2529            value=value.replace(']]',']]>')2530            outfile.write(value)2531        else:2532            outfile.write(quote_xml('%s' % self.valueOf_))2533    def hasContent_(self):2534        if (2535            self.valueOf_ is not None2536            ):2537            return True2538        else:2539            return False2540    def exportLiteral(self, outfile, level, name_='read'):2541        level += 12542        self.exportLiteralAttributes(outfile, level, name_)2543        if self.hasContent_():2544            self.exportLiteralChildren(outfile, level, name_)2545    def exportLiteralAttributes(self, outfile, level, name_):2546        pass2547    def exportLiteralChildren(self, outfile, level, name_):2548        showIndent(outfile, level)2549        outfile.write('valueOf_ = "%s",\n' % (self.valueOf_,))2550    def build(self, node_):2551        attrs = node_.attributes2552        self.buildAttributes(attrs)2553        self.valueOf_ = ''2554        for child_ in node_.childNodes:2555            nodeName_ = child_.nodeName.split(':')[-1]2556            self.buildChildren(child_, nodeName_)2557    def buildAttributes(self, attrs):2558        pass2559    def buildChildren(self, child_, nodeName_):2560        if child_.nodeType == Node.TEXT_NODE:2561            self.valueOf_ += child_.nodeValue2562        elif child_.nodeType == Node.CDATA_SECTION_NODE:2563            self.valueOf_ += '![CDATA['+child_.nodeValue+']]'2564# end class read2565class write(GeneratedsSuper):2566    subclass = None2567    superclass = None2568    def __init__(self, valueOf_=''):2569        self.valueOf_ = valueOf_2570    def factory(*args_, **kwargs_):2571        if write.subclass:2572            return write.subclass(*args_, **kwargs_)2573        else:2574            return write(*args_, **kwargs_)2575    factory = staticmethod(factory)2576    def getValueOf_(self): return self.valueOf_2577    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_2578    def export(self, outfile, level, namespace_='', name_='write', namespacedef_=''):2579        showIndent(outfile, level)2580        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))2581        self.exportAttributes(outfile, level, namespace_, name_='write')2582        if self.hasContent_():2583            outfile.write('>\n')2584            self.exportChildren(outfile, level + 1, namespace_, name_)2585            showIndent(outfile, level)2586            outfile.write('</%s%s>\n' % (namespace_, name_))2587        else:2588            outfile.write(' />\n')2589    def exportAttributes(self, outfile, level, namespace_='', name_='write'):2590        pass2591    def exportChildren(self, outfile, level, namespace_='', name_='write'):2592        if self.valueOf_.find('![CDATA')>-1:2593            value=quote_xml('%s' % self.valueOf_)2594            value=value.replace('![CDATA','<![CDATA')2595            value=value.replace(']]',']]>')2596            outfile.write(value)2597        else:2598            outfile.write(quote_xml('%s' % self.valueOf_))2599    def hasContent_(self):2600        if (2601            self.valueOf_ is not None2602            ):2603            return True2604        else:2605            return False2606    def exportLiteral(self, outfile, level, name_='write'):2607        level += 12608        self.exportLiteralAttributes(outfile, level, name_)2609        if self.hasContent_():2610            self.exportLiteralChildren(outfile, level, name_)2611    def exportLiteralAttributes(self, outfile, level, name_):2612        pass2613    def exportLiteralChildren(self, outfile, level, name_):2614        showIndent(outfile, level)2615        outfile.write('valueOf_ = "%s",\n' % (self.valueOf_,))2616    def build(self, node_):2617        attrs = node_.attributes2618        self.buildAttributes(attrs)2619        self.valueOf_ = ''2620        for child_ in node_.childNodes:2621            nodeName_ = child_.nodeName.split(':')[-1]2622            self.buildChildren(child_, nodeName_)2623    def buildAttributes(self, attrs):2624        pass2625    def buildChildren(self, child_, nodeName_):2626        if child_.nodeType == Node.TEXT_NODE:2627            self.valueOf_ += child_.nodeValue2628        elif child_.nodeType == Node.CDATA_SECTION_NODE:2629            self.valueOf_ += '![CDATA['+child_.nodeValue+']]'2630# end class write2631class bitfield(GeneratedsSuper):2632    subclass = None2633    superclass = None2634    def __init__(self, valueOf_=''):2635        self.valueOf_ = valueOf_2636    def factory(*args_, **kwargs_):2637        if bitfield.subclass:2638            return bitfield.subclass(*args_, **kwargs_)2639        else:2640            return bitfield(*args_, **kwargs_)2641    factory = staticmethod(factory)2642    def getValueOf_(self): return self.valueOf_2643    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_2644    def export(self, outfile, level, namespace_='', name_='bitfield', namespacedef_=''):2645        showIndent(outfile, level)2646        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))2647        self.exportAttributes(outfile, level, namespace_, name_='bitfield')2648        if self.hasContent_():2649            outfile.write('>\n')2650            self.exportChildren(outfile, level + 1, namespace_, name_)2651            showIndent(outfile, level)2652            outfile.write('</%s%s>\n' % (namespace_, name_))2653        else:2654            outfile.write(' />\n')2655    def exportAttributes(self, outfile, level, namespace_='', name_='bitfield'):2656        pass2657    def exportChildren(self, outfile, level, namespace_='', name_='bitfield'):2658        if self.valueOf_.find('![CDATA')>-1:2659            value=quote_xml('%s' % self.valueOf_)2660            value=value.replace('![CDATA','<![CDATA')2661            value=value.replace(']]',']]>')2662            outfile.write(value)2663        else:2664            outfile.write(quote_xml('%s' % self.valueOf_))2665    def hasContent_(self):2666        if (2667            self.valueOf_ is not None2668            ):2669            return True2670        else:2671            return False2672    def exportLiteral(self, outfile, level, name_='bitfield'):2673        level += 12674        self.exportLiteralAttributes(outfile, level, name_)2675        if self.hasContent_():2676            self.exportLiteralChildren(outfile, level, name_)2677    def exportLiteralAttributes(self, outfile, level, name_):2678        pass2679    def exportLiteralChildren(self, outfile, level, name_):2680        showIndent(outfile, level)2681        outfile.write('valueOf_ = "%s",\n' % (self.valueOf_,))2682    def build(self, node_):2683        attrs = node_.attributes2684        self.buildAttributes(attrs)2685        self.valueOf_ = ''2686        for child_ in node_.childNodes:2687            nodeName_ = child_.nodeName.split(':')[-1]2688            self.buildChildren(child_, nodeName_)2689    def buildAttributes(self, attrs):2690        pass2691    def buildChildren(self, child_, nodeName_):2692        if child_.nodeType == Node.TEXT_NODE:2693            self.valueOf_ += child_.nodeValue2694        elif child_.nodeType == Node.CDATA_SECTION_NODE:2695            self.valueOf_ += '![CDATA['+child_.nodeValue+']]'2696# end class bitfield2697class descriptionType(GeneratedsSuper):2698    subclass = None2699    superclass = None2700    def __init__(self, title=None, para=None, sect1=None, internal=None, mixedclass_=None, content_=None):2701        if mixedclass_ is None:2702            self.mixedclass_ = MixedContainer2703        else:2704            self.mixedclass_ = mixedclass_2705        if content_ is None:2706            self.content_ = []2707        else:2708            self.content_ = content_2709    def factory(*args_, **kwargs_):2710        if descriptionType.subclass:2711            return descriptionType.subclass(*args_, **kwargs_)2712        else:2713            return descriptionType(*args_, **kwargs_)2714    factory = staticmethod(factory)2715    def get_title(self): return self.title2716    def set_title(self, title): self.title = title2717    def get_para(self): return self.para2718    def set_para(self, para): self.para = para2719    def add_para(self, value): self.para.append(value)2720    def insert_para(self, index, value): self.para[index] = value2721    def get_sect1(self): return self.sect12722    def set_sect1(self, sect1): self.sect1 = sect12723    def add_sect1(self, value): self.sect1.append(value)2724    def insert_sect1(self, index, value): self.sect1[index] = value2725    def get_internal(self): return self.internal2726    def set_internal(self, internal): self.internal = internal2727    def export(self, outfile, level, namespace_='', name_='descriptionType', namespacedef_=''):2728        showIndent(outfile, level)2729        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))2730        self.exportAttributes(outfile, level, namespace_, name_='descriptionType')2731        outfile.write('>')2732        self.exportChildren(outfile, level + 1, namespace_, name_)2733        outfile.write('</%s%s>\n' % (namespace_, name_))2734    def exportAttributes(self, outfile, level, namespace_='', name_='descriptionType'):2735        pass2736    def exportChildren(self, outfile, level, namespace_='', name_='descriptionType'):2737        for item_ in self.content_:2738            item_.export(outfile, level, item_.name, namespace_)2739    def hasContent_(self):2740        if (2741            self.title is not None or2742            self.para is not None or2743            self.sect1 is not None or2744            self.internal is not None2745            ):2746            return True2747        else:2748            return False2749    def exportLiteral(self, outfile, level, name_='descriptionType'):2750        level += 12751        self.exportLiteralAttributes(outfile, level, name_)2752        if self.hasContent_():2753            self.exportLiteralChildren(outfile, level, name_)2754    def exportLiteralAttributes(self, outfile, level, name_):2755        pass2756    def exportLiteralChildren(self, outfile, level, name_):2757        showIndent(outfile, level)2758        outfile.write('content_ = [\n')2759        for item_ in self.content_:2760            item_.exportLiteral(outfile, level, name_)2761        showIndent(outfile, level)2762        outfile.write('],\n')2763        showIndent(outfile, level)2764        outfile.write('content_ = [\n')2765        for item_ in self.content_:2766            item_.exportLiteral(outfile, level, name_)2767        showIndent(outfile, level)2768        outfile.write('],\n')2769        showIndent(outfile, level)2770        outfile.write('content_ = [\n')2771        for item_ in self.content_:2772            item_.exportLiteral(outfile, level, name_)2773        showIndent(outfile, level)2774        outfile.write('],\n')2775        showIndent(outfile, level)2776        outfile.write('content_ = [\n')2777        for item_ in self.content_:2778            item_.exportLiteral(outfile, level, name_)2779        showIndent(outfile, level)2780        outfile.write('],\n')2781    def build(self, node_):2782        attrs = node_.attributes2783        self.buildAttributes(attrs)2784        for child_ in node_.childNodes:2785            nodeName_ = child_.nodeName.split(':')[-1]2786            self.buildChildren(child_, nodeName_)2787    def buildAttributes(self, attrs):2788        pass2789    def buildChildren(self, child_, nodeName_):2790        if child_.nodeType == Node.ELEMENT_NODE and \2791            nodeName_ == 'title':2792            childobj_ = docTitleType.factory()2793            childobj_.build(child_)2794            obj_ = self.mixedclass_(MixedContainer.CategoryComplex,2795                MixedContainer.TypeNone, 'title', childobj_)2796            self.content_.append(obj_)2797        elif child_.nodeType == Node.ELEMENT_NODE and \2798            nodeName_ == 'para':2799            childobj_ = docParaType.factory()2800            childobj_.build(child_)2801            obj_ = self.mixedclass_(MixedContainer.CategoryComplex,2802                MixedContainer.TypeNone, 'para', childobj_)2803            self.content_.append(obj_)2804        elif child_.nodeType == Node.ELEMENT_NODE and \2805            nodeName_ == 'sect1':2806            childobj_ = docSect1Type.factory()2807            childobj_.build(child_)2808            obj_ = self.mixedclass_(MixedContainer.CategoryComplex,2809                MixedContainer.TypeNone, 'sect1', childobj_)2810            self.content_.append(obj_)2811        elif child_.nodeType == Node.ELEMENT_NODE and \2812            nodeName_ == 'internal':2813            childobj_ = docInternalType.factory()2814            childobj_.build(child_)2815            obj_ = self.mixedclass_(MixedContainer.CategoryComplex,2816                MixedContainer.TypeNone, 'internal', childobj_)2817            self.content_.append(obj_)2818        elif child_.nodeType == Node.TEXT_NODE:2819            obj_ = self.mixedclass_(MixedContainer.CategoryText,2820                MixedContainer.TypeNone, '', child_.nodeValue)2821            self.content_.append(obj_)2822# end class descriptionType2823class enumvalueType(GeneratedsSuper):2824    subclass = None2825    superclass = None2826    def __init__(self, prot=None, id=None, name=None, initializer=None, briefdescription=None, detaileddescription=None, mixedclass_=None, content_=None):2827        self.prot = prot2828        self.id = id2829        if mixedclass_ is None:2830            self.mixedclass_ = MixedContainer2831        else:2832            self.mixedclass_ = mixedclass_2833        if content_ is None:2834            self.content_ = []2835        else:2836            self.content_ = content_2837    def factory(*args_, **kwargs_):2838        if enumvalueType.subclass:2839            return enumvalueType.subclass(*args_, **kwargs_)2840        else:2841            return enumvalueType(*args_, **kwargs_)2842    factory = staticmethod(factory)2843    def get_name(self): return self.name2844    def set_name(self, name): self.name = name2845    def get_initializer(self): return self.initializer2846    def set_initializer(self, initializer): self.initializer = initializer2847    def get_briefdescription(self): return self.briefdescription2848    def set_briefdescription(self, briefdescription): self.briefdescription = briefdescription2849    def get_detaileddescription(self): return self.detaileddescription2850    def set_detaileddescription(self, detaileddescription): self.detaileddescription = detaileddescription2851    def get_prot(self): return self.prot2852    def set_prot(self, prot): self.prot = prot2853    def get_id(self): return self.id2854    def set_id(self, id): self.id = id2855    def export(self, outfile, level, namespace_='', name_='enumvalueType', namespacedef_=''):2856        showIndent(outfile, level)2857        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))2858        self.exportAttributes(outfile, level, namespace_, name_='enumvalueType')2859        outfile.write('>')2860        self.exportChildren(outfile, level + 1, namespace_, name_)2861        outfile.write('</%s%s>\n' % (namespace_, name_))2862    def exportAttributes(self, outfile, level, namespace_='', name_='enumvalueType'):2863        if self.prot is not None:2864            outfile.write(' prot=%s' % (quote_attrib(self.prot), ))2865        if self.id is not None:2866            outfile.write(' id=%s' % (self.format_string(quote_attrib(self.id).encode(ExternalEncoding), input_name='id'), ))2867    def exportChildren(self, outfile, level, namespace_='', name_='enumvalueType'):2868        for item_ in self.content_:2869            item_.export(outfile, level, item_.name, namespace_)2870    def hasContent_(self):2871        if (2872            self.name is not None or2873            self.initializer is not None or2874            self.briefdescription is not None or2875            self.detaileddescription is not None2876            ):2877            return True2878        else:2879            return False2880    def exportLiteral(self, outfile, level, name_='enumvalueType'):2881        level += 12882        self.exportLiteralAttributes(outfile, level, name_)2883        if self.hasContent_():2884            self.exportLiteralChildren(outfile, level, name_)2885    def exportLiteralAttributes(self, outfile, level, name_):2886        if self.prot is not None:2887            showIndent(outfile, level)2888            outfile.write('prot = "%s",\n' % (self.prot,))2889        if self.id is not None:2890            showIndent(outfile, level)2891            outfile.write('id = %s,\n' % (self.id,))2892    def exportLiteralChildren(self, outfile, level, name_):2893        showIndent(outfile, level)2894        outfile.write('content_ = [\n')2895        for item_ in self.content_:2896            item_.exportLiteral(outfile, level, name_)2897        showIndent(outfile, level)2898        outfile.write('],\n')2899        showIndent(outfile, level)2900        outfile.write('content_ = [\n')2901        for item_ in self.content_:2902            item_.exportLiteral(outfile, level, name_)2903        showIndent(outfile, level)2904        outfile.write('],\n')2905        showIndent(outfile, level)2906        outfile.write('content_ = [\n')2907        for item_ in self.content_:2908            item_.exportLiteral(outfile, level, name_)2909        showIndent(outfile, level)2910        outfile.write('],\n')2911        showIndent(outfile, level)2912        outfile.write('content_ = [\n')2913        for item_ in self.content_:2914            item_.exportLiteral(outfile, level, name_)2915        showIndent(outfile, level)2916        outfile.write('],\n')2917    def build(self, node_):2918        attrs = node_.attributes2919        self.buildAttributes(attrs)2920        for child_ in node_.childNodes:2921            nodeName_ = child_.nodeName.split(':')[-1]2922            self.buildChildren(child_, nodeName_)2923    def buildAttributes(self, attrs):2924        if attrs.get('prot'):2925            self.prot = attrs.get('prot').value2926        if attrs.get('id'):2927            self.id = attrs.get('id').value2928    def buildChildren(self, child_, nodeName_):2929        if child_.nodeType == Node.ELEMENT_NODE and \2930            nodeName_ == 'name':2931            value_ = []2932            for text_ in child_.childNodes:2933                value_.append(text_.nodeValue)2934            valuestr_ = ''.join(value_)2935            obj_ = self.mixedclass_(MixedContainer.CategorySimple,2936                MixedContainer.TypeString, 'name', valuestr_)2937            self.content_.append(obj_)2938        elif child_.nodeType == Node.ELEMENT_NODE and \2939            nodeName_ == 'initializer':2940            childobj_ = linkedTextType.factory()2941            childobj_.build(child_)2942            obj_ = self.mixedclass_(MixedContainer.CategoryComplex,2943                MixedContainer.TypeNone, 'initializer', childobj_)2944            self.content_.append(obj_)2945        elif child_.nodeType == Node.ELEMENT_NODE and \2946            nodeName_ == 'briefdescription':2947            childobj_ = descriptionType.factory()2948            childobj_.build(child_)2949            obj_ = self.mixedclass_(MixedContainer.CategoryComplex,2950                MixedContainer.TypeNone, 'briefdescription', childobj_)2951            self.content_.append(obj_)2952        elif child_.nodeType == Node.ELEMENT_NODE and \2953            nodeName_ == 'detaileddescription':2954            childobj_ = descriptionType.factory()2955            childobj_.build(child_)2956            obj_ = self.mixedclass_(MixedContainer.CategoryComplex,2957                MixedContainer.TypeNone, 'detaileddescription', childobj_)2958            self.content_.append(obj_)2959        elif child_.nodeType == Node.TEXT_NODE:2960            obj_ = self.mixedclass_(MixedContainer.CategoryText,2961                MixedContainer.TypeNone, '', child_.nodeValue)2962            self.content_.append(obj_)2963# end class enumvalueType2964class templateparamlistType(GeneratedsSuper):2965    subclass = None2966    superclass = None2967    def __init__(self, param=None):2968        if param is None:2969            self.param = []2970        else:2971            self.param = param2972    def factory(*args_, **kwargs_):2973        if templateparamlistType.subclass:2974            return templateparamlistType.subclass(*args_, **kwargs_)2975        else:2976            return templateparamlistType(*args_, **kwargs_)2977    factory = staticmethod(factory)2978    def get_param(self): return self.param2979    def set_param(self, param): self.param = param2980    def add_param(self, value): self.param.append(value)2981    def insert_param(self, index, value): self.param[index] = value2982    def export(self, outfile, level, namespace_='', name_='templateparamlistType', namespacedef_=''):2983        showIndent(outfile, level)2984        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))2985        self.exportAttributes(outfile, level, namespace_, name_='templateparamlistType')2986        if self.hasContent_():2987            outfile.write('>\n')2988            self.exportChildren(outfile, level + 1, namespace_, name_)2989            showIndent(outfile, level)2990            outfile.write('</%s%s>\n' % (namespace_, name_))2991        else:2992            outfile.write(' />\n')2993    def exportAttributes(self, outfile, level, namespace_='', name_='templateparamlistType'):2994        pass2995    def exportChildren(self, outfile, level, namespace_='', name_='templateparamlistType'):2996        for param_ in self.param:2997            param_.export(outfile, level, namespace_, name_='param')2998    def hasContent_(self):2999        if (3000            self.param is not None3001            ):3002            return True3003        else:3004            return False3005    def exportLiteral(self, outfile, level, name_='templateparamlistType'):3006        level += 13007        self.exportLiteralAttributes(outfile, level, name_)3008        if self.hasContent_():3009            self.exportLiteralChildren(outfile, level, name_)3010    def exportLiteralAttributes(self, outfile, level, name_):3011        pass3012    def exportLiteralChildren(self, outfile, level, name_):3013        showIndent(outfile, level)3014        outfile.write('param=[\n')3015        level += 13016        for param in self.param:3017            showIndent(outfile, level)3018            outfile.write('model_.param(\n')3019            param.exportLiteral(outfile, level, name_='param')3020            showIndent(outfile, level)3021            outfile.write('),\n')3022        level -= 13023        showIndent(outfile, level)3024        outfile.write('],\n')3025    def build(self, node_):3026        attrs = node_.attributes3027        self.buildAttributes(attrs)3028        for child_ in node_.childNodes:3029            nodeName_ = child_.nodeName.split(':')[-1]3030            self.buildChildren(child_, nodeName_)3031    def buildAttributes(self, attrs):3032        pass3033    def buildChildren(self, child_, nodeName_):3034        if child_.nodeType == Node.ELEMENT_NODE and \3035            nodeName_ == 'param':3036            obj_ = paramType.factory()3037            obj_.build(child_)3038            self.param.append(obj_)3039# end class templateparamlistType3040class paramType(GeneratedsSuper):3041    subclass = None3042    superclass = None3043    def __init__(self, type_=None, declname=None, defname=None, array=None, defval=None, briefdescription=None):3044        self.type_ = type_3045        self.declname = declname3046        self.defname = defname3047        self.array = array3048        self.defval = defval3049        self.briefdescription = briefdescription3050    def factory(*args_, **kwargs_):3051        if paramType.subclass:3052            return paramType.subclass(*args_, **kwargs_)3053        else:3054            return paramType(*args_, **kwargs_)3055    factory = staticmethod(factory)3056    def get_type(self): return self.type_3057    def set_type(self, type_): self.type_ = type_3058    def get_declname(self): return self.declname3059    def set_declname(self, declname): self.declname = declname3060    def get_defname(self): return self.defname3061    def set_defname(self, defname): self.defname = defname3062    def get_array(self): return self.array3063    def set_array(self, array): self.array = array3064    def get_defval(self): return self.defval3065    def set_defval(self, defval): self.defval = defval3066    def get_briefdescription(self): return self.briefdescription3067    def set_briefdescription(self, briefdescription): self.briefdescription = briefdescription3068    def export(self, outfile, level, namespace_='', name_='paramType', namespacedef_=''):3069        showIndent(outfile, level)3070        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))3071        self.exportAttributes(outfile, level, namespace_, name_='paramType')3072        if self.hasContent_():3073            outfile.write('>\n')3074            self.exportChildren(outfile, level + 1, namespace_, name_)3075            showIndent(outfile, level)3076            outfile.write('</%s%s>\n' % (namespace_, name_))3077        else:3078            outfile.write(' />\n')3079    def exportAttributes(self, outfile, level, namespace_='', name_='paramType'):3080        pass3081    def exportChildren(self, outfile, level, namespace_='', name_='paramType'):3082        if self.type_:3083            self.type_.export(outfile, level, namespace_, name_='type')3084        if self.declname is not None:3085            showIndent(outfile, level)3086            outfile.write('<%sdeclname>%s</%sdeclname>\n' % (namespace_, self.format_string(quote_xml(self.declname).encode(ExternalEncoding), input_name='declname'), namespace_))3087        if self.defname is not None:3088            showIndent(outfile, level)3089            outfile.write('<%sdefname>%s</%sdefname>\n' % (namespace_, self.format_string(quote_xml(self.defname).encode(ExternalEncoding), input_name='defname'), namespace_))3090        if self.array is not None:3091            showIndent(outfile, level)3092            outfile.write('<%sarray>%s</%sarray>\n' % (namespace_, self.format_string(quote_xml(self.array).encode(ExternalEncoding), input_name='array'), namespace_))3093        if self.defval:3094            self.defval.export(outfile, level, namespace_, name_='defval')3095        if self.briefdescription:3096            self.briefdescription.export(outfile, level, namespace_, name_='briefdescription')3097    def hasContent_(self):3098        if (3099            self.type_ is not None or3100            self.declname is not None or3101            self.defname is not None or3102            self.array is not None or3103            self.defval is not None or3104            self.briefdescription is not None3105            ):3106            return True3107        else:3108            return False3109    def exportLiteral(self, outfile, level, name_='paramType'):3110        level += 13111        self.exportLiteralAttributes(outfile, level, name_)3112        if self.hasContent_():3113            self.exportLiteralChildren(outfile, level, name_)3114    def exportLiteralAttributes(self, outfile, level, name_):3115        pass3116    def exportLiteralChildren(self, outfile, level, name_):3117        if self.type_:3118            showIndent(outfile, level)3119            outfile.write('type_=model_.linkedTextType(\n')3120            self.type_.exportLiteral(outfile, level, name_='type')3121            showIndent(outfile, level)3122            outfile.write('),\n')3123        showIndent(outfile, level)3124        outfile.write('declname=%s,\n' % quote_python(self.declname).encode(ExternalEncoding))3125        showIndent(outfile, level)3126        outfile.write('defname=%s,\n' % quote_python(self.defname).encode(ExternalEncoding))3127        showIndent(outfile, level)3128        outfile.write('array=%s,\n' % quote_python(self.array).encode(ExternalEncoding))3129        if self.defval:3130            showIndent(outfile, level)3131            outfile.write('defval=model_.linkedTextType(\n')3132            self.defval.exportLiteral(outfile, level, name_='defval')3133            showIndent(outfile, level)3134            outfile.write('),\n')3135        if self.briefdescription:3136            showIndent(outfile, level)3137            outfile.write('briefdescription=model_.descriptionType(\n')3138            self.briefdescription.exportLiteral(outfile, level, name_='briefdescription')3139            showIndent(outfile, level)3140            outfile.write('),\n')3141    def build(self, node_):3142        attrs = node_.attributes3143        self.buildAttributes(attrs)3144        for child_ in node_.childNodes:3145            nodeName_ = child_.nodeName.split(':')[-1]3146            self.buildChildren(child_, nodeName_)3147    def buildAttributes(self, attrs):3148        pass3149    def buildChildren(self, child_, nodeName_):3150        if child_.nodeType == Node.ELEMENT_NODE and \3151            nodeName_ == 'type':3152            obj_ = linkedTextType.factory()3153            obj_.build(child_)3154            self.set_type(obj_)3155        elif child_.nodeType == Node.ELEMENT_NODE and \3156            nodeName_ == 'declname':3157            declname_ = ''3158            for text__content_ in child_.childNodes:3159                declname_ += text__content_.nodeValue3160            self.declname = declname_3161        elif child_.nodeType == Node.ELEMENT_NODE and \3162            nodeName_ == 'defname':3163            defname_ = ''3164            for text__content_ in child_.childNodes:3165                defname_ += text__content_.nodeValue3166            self.defname = defname_3167        elif child_.nodeType == Node.ELEMENT_NODE and \3168            nodeName_ == 'array':3169            array_ = ''3170            for text__content_ in child_.childNodes:3171                array_ += text__content_.nodeValue3172            self.array = array_3173        elif child_.nodeType == Node.ELEMENT_NODE and \3174            nodeName_ == 'defval':3175            obj_ = linkedTextType.factory()3176            obj_.build(child_)3177            self.set_defval(obj_)3178        elif child_.nodeType == Node.ELEMENT_NODE and \3179            nodeName_ == 'briefdescription':3180            obj_ = descriptionType.factory()3181            obj_.build(child_)3182            self.set_briefdescription(obj_)3183# end class paramType3184class declname(GeneratedsSuper):3185    subclass = None3186    superclass = None3187    def __init__(self, valueOf_=''):3188        self.valueOf_ = valueOf_3189    def factory(*args_, **kwargs_):3190        if declname.subclass:3191            return declname.subclass(*args_, **kwargs_)3192        else:3193            return declname(*args_, **kwargs_)3194    factory = staticmethod(factory)3195    def getValueOf_(self): return self.valueOf_3196    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_3197    def export(self, outfile, level, namespace_='', name_='declname', namespacedef_=''):3198        showIndent(outfile, level)3199        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))3200        self.exportAttributes(outfile, level, namespace_, name_='declname')3201        if self.hasContent_():3202            outfile.write('>\n')3203            self.exportChildren(outfile, level + 1, namespace_, name_)3204            showIndent(outfile, level)3205            outfile.write('</%s%s>\n' % (namespace_, name_))3206        else:3207            outfile.write(' />\n')3208    def exportAttributes(self, outfile, level, namespace_='', name_='declname'):3209        pass3210    def exportChildren(self, outfile, level, namespace_='', name_='declname'):3211        if self.valueOf_.find('![CDATA')>-1:3212            value=quote_xml('%s' % self.valueOf_)3213            value=value.replace('![CDATA','<![CDATA')3214            value=value.replace(']]',']]>')3215            outfile.write(value)3216        else:3217            outfile.write(quote_xml('%s' % self.valueOf_))3218    def hasContent_(self):3219        if (3220            self.valueOf_ is not None3221            ):3222            return True3223        else:3224            return False3225    def exportLiteral(self, outfile, level, name_='declname'):3226        level += 13227        self.exportLiteralAttributes(outfile, level, name_)3228        if self.hasContent_():3229            self.exportLiteralChildren(outfile, level, name_)3230    def exportLiteralAttributes(self, outfile, level, name_):3231        pass3232    def exportLiteralChildren(self, outfile, level, name_):3233        showIndent(outfile, level)3234        outfile.write('valueOf_ = "%s",\n' % (self.valueOf_,))3235    def build(self, node_):3236        attrs = node_.attributes3237        self.buildAttributes(attrs)3238        self.valueOf_ = ''3239        for child_ in node_.childNodes:3240            nodeName_ = child_.nodeName.split(':')[-1]3241            self.buildChildren(child_, nodeName_)3242    def buildAttributes(self, attrs):3243        pass3244    def buildChildren(self, child_, nodeName_):3245        if child_.nodeType == Node.TEXT_NODE:3246            self.valueOf_ += child_.nodeValue3247        elif child_.nodeType == Node.CDATA_SECTION_NODE:3248            self.valueOf_ += '![CDATA['+child_.nodeValue+']]'3249# end class declname3250class defname(GeneratedsSuper):3251    subclass = None3252    superclass = None3253    def __init__(self, valueOf_=''):3254        self.valueOf_ = valueOf_3255    def factory(*args_, **kwargs_):3256        if defname.subclass:3257            return defname.subclass(*args_, **kwargs_)3258        else:3259            return defname(*args_, **kwargs_)3260    factory = staticmethod(factory)3261    def getValueOf_(self): return self.valueOf_3262    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_3263    def export(self, outfile, level, namespace_='', name_='defname', namespacedef_=''):3264        showIndent(outfile, level)3265        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))3266        self.exportAttributes(outfile, level, namespace_, name_='defname')3267        if self.hasContent_():3268            outfile.write('>\n')3269            self.exportChildren(outfile, level + 1, namespace_, name_)3270            showIndent(outfile, level)3271            outfile.write('</%s%s>\n' % (namespace_, name_))3272        else:3273            outfile.write(' />\n')3274    def exportAttributes(self, outfile, level, namespace_='', name_='defname'):3275        pass3276    def exportChildren(self, outfile, level, namespace_='', name_='defname'):3277        if self.valueOf_.find('![CDATA')>-1:3278            value=quote_xml('%s' % self.valueOf_)3279            value=value.replace('![CDATA','<![CDATA')3280            value=value.replace(']]',']]>')3281            outfile.write(value)3282        else:3283            outfile.write(quote_xml('%s' % self.valueOf_))3284    def hasContent_(self):3285        if (3286            self.valueOf_ is not None3287            ):3288            return True3289        else:3290            return False3291    def exportLiteral(self, outfile, level, name_='defname'):3292        level += 13293        self.exportLiteralAttributes(outfile, level, name_)3294        if self.hasContent_():3295            self.exportLiteralChildren(outfile, level, name_)3296    def exportLiteralAttributes(self, outfile, level, name_):3297        pass3298    def exportLiteralChildren(self, outfile, level, name_):3299        showIndent(outfile, level)3300        outfile.write('valueOf_ = "%s",\n' % (self.valueOf_,))3301    def build(self, node_):3302        attrs = node_.attributes3303        self.buildAttributes(attrs)3304        self.valueOf_ = ''3305        for child_ in node_.childNodes:3306            nodeName_ = child_.nodeName.split(':')[-1]3307            self.buildChildren(child_, nodeName_)3308    def buildAttributes(self, attrs):3309        pass3310    def buildChildren(self, child_, nodeName_):3311        if child_.nodeType == Node.TEXT_NODE:3312            self.valueOf_ += child_.nodeValue3313        elif child_.nodeType == Node.CDATA_SECTION_NODE:3314            self.valueOf_ += '![CDATA['+child_.nodeValue+']]'3315# end class defname3316class array(GeneratedsSuper):3317    subclass = None3318    superclass = None3319    def __init__(self, valueOf_=''):3320        self.valueOf_ = valueOf_3321    def factory(*args_, **kwargs_):3322        if array.subclass:3323            return array.subclass(*args_, **kwargs_)3324        else:3325            return array(*args_, **kwargs_)3326    factory = staticmethod(factory)3327    def getValueOf_(self): return self.valueOf_3328    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_3329    def export(self, outfile, level, namespace_='', name_='array', namespacedef_=''):3330        showIndent(outfile, level)3331        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))3332        self.exportAttributes(outfile, level, namespace_, name_='array')3333        if self.hasContent_():3334            outfile.write('>\n')3335            self.exportChildren(outfile, level + 1, namespace_, name_)3336            showIndent(outfile, level)3337            outfile.write('</%s%s>\n' % (namespace_, name_))3338        else:3339            outfile.write(' />\n')3340    def exportAttributes(self, outfile, level, namespace_='', name_='array'):3341        pass3342    def exportChildren(self, outfile, level, namespace_='', name_='array'):3343        if self.valueOf_.find('![CDATA')>-1:3344            value=quote_xml('%s' % self.valueOf_)3345            value=value.replace('![CDATA','<![CDATA')3346            value=value.replace(']]',']]>')3347            outfile.write(value)3348        else:3349            outfile.write(quote_xml('%s' % self.valueOf_))3350    def hasContent_(self):3351        if (3352            self.valueOf_ is not None3353            ):3354            return True3355        else:3356            return False3357    def exportLiteral(self, outfile, level, name_='array'):3358        level += 13359        self.exportLiteralAttributes(outfile, level, name_)3360        if self.hasContent_():3361            self.exportLiteralChildren(outfile, level, name_)3362    def exportLiteralAttributes(self, outfile, level, name_):3363        pass3364    def exportLiteralChildren(self, outfile, level, name_):3365        showIndent(outfile, level)3366        outfile.write('valueOf_ = "%s",\n' % (self.valueOf_,))3367    def build(self, node_):3368        attrs = node_.attributes3369        self.buildAttributes(attrs)3370        self.valueOf_ = ''3371        for child_ in node_.childNodes:3372            nodeName_ = child_.nodeName.split(':')[-1]3373            self.buildChildren(child_, nodeName_)3374    def buildAttributes(self, attrs):3375        pass3376    def buildChildren(self, child_, nodeName_):3377        if child_.nodeType == Node.TEXT_NODE:3378            self.valueOf_ += child_.nodeValue3379        elif child_.nodeType == Node.CDATA_SECTION_NODE:3380            self.valueOf_ += '![CDATA['+child_.nodeValue+']]'3381# end class array3382class linkedTextType(GeneratedsSuper):3383    subclass = None3384    superclass = None3385    def __init__(self, ref=None, mixedclass_=None, content_=None):3386        if mixedclass_ is None:3387            self.mixedclass_ = MixedContainer3388        else:3389            self.mixedclass_ = mixedclass_3390        if content_ is None:3391            self.content_ = []3392        else:3393            self.content_ = content_3394    def factory(*args_, **kwargs_):3395        if linkedTextType.subclass:3396            return linkedTextType.subclass(*args_, **kwargs_)3397        else:3398            return linkedTextType(*args_, **kwargs_)3399    factory = staticmethod(factory)3400    def get_ref(self): return self.ref3401    def set_ref(self, ref): self.ref = ref3402    def add_ref(self, value): self.ref.append(value)3403    def insert_ref(self, index, value): self.ref[index] = value3404    def export(self, outfile, level, namespace_='', name_='linkedTextType', namespacedef_=''):3405        showIndent(outfile, level)3406        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))3407        self.exportAttributes(outfile, level, namespace_, name_='linkedTextType')3408        outfile.write('>')3409        self.exportChildren(outfile, level + 1, namespace_, name_)3410        outfile.write('</%s%s>\n' % (namespace_, name_))3411    def exportAttributes(self, outfile, level, namespace_='', name_='linkedTextType'):3412        pass3413    def exportChildren(self, outfile, level, namespace_='', name_='linkedTextType'):3414        for item_ in self.content_:3415            item_.export(outfile, level, item_.name, namespace_)3416    def hasContent_(self):3417        if (3418            self.ref is not None3419            ):3420            return True3421        else:3422            return False3423    def exportLiteral(self, outfile, level, name_='linkedTextType'):3424        level += 13425        self.exportLiteralAttributes(outfile, level, name_)3426        if self.hasContent_():3427            self.exportLiteralChildren(outfile, level, name_)3428    def exportLiteralAttributes(self, outfile, level, name_):3429        pass3430    def exportLiteralChildren(self, outfile, level, name_):3431        showIndent(outfile, level)3432        outfile.write('content_ = [\n')3433        for item_ in self.content_:3434            item_.exportLiteral(outfile, level, name_)3435        showIndent(outfile, level)3436        outfile.write('],\n')3437    def build(self, node_):3438        attrs = node_.attributes3439        self.buildAttributes(attrs)3440        for child_ in node_.childNodes:3441            nodeName_ = child_.nodeName.split(':')[-1]3442            self.buildChildren(child_, nodeName_)3443    def buildAttributes(self, attrs):3444        pass3445    def buildChildren(self, child_, nodeName_):3446        if child_.nodeType == Node.ELEMENT_NODE and \3447            nodeName_ == 'ref':3448            childobj_ = docRefTextType.factory()3449            childobj_.build(child_)3450            obj_ = self.mixedclass_(MixedContainer.CategoryComplex,3451                MixedContainer.TypeNone, 'ref', childobj_)3452            self.content_.append(obj_)3453        elif child_.nodeType == Node.TEXT_NODE:3454            obj_ = self.mixedclass_(MixedContainer.CategoryText,3455                MixedContainer.TypeNone, '', child_.nodeValue)3456            self.content_.append(obj_)3457# end class linkedTextType3458class graphType(GeneratedsSuper):3459    subclass = None3460    superclass = None3461    def __init__(self, node=None):3462        if node is None:3463            self.node = []3464        else:3465            self.node = node3466    def factory(*args_, **kwargs_):3467        if graphType.subclass:3468            return graphType.subclass(*args_, **kwargs_)3469        else:3470            return graphType(*args_, **kwargs_)3471    factory = staticmethod(factory)3472    def get_node(self): return self.node3473    def set_node(self, node): self.node = node3474    def add_node(self, value): self.node.append(value)3475    def insert_node(self, index, value): self.node[index] = value3476    def export(self, outfile, level, namespace_='', name_='graphType', namespacedef_=''):3477        showIndent(outfile, level)3478        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))3479        self.exportAttributes(outfile, level, namespace_, name_='graphType')3480        if self.hasContent_():3481            outfile.write('>\n')3482            self.exportChildren(outfile, level + 1, namespace_, name_)3483            showIndent(outfile, level)3484            outfile.write('</%s%s>\n' % (namespace_, name_))3485        else:3486            outfile.write(' />\n')3487    def exportAttributes(self, outfile, level, namespace_='', name_='graphType'):3488        pass3489    def exportChildren(self, outfile, level, namespace_='', name_='graphType'):3490        for node_ in self.node:3491            node_.export(outfile, level, namespace_, name_='node')3492    def hasContent_(self):3493        if (3494            self.node is not None3495            ):3496            return True3497        else:3498            return False3499    def exportLiteral(self, outfile, level, name_='graphType'):3500        level += 13501        self.exportLiteralAttributes(outfile, level, name_)3502        if self.hasContent_():3503            self.exportLiteralChildren(outfile, level, name_)3504    def exportLiteralAttributes(self, outfile, level, name_):3505        pass3506    def exportLiteralChildren(self, outfile, level, name_):3507        showIndent(outfile, level)3508        outfile.write('node=[\n')3509        level += 13510        for node in self.node:3511            showIndent(outfile, level)3512            outfile.write('model_.node(\n')3513            node.exportLiteral(outfile, level, name_='node')3514            showIndent(outfile, level)3515            outfile.write('),\n')3516        level -= 13517        showIndent(outfile, level)3518        outfile.write('],\n')3519    def build(self, node_):3520        attrs = node_.attributes3521        self.buildAttributes(attrs)3522        for child_ in node_.childNodes:3523            nodeName_ = child_.nodeName.split(':')[-1]3524            self.buildChildren(child_, nodeName_)3525    def buildAttributes(self, attrs):3526        pass3527    def buildChildren(self, child_, nodeName_):3528        if child_.nodeType == Node.ELEMENT_NODE and \3529            nodeName_ == 'node':3530            obj_ = nodeType.factory()3531            obj_.build(child_)3532            self.node.append(obj_)3533# end class graphType3534class nodeType(GeneratedsSuper):3535    subclass = None3536    superclass = None3537    def __init__(self, id=None, label=None, link=None, childnode=None):3538        self.id = id3539        self.label = label3540        self.link = link3541        if childnode is None:3542            self.childnode = []3543        else:3544            self.childnode = childnode3545    def factory(*args_, **kwargs_):3546        if nodeType.subclass:3547            return nodeType.subclass(*args_, **kwargs_)3548        else:3549            return nodeType(*args_, **kwargs_)3550    factory = staticmethod(factory)3551    def get_label(self): return self.label3552    def set_label(self, label): self.label = label3553    def get_link(self): return self.link3554    def set_link(self, link): self.link = link3555    def get_childnode(self): return self.childnode3556    def set_childnode(self, childnode): self.childnode = childnode3557    def add_childnode(self, value): self.childnode.append(value)3558    def insert_childnode(self, index, value): self.childnode[index] = value3559    def get_id(self): return self.id3560    def set_id(self, id): self.id = id3561    def export(self, outfile, level, namespace_='', name_='nodeType', namespacedef_=''):3562        showIndent(outfile, level)3563        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))3564        self.exportAttributes(outfile, level, namespace_, name_='nodeType')3565        if self.hasContent_():3566            outfile.write('>\n')3567            self.exportChildren(outfile, level + 1, namespace_, name_)3568            showIndent(outfile, level)3569            outfile.write('</%s%s>\n' % (namespace_, name_))3570        else:3571            outfile.write(' />\n')3572    def exportAttributes(self, outfile, level, namespace_='', name_='nodeType'):3573        if self.id is not None:3574            outfile.write(' id=%s' % (self.format_string(quote_attrib(self.id).encode(ExternalEncoding), input_name='id'), ))3575    def exportChildren(self, outfile, level, namespace_='', name_='nodeType'):3576        if self.label is not None:3577            showIndent(outfile, level)3578            outfile.write('<%slabel>%s</%slabel>\n' % (namespace_, self.format_string(quote_xml(self.label).encode(ExternalEncoding), input_name='label'), namespace_))3579        if self.link:3580            self.link.export(outfile, level, namespace_, name_='link')3581        for childnode_ in self.childnode:3582            childnode_.export(outfile, level, namespace_, name_='childnode')3583    def hasContent_(self):3584        if (3585            self.label is not None or3586            self.link is not None or3587            self.childnode is not None3588            ):3589            return True3590        else:3591            return False3592    def exportLiteral(self, outfile, level, name_='nodeType'):3593        level += 13594        self.exportLiteralAttributes(outfile, level, name_)3595        if self.hasContent_():3596            self.exportLiteralChildren(outfile, level, name_)3597    def exportLiteralAttributes(self, outfile, level, name_):3598        if self.id is not None:3599            showIndent(outfile, level)3600            outfile.write('id = %s,\n' % (self.id,))3601    def exportLiteralChildren(self, outfile, level, name_):3602        showIndent(outfile, level)3603        outfile.write('label=%s,\n' % quote_python(self.label).encode(ExternalEncoding))3604        if self.link:3605            showIndent(outfile, level)3606            outfile.write('link=model_.linkType(\n')3607            self.link.exportLiteral(outfile, level, name_='link')3608            showIndent(outfile, level)3609            outfile.write('),\n')3610        showIndent(outfile, level)3611        outfile.write('childnode=[\n')3612        level += 13613        for childnode in self.childnode:3614            showIndent(outfile, level)3615            outfile.write('model_.childnode(\n')3616            childnode.exportLiteral(outfile, level, name_='childnode')3617            showIndent(outfile, level)3618            outfile.write('),\n')3619        level -= 13620        showIndent(outfile, level)3621        outfile.write('],\n')3622    def build(self, node_):3623        attrs = node_.attributes3624        self.buildAttributes(attrs)3625        for child_ in node_.childNodes:3626            nodeName_ = child_.nodeName.split(':')[-1]3627            self.buildChildren(child_, nodeName_)3628    def buildAttributes(self, attrs):3629        if attrs.get('id'):3630            self.id = attrs.get('id').value3631    def buildChildren(self, child_, nodeName_):3632        if child_.nodeType == Node.ELEMENT_NODE and \3633            nodeName_ == 'label':3634            label_ = ''3635            for text__content_ in child_.childNodes:3636                label_ += text__content_.nodeValue3637            self.label = label_3638        elif child_.nodeType == Node.ELEMENT_NODE and \3639            nodeName_ == 'link':3640            obj_ = linkType.factory()3641            obj_.build(child_)3642            self.set_link(obj_)3643        elif child_.nodeType == Node.ELEMENT_NODE and \3644            nodeName_ == 'childnode':3645            obj_ = childnodeType.factory()3646            obj_.build(child_)3647            self.childnode.append(obj_)3648# end class nodeType3649class label(GeneratedsSuper):3650    subclass = None3651    superclass = None3652    def __init__(self, valueOf_=''):3653        self.valueOf_ = valueOf_3654    def factory(*args_, **kwargs_):3655        if label.subclass:3656            return label.subclass(*args_, **kwargs_)3657        else:3658            return label(*args_, **kwargs_)3659    factory = staticmethod(factory)3660    def getValueOf_(self): return self.valueOf_3661    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_3662    def export(self, outfile, level, namespace_='', name_='label', namespacedef_=''):3663        showIndent(outfile, level)3664        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))3665        self.exportAttributes(outfile, level, namespace_, name_='label')3666        if self.hasContent_():3667            outfile.write('>\n')3668            self.exportChildren(outfile, level + 1, namespace_, name_)3669            showIndent(outfile, level)3670            outfile.write('</%s%s>\n' % (namespace_, name_))3671        else:3672            outfile.write(' />\n')3673    def exportAttributes(self, outfile, level, namespace_='', name_='label'):3674        pass3675    def exportChildren(self, outfile, level, namespace_='', name_='label'):3676        if self.valueOf_.find('![CDATA')>-1:3677            value=quote_xml('%s' % self.valueOf_)3678            value=value.replace('![CDATA','<![CDATA')3679            value=value.replace(']]',']]>')3680            outfile.write(value)3681        else:3682            outfile.write(quote_xml('%s' % self.valueOf_))3683    def hasContent_(self):3684        if (3685            self.valueOf_ is not None3686            ):3687            return True3688        else:3689            return False3690    def exportLiteral(self, outfile, level, name_='label'):3691        level += 13692        self.exportLiteralAttributes(outfile, level, name_)3693        if self.hasContent_():3694            self.exportLiteralChildren(outfile, level, name_)3695    def exportLiteralAttributes(self, outfile, level, name_):3696        pass3697    def exportLiteralChildren(self, outfile, level, name_):3698        showIndent(outfile, level)3699        outfile.write('valueOf_ = "%s",\n' % (self.valueOf_,))3700    def build(self, node_):3701        attrs = node_.attributes3702        self.buildAttributes(attrs)3703        self.valueOf_ = ''3704        for child_ in node_.childNodes:3705            nodeName_ = child_.nodeName.split(':')[-1]3706            self.buildChildren(child_, nodeName_)3707    def buildAttributes(self, attrs):3708        pass3709    def buildChildren(self, child_, nodeName_):3710        if child_.nodeType == Node.TEXT_NODE:3711            self.valueOf_ += child_.nodeValue3712        elif child_.nodeType == Node.CDATA_SECTION_NODE:3713            self.valueOf_ += '![CDATA['+child_.nodeValue+']]'3714# end class label3715class childnodeType(GeneratedsSuper):3716    subclass = None3717    superclass = None3718    def __init__(self, relation=None, refid=None, edgelabel=None):3719        self.relation = relation3720        self.refid = refid3721        if edgelabel is None:3722            self.edgelabel = []3723        else:3724            self.edgelabel = edgelabel3725    def factory(*args_, **kwargs_):3726        if childnodeType.subclass:3727            return childnodeType.subclass(*args_, **kwargs_)3728        else:3729            return childnodeType(*args_, **kwargs_)3730    factory = staticmethod(factory)3731    def get_edgelabel(self): return self.edgelabel3732    def set_edgelabel(self, edgelabel): self.edgelabel = edgelabel3733    def add_edgelabel(self, value): self.edgelabel.append(value)3734    def insert_edgelabel(self, index, value): self.edgelabel[index] = value3735    def get_relation(self): return self.relation3736    def set_relation(self, relation): self.relation = relation3737    def get_refid(self): return self.refid3738    def set_refid(self, refid): self.refid = refid3739    def export(self, outfile, level, namespace_='', name_='childnodeType', namespacedef_=''):3740        showIndent(outfile, level)3741        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))3742        self.exportAttributes(outfile, level, namespace_, name_='childnodeType')3743        if self.hasContent_():3744            outfile.write('>\n')3745            self.exportChildren(outfile, level + 1, namespace_, name_)3746            showIndent(outfile, level)3747            outfile.write('</%s%s>\n' % (namespace_, name_))3748        else:3749            outfile.write(' />\n')3750    def exportAttributes(self, outfile, level, namespace_='', name_='childnodeType'):3751        if self.relation is not None:3752            outfile.write(' relation=%s' % (quote_attrib(self.relation), ))3753        if self.refid is not None:3754            outfile.write(' refid=%s' % (self.format_string(quote_attrib(self.refid).encode(ExternalEncoding), input_name='refid'), ))3755    def exportChildren(self, outfile, level, namespace_='', name_='childnodeType'):3756        for edgelabel_ in self.edgelabel:3757            showIndent(outfile, level)3758            outfile.write('<%sedgelabel>%s</%sedgelabel>\n' % (namespace_, self.format_string(quote_xml(edgelabel_).encode(ExternalEncoding), input_name='edgelabel'), namespace_))3759    def hasContent_(self):3760        if (3761            self.edgelabel is not None3762            ):3763            return True3764        else:3765            return False3766    def exportLiteral(self, outfile, level, name_='childnodeType'):3767        level += 13768        self.exportLiteralAttributes(outfile, level, name_)3769        if self.hasContent_():3770            self.exportLiteralChildren(outfile, level, name_)3771    def exportLiteralAttributes(self, outfile, level, name_):3772        if self.relation is not None:3773            showIndent(outfile, level)3774            outfile.write('relation = "%s",\n' % (self.relation,))3775        if self.refid is not None:3776            showIndent(outfile, level)3777            outfile.write('refid = %s,\n' % (self.refid,))3778    def exportLiteralChildren(self, outfile, level, name_):3779        showIndent(outfile, level)3780        outfile.write('edgelabel=[\n')3781        level += 13782        for edgelabel in self.edgelabel:3783            showIndent(outfile, level)3784            outfile.write('%s,\n' % quote_python(edgelabel).encode(ExternalEncoding))3785        level -= 13786        showIndent(outfile, level)3787        outfile.write('],\n')3788    def build(self, node_):3789        attrs = node_.attributes3790        self.buildAttributes(attrs)3791        for child_ in node_.childNodes:3792            nodeName_ = child_.nodeName.split(':')[-1]3793            self.buildChildren(child_, nodeName_)3794    def buildAttributes(self, attrs):3795        if attrs.get('relation'):3796            self.relation = attrs.get('relation').value3797        if attrs.get('refid'):3798            self.refid = attrs.get('refid').value3799    def buildChildren(self, child_, nodeName_):3800        if child_.nodeType == Node.ELEMENT_NODE and \3801            nodeName_ == 'edgelabel':3802            edgelabel_ = ''3803            for text__content_ in child_.childNodes:3804                edgelabel_ += text__content_.nodeValue3805            self.edgelabel.append(edgelabel_)3806# end class childnodeType3807class edgelabel(GeneratedsSuper):3808    subclass = None3809    superclass = None3810    def __init__(self, valueOf_=''):3811        self.valueOf_ = valueOf_3812    def factory(*args_, **kwargs_):3813        if edgelabel.subclass:3814            return edgelabel.subclass(*args_, **kwargs_)3815        else:3816            return edgelabel(*args_, **kwargs_)3817    factory = staticmethod(factory)3818    def getValueOf_(self): return self.valueOf_3819    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_3820    def export(self, outfile, level, namespace_='', name_='edgelabel', namespacedef_=''):3821        showIndent(outfile, level)3822        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))3823        self.exportAttributes(outfile, level, namespace_, name_='edgelabel')3824        if self.hasContent_():3825            outfile.write('>\n')3826            self.exportChildren(outfile, level + 1, namespace_, name_)3827            showIndent(outfile, level)3828            outfile.write('</%s%s>\n' % (namespace_, name_))3829        else:3830            outfile.write(' />\n')3831    def exportAttributes(self, outfile, level, namespace_='', name_='edgelabel'):3832        pass3833    def exportChildren(self, outfile, level, namespace_='', name_='edgelabel'):3834        if self.valueOf_.find('![CDATA')>-1:3835            value=quote_xml('%s' % self.valueOf_)3836            value=value.replace('![CDATA','<![CDATA')3837            value=value.replace(']]',']]>')3838            outfile.write(value)3839        else:3840            outfile.write(quote_xml('%s' % self.valueOf_))3841    def hasContent_(self):3842        if (3843            self.valueOf_ is not None3844            ):3845            return True3846        else:3847            return False3848    def exportLiteral(self, outfile, level, name_='edgelabel'):3849        level += 13850        self.exportLiteralAttributes(outfile, level, name_)3851        if self.hasContent_():3852            self.exportLiteralChildren(outfile, level, name_)3853    def exportLiteralAttributes(self, outfile, level, name_):3854        pass3855    def exportLiteralChildren(self, outfile, level, name_):3856        showIndent(outfile, level)3857        outfile.write('valueOf_ = "%s",\n' % (self.valueOf_,))3858    def build(self, node_):3859        attrs = node_.attributes3860        self.buildAttributes(attrs)3861        self.valueOf_ = ''3862        for child_ in node_.childNodes:3863            nodeName_ = child_.nodeName.split(':')[-1]3864            self.buildChildren(child_, nodeName_)3865    def buildAttributes(self, attrs):3866        pass3867    def buildChildren(self, child_, nodeName_):3868        if child_.nodeType == Node.TEXT_NODE:3869            self.valueOf_ += child_.nodeValue3870        elif child_.nodeType == Node.CDATA_SECTION_NODE:3871            self.valueOf_ += '![CDATA['+child_.nodeValue+']]'3872# end class edgelabel3873class linkType(GeneratedsSuper):3874    subclass = None3875    superclass = None3876    def __init__(self, refid=None, external=None, valueOf_=''):3877        self.refid = refid3878        self.external = external3879        self.valueOf_ = valueOf_3880    def factory(*args_, **kwargs_):3881        if linkType.subclass:3882            return linkType.subclass(*args_, **kwargs_)3883        else:3884            return linkType(*args_, **kwargs_)3885    factory = staticmethod(factory)3886    def get_refid(self): return self.refid3887    def set_refid(self, refid): self.refid = refid3888    def get_external(self): return self.external3889    def set_external(self, external): self.external = external3890    def getValueOf_(self): return self.valueOf_3891    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_3892    def export(self, outfile, level, namespace_='', name_='linkType', namespacedef_=''):3893        showIndent(outfile, level)3894        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))3895        self.exportAttributes(outfile, level, namespace_, name_='linkType')3896        if self.hasContent_():3897            outfile.write('>\n')3898            self.exportChildren(outfile, level + 1, namespace_, name_)3899            showIndent(outfile, level)3900            outfile.write('</%s%s>\n' % (namespace_, name_))3901        else:3902            outfile.write(' />\n')3903    def exportAttributes(self, outfile, level, namespace_='', name_='linkType'):3904        if self.refid is not None:3905            outfile.write(' refid=%s' % (self.format_string(quote_attrib(self.refid).encode(ExternalEncoding), input_name='refid'), ))3906        if self.external is not None:3907            outfile.write(' external=%s' % (self.format_string(quote_attrib(self.external).encode(ExternalEncoding), input_name='external'), ))3908    def exportChildren(self, outfile, level, namespace_='', name_='linkType'):3909        if self.valueOf_.find('![CDATA')>-1:3910            value=quote_xml('%s' % self.valueOf_)3911            value=value.replace('![CDATA','<![CDATA')3912            value=value.replace(']]',']]>')3913            outfile.write(value)3914        else:3915            outfile.write(quote_xml('%s' % self.valueOf_))3916    def hasContent_(self):3917        if (3918            self.valueOf_ is not None3919            ):3920            return True3921        else:3922            return False3923    def exportLiteral(self, outfile, level, name_='linkType'):3924        level += 13925        self.exportLiteralAttributes(outfile, level, name_)3926        if self.hasContent_():3927            self.exportLiteralChildren(outfile, level, name_)3928    def exportLiteralAttributes(self, outfile, level, name_):3929        if self.refid is not None:3930            showIndent(outfile, level)3931            outfile.write('refid = %s,\n' % (self.refid,))3932        if self.external is not None:3933            showIndent(outfile, level)3934            outfile.write('external = %s,\n' % (self.external,))3935    def exportLiteralChildren(self, outfile, level, name_):3936        showIndent(outfile, level)3937        outfile.write('valueOf_ = "%s",\n' % (self.valueOf_,))3938    def build(self, node_):3939        attrs = node_.attributes3940        self.buildAttributes(attrs)3941        self.valueOf_ = ''3942        for child_ in node_.childNodes:3943            nodeName_ = child_.nodeName.split(':')[-1]3944            self.buildChildren(child_, nodeName_)3945    def buildAttributes(self, attrs):3946        if attrs.get('refid'):3947            self.refid = attrs.get('refid').value3948        if attrs.get('external'):3949            self.external = attrs.get('external').value3950    def buildChildren(self, child_, nodeName_):3951        if child_.nodeType == Node.TEXT_NODE:3952            self.valueOf_ += child_.nodeValue3953        elif child_.nodeType == Node.CDATA_SECTION_NODE:3954            self.valueOf_ += '![CDATA['+child_.nodeValue+']]'3955# end class linkType3956class listingType(GeneratedsSuper):3957    subclass = None3958    superclass = None3959    def __init__(self, codeline=None):3960        if codeline is None:3961            self.codeline = []3962        else:3963            self.codeline = codeline3964    def factory(*args_, **kwargs_):3965        if listingType.subclass:3966            return listingType.subclass(*args_, **kwargs_)3967        else:3968            return listingType(*args_, **kwargs_)3969    factory = staticmethod(factory)3970    def get_codeline(self): return self.codeline3971    def set_codeline(self, codeline): self.codeline = codeline3972    def add_codeline(self, value): self.codeline.append(value)3973    def insert_codeline(self, index, value): self.codeline[index] = value3974    def export(self, outfile, level, namespace_='', name_='listingType', namespacedef_=''):3975        showIndent(outfile, level)3976        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))3977        self.exportAttributes(outfile, level, namespace_, name_='listingType')3978        if self.hasContent_():3979            outfile.write('>\n')3980            self.exportChildren(outfile, level + 1, namespace_, name_)3981            showIndent(outfile, level)3982            outfile.write('</%s%s>\n' % (namespace_, name_))3983        else:3984            outfile.write(' />\n')3985    def exportAttributes(self, outfile, level, namespace_='', name_='listingType'):3986        pass3987    def exportChildren(self, outfile, level, namespace_='', name_='listingType'):3988        for codeline_ in self.codeline:3989            codeline_.export(outfile, level, namespace_, name_='codeline')3990    def hasContent_(self):3991        if (3992            self.codeline is not None3993            ):3994            return True3995        else:3996            return False3997    def exportLiteral(self, outfile, level, name_='listingType'):3998        level += 13999        self.exportLiteralAttributes(outfile, level, name_)4000        if self.hasContent_():4001            self.exportLiteralChildren(outfile, level, name_)4002    def exportLiteralAttributes(self, outfile, level, name_):4003        pass4004    def exportLiteralChildren(self, outfile, level, name_):4005        showIndent(outfile, level)4006        outfile.write('codeline=[\n')4007        level += 14008        for codeline in self.codeline:4009            showIndent(outfile, level)4010            outfile.write('model_.codeline(\n')4011            codeline.exportLiteral(outfile, level, name_='codeline')4012            showIndent(outfile, level)4013            outfile.write('),\n')4014        level -= 14015        showIndent(outfile, level)4016        outfile.write('],\n')4017    def build(self, node_):4018        attrs = node_.attributes4019        self.buildAttributes(attrs)4020        for child_ in node_.childNodes:4021            nodeName_ = child_.nodeName.split(':')[-1]4022            self.buildChildren(child_, nodeName_)4023    def buildAttributes(self, attrs):4024        pass4025    def buildChildren(self, child_, nodeName_):4026        if child_.nodeType == Node.ELEMENT_NODE and \4027            nodeName_ == 'codeline':4028            obj_ = codelineType.factory()4029            obj_.build(child_)4030            self.codeline.append(obj_)4031# end class listingType4032class codelineType(GeneratedsSuper):4033    subclass = None4034    superclass = None4035    def __init__(self, external=None, lineno=None, refkind=None, refid=None, highlight=None):4036        self.external = external4037        self.lineno = lineno4038        self.refkind = refkind4039        self.refid = refid4040        if highlight is None:4041            self.highlight = []4042        else:4043            self.highlight = highlight4044    def factory(*args_, **kwargs_):4045        if codelineType.subclass:4046            return codelineType.subclass(*args_, **kwargs_)4047        else:4048            return codelineType(*args_, **kwargs_)4049    factory = staticmethod(factory)4050    def get_highlight(self): return self.highlight4051    def set_highlight(self, highlight): self.highlight = highlight4052    def add_highlight(self, value): self.highlight.append(value)4053    def insert_highlight(self, index, value): self.highlight[index] = value4054    def get_external(self): return self.external4055    def set_external(self, external): self.external = external4056    def get_lineno(self): return self.lineno4057    def set_lineno(self, lineno): self.lineno = lineno4058    def get_refkind(self): return self.refkind4059    def set_refkind(self, refkind): self.refkind = refkind4060    def get_refid(self): return self.refid4061    def set_refid(self, refid): self.refid = refid4062    def export(self, outfile, level, namespace_='', name_='codelineType', namespacedef_=''):4063        showIndent(outfile, level)4064        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))4065        self.exportAttributes(outfile, level, namespace_, name_='codelineType')4066        if self.hasContent_():4067            outfile.write('>\n')4068            self.exportChildren(outfile, level + 1, namespace_, name_)4069            showIndent(outfile, level)4070            outfile.write('</%s%s>\n' % (namespace_, name_))4071        else:4072            outfile.write(' />\n')4073    def exportAttributes(self, outfile, level, namespace_='', name_='codelineType'):4074        if self.external is not None:4075            outfile.write(' external=%s' % (quote_attrib(self.external), ))4076        if self.lineno is not None:4077            outfile.write(' lineno="%s"' % self.format_integer(self.lineno, input_name='lineno'))4078        if self.refkind is not None:4079            outfile.write(' refkind=%s' % (quote_attrib(self.refkind), ))4080        if self.refid is not None:4081            outfile.write(' refid=%s' % (self.format_string(quote_attrib(self.refid).encode(ExternalEncoding), input_name='refid'), ))4082    def exportChildren(self, outfile, level, namespace_='', name_='codelineType'):4083        for highlight_ in self.highlight:4084            highlight_.export(outfile, level, namespace_, name_='highlight')4085    def hasContent_(self):4086        if (4087            self.highlight is not None4088            ):4089            return True4090        else:4091            return False4092    def exportLiteral(self, outfile, level, name_='codelineType'):4093        level += 14094        self.exportLiteralAttributes(outfile, level, name_)4095        if self.hasContent_():4096            self.exportLiteralChildren(outfile, level, name_)4097    def exportLiteralAttributes(self, outfile, level, name_):4098        if self.external is not None:4099            showIndent(outfile, level)4100            outfile.write('external = "%s",\n' % (self.external,))4101        if self.lineno is not None:4102            showIndent(outfile, level)4103            outfile.write('lineno = %s,\n' % (self.lineno,))4104        if self.refkind is not None:4105            showIndent(outfile, level)4106            outfile.write('refkind = "%s",\n' % (self.refkind,))4107        if self.refid is not None:4108            showIndent(outfile, level)4109            outfile.write('refid = %s,\n' % (self.refid,))4110    def exportLiteralChildren(self, outfile, level, name_):4111        showIndent(outfile, level)4112        outfile.write('highlight=[\n')4113        level += 14114        for highlight in self.highlight:4115            showIndent(outfile, level)4116            outfile.write('model_.highlight(\n')4117            highlight.exportLiteral(outfile, level, name_='highlight')4118            showIndent(outfile, level)4119            outfile.write('),\n')4120        level -= 14121        showIndent(outfile, level)4122        outfile.write('],\n')4123    def build(self, node_):4124        attrs = node_.attributes4125        self.buildAttributes(attrs)4126        for child_ in node_.childNodes:4127            nodeName_ = child_.nodeName.split(':')[-1]4128            self.buildChildren(child_, nodeName_)4129    def buildAttributes(self, attrs):4130        if attrs.get('external'):4131            self.external = attrs.get('external').value4132        if attrs.get('lineno'):4133            try:4134                self.lineno = int(attrs.get('lineno').value)4135            except ValueError, exp:4136                raise ValueError('Bad integer attribute (lineno): %s' % exp)4137        if attrs.get('refkind'):4138            self.refkind = attrs.get('refkind').value4139        if attrs.get('refid'):4140            self.refid = attrs.get('refid').value4141    def buildChildren(self, child_, nodeName_):4142        if child_.nodeType == Node.ELEMENT_NODE and \4143            nodeName_ == 'highlight':4144            obj_ = highlightType.factory()4145            obj_.build(child_)4146            self.highlight.append(obj_)4147# end class codelineType4148class highlightType(GeneratedsSuper):4149    subclass = None4150    superclass = None4151    def __init__(self, classxx=None, sp=None, ref=None, mixedclass_=None, content_=None):4152        self.classxx = classxx4153        if mixedclass_ is None:4154            self.mixedclass_ = MixedContainer4155        else:4156            self.mixedclass_ = mixedclass_4157        if content_ is None:4158            self.content_ = []4159        else:4160            self.content_ = content_4161    def factory(*args_, **kwargs_):4162        if highlightType.subclass:4163            return highlightType.subclass(*args_, **kwargs_)4164        else:4165            return highlightType(*args_, **kwargs_)4166    factory = staticmethod(factory)4167    def get_sp(self): return self.sp4168    def set_sp(self, sp): self.sp = sp4169    def add_sp(self, value): self.sp.append(value)4170    def insert_sp(self, index, value): self.sp[index] = value4171    def get_ref(self): return self.ref4172    def set_ref(self, ref): self.ref = ref4173    def add_ref(self, value): self.ref.append(value)4174    def insert_ref(self, index, value): self.ref[index] = value4175    def get_class(self): return self.classxx4176    def set_class(self, classxx): self.classxx = classxx4177    def export(self, outfile, level, namespace_='', name_='highlightType', namespacedef_=''):4178        showIndent(outfile, level)4179        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))4180        self.exportAttributes(outfile, level, namespace_, name_='highlightType')4181        outfile.write('>')4182        self.exportChildren(outfile, level + 1, namespace_, name_)4183        outfile.write('</%s%s>\n' % (namespace_, name_))4184    def exportAttributes(self, outfile, level, namespace_='', name_='highlightType'):4185        if self.classxx is not None:4186            outfile.write(' class=%s' % (quote_attrib(self.classxx), ))4187    def exportChildren(self, outfile, level, namespace_='', name_='highlightType'):4188        for item_ in self.content_:4189            item_.export(outfile, level, item_.name, namespace_)4190    def hasContent_(self):4191        if (4192            self.sp is not None or4193            self.ref is not None4194            ):4195            return True4196        else:4197            return False4198    def exportLiteral(self, outfile, level, name_='highlightType'):4199        level += 14200        self.exportLiteralAttributes(outfile, level, name_)4201        if self.hasContent_():4202            self.exportLiteralChildren(outfile, level, name_)4203    def exportLiteralAttributes(self, outfile, level, name_):4204        if self.classxx is not None:4205            showIndent(outfile, level)4206            outfile.write('classxx = "%s",\n' % (self.classxx,))4207    def exportLiteralChildren(self, outfile, level, name_):4208        showIndent(outfile, level)4209        outfile.write('content_ = [\n')4210        for item_ in self.content_:4211            item_.exportLiteral(outfile, level, name_)4212        showIndent(outfile, level)4213        outfile.write('],\n')4214        showIndent(outfile, level)4215        outfile.write('content_ = [\n')4216        for item_ in self.content_:4217            item_.exportLiteral(outfile, level, name_)4218        showIndent(outfile, level)4219        outfile.write('],\n')4220    def build(self, node_):4221        attrs = node_.attributes4222        self.buildAttributes(attrs)4223        for child_ in node_.childNodes:4224            nodeName_ = child_.nodeName.split(':')[-1]4225            self.buildChildren(child_, nodeName_)4226    def buildAttributes(self, attrs):4227        if attrs.get('class'):4228            self.classxx = attrs.get('class').value4229    def buildChildren(self, child_, nodeName_):4230        if child_.nodeType == Node.ELEMENT_NODE and \4231            nodeName_ == 'sp':4232            value_ = []4233            for text_ in child_.childNodes:4234                value_.append(text_.nodeValue)4235            valuestr_ = ''.join(value_)4236            obj_ = self.mixedclass_(MixedContainer.CategorySimple,4237                MixedContainer.TypeString, 'sp', valuestr_)4238            self.content_.append(obj_)4239        elif child_.nodeType == Node.ELEMENT_NODE and \4240            nodeName_ == 'ref':4241            childobj_ = docRefTextType.factory()4242            childobj_.build(child_)4243            obj_ = self.mixedclass_(MixedContainer.CategoryComplex,4244                MixedContainer.TypeNone, 'ref', childobj_)4245            self.content_.append(obj_)4246        elif child_.nodeType == Node.TEXT_NODE:4247            obj_ = self.mixedclass_(MixedContainer.CategoryText,4248                MixedContainer.TypeNone, '', child_.nodeValue)4249            self.content_.append(obj_)4250# end class highlightType4251class sp(GeneratedsSuper):4252    subclass = None4253    superclass = None4254    def __init__(self, valueOf_=''):4255        self.valueOf_ = valueOf_4256    def factory(*args_, **kwargs_):4257        if sp.subclass:4258            return sp.subclass(*args_, **kwargs_)4259        else:4260            return sp(*args_, **kwargs_)4261    factory = staticmethod(factory)4262    def getValueOf_(self): return self.valueOf_4263    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_4264    def export(self, outfile, level, namespace_='', name_='sp', namespacedef_=''):4265        showIndent(outfile, level)4266        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))4267        self.exportAttributes(outfile, level, namespace_, name_='sp')4268        if self.hasContent_():4269            outfile.write('>\n')4270            self.exportChildren(outfile, level + 1, namespace_, name_)4271            showIndent(outfile, level)4272            outfile.write('</%s%s>\n' % (namespace_, name_))4273        else:4274            outfile.write(' />\n')4275    def exportAttributes(self, outfile, level, namespace_='', name_='sp'):4276        pass4277    def exportChildren(self, outfile, level, namespace_='', name_='sp'):4278        if self.valueOf_.find('![CDATA')>-1:4279            value=quote_xml('%s' % self.valueOf_)4280            value=value.replace('![CDATA','<![CDATA')4281            value=value.replace(']]',']]>')4282            outfile.write(value)4283        else:4284            outfile.write(quote_xml('%s' % self.valueOf_))4285    def hasContent_(self):4286        if (4287            self.valueOf_ is not None4288            ):4289            return True4290        else:4291            return False4292    def exportLiteral(self, outfile, level, name_='sp'):4293        level += 14294        self.exportLiteralAttributes(outfile, level, name_)4295        if self.hasContent_():4296            self.exportLiteralChildren(outfile, level, name_)4297    def exportLiteralAttributes(self, outfile, level, name_):4298        pass4299    def exportLiteralChildren(self, outfile, level, name_):4300        showIndent(outfile, level)4301        outfile.write('valueOf_ = "%s",\n' % (self.valueOf_,))4302    def build(self, node_):4303        attrs = node_.attributes4304        self.buildAttributes(attrs)4305        self.valueOf_ = ''4306        for child_ in node_.childNodes:4307            nodeName_ = child_.nodeName.split(':')[-1]4308            self.buildChildren(child_, nodeName_)4309    def buildAttributes(self, attrs):4310        pass4311    def buildChildren(self, child_, nodeName_):4312        if child_.nodeType == Node.TEXT_NODE:4313            self.valueOf_ += child_.nodeValue4314        elif child_.nodeType == Node.CDATA_SECTION_NODE:4315            self.valueOf_ += '![CDATA['+child_.nodeValue+']]'4316# end class sp4317class referenceType(GeneratedsSuper):4318    subclass = None4319    superclass = None4320    def __init__(self, endline=None, startline=None, refid=None, compoundref=None, valueOf_='', mixedclass_=None, content_=None):4321        self.endline = endline4322        self.startline = startline4323        self.refid = refid4324        self.compoundref = compoundref4325        if mixedclass_ is None:4326            self.mixedclass_ = MixedContainer4327        else:4328            self.mixedclass_ = mixedclass_4329        if content_ is None:4330            self.content_ = []4331        else:4332            self.content_ = content_4333    def factory(*args_, **kwargs_):4334        if referenceType.subclass:4335            return referenceType.subclass(*args_, **kwargs_)4336        else:4337            return referenceType(*args_, **kwargs_)4338    factory = staticmethod(factory)4339    def get_endline(self): return self.endline4340    def set_endline(self, endline): self.endline = endline4341    def get_startline(self): return self.startline4342    def set_startline(self, startline): self.startline = startline4343    def get_refid(self): return self.refid4344    def set_refid(self, refid): self.refid = refid4345    def get_compoundref(self): return self.compoundref4346    def set_compoundref(self, compoundref): self.compoundref = compoundref4347    def getValueOf_(self): return self.valueOf_4348    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_4349    def export(self, outfile, level, namespace_='', name_='referenceType', namespacedef_=''):4350        showIndent(outfile, level)4351        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))4352        self.exportAttributes(outfile, level, namespace_, name_='referenceType')4353        outfile.write('>')4354        self.exportChildren(outfile, level + 1, namespace_, name_)4355        outfile.write('</%s%s>\n' % (namespace_, name_))4356    def exportAttributes(self, outfile, level, namespace_='', name_='referenceType'):4357        if self.endline is not None:4358            outfile.write(' endline="%s"' % self.format_integer(self.endline, input_name='endline'))4359        if self.startline is not None:4360            outfile.write(' startline="%s"' % self.format_integer(self.startline, input_name='startline'))4361        if self.refid is not None:4362            outfile.write(' refid=%s' % (self.format_string(quote_attrib(self.refid).encode(ExternalEncoding), input_name='refid'), ))4363        if self.compoundref is not None:4364            outfile.write(' compoundref=%s' % (self.format_string(quote_attrib(self.compoundref).encode(ExternalEncoding), input_name='compoundref'), ))4365    def exportChildren(self, outfile, level, namespace_='', name_='referenceType'):4366        if self.valueOf_.find('![CDATA')>-1:4367            value=quote_xml('%s' % self.valueOf_)4368            value=value.replace('![CDATA','<![CDATA')4369            value=value.replace(']]',']]>')4370            outfile.write(value)4371        else:4372            outfile.write(quote_xml('%s' % self.valueOf_))4373    def hasContent_(self):4374        if (4375            self.valueOf_ is not None4376            ):4377            return True4378        else:4379            return False4380    def exportLiteral(self, outfile, level, name_='referenceType'):4381        level += 14382        self.exportLiteralAttributes(outfile, level, name_)4383        if self.hasContent_():4384            self.exportLiteralChildren(outfile, level, name_)4385    def exportLiteralAttributes(self, outfile, level, name_):4386        if self.endline is not None:4387            showIndent(outfile, level)4388            outfile.write('endline = %s,\n' % (self.endline,))4389        if self.startline is not None:4390            showIndent(outfile, level)4391            outfile.write('startline = %s,\n' % (self.startline,))4392        if self.refid is not None:4393            showIndent(outfile, level)4394            outfile.write('refid = %s,\n' % (self.refid,))4395        if self.compoundref is not None:4396            showIndent(outfile, level)4397            outfile.write('compoundref = %s,\n' % (self.compoundref,))4398    def exportLiteralChildren(self, outfile, level, name_):4399        showIndent(outfile, level)4400        outfile.write('valueOf_ = "%s",\n' % (self.valueOf_,))4401    def build(self, node_):4402        attrs = node_.attributes4403        self.buildAttributes(attrs)4404        self.valueOf_ = ''4405        for child_ in node_.childNodes:4406            nodeName_ = child_.nodeName.split(':')[-1]4407            self.buildChildren(child_, nodeName_)4408    def buildAttributes(self, attrs):4409        if attrs.get('endline'):4410            try:4411                self.endline = int(attrs.get('endline').value)4412            except ValueError, exp:4413                raise ValueError('Bad integer attribute (endline): %s' % exp)4414        if attrs.get('startline'):4415            try:4416                self.startline = int(attrs.get('startline').value)4417            except ValueError, exp:4418                raise ValueError('Bad integer attribute (startline): %s' % exp)4419        if attrs.get('refid'):4420            self.refid = attrs.get('refid').value4421        if attrs.get('compoundref'):4422            self.compoundref = attrs.get('compoundref').value4423    def buildChildren(self, child_, nodeName_):4424        if child_.nodeType == Node.TEXT_NODE:4425            obj_ = self.mixedclass_(MixedContainer.CategoryText,4426                MixedContainer.TypeNone, '', child_.nodeValue)4427            self.content_.append(obj_)4428        if child_.nodeType == Node.TEXT_NODE:4429            self.valueOf_ += child_.nodeValue4430        elif child_.nodeType == Node.CDATA_SECTION_NODE:4431            self.valueOf_ += '![CDATA['+child_.nodeValue+']]'4432# end class referenceType4433class locationType(GeneratedsSuper):4434    subclass = None4435    superclass = None4436    def __init__(self, bodystart=None, line=None, bodyend=None, bodyfile=None, file=None, valueOf_=''):4437        self.bodystart = bodystart4438        self.line = line4439        self.bodyend = bodyend4440        self.bodyfile = bodyfile4441        self.file = file4442        self.valueOf_ = valueOf_4443    def factory(*args_, **kwargs_):4444        if locationType.subclass:4445            return locationType.subclass(*args_, **kwargs_)4446        else:4447            return locationType(*args_, **kwargs_)4448    factory = staticmethod(factory)4449    def get_bodystart(self): return self.bodystart4450    def set_bodystart(self, bodystart): self.bodystart = bodystart4451    def get_line(self): return self.line4452    def set_line(self, line): self.line = line4453    def get_bodyend(self): return self.bodyend4454    def set_bodyend(self, bodyend): self.bodyend = bodyend4455    def get_bodyfile(self): return self.bodyfile4456    def set_bodyfile(self, bodyfile): self.bodyfile = bodyfile4457    def get_file(self): return self.file4458    def set_file(self, file): self.file = file4459    def getValueOf_(self): return self.valueOf_4460    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_4461    def export(self, outfile, level, namespace_='', name_='locationType', namespacedef_=''):4462        showIndent(outfile, level)4463        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))4464        self.exportAttributes(outfile, level, namespace_, name_='locationType')4465        if self.hasContent_():4466            outfile.write('>\n')4467            self.exportChildren(outfile, level + 1, namespace_, name_)4468            showIndent(outfile, level)4469            outfile.write('</%s%s>\n' % (namespace_, name_))4470        else:4471            outfile.write(' />\n')4472    def exportAttributes(self, outfile, level, namespace_='', name_='locationType'):4473        if self.bodystart is not None:4474            outfile.write(' bodystart="%s"' % self.format_integer(self.bodystart, input_name='bodystart'))4475        if self.line is not None:4476            outfile.write(' line="%s"' % self.format_integer(self.line, input_name='line'))4477        if self.bodyend is not None:4478            outfile.write(' bodyend="%s"' % self.format_integer(self.bodyend, input_name='bodyend'))4479        if self.bodyfile is not None:4480            outfile.write(' bodyfile=%s' % (self.format_string(quote_attrib(self.bodyfile).encode(ExternalEncoding), input_name='bodyfile'), ))4481        if self.file is not None:4482            outfile.write(' file=%s' % (self.format_string(quote_attrib(self.file).encode(ExternalEncoding), input_name='file'), ))4483    def exportChildren(self, outfile, level, namespace_='', name_='locationType'):4484        if self.valueOf_.find('![CDATA')>-1:4485            value=quote_xml('%s' % self.valueOf_)4486            value=value.replace('![CDATA','<![CDATA')4487            value=value.replace(']]',']]>')4488            outfile.write(value)4489        else:4490            outfile.write(quote_xml('%s' % self.valueOf_))4491    def hasContent_(self):4492        if (4493            self.valueOf_ is not None4494            ):4495            return True4496        else:4497            return False4498    def exportLiteral(self, outfile, level, name_='locationType'):4499        level += 14500        self.exportLiteralAttributes(outfile, level, name_)4501        if self.hasContent_():4502            self.exportLiteralChildren(outfile, level, name_)4503    def exportLiteralAttributes(self, outfile, level, name_):4504        if self.bodystart is not None:4505            showIndent(outfile, level)4506            outfile.write('bodystart = %s,\n' % (self.bodystart,))4507        if self.line is not None:4508            showIndent(outfile, level)4509            outfile.write('line = %s,\n' % (self.line,))4510        if self.bodyend is not None:4511            showIndent(outfile, level)4512            outfile.write('bodyend = %s,\n' % (self.bodyend,))4513        if self.bodyfile is not None:4514            showIndent(outfile, level)4515            outfile.write('bodyfile = %s,\n' % (self.bodyfile,))4516        if self.file is not None:4517            showIndent(outfile, level)4518            outfile.write('file = %s,\n' % (self.file,))4519    def exportLiteralChildren(self, outfile, level, name_):4520        showIndent(outfile, level)4521        outfile.write('valueOf_ = "%s",\n' % (self.valueOf_,))4522    def build(self, node_):4523        attrs = node_.attributes4524        self.buildAttributes(attrs)4525        self.valueOf_ = ''4526        for child_ in node_.childNodes:4527            nodeName_ = child_.nodeName.split(':')[-1]4528            self.buildChildren(child_, nodeName_)4529    def buildAttributes(self, attrs):4530        if attrs.get('bodystart'):4531            try:4532                self.bodystart = int(attrs.get('bodystart').value)4533            except ValueError, exp:4534                raise ValueError('Bad integer attribute (bodystart): %s' % exp)4535        if attrs.get('line'):4536            try:4537                self.line = int(attrs.get('line').value)4538            except ValueError, exp:4539                raise ValueError('Bad integer attribute (line): %s' % exp)4540        if attrs.get('bodyend'):4541            try:4542                self.bodyend = int(attrs.get('bodyend').value)4543            except ValueError, exp:4544                raise ValueError('Bad integer attribute (bodyend): %s' % exp)4545        if attrs.get('bodyfile'):4546            self.bodyfile = attrs.get('bodyfile').value4547        if attrs.get('file'):4548            self.file = attrs.get('file').value4549    def buildChildren(self, child_, nodeName_):4550        if child_.nodeType == Node.TEXT_NODE:4551            self.valueOf_ += child_.nodeValue4552        elif child_.nodeType == Node.CDATA_SECTION_NODE:4553            self.valueOf_ += '![CDATA['+child_.nodeValue+']]'4554# end class locationType4555class docSect1Type(GeneratedsSuper):4556    subclass = None4557    superclass = None4558    def __init__(self, id=None, title=None, para=None, sect2=None, internal=None, mixedclass_=None, content_=None):4559        self.id = id4560        if mixedclass_ is None:4561            self.mixedclass_ = MixedContainer4562        else:4563            self.mixedclass_ = mixedclass_4564        if content_ is None:4565            self.content_ = []4566        else:4567            self.content_ = content_4568    def factory(*args_, **kwargs_):4569        if docSect1Type.subclass:4570            return docSect1Type.subclass(*args_, **kwargs_)4571        else:4572            return docSect1Type(*args_, **kwargs_)4573    factory = staticmethod(factory)4574    def get_title(self): return self.title4575    def set_title(self, title): self.title = title4576    def get_para(self): return self.para4577    def set_para(self, para): self.para = para4578    def add_para(self, value): self.para.append(value)4579    def insert_para(self, index, value): self.para[index] = value4580    def get_sect2(self): return self.sect24581    def set_sect2(self, sect2): self.sect2 = sect24582    def add_sect2(self, value): self.sect2.append(value)4583    def insert_sect2(self, index, value): self.sect2[index] = value4584    def get_internal(self): return self.internal4585    def set_internal(self, internal): self.internal = internal4586    def get_id(self): return self.id4587    def set_id(self, id): self.id = id4588    def export(self, outfile, level, namespace_='', name_='docSect1Type', namespacedef_=''):4589        showIndent(outfile, level)4590        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))4591        self.exportAttributes(outfile, level, namespace_, name_='docSect1Type')4592        outfile.write('>')4593        self.exportChildren(outfile, level + 1, namespace_, name_)4594        outfile.write('</%s%s>\n' % (namespace_, name_))4595    def exportAttributes(self, outfile, level, namespace_='', name_='docSect1Type'):4596        if self.id is not None:4597            outfile.write(' id=%s' % (self.format_string(quote_attrib(self.id).encode(ExternalEncoding), input_name='id'), ))4598    def exportChildren(self, outfile, level, namespace_='', name_='docSect1Type'):4599        for item_ in self.content_:4600            item_.export(outfile, level, item_.name, namespace_)4601    def hasContent_(self):4602        if (4603            self.title is not None or4604            self.para is not None or4605            self.sect2 is not None or4606            self.internal is not None4607            ):4608            return True4609        else:4610            return False4611    def exportLiteral(self, outfile, level, name_='docSect1Type'):4612        level += 14613        self.exportLiteralAttributes(outfile, level, name_)4614        if self.hasContent_():4615            self.exportLiteralChildren(outfile, level, name_)4616    def exportLiteralAttributes(self, outfile, level, name_):4617        if self.id is not None:4618            showIndent(outfile, level)4619            outfile.write('id = %s,\n' % (self.id,))4620    def exportLiteralChildren(self, outfile, level, name_):4621        showIndent(outfile, level)4622        outfile.write('content_ = [\n')4623        for item_ in self.content_:4624            item_.exportLiteral(outfile, level, name_)4625        showIndent(outfile, level)4626        outfile.write('],\n')4627        showIndent(outfile, level)4628        outfile.write('content_ = [\n')4629        for item_ in self.content_:4630            item_.exportLiteral(outfile, level, name_)4631        showIndent(outfile, level)4632        outfile.write('],\n')4633        showIndent(outfile, level)4634        outfile.write('content_ = [\n')4635        for item_ in self.content_:4636            item_.exportLiteral(outfile, level, name_)4637        showIndent(outfile, level)4638        outfile.write('],\n')4639        showIndent(outfile, level)4640        outfile.write('content_ = [\n')4641        for item_ in self.content_:4642            item_.exportLiteral(outfile, level, name_)4643        showIndent(outfile, level)4644        outfile.write('],\n')4645    def build(self, node_):4646        attrs = node_.attributes4647        self.buildAttributes(attrs)4648        for child_ in node_.childNodes:4649            nodeName_ = child_.nodeName.split(':')[-1]4650            self.buildChildren(child_, nodeName_)4651    def buildAttributes(self, attrs):4652        if attrs.get('id'):4653            self.id = attrs.get('id').value4654    def buildChildren(self, child_, nodeName_):4655        if child_.nodeType == Node.ELEMENT_NODE and \4656            nodeName_ == 'title':4657            childobj_ = docTitleType.factory()4658            childobj_.build(child_)4659            obj_ = self.mixedclass_(MixedContainer.CategoryComplex,4660                MixedContainer.TypeNone, 'title', childobj_)4661            self.content_.append(obj_)4662        elif child_.nodeType == Node.ELEMENT_NODE and \4663            nodeName_ == 'para':4664            childobj_ = docParaType.factory()4665            childobj_.build(child_)4666            obj_ = self.mixedclass_(MixedContainer.CategoryComplex,4667                MixedContainer.TypeNone, 'para', childobj_)4668            self.content_.append(obj_)4669        elif child_.nodeType == Node.ELEMENT_NODE and \4670            nodeName_ == 'sect2':4671            childobj_ = docSect2Type.factory()4672            childobj_.build(child_)4673            obj_ = self.mixedclass_(MixedContainer.CategoryComplex,4674                MixedContainer.TypeNone, 'sect2', childobj_)4675            self.content_.append(obj_)4676        elif child_.nodeType == Node.ELEMENT_NODE and \4677            nodeName_ == 'internal':4678            childobj_ = docInternalS1Type.factory()4679            childobj_.build(child_)4680            obj_ = self.mixedclass_(MixedContainer.CategoryComplex,4681                MixedContainer.TypeNone, 'internal', childobj_)4682            self.content_.append(obj_)4683        elif child_.nodeType == Node.TEXT_NODE:4684            obj_ = self.mixedclass_(MixedContainer.CategoryText,4685                MixedContainer.TypeNone, '', child_.nodeValue)4686            self.content_.append(obj_)4687# end class docSect1Type4688class docSect2Type(GeneratedsSuper):4689    subclass = None4690    superclass = None4691    def __init__(self, id=None, title=None, para=None, sect3=None, internal=None, mixedclass_=None, content_=None):4692        self.id = id4693        if mixedclass_ is None:4694            self.mixedclass_ = MixedContainer4695        else:4696            self.mixedclass_ = mixedclass_4697        if content_ is None:4698            self.content_ = []4699        else:4700            self.content_ = content_4701    def factory(*args_, **kwargs_):4702        if docSect2Type.subclass:4703            return docSect2Type.subclass(*args_, **kwargs_)4704        else:4705            return docSect2Type(*args_, **kwargs_)4706    factory = staticmethod(factory)4707    def get_title(self): return self.title4708    def set_title(self, title): self.title = title4709    def get_para(self): return self.para4710    def set_para(self, para): self.para = para4711    def add_para(self, value): self.para.append(value)4712    def insert_para(self, index, value): self.para[index] = value4713    def get_sect3(self): return self.sect34714    def set_sect3(self, sect3): self.sect3 = sect34715    def add_sect3(self, value): self.sect3.append(value)4716    def insert_sect3(self, index, value): self.sect3[index] = value4717    def get_internal(self): return self.internal4718    def set_internal(self, internal): self.internal = internal4719    def get_id(self): return self.id4720    def set_id(self, id): self.id = id4721    def export(self, outfile, level, namespace_='', name_='docSect2Type', namespacedef_=''):4722        showIndent(outfile, level)4723        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))4724        self.exportAttributes(outfile, level, namespace_, name_='docSect2Type')4725        outfile.write('>')4726        self.exportChildren(outfile, level + 1, namespace_, name_)4727        outfile.write('</%s%s>\n' % (namespace_, name_))4728    def exportAttributes(self, outfile, level, namespace_='', name_='docSect2Type'):4729        if self.id is not None:4730            outfile.write(' id=%s' % (self.format_string(quote_attrib(self.id).encode(ExternalEncoding), input_name='id'), ))4731    def exportChildren(self, outfile, level, namespace_='', name_='docSect2Type'):4732        for item_ in self.content_:4733            item_.export(outfile, level, item_.name, namespace_)4734    def hasContent_(self):4735        if (4736            self.title is not None or4737            self.para is not None or4738            self.sect3 is not None or4739            self.internal is not None4740            ):4741            return True4742        else:4743            return False4744    def exportLiteral(self, outfile, level, name_='docSect2Type'):4745        level += 14746        self.exportLiteralAttributes(outfile, level, name_)4747        if self.hasContent_():4748            self.exportLiteralChildren(outfile, level, name_)4749    def exportLiteralAttributes(self, outfile, level, name_):4750        if self.id is not None:4751            showIndent(outfile, level)4752            outfile.write('id = %s,\n' % (self.id,))4753    def exportLiteralChildren(self, outfile, level, name_):4754        showIndent(outfile, level)4755        outfile.write('content_ = [\n')4756        for item_ in self.content_:4757            item_.exportLiteral(outfile, level, name_)4758        showIndent(outfile, level)4759        outfile.write('],\n')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    def build(self, node_):4779        attrs = node_.attributes4780        self.buildAttributes(attrs)4781        for child_ in node_.childNodes:4782            nodeName_ = child_.nodeName.split(':')[-1]4783            self.buildChildren(child_, nodeName_)4784    def buildAttributes(self, attrs):4785        if attrs.get('id'):4786            self.id = attrs.get('id').value4787    def buildChildren(self, child_, nodeName_):4788        if child_.nodeType == Node.ELEMENT_NODE and \4789            nodeName_ == 'title':4790            childobj_ = docTitleType.factory()4791            childobj_.build(child_)4792            obj_ = self.mixedclass_(MixedContainer.CategoryComplex,4793                MixedContainer.TypeNone, 'title', childobj_)4794            self.content_.append(obj_)4795        elif child_.nodeType == Node.ELEMENT_NODE and \4796            nodeName_ == 'para':4797            childobj_ = docParaType.factory()4798            childobj_.build(child_)4799            obj_ = self.mixedclass_(MixedContainer.CategoryComplex,4800                MixedContainer.TypeNone, 'para', childobj_)4801            self.content_.append(obj_)4802        elif child_.nodeType == Node.ELEMENT_NODE and \4803            nodeName_ == 'sect3':4804            childobj_ = docSect3Type.factory()4805            childobj_.build(child_)4806            obj_ = self.mixedclass_(MixedContainer.CategoryComplex,4807                MixedContainer.TypeNone, 'sect3', childobj_)4808            self.content_.append(obj_)4809        elif child_.nodeType == Node.ELEMENT_NODE and \4810            nodeName_ == 'internal':4811            childobj_ = docInternalS2Type.factory()4812            childobj_.build(child_)4813            obj_ = self.mixedclass_(MixedContainer.CategoryComplex,4814                MixedContainer.TypeNone, 'internal', childobj_)4815            self.content_.append(obj_)4816        elif child_.nodeType == Node.TEXT_NODE:4817            obj_ = self.mixedclass_(MixedContainer.CategoryText,4818                MixedContainer.TypeNone, '', child_.nodeValue)4819            self.content_.append(obj_)4820# end class docSect2Type4821class docSect3Type(GeneratedsSuper):4822    subclass = None4823    superclass = None4824    def __init__(self, id=None, title=None, para=None, sect4=None, internal=None, mixedclass_=None, content_=None):4825        self.id = id4826        if mixedclass_ is None:4827            self.mixedclass_ = MixedContainer4828        else:4829            self.mixedclass_ = mixedclass_4830        if content_ is None:4831            self.content_ = []4832        else:4833            self.content_ = content_4834    def factory(*args_, **kwargs_):4835        if docSect3Type.subclass:4836            return docSect3Type.subclass(*args_, **kwargs_)4837        else:4838            return docSect3Type(*args_, **kwargs_)4839    factory = staticmethod(factory)4840    def get_title(self): return self.title4841    def set_title(self, title): self.title = title4842    def get_para(self): return self.para4843    def set_para(self, para): self.para = para4844    def add_para(self, value): self.para.append(value)4845    def insert_para(self, index, value): self.para[index] = value4846    def get_sect4(self): return self.sect44847    def set_sect4(self, sect4): self.sect4 = sect44848    def add_sect4(self, value): self.sect4.append(value)4849    def insert_sect4(self, index, value): self.sect4[index] = value4850    def get_internal(self): return self.internal4851    def set_internal(self, internal): self.internal = internal4852    def get_id(self): return self.id4853    def set_id(self, id): self.id = id4854    def export(self, outfile, level, namespace_='', name_='docSect3Type', namespacedef_=''):4855        showIndent(outfile, level)4856        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))4857        self.exportAttributes(outfile, level, namespace_, name_='docSect3Type')4858        outfile.write('>')4859        self.exportChildren(outfile, level + 1, namespace_, name_)4860        outfile.write('</%s%s>\n' % (namespace_, name_))4861    def exportAttributes(self, outfile, level, namespace_='', name_='docSect3Type'):4862        if self.id is not None:4863            outfile.write(' id=%s' % (self.format_string(quote_attrib(self.id).encode(ExternalEncoding), input_name='id'), ))4864    def exportChildren(self, outfile, level, namespace_='', name_='docSect3Type'):4865        for item_ in self.content_:4866            item_.export(outfile, level, item_.name, namespace_)4867    def hasContent_(self):4868        if (4869            self.title is not None or4870            self.para is not None or4871            self.sect4 is not None or4872            self.internal is not None4873            ):4874            return True4875        else:4876            return False4877    def exportLiteral(self, outfile, level, name_='docSect3Type'):4878        level += 14879        self.exportLiteralAttributes(outfile, level, name_)4880        if self.hasContent_():4881            self.exportLiteralChildren(outfile, level, name_)4882    def exportLiteralAttributes(self, outfile, level, name_):4883        if self.id is not None:4884            showIndent(outfile, level)4885            outfile.write('id = %s,\n' % (self.id,))4886    def exportLiteralChildren(self, outfile, level, name_):4887        showIndent(outfile, level)4888        outfile.write('content_ = [\n')4889        for item_ in self.content_:4890            item_.exportLiteral(outfile, level, name_)4891        showIndent(outfile, level)4892        outfile.write('],\n')4893        showIndent(outfile, level)4894        outfile.write('content_ = [\n')4895        for item_ in self.content_:4896            item_.exportLiteral(outfile, level, name_)4897        showIndent(outfile, level)4898        outfile.write('],\n')4899        showIndent(outfile, level)4900        outfile.write('content_ = [\n')4901        for item_ in self.content_:4902            item_.exportLiteral(outfile, level, name_)4903        showIndent(outfile, level)4904        outfile.write('],\n')4905        showIndent(outfile, level)4906        outfile.write('content_ = [\n')4907        for item_ in self.content_:4908            item_.exportLiteral(outfile, level, name_)4909        showIndent(outfile, level)4910        outfile.write('],\n')4911    def build(self, node_):4912        attrs = node_.attributes4913        self.buildAttributes(attrs)4914        for child_ in node_.childNodes:4915            nodeName_ = child_.nodeName.split(':')[-1]4916            self.buildChildren(child_, nodeName_)4917    def buildAttributes(self, attrs):4918        if attrs.get('id'):4919            self.id = attrs.get('id').value4920    def buildChildren(self, child_, nodeName_):4921        if child_.nodeType == Node.ELEMENT_NODE and \4922            nodeName_ == 'title':4923            childobj_ = docTitleType.factory()4924            childobj_.build(child_)4925            obj_ = self.mixedclass_(MixedContainer.CategoryComplex,4926                MixedContainer.TypeNone, 'title', childobj_)4927            self.content_.append(obj_)4928        elif child_.nodeType == Node.ELEMENT_NODE and \4929            nodeName_ == 'para':4930            childobj_ = docParaType.factory()4931            childobj_.build(child_)4932            obj_ = self.mixedclass_(MixedContainer.CategoryComplex,4933                MixedContainer.TypeNone, 'para', childobj_)4934            self.content_.append(obj_)4935        elif child_.nodeType == Node.ELEMENT_NODE and \4936            nodeName_ == 'sect4':4937            childobj_ = docSect4Type.factory()4938            childobj_.build(child_)4939            obj_ = self.mixedclass_(MixedContainer.CategoryComplex,4940                MixedContainer.TypeNone, 'sect4', childobj_)4941            self.content_.append(obj_)4942        elif child_.nodeType == Node.ELEMENT_NODE and \4943            nodeName_ == 'internal':4944            childobj_ = docInternalS3Type.factory()4945            childobj_.build(child_)4946            obj_ = self.mixedclass_(MixedContainer.CategoryComplex,4947                MixedContainer.TypeNone, 'internal', childobj_)4948            self.content_.append(obj_)4949        elif child_.nodeType == Node.TEXT_NODE:4950            obj_ = self.mixedclass_(MixedContainer.CategoryText,4951                MixedContainer.TypeNone, '', child_.nodeValue)4952            self.content_.append(obj_)4953# end class docSect3Type4954class docSect4Type(GeneratedsSuper):4955    subclass = None4956    superclass = None4957    def __init__(self, id=None, title=None, para=None, internal=None, mixedclass_=None, content_=None):4958        self.id = id4959        if mixedclass_ is None:4960            self.mixedclass_ = MixedContainer4961        else:4962            self.mixedclass_ = mixedclass_4963        if content_ is None:4964            self.content_ = []4965        else:4966            self.content_ = content_4967    def factory(*args_, **kwargs_):4968        if docSect4Type.subclass:4969            return docSect4Type.subclass(*args_, **kwargs_)4970        else:4971            return docSect4Type(*args_, **kwargs_)4972    factory = staticmethod(factory)4973    def get_title(self): return self.title4974    def set_title(self, title): self.title = title4975    def get_para(self): return self.para4976    def set_para(self, para): self.para = para4977    def add_para(self, value): self.para.append(value)4978    def insert_para(self, index, value): self.para[index] = value4979    def get_internal(self): return self.internal4980    def set_internal(self, internal): self.internal = internal4981    def get_id(self): return self.id4982    def set_id(self, id): self.id = id4983    def export(self, outfile, level, namespace_='', name_='docSect4Type', namespacedef_=''):4984        showIndent(outfile, level)4985        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))4986        self.exportAttributes(outfile, level, namespace_, name_='docSect4Type')4987        outfile.write('>')4988        self.exportChildren(outfile, level + 1, namespace_, name_)4989        outfile.write('</%s%s>\n' % (namespace_, name_))4990    def exportAttributes(self, outfile, level, namespace_='', name_='docSect4Type'):4991        if self.id is not None:4992            outfile.write(' id=%s' % (self.format_string(quote_attrib(self.id).encode(ExternalEncoding), input_name='id'), ))4993    def exportChildren(self, outfile, level, namespace_='', name_='docSect4Type'):4994        for item_ in self.content_:4995            item_.export(outfile, level, item_.name, namespace_)4996    def hasContent_(self):4997        if (4998            self.title is not None or4999            self.para is not None or5000            self.internal is not None5001            ):5002            return True5003        else:5004            return False5005    def exportLiteral(self, outfile, level, name_='docSect4Type'):5006        level += 15007        self.exportLiteralAttributes(outfile, level, name_)5008        if self.hasContent_():5009            self.exportLiteralChildren(outfile, level, name_)5010    def exportLiteralAttributes(self, outfile, level, name_):5011        if self.id is not None:5012            showIndent(outfile, level)5013            outfile.write('id = %s,\n' % (self.id,))5014    def exportLiteralChildren(self, outfile, level, name_):5015        showIndent(outfile, level)5016        outfile.write('content_ = [\n')5017        for item_ in self.content_:5018            item_.exportLiteral(outfile, level, name_)5019        showIndent(outfile, level)5020        outfile.write('],\n')5021        showIndent(outfile, level)5022        outfile.write('content_ = [\n')5023        for item_ in self.content_:5024            item_.exportLiteral(outfile, level, name_)5025        showIndent(outfile, level)5026        outfile.write('],\n')5027        showIndent(outfile, level)5028        outfile.write('content_ = [\n')5029        for item_ in self.content_:5030            item_.exportLiteral(outfile, level, name_)5031        showIndent(outfile, level)5032        outfile.write('],\n')5033    def build(self, node_):5034        attrs = node_.attributes5035        self.buildAttributes(attrs)5036        for child_ in node_.childNodes:5037            nodeName_ = child_.nodeName.split(':')[-1]5038            self.buildChildren(child_, nodeName_)5039    def buildAttributes(self, attrs):5040        if attrs.get('id'):5041            self.id = attrs.get('id').value5042    def buildChildren(self, child_, nodeName_):5043        if child_.nodeType == Node.ELEMENT_NODE and \5044            nodeName_ == 'title':5045            childobj_ = docTitleType.factory()5046            childobj_.build(child_)5047            obj_ = self.mixedclass_(MixedContainer.CategoryComplex,5048                MixedContainer.TypeNone, 'title', childobj_)5049            self.content_.append(obj_)5050        elif child_.nodeType == Node.ELEMENT_NODE and \5051            nodeName_ == 'para':5052            childobj_ = docParaType.factory()5053            childobj_.build(child_)5054            obj_ = self.mixedclass_(MixedContainer.CategoryComplex,5055                MixedContainer.TypeNone, 'para', childobj_)5056            self.content_.append(obj_)5057        elif child_.nodeType == Node.ELEMENT_NODE and \5058            nodeName_ == 'internal':5059            childobj_ = docInternalS4Type.factory()5060            childobj_.build(child_)5061            obj_ = self.mixedclass_(MixedContainer.CategoryComplex,5062                MixedContainer.TypeNone, 'internal', childobj_)5063            self.content_.append(obj_)5064        elif child_.nodeType == Node.TEXT_NODE:5065            obj_ = self.mixedclass_(MixedContainer.CategoryText,5066                MixedContainer.TypeNone, '', child_.nodeValue)5067            self.content_.append(obj_)5068# end class docSect4Type5069class docInternalType(GeneratedsSuper):5070    subclass = None5071    superclass = None5072    def __init__(self, para=None, sect1=None, mixedclass_=None, content_=None):5073        if mixedclass_ is None:5074            self.mixedclass_ = MixedContainer5075        else:5076            self.mixedclass_ = mixedclass_5077        if content_ is None:5078            self.content_ = []5079        else:5080            self.content_ = content_5081    def factory(*args_, **kwargs_):5082        if docInternalType.subclass:5083            return docInternalType.subclass(*args_, **kwargs_)5084        else:5085            return docInternalType(*args_, **kwargs_)5086    factory = staticmethod(factory)5087    def get_para(self): return self.para5088    def set_para(self, para): self.para = para5089    def add_para(self, value): self.para.append(value)5090    def insert_para(self, index, value): self.para[index] = value5091    def get_sect1(self): return self.sect15092    def set_sect1(self, sect1): self.sect1 = sect15093    def add_sect1(self, value): self.sect1.append(value)5094    def insert_sect1(self, index, value): self.sect1[index] = value5095    def export(self, outfile, level, namespace_='', name_='docInternalType', namespacedef_=''):5096        showIndent(outfile, level)5097        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))5098        self.exportAttributes(outfile, level, namespace_, name_='docInternalType')5099        outfile.write('>')5100        self.exportChildren(outfile, level + 1, namespace_, name_)5101        outfile.write('</%s%s>\n' % (namespace_, name_))5102    def exportAttributes(self, outfile, level, namespace_='', name_='docInternalType'):5103        pass5104    def exportChildren(self, outfile, level, namespace_='', name_='docInternalType'):5105        for item_ in self.content_:5106            item_.export(outfile, level, item_.name, namespace_)5107    def hasContent_(self):5108        if (5109            self.para is not None or5110            self.sect1 is not None5111            ):5112            return True5113        else:5114            return False5115    def exportLiteral(self, outfile, level, name_='docInternalType'):5116        level += 15117        self.exportLiteralAttributes(outfile, level, name_)5118        if self.hasContent_():5119            self.exportLiteralChildren(outfile, level, name_)5120    def exportLiteralAttributes(self, outfile, level, name_):5121        pass5122    def exportLiteralChildren(self, outfile, level, name_):5123        showIndent(outfile, level)5124        outfile.write('content_ = [\n')5125        for item_ in self.content_:5126            item_.exportLiteral(outfile, level, name_)5127        showIndent(outfile, level)5128        outfile.write('],\n')5129        showIndent(outfile, level)5130        outfile.write('content_ = [\n')5131        for item_ in self.content_:5132            item_.exportLiteral(outfile, level, name_)5133        showIndent(outfile, level)5134        outfile.write('],\n')5135    def build(self, node_):5136        attrs = node_.attributes5137        self.buildAttributes(attrs)5138        for child_ in node_.childNodes:5139            nodeName_ = child_.nodeName.split(':')[-1]5140            self.buildChildren(child_, nodeName_)5141    def buildAttributes(self, attrs):5142        pass5143    def buildChildren(self, child_, nodeName_):5144        if child_.nodeType == Node.ELEMENT_NODE and \5145            nodeName_ == 'para':5146            childobj_ = docParaType.factory()5147            childobj_.build(child_)5148            obj_ = self.mixedclass_(MixedContainer.CategoryComplex,5149                MixedContainer.TypeNone, 'para', childobj_)5150            self.content_.append(obj_)5151        elif child_.nodeType == Node.ELEMENT_NODE and \5152            nodeName_ == 'sect1':5153            childobj_ = docSect1Type.factory()5154            childobj_.build(child_)5155            obj_ = self.mixedclass_(MixedContainer.CategoryComplex,5156                MixedContainer.TypeNone, 'sect1', childobj_)5157            self.content_.append(obj_)5158        elif child_.nodeType == Node.TEXT_NODE:5159            obj_ = self.mixedclass_(MixedContainer.CategoryText,5160                MixedContainer.TypeNone, '', child_.nodeValue)5161            self.content_.append(obj_)5162# end class docInternalType5163class docInternalS1Type(GeneratedsSuper):5164    subclass = None5165    superclass = None5166    def __init__(self, para=None, sect2=None, mixedclass_=None, content_=None):5167        if mixedclass_ is None:5168            self.mixedclass_ = MixedContainer5169        else:5170            self.mixedclass_ = mixedclass_5171        if content_ is None:5172            self.content_ = []5173        else:5174            self.content_ = content_5175    def factory(*args_, **kwargs_):5176        if docInternalS1Type.subclass:5177            return docInternalS1Type.subclass(*args_, **kwargs_)5178        else:5179            return docInternalS1Type(*args_, **kwargs_)5180    factory = staticmethod(factory)5181    def get_para(self): return self.para5182    def set_para(self, para): self.para = para5183    def add_para(self, value): self.para.append(value)5184    def insert_para(self, index, value): self.para[index] = value5185    def get_sect2(self): return self.sect25186    def set_sect2(self, sect2): self.sect2 = sect25187    def add_sect2(self, value): self.sect2.append(value)5188    def insert_sect2(self, index, value): self.sect2[index] = value5189    def export(self, outfile, level, namespace_='', name_='docInternalS1Type', namespacedef_=''):5190        showIndent(outfile, level)5191        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))5192        self.exportAttributes(outfile, level, namespace_, name_='docInternalS1Type')5193        outfile.write('>')5194        self.exportChildren(outfile, level + 1, namespace_, name_)5195        outfile.write('</%s%s>\n' % (namespace_, name_))5196    def exportAttributes(self, outfile, level, namespace_='', name_='docInternalS1Type'):5197        pass5198    def exportChildren(self, outfile, level, namespace_='', name_='docInternalS1Type'):5199        for item_ in self.content_:5200            item_.export(outfile, level, item_.name, namespace_)5201    def hasContent_(self):5202        if (5203            self.para is not None or5204            self.sect2 is not None5205            ):5206            return True5207        else:5208            return False5209    def exportLiteral(self, outfile, level, name_='docInternalS1Type'):5210        level += 15211        self.exportLiteralAttributes(outfile, level, name_)5212        if self.hasContent_():5213            self.exportLiteralChildren(outfile, level, name_)5214    def exportLiteralAttributes(self, outfile, level, name_):5215        pass5216    def exportLiteralChildren(self, outfile, level, name_):5217        showIndent(outfile, level)5218        outfile.write('content_ = [\n')5219        for item_ in self.content_:5220            item_.exportLiteral(outfile, level, name_)5221        showIndent(outfile, level)5222        outfile.write('],\n')5223        showIndent(outfile, level)5224        outfile.write('content_ = [\n')5225        for item_ in self.content_:5226            item_.exportLiteral(outfile, level, name_)5227        showIndent(outfile, level)5228        outfile.write('],\n')5229    def build(self, node_):5230        attrs = node_.attributes5231        self.buildAttributes(attrs)5232        for child_ in node_.childNodes:5233            nodeName_ = child_.nodeName.split(':')[-1]5234            self.buildChildren(child_, nodeName_)5235    def buildAttributes(self, attrs):5236        pass5237    def buildChildren(self, child_, nodeName_):5238        if child_.nodeType == Node.ELEMENT_NODE and \5239            nodeName_ == 'para':5240            childobj_ = docParaType.factory()5241            childobj_.build(child_)5242            obj_ = self.mixedclass_(MixedContainer.CategoryComplex,5243                MixedContainer.TypeNone, 'para', childobj_)5244            self.content_.append(obj_)5245        elif child_.nodeType == Node.ELEMENT_NODE and \5246            nodeName_ == 'sect2':5247            childobj_ = docSect2Type.factory()5248            childobj_.build(child_)5249            obj_ = self.mixedclass_(MixedContainer.CategoryComplex,5250                MixedContainer.TypeNone, 'sect2', childobj_)5251            self.content_.append(obj_)5252        elif child_.nodeType == Node.TEXT_NODE:5253            obj_ = self.mixedclass_(MixedContainer.CategoryText,5254                MixedContainer.TypeNone, '', child_.nodeValue)5255            self.content_.append(obj_)5256# end class docInternalS1Type5257class docInternalS2Type(GeneratedsSuper):5258    subclass = None5259    superclass = None5260    def __init__(self, para=None, sect3=None, mixedclass_=None, content_=None):5261        if mixedclass_ is None:5262            self.mixedclass_ = MixedContainer5263        else:5264            self.mixedclass_ = mixedclass_5265        if content_ is None:5266            self.content_ = []5267        else:5268            self.content_ = content_5269    def factory(*args_, **kwargs_):5270        if docInternalS2Type.subclass:5271            return docInternalS2Type.subclass(*args_, **kwargs_)5272        else:5273            return docInternalS2Type(*args_, **kwargs_)5274    factory = staticmethod(factory)5275    def get_para(self): return self.para5276    def set_para(self, para): self.para = para5277    def add_para(self, value): self.para.append(value)5278    def insert_para(self, index, value): self.para[index] = value5279    def get_sect3(self): return self.sect35280    def set_sect3(self, sect3): self.sect3 = sect35281    def add_sect3(self, value): self.sect3.append(value)5282    def insert_sect3(self, index, value): self.sect3[index] = value5283    def export(self, outfile, level, namespace_='', name_='docInternalS2Type', namespacedef_=''):5284        showIndent(outfile, level)5285        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))5286        self.exportAttributes(outfile, level, namespace_, name_='docInternalS2Type')5287        outfile.write('>')5288        self.exportChildren(outfile, level + 1, namespace_, name_)5289        outfile.write('</%s%s>\n' % (namespace_, name_))5290    def exportAttributes(self, outfile, level, namespace_='', name_='docInternalS2Type'):5291        pass5292    def exportChildren(self, outfile, level, namespace_='', name_='docInternalS2Type'):5293        for item_ in self.content_:5294            item_.export(outfile, level, item_.name, namespace_)5295    def hasContent_(self):5296        if (5297            self.para is not None or5298            self.sect3 is not None5299            ):5300            return True5301        else:5302            return False5303    def exportLiteral(self, outfile, level, name_='docInternalS2Type'):5304        level += 15305        self.exportLiteralAttributes(outfile, level, name_)5306        if self.hasContent_():5307            self.exportLiteralChildren(outfile, level, name_)5308    def exportLiteralAttributes(self, outfile, level, name_):5309        pass5310    def exportLiteralChildren(self, outfile, level, name_):5311        showIndent(outfile, level)5312        outfile.write('content_ = [\n')5313        for item_ in self.content_:5314            item_.exportLiteral(outfile, level, name_)5315        showIndent(outfile, level)5316        outfile.write('],\n')5317        showIndent(outfile, level)5318        outfile.write('content_ = [\n')5319        for item_ in self.content_:5320            item_.exportLiteral(outfile, level, name_)5321        showIndent(outfile, level)5322        outfile.write('],\n')5323    def build(self, node_):5324        attrs = node_.attributes5325        self.buildAttributes(attrs)5326        for child_ in node_.childNodes:5327            nodeName_ = child_.nodeName.split(':')[-1]5328            self.buildChildren(child_, nodeName_)5329    def buildAttributes(self, attrs):5330        pass5331    def buildChildren(self, child_, nodeName_):5332        if child_.nodeType == Node.ELEMENT_NODE and \5333            nodeName_ == 'para':5334            childobj_ = docParaType.factory()5335            childobj_.build(child_)5336            obj_ = self.mixedclass_(MixedContainer.CategoryComplex,5337                MixedContainer.TypeNone, 'para', childobj_)5338            self.content_.append(obj_)5339        elif child_.nodeType == Node.ELEMENT_NODE and \5340            nodeName_ == 'sect3':5341            childobj_ = docSect3Type.factory()5342            childobj_.build(child_)5343            obj_ = self.mixedclass_(MixedContainer.CategoryComplex,5344                MixedContainer.TypeNone, 'sect3', childobj_)5345            self.content_.append(obj_)5346        elif child_.nodeType == Node.TEXT_NODE:5347            obj_ = self.mixedclass_(MixedContainer.CategoryText,5348                MixedContainer.TypeNone, '', child_.nodeValue)5349            self.content_.append(obj_)5350# end class docInternalS2Type5351class docInternalS3Type(GeneratedsSuper):5352    subclass = None5353    superclass = None5354    def __init__(self, para=None, sect3=None, mixedclass_=None, content_=None):5355        if mixedclass_ is None:5356            self.mixedclass_ = MixedContainer5357        else:5358            self.mixedclass_ = mixedclass_5359        if content_ is None:5360            self.content_ = []5361        else:5362            self.content_ = content_5363    def factory(*args_, **kwargs_):5364        if docInternalS3Type.subclass:5365            return docInternalS3Type.subclass(*args_, **kwargs_)5366        else:5367            return docInternalS3Type(*args_, **kwargs_)5368    factory = staticmethod(factory)5369    def get_para(self): return self.para5370    def set_para(self, para): self.para = para5371    def add_para(self, value): self.para.append(value)5372    def insert_para(self, index, value): self.para[index] = value5373    def get_sect3(self): return self.sect35374    def set_sect3(self, sect3): self.sect3 = sect35375    def add_sect3(self, value): self.sect3.append(value)5376    def insert_sect3(self, index, value): self.sect3[index] = value5377    def export(self, outfile, level, namespace_='', name_='docInternalS3Type', namespacedef_=''):5378        showIndent(outfile, level)5379        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))5380        self.exportAttributes(outfile, level, namespace_, name_='docInternalS3Type')5381        outfile.write('>')5382        self.exportChildren(outfile, level + 1, namespace_, name_)5383        outfile.write('</%s%s>\n' % (namespace_, name_))5384    def exportAttributes(self, outfile, level, namespace_='', name_='docInternalS3Type'):5385        pass5386    def exportChildren(self, outfile, level, namespace_='', name_='docInternalS3Type'):5387        for item_ in self.content_:5388            item_.export(outfile, level, item_.name, namespace_)5389    def hasContent_(self):5390        if (5391            self.para is not None or5392            self.sect3 is not None5393            ):5394            return True5395        else:5396            return False5397    def exportLiteral(self, outfile, level, name_='docInternalS3Type'):5398        level += 15399        self.exportLiteralAttributes(outfile, level, name_)5400        if self.hasContent_():5401            self.exportLiteralChildren(outfile, level, name_)5402    def exportLiteralAttributes(self, outfile, level, name_):5403        pass5404    def exportLiteralChildren(self, outfile, level, name_):5405        showIndent(outfile, level)5406        outfile.write('content_ = [\n')5407        for item_ in self.content_:5408            item_.exportLiteral(outfile, level, name_)5409        showIndent(outfile, level)5410        outfile.write('],\n')5411        showIndent(outfile, level)5412        outfile.write('content_ = [\n')5413        for item_ in self.content_:5414            item_.exportLiteral(outfile, level, name_)5415        showIndent(outfile, level)5416        outfile.write('],\n')5417    def build(self, node_):5418        attrs = node_.attributes5419        self.buildAttributes(attrs)5420        for child_ in node_.childNodes:5421            nodeName_ = child_.nodeName.split(':')[-1]5422            self.buildChildren(child_, nodeName_)5423    def buildAttributes(self, attrs):5424        pass5425    def buildChildren(self, child_, nodeName_):5426        if child_.nodeType == Node.ELEMENT_NODE and \5427            nodeName_ == 'para':5428            childobj_ = docParaType.factory()5429            childobj_.build(child_)5430            obj_ = self.mixedclass_(MixedContainer.CategoryComplex,5431                MixedContainer.TypeNone, 'para', childobj_)5432            self.content_.append(obj_)5433        elif child_.nodeType == Node.ELEMENT_NODE and \5434            nodeName_ == 'sect3':5435            childobj_ = docSect4Type.factory()5436            childobj_.build(child_)5437            obj_ = self.mixedclass_(MixedContainer.CategoryComplex,5438                MixedContainer.TypeNone, 'sect3', childobj_)5439            self.content_.append(obj_)5440        elif child_.nodeType == Node.TEXT_NODE:5441            obj_ = self.mixedclass_(MixedContainer.CategoryText,5442                MixedContainer.TypeNone, '', child_.nodeValue)5443            self.content_.append(obj_)5444# end class docInternalS3Type5445class docInternalS4Type(GeneratedsSuper):5446    subclass = None5447    superclass = None5448    def __init__(self, para=None, mixedclass_=None, content_=None):5449        if mixedclass_ is None:5450            self.mixedclass_ = MixedContainer5451        else:5452            self.mixedclass_ = mixedclass_5453        if content_ is None:5454            self.content_ = []5455        else:5456            self.content_ = content_5457    def factory(*args_, **kwargs_):5458        if docInternalS4Type.subclass:5459            return docInternalS4Type.subclass(*args_, **kwargs_)5460        else:5461            return docInternalS4Type(*args_, **kwargs_)5462    factory = staticmethod(factory)5463    def get_para(self): return self.para5464    def set_para(self, para): self.para = para5465    def add_para(self, value): self.para.append(value)5466    def insert_para(self, index, value): self.para[index] = value5467    def export(self, outfile, level, namespace_='', name_='docInternalS4Type', namespacedef_=''):5468        showIndent(outfile, level)5469        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))5470        self.exportAttributes(outfile, level, namespace_, name_='docInternalS4Type')5471        outfile.write('>')5472        self.exportChildren(outfile, level + 1, namespace_, name_)5473        outfile.write('</%s%s>\n' % (namespace_, name_))5474    def exportAttributes(self, outfile, level, namespace_='', name_='docInternalS4Type'):5475        pass5476    def exportChildren(self, outfile, level, namespace_='', name_='docInternalS4Type'):5477        for item_ in self.content_:5478            item_.export(outfile, level, item_.name, namespace_)5479    def hasContent_(self):5480        if (5481            self.para is not None5482            ):5483            return True5484        else:5485            return False5486    def exportLiteral(self, outfile, level, name_='docInternalS4Type'):5487        level += 15488        self.exportLiteralAttributes(outfile, level, name_)5489        if self.hasContent_():5490            self.exportLiteralChildren(outfile, level, name_)5491    def exportLiteralAttributes(self, outfile, level, name_):5492        pass5493    def exportLiteralChildren(self, outfile, level, name_):5494        showIndent(outfile, level)5495        outfile.write('content_ = [\n')5496        for item_ in self.content_:5497            item_.exportLiteral(outfile, level, name_)5498        showIndent(outfile, level)5499        outfile.write('],\n')5500    def build(self, node_):5501        attrs = node_.attributes5502        self.buildAttributes(attrs)5503        for child_ in node_.childNodes:5504            nodeName_ = child_.nodeName.split(':')[-1]5505            self.buildChildren(child_, nodeName_)5506    def buildAttributes(self, attrs):5507        pass5508    def buildChildren(self, child_, nodeName_):5509        if child_.nodeType == Node.ELEMENT_NODE and \5510            nodeName_ == 'para':5511            childobj_ = docParaType.factory()5512            childobj_.build(child_)5513            obj_ = self.mixedclass_(MixedContainer.CategoryComplex,5514                MixedContainer.TypeNone, 'para', childobj_)5515            self.content_.append(obj_)5516        elif child_.nodeType == Node.TEXT_NODE:5517            obj_ = self.mixedclass_(MixedContainer.CategoryText,5518                MixedContainer.TypeNone, '', child_.nodeValue)5519            self.content_.append(obj_)5520# end class docInternalS4Type5521class docTitleType(GeneratedsSuper):5522    subclass = None5523    superclass = None5524    def __init__(self, valueOf_='', mixedclass_=None, content_=None):5525        if mixedclass_ is None:5526            self.mixedclass_ = MixedContainer5527        else:5528            self.mixedclass_ = mixedclass_5529        if content_ is None:5530            self.content_ = []5531        else:5532            self.content_ = content_5533    def factory(*args_, **kwargs_):5534        if docTitleType.subclass:5535            return docTitleType.subclass(*args_, **kwargs_)5536        else:5537            return docTitleType(*args_, **kwargs_)5538    factory = staticmethod(factory)5539    def getValueOf_(self): return self.valueOf_5540    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_5541    def export(self, outfile, level, namespace_='', name_='docTitleType', namespacedef_=''):5542        showIndent(outfile, level)5543        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))5544        self.exportAttributes(outfile, level, namespace_, name_='docTitleType')5545        outfile.write('>')5546        self.exportChildren(outfile, level + 1, namespace_, name_)5547        outfile.write('</%s%s>\n' % (namespace_, name_))5548    def exportAttributes(self, outfile, level, namespace_='', name_='docTitleType'):5549        pass5550    def exportChildren(self, outfile, level, namespace_='', name_='docTitleType'):5551        if self.valueOf_.find('![CDATA')>-1:5552            value=quote_xml('%s' % self.valueOf_)5553            value=value.replace('![CDATA','<![CDATA')5554            value=value.replace(']]',']]>')5555            outfile.write(value)5556        else:5557            outfile.write(quote_xml('%s' % self.valueOf_))5558    def hasContent_(self):5559        if (5560            self.valueOf_ is not None5561            ):5562            return True5563        else:5564            return False5565    def exportLiteral(self, outfile, level, name_='docTitleType'):5566        level += 15567        self.exportLiteralAttributes(outfile, level, name_)5568        if self.hasContent_():5569            self.exportLiteralChildren(outfile, level, name_)5570    def exportLiteralAttributes(self, outfile, level, name_):5571        pass5572    def exportLiteralChildren(self, outfile, level, name_):5573        showIndent(outfile, level)5574        outfile.write('valueOf_ = "%s",\n' % (self.valueOf_,))5575    def build(self, node_):5576        attrs = node_.attributes5577        self.buildAttributes(attrs)5578        self.valueOf_ = ''5579        for child_ in node_.childNodes:5580            nodeName_ = child_.nodeName.split(':')[-1]5581            self.buildChildren(child_, nodeName_)5582    def buildAttributes(self, attrs):5583        pass5584    def buildChildren(self, child_, nodeName_):5585        if child_.nodeType == Node.TEXT_NODE:5586            obj_ = self.mixedclass_(MixedContainer.CategoryText,5587                MixedContainer.TypeNone, '', child_.nodeValue)5588            self.content_.append(obj_)5589        if child_.nodeType == Node.TEXT_NODE:5590            self.valueOf_ += child_.nodeValue5591        elif child_.nodeType == Node.CDATA_SECTION_NODE:5592            self.valueOf_ += '![CDATA['+child_.nodeValue+']]'5593# end class docTitleType5594class docParaType(GeneratedsSuper):5595    subclass = None5596    superclass = None5597    def __init__(self, valueOf_='', mixedclass_=None, content_=None):5598        if mixedclass_ is None:5599            self.mixedclass_ = MixedContainer5600        else:5601            self.mixedclass_ = mixedclass_5602        if content_ is None:5603            self.content_ = []5604        else:5605            self.content_ = content_5606    def factory(*args_, **kwargs_):5607        if docParaType.subclass:5608            return docParaType.subclass(*args_, **kwargs_)5609        else:5610            return docParaType(*args_, **kwargs_)5611    factory = staticmethod(factory)5612    def getValueOf_(self): return self.valueOf_5613    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_5614    def export(self, outfile, level, namespace_='', name_='docParaType', namespacedef_=''):5615        showIndent(outfile, level)5616        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))5617        self.exportAttributes(outfile, level, namespace_, name_='docParaType')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_='docParaType'):5622        pass5623    def exportChildren(self, outfile, level, namespace_='', name_='docParaType'):5624        if self.valueOf_.find('![CDATA')>-1:5625            value=quote_xml('%s' % self.valueOf_)5626            value=value.replace('![CDATA','<![CDATA')5627            value=value.replace(']]',']]>')5628            outfile.write(value)5629        else:5630            outfile.write(quote_xml('%s' % self.valueOf_))5631    def hasContent_(self):5632        if (5633            self.valueOf_ is not None5634            ):5635            return True5636        else:5637            return False5638    def exportLiteral(self, outfile, level, name_='docParaType'):5639        level += 15640        self.exportLiteralAttributes(outfile, level, name_)5641        if self.hasContent_():5642            self.exportLiteralChildren(outfile, level, name_)5643    def exportLiteralAttributes(self, outfile, level, name_):5644        pass5645    def exportLiteralChildren(self, outfile, level, name_):5646        showIndent(outfile, level)5647        outfile.write('valueOf_ = "%s",\n' % (self.valueOf_,))5648    def build(self, node_):5649        attrs = node_.attributes5650        self.buildAttributes(attrs)5651        self.valueOf_ = ''5652        for child_ in node_.childNodes:5653            nodeName_ = child_.nodeName.split(':')[-1]5654            self.buildChildren(child_, nodeName_)5655    def buildAttributes(self, attrs):5656        pass5657    def buildChildren(self, child_, nodeName_):5658        if child_.nodeType == Node.TEXT_NODE:5659            obj_ = self.mixedclass_(MixedContainer.CategoryText,5660                MixedContainer.TypeNone, '', child_.nodeValue)5661            self.content_.append(obj_)5662        if child_.nodeType == Node.TEXT_NODE:5663            self.valueOf_ += child_.nodeValue5664        elif child_.nodeType == Node.CDATA_SECTION_NODE:5665            self.valueOf_ += '![CDATA['+child_.nodeValue+']]'5666# end class docParaType5667class docMarkupType(GeneratedsSuper):5668    subclass = None5669    superclass = None5670    def __init__(self, valueOf_='', mixedclass_=None, content_=None):5671        if mixedclass_ is None:5672            self.mixedclass_ = MixedContainer5673        else:5674            self.mixedclass_ = mixedclass_5675        if content_ is None:5676            self.content_ = []5677        else:5678            self.content_ = content_5679    def factory(*args_, **kwargs_):5680        if docMarkupType.subclass:5681            return docMarkupType.subclass(*args_, **kwargs_)5682        else:5683            return docMarkupType(*args_, **kwargs_)5684    factory = staticmethod(factory)5685    def getValueOf_(self): return self.valueOf_5686    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_5687    def export(self, outfile, level, namespace_='', name_='docMarkupType', namespacedef_=''):5688        showIndent(outfile, level)5689        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))5690        self.exportAttributes(outfile, level, namespace_, name_='docMarkupType')5691        outfile.write('>')5692        self.exportChildren(outfile, level + 1, namespace_, name_)5693        outfile.write('</%s%s>\n' % (namespace_, name_))5694    def exportAttributes(self, outfile, level, namespace_='', name_='docMarkupType'):5695        pass5696    def exportChildren(self, outfile, level, namespace_='', name_='docMarkupType'):5697        if self.valueOf_.find('![CDATA')>-1:5698            value=quote_xml('%s' % self.valueOf_)5699            value=value.replace('![CDATA','<![CDATA')5700            value=value.replace(']]',']]>')5701            outfile.write(value)5702        else:5703            outfile.write(quote_xml('%s' % self.valueOf_))5704    def hasContent_(self):5705        if (5706            self.valueOf_ is not None5707            ):5708            return True5709        else:5710            return False5711    def exportLiteral(self, outfile, level, name_='docMarkupType'):5712        level += 15713        self.exportLiteralAttributes(outfile, level, name_)5714        if self.hasContent_():5715            self.exportLiteralChildren(outfile, level, name_)5716    def exportLiteralAttributes(self, outfile, level, name_):5717        pass5718    def exportLiteralChildren(self, outfile, level, name_):5719        showIndent(outfile, level)5720        outfile.write('valueOf_ = "%s",\n' % (self.valueOf_,))5721    def build(self, node_):5722        attrs = node_.attributes5723        self.buildAttributes(attrs)5724        self.valueOf_ = ''5725        for child_ in node_.childNodes:5726            nodeName_ = child_.nodeName.split(':')[-1]5727            self.buildChildren(child_, nodeName_)5728    def buildAttributes(self, attrs):5729        pass5730    def buildChildren(self, child_, nodeName_):5731        if child_.nodeType == Node.TEXT_NODE:5732            obj_ = self.mixedclass_(MixedContainer.CategoryText,5733                MixedContainer.TypeNone, '', child_.nodeValue)5734            self.content_.append(obj_)5735        if child_.nodeType == Node.TEXT_NODE:5736            self.valueOf_ += child_.nodeValue5737        elif child_.nodeType == Node.CDATA_SECTION_NODE:5738            self.valueOf_ += '![CDATA['+child_.nodeValue+']]'5739# end class docMarkupType5740class docURLLink(GeneratedsSuper):5741    subclass = None5742    superclass = None5743    def __init__(self, url=None, valueOf_='', mixedclass_=None, content_=None):5744        self.url = url5745        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 docURLLink.subclass:5755            return docURLLink.subclass(*args_, **kwargs_)5756        else:5757            return docURLLink(*args_, **kwargs_)5758    factory = staticmethod(factory)5759    def get_url(self): return self.url5760    def set_url(self, url): self.url = url5761    def getValueOf_(self): return self.valueOf_5762    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_5763    def export(self, outfile, level, namespace_='', name_='docURLLink', namespacedef_=''):5764        showIndent(outfile, level)5765        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))5766        self.exportAttributes(outfile, level, namespace_, name_='docURLLink')5767        outfile.write('>')5768        self.exportChildren(outfile, level + 1, namespace_, name_)5769        outfile.write('</%s%s>\n' % (namespace_, name_))5770    def exportAttributes(self, outfile, level, namespace_='', name_='docURLLink'):5771        if self.url is not None:5772            outfile.write(' url=%s' % (self.format_string(quote_attrib(self.url).encode(ExternalEncoding), input_name='url'), ))5773    def exportChildren(self, outfile, level, namespace_='', name_='docURLLink'):5774        if self.valueOf_.find('![CDATA')>-1:5775            value=quote_xml('%s' % self.valueOf_)5776            value=value.replace('![CDATA','<![CDATA')5777            value=value.replace(']]',']]>')5778            outfile.write(value)5779        else:5780            outfile.write(quote_xml('%s' % self.valueOf_))5781    def hasContent_(self):5782        if (5783            self.valueOf_ is not None5784            ):5785            return True5786        else:5787            return False5788    def exportLiteral(self, outfile, level, name_='docURLLink'):5789        level += 15790        self.exportLiteralAttributes(outfile, level, name_)5791        if self.hasContent_():5792            self.exportLiteralChildren(outfile, level, name_)5793    def exportLiteralAttributes(self, outfile, level, name_):5794        if self.url is not None:5795            showIndent(outfile, level)5796            outfile.write('url = %s,\n' % (self.url,))5797    def exportLiteralChildren(self, outfile, level, name_):5798        showIndent(outfile, level)5799        outfile.write('valueOf_ = "%s",\n' % (self.valueOf_,))5800    def build(self, node_):5801        attrs = node_.attributes5802        self.buildAttributes(attrs)5803        self.valueOf_ = ''5804        for child_ in node_.childNodes:5805            nodeName_ = child_.nodeName.split(':')[-1]5806            self.buildChildren(child_, nodeName_)5807    def buildAttributes(self, attrs):5808        if attrs.get('url'):5809            self.url = attrs.get('url').value5810    def buildChildren(self, child_, nodeName_):5811        if child_.nodeType == Node.TEXT_NODE:5812            obj_ = self.mixedclass_(MixedContainer.CategoryText,5813                MixedContainer.TypeNone, '', child_.nodeValue)5814            self.content_.append(obj_)5815        if child_.nodeType == Node.TEXT_NODE:5816            self.valueOf_ += child_.nodeValue5817        elif child_.nodeType == Node.CDATA_SECTION_NODE:5818            self.valueOf_ += '![CDATA['+child_.nodeValue+']]'5819# end class docURLLink5820class docAnchorType(GeneratedsSuper):5821    subclass = None5822    superclass = None5823    def __init__(self, id=None, valueOf_='', mixedclass_=None, content_=None):5824        self.id = id5825        if mixedclass_ is None:5826            self.mixedclass_ = MixedContainer5827        else:5828            self.mixedclass_ = mixedclass_5829        if content_ is None:5830            self.content_ = []5831        else:5832            self.content_ = content_5833    def factory(*args_, **kwargs_):5834        if docAnchorType.subclass:5835            return docAnchorType.subclass(*args_, **kwargs_)5836        else:5837            return docAnchorType(*args_, **kwargs_)5838    factory = staticmethod(factory)5839    def get_id(self): return self.id5840    def set_id(self, id): self.id = id5841    def getValueOf_(self): return self.valueOf_5842    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_5843    def export(self, outfile, level, namespace_='', name_='docAnchorType', namespacedef_=''):5844        showIndent(outfile, level)5845        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))5846        self.exportAttributes(outfile, level, namespace_, name_='docAnchorType')5847        outfile.write('>')5848        self.exportChildren(outfile, level + 1, namespace_, name_)5849        outfile.write('</%s%s>\n' % (namespace_, name_))5850    def exportAttributes(self, outfile, level, namespace_='', name_='docAnchorType'):5851        if self.id is not None:5852            outfile.write(' id=%s' % (self.format_string(quote_attrib(self.id).encode(ExternalEncoding), input_name='id'), ))5853    def exportChildren(self, outfile, level, namespace_='', name_='docAnchorType'):5854        if self.valueOf_.find('![CDATA')>-1:5855            value=quote_xml('%s' % self.valueOf_)5856            value=value.replace('![CDATA','<![CDATA')5857            value=value.replace(']]',']]>')5858            outfile.write(value)5859        else:5860            outfile.write(quote_xml('%s' % self.valueOf_))5861    def hasContent_(self):5862        if (5863            self.valueOf_ is not None5864            ):5865            return True5866        else:5867            return False5868    def exportLiteral(self, outfile, level, name_='docAnchorType'):5869        level += 15870        self.exportLiteralAttributes(outfile, level, name_)5871        if self.hasContent_():5872            self.exportLiteralChildren(outfile, level, name_)5873    def exportLiteralAttributes(self, outfile, level, name_):5874        if self.id is not None:5875            showIndent(outfile, level)5876            outfile.write('id = %s,\n' % (self.id,))5877    def exportLiteralChildren(self, outfile, level, name_):5878        showIndent(outfile, level)5879        outfile.write('valueOf_ = "%s",\n' % (self.valueOf_,))5880    def build(self, node_):5881        attrs = node_.attributes5882        self.buildAttributes(attrs)5883        self.valueOf_ = ''5884        for child_ in node_.childNodes:5885            nodeName_ = child_.nodeName.split(':')[-1]5886            self.buildChildren(child_, nodeName_)5887    def buildAttributes(self, attrs):5888        if attrs.get('id'):5889            self.id = attrs.get('id').value5890    def buildChildren(self, child_, nodeName_):5891        if child_.nodeType == Node.TEXT_NODE:5892            obj_ = self.mixedclass_(MixedContainer.CategoryText,5893                MixedContainer.TypeNone, '', child_.nodeValue)5894            self.content_.append(obj_)5895        if child_.nodeType == Node.TEXT_NODE:5896            self.valueOf_ += child_.nodeValue5897        elif child_.nodeType == Node.CDATA_SECTION_NODE:5898            self.valueOf_ += '![CDATA['+child_.nodeValue+']]'5899# end class docAnchorType5900class docFormulaType(GeneratedsSuper):5901    subclass = None5902    superclass = None5903    def __init__(self, id=None, valueOf_='', mixedclass_=None, content_=None):5904        self.id = id5905        if mixedclass_ is None:5906            self.mixedclass_ = MixedContainer5907        else:5908            self.mixedclass_ = mixedclass_5909        if content_ is None:5910            self.content_ = []5911        else:5912            self.content_ = content_5913    def factory(*args_, **kwargs_):5914        if docFormulaType.subclass:5915            return docFormulaType.subclass(*args_, **kwargs_)5916        else:5917            return docFormulaType(*args_, **kwargs_)5918    factory = staticmethod(factory)5919    def get_id(self): return self.id5920    def set_id(self, id): self.id = id5921    def getValueOf_(self): return self.valueOf_5922    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_5923    def export(self, outfile, level, namespace_='', name_='docFormulaType', namespacedef_=''):5924        showIndent(outfile, level)5925        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))5926        self.exportAttributes(outfile, level, namespace_, name_='docFormulaType')5927        outfile.write('>')5928        self.exportChildren(outfile, level + 1, namespace_, name_)5929        outfile.write('</%s%s>\n' % (namespace_, name_))5930    def exportAttributes(self, outfile, level, namespace_='', name_='docFormulaType'):5931        if self.id is not None:5932            outfile.write(' id=%s' % (self.format_string(quote_attrib(self.id).encode(ExternalEncoding), input_name='id'), ))5933    def exportChildren(self, outfile, level, namespace_='', name_='docFormulaType'):5934        if self.valueOf_.find('![CDATA')>-1:5935            value=quote_xml('%s' % self.valueOf_)5936            value=value.replace('![CDATA','<![CDATA')5937            value=value.replace(']]',']]>')5938            outfile.write(value)5939        else:5940            outfile.write(quote_xml('%s' % self.valueOf_))5941    def hasContent_(self):5942        if (5943            self.valueOf_ is not None5944            ):5945            return True5946        else:5947            return False5948    def exportLiteral(self, outfile, level, name_='docFormulaType'):5949        level += 15950        self.exportLiteralAttributes(outfile, level, name_)5951        if self.hasContent_():5952            self.exportLiteralChildren(outfile, level, name_)5953    def exportLiteralAttributes(self, outfile, level, name_):5954        if self.id is not None:5955            showIndent(outfile, level)5956            outfile.write('id = %s,\n' % (self.id,))5957    def exportLiteralChildren(self, outfile, level, name_):5958        showIndent(outfile, level)5959        outfile.write('valueOf_ = "%s",\n' % (self.valueOf_,))5960    def build(self, node_):5961        attrs = node_.attributes5962        self.buildAttributes(attrs)5963        self.valueOf_ = ''5964        for child_ in node_.childNodes:5965            nodeName_ = child_.nodeName.split(':')[-1]5966            self.buildChildren(child_, nodeName_)5967    def buildAttributes(self, attrs):5968        if attrs.get('id'):5969            self.id = attrs.get('id').value5970    def buildChildren(self, child_, nodeName_):5971        if child_.nodeType == Node.TEXT_NODE:5972            obj_ = self.mixedclass_(MixedContainer.CategoryText,5973                MixedContainer.TypeNone, '', child_.nodeValue)5974            self.content_.append(obj_)5975        if child_.nodeType == Node.TEXT_NODE:5976            self.valueOf_ += child_.nodeValue5977        elif child_.nodeType == Node.CDATA_SECTION_NODE:5978            self.valueOf_ += '![CDATA['+child_.nodeValue+']]'5979# end class docFormulaType5980class docIndexEntryType(GeneratedsSuper):5981    subclass = None5982    superclass = None5983    def __init__(self, primaryie=None, secondaryie=None):5984        self.primaryie = primaryie5985        self.secondaryie = secondaryie5986    def factory(*args_, **kwargs_):5987        if docIndexEntryType.subclass:5988            return docIndexEntryType.subclass(*args_, **kwargs_)5989        else:5990            return docIndexEntryType(*args_, **kwargs_)5991    factory = staticmethod(factory)5992    def get_primaryie(self): return self.primaryie5993    def set_primaryie(self, primaryie): self.primaryie = primaryie5994    def get_secondaryie(self): return self.secondaryie5995    def set_secondaryie(self, secondaryie): self.secondaryie = secondaryie5996    def export(self, outfile, level, namespace_='', name_='docIndexEntryType', namespacedef_=''):5997        showIndent(outfile, level)5998        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))5999        self.exportAttributes(outfile, level, namespace_, name_='docIndexEntryType')6000        if self.hasContent_():6001            outfile.write('>\n')6002            self.exportChildren(outfile, level + 1, namespace_, name_)6003            showIndent(outfile, level)6004            outfile.write('</%s%s>\n' % (namespace_, name_))6005        else:6006            outfile.write(' />\n')6007    def exportAttributes(self, outfile, level, namespace_='', name_='docIndexEntryType'):6008        pass6009    def exportChildren(self, outfile, level, namespace_='', name_='docIndexEntryType'):6010        if self.primaryie is not None:6011            showIndent(outfile, level)6012            outfile.write('<%sprimaryie>%s</%sprimaryie>\n' % (namespace_, self.format_string(quote_xml(self.primaryie).encode(ExternalEncoding), input_name='primaryie'), namespace_))6013        if self.secondaryie is not None:6014            showIndent(outfile, level)6015            outfile.write('<%ssecondaryie>%s</%ssecondaryie>\n' % (namespace_, self.format_string(quote_xml(self.secondaryie).encode(ExternalEncoding), input_name='secondaryie'), namespace_))6016    def hasContent_(self):6017        if (6018            self.primaryie is not None or6019            self.secondaryie is not None6020            ):6021            return True6022        else:6023            return False6024    def exportLiteral(self, outfile, level, name_='docIndexEntryType'):6025        level += 16026        self.exportLiteralAttributes(outfile, level, name_)6027        if self.hasContent_():6028            self.exportLiteralChildren(outfile, level, name_)6029    def exportLiteralAttributes(self, outfile, level, name_):6030        pass6031    def exportLiteralChildren(self, outfile, level, name_):6032        showIndent(outfile, level)6033        outfile.write('primaryie=%s,\n' % quote_python(self.primaryie).encode(ExternalEncoding))6034        showIndent(outfile, level)6035        outfile.write('secondaryie=%s,\n' % quote_python(self.secondaryie).encode(ExternalEncoding))6036    def build(self, node_):6037        attrs = node_.attributes6038        self.buildAttributes(attrs)6039        for child_ in node_.childNodes:6040            nodeName_ = child_.nodeName.split(':')[-1]6041            self.buildChildren(child_, nodeName_)6042    def buildAttributes(self, attrs):6043        pass6044    def buildChildren(self, child_, nodeName_):6045        if child_.nodeType == Node.ELEMENT_NODE and \6046            nodeName_ == 'primaryie':6047            primaryie_ = ''6048            for text__content_ in child_.childNodes:6049                primaryie_ += text__content_.nodeValue6050            self.primaryie = primaryie_6051        elif child_.nodeType == Node.ELEMENT_NODE and \6052            nodeName_ == 'secondaryie':6053            secondaryie_ = ''6054            for text__content_ in child_.childNodes:6055                secondaryie_ += text__content_.nodeValue6056            self.secondaryie = secondaryie_6057# end class docIndexEntryType6058class docListType(GeneratedsSuper):6059    subclass = None6060    superclass = None6061    def __init__(self, listitem=None):6062        if listitem is None:6063            self.listitem = []6064        else:6065            self.listitem = listitem6066    def factory(*args_, **kwargs_):6067        if docListType.subclass:6068            return docListType.subclass(*args_, **kwargs_)6069        else:6070            return docListType(*args_, **kwargs_)6071    factory = staticmethod(factory)6072    def get_listitem(self): return self.listitem6073    def set_listitem(self, listitem): self.listitem = listitem6074    def add_listitem(self, value): self.listitem.append(value)6075    def insert_listitem(self, index, value): self.listitem[index] = value6076    def export(self, outfile, level, namespace_='', name_='docListType', namespacedef_=''):6077        showIndent(outfile, level)6078        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))6079        self.exportAttributes(outfile, level, namespace_, name_='docListType')6080        if self.hasContent_():6081            outfile.write('>\n')6082            self.exportChildren(outfile, level + 1, namespace_, name_)6083            showIndent(outfile, level)6084            outfile.write('</%s%s>\n' % (namespace_, name_))6085        else:6086            outfile.write(' />\n')6087    def exportAttributes(self, outfile, level, namespace_='', name_='docListType'):6088        pass6089    def exportChildren(self, outfile, level, namespace_='', name_='docListType'):6090        for listitem_ in self.listitem:6091            listitem_.export(outfile, level, namespace_, name_='listitem')6092    def hasContent_(self):6093        if (6094            self.listitem is not None6095            ):6096            return True6097        else:6098            return False6099    def exportLiteral(self, outfile, level, name_='docListType'):6100        level += 16101        self.exportLiteralAttributes(outfile, level, name_)6102        if self.hasContent_():6103            self.exportLiteralChildren(outfile, level, name_)6104    def exportLiteralAttributes(self, outfile, level, name_):6105        pass6106    def exportLiteralChildren(self, outfile, level, name_):6107        showIndent(outfile, level)6108        outfile.write('listitem=[\n')6109        level += 16110        for listitem in self.listitem:6111            showIndent(outfile, level)6112            outfile.write('model_.listitem(\n')6113            listitem.exportLiteral(outfile, level, name_='listitem')6114            showIndent(outfile, level)6115            outfile.write('),\n')6116        level -= 16117        showIndent(outfile, level)6118        outfile.write('],\n')6119    def build(self, node_):6120        attrs = node_.attributes6121        self.buildAttributes(attrs)6122        for child_ in node_.childNodes:6123            nodeName_ = child_.nodeName.split(':')[-1]6124            self.buildChildren(child_, nodeName_)6125    def buildAttributes(self, attrs):6126        pass6127    def buildChildren(self, child_, nodeName_):6128        if child_.nodeType == Node.ELEMENT_NODE and \6129            nodeName_ == 'listitem':6130            obj_ = docListItemType.factory()6131            obj_.build(child_)6132            self.listitem.append(obj_)6133# end class docListType6134class docListItemType(GeneratedsSuper):6135    subclass = None6136    superclass = None6137    def __init__(self, para=None):6138        if para is None:6139            self.para = []6140        else:6141            self.para = para6142    def factory(*args_, **kwargs_):6143        if docListItemType.subclass:6144            return docListItemType.subclass(*args_, **kwargs_)6145        else:6146            return docListItemType(*args_, **kwargs_)6147    factory = staticmethod(factory)6148    def get_para(self): return self.para6149    def set_para(self, para): self.para = para6150    def add_para(self, value): self.para.append(value)6151    def insert_para(self, index, value): self.para[index] = value6152    def export(self, outfile, level, namespace_='', name_='docListItemType', namespacedef_=''):6153        showIndent(outfile, level)6154        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))6155        self.exportAttributes(outfile, level, namespace_, name_='docListItemType')6156        if self.hasContent_():6157            outfile.write('>\n')6158            self.exportChildren(outfile, level + 1, namespace_, name_)6159            showIndent(outfile, level)6160            outfile.write('</%s%s>\n' % (namespace_, name_))6161        else:6162            outfile.write(' />\n')6163    def exportAttributes(self, outfile, level, namespace_='', name_='docListItemType'):6164        pass6165    def exportChildren(self, outfile, level, namespace_='', name_='docListItemType'):6166        for para_ in self.para:6167            para_.export(outfile, level, namespace_, name_='para')6168    def hasContent_(self):6169        if (6170            self.para is not None6171            ):6172            return True6173        else:6174            return False6175    def exportLiteral(self, outfile, level, name_='docListItemType'):6176        level += 16177        self.exportLiteralAttributes(outfile, level, name_)6178        if self.hasContent_():6179            self.exportLiteralChildren(outfile, level, name_)6180    def exportLiteralAttributes(self, outfile, level, name_):6181        pass6182    def exportLiteralChildren(self, outfile, level, name_):6183        showIndent(outfile, level)6184        outfile.write('para=[\n')6185        level += 16186        for para in self.para:6187            showIndent(outfile, level)6188            outfile.write('model_.para(\n')6189            para.exportLiteral(outfile, level, name_='para')6190            showIndent(outfile, level)6191            outfile.write('),\n')6192        level -= 16193        showIndent(outfile, level)6194        outfile.write('],\n')6195    def build(self, node_):6196        attrs = node_.attributes6197        self.buildAttributes(attrs)6198        for child_ in node_.childNodes:6199            nodeName_ = child_.nodeName.split(':')[-1]6200            self.buildChildren(child_, nodeName_)6201    def buildAttributes(self, attrs):6202        pass6203    def buildChildren(self, child_, nodeName_):6204        if child_.nodeType == Node.ELEMENT_NODE and \6205            nodeName_ == 'para':6206            obj_ = docParaType.factory()6207            obj_.build(child_)6208            self.para.append(obj_)6209# end class docListItemType6210class docSimpleSectType(GeneratedsSuper):6211    subclass = None6212    superclass = None6213    def __init__(self, kind=None, title=None, para=None):6214        self.kind = kind6215        self.title = title6216        if para is None:6217            self.para = []6218        else:6219            self.para = para6220    def factory(*args_, **kwargs_):6221        if docSimpleSectType.subclass:6222            return docSimpleSectType.subclass(*args_, **kwargs_)6223        else:6224            return docSimpleSectType(*args_, **kwargs_)6225    factory = staticmethod(factory)6226    def get_title(self): return self.title6227    def set_title(self, title): self.title = title6228    def get_para(self): return self.para6229    def set_para(self, para): self.para = para6230    def add_para(self, value): self.para.append(value)6231    def insert_para(self, index, value): self.para[index] = value6232    def get_kind(self): return self.kind6233    def set_kind(self, kind): self.kind = kind6234    def export(self, outfile, level, namespace_='', name_='docSimpleSectType', namespacedef_=''):6235        showIndent(outfile, level)6236        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))6237        self.exportAttributes(outfile, level, namespace_, name_='docSimpleSectType')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_='docSimpleSectType'):6246        if self.kind is not None:6247            outfile.write(' kind=%s' % (quote_attrib(self.kind), ))6248    def exportChildren(self, outfile, level, namespace_='', name_='docSimpleSectType'):6249        if self.title:6250            self.title.export(outfile, level, namespace_, name_='title')6251        for para_ in self.para:6252            para_.export(outfile, level, namespace_, name_='para')6253    def hasContent_(self):6254        if (6255            self.title is not None or6256            self.para is not None6257            ):6258            return True6259        else:6260            return False6261    def exportLiteral(self, outfile, level, name_='docSimpleSectType'):6262        level += 16263        self.exportLiteralAttributes(outfile, level, name_)6264        if self.hasContent_():6265            self.exportLiteralChildren(outfile, level, name_)6266    def exportLiteralAttributes(self, outfile, level, name_):6267        if self.kind is not None:6268            showIndent(outfile, level)6269            outfile.write('kind = "%s",\n' % (self.kind,))6270    def exportLiteralChildren(self, outfile, level, name_):6271        if self.title:6272            showIndent(outfile, level)6273            outfile.write('title=model_.docTitleType(\n')6274            self.title.exportLiteral(outfile, level, name_='title')6275            showIndent(outfile, level)6276            outfile.write('),\n')6277        showIndent(outfile, level)6278        outfile.write('para=[\n')6279        level += 16280        for para in self.para:6281            showIndent(outfile, level)6282            outfile.write('model_.para(\n')6283            para.exportLiteral(outfile, level, name_='para')6284            showIndent(outfile, level)6285            outfile.write('),\n')6286        level -= 16287        showIndent(outfile, level)6288        outfile.write('],\n')6289    def build(self, node_):6290        attrs = node_.attributes6291        self.buildAttributes(attrs)6292        for child_ in node_.childNodes:6293            nodeName_ = child_.nodeName.split(':')[-1]6294            self.buildChildren(child_, nodeName_)6295    def buildAttributes(self, attrs):6296        if attrs.get('kind'):6297            self.kind = attrs.get('kind').value6298    def buildChildren(self, child_, nodeName_):6299        if child_.nodeType == Node.ELEMENT_NODE and \6300            nodeName_ == 'title':6301            obj_ = docTitleType.factory()6302            obj_.build(child_)6303            self.set_title(obj_)6304        elif child_.nodeType == Node.ELEMENT_NODE and \6305            nodeName_ == 'para':6306            obj_ = docParaType.factory()6307            obj_.build(child_)6308            self.para.append(obj_)6309# end class docSimpleSectType6310class docVarListEntryType(GeneratedsSuper):6311    subclass = None6312    superclass = None6313    def __init__(self, term=None):6314        self.term = term6315    def factory(*args_, **kwargs_):6316        if docVarListEntryType.subclass:6317            return docVarListEntryType.subclass(*args_, **kwargs_)6318        else:6319            return docVarListEntryType(*args_, **kwargs_)6320    factory = staticmethod(factory)6321    def get_term(self): return self.term6322    def set_term(self, term): self.term = term6323    def export(self, outfile, level, namespace_='', name_='docVarListEntryType', namespacedef_=''):6324        showIndent(outfile, level)6325        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))6326        self.exportAttributes(outfile, level, namespace_, name_='docVarListEntryType')6327        if self.hasContent_():6328            outfile.write('>\n')6329            self.exportChildren(outfile, level + 1, namespace_, name_)6330            showIndent(outfile, level)6331            outfile.write('</%s%s>\n' % (namespace_, name_))6332        else:6333            outfile.write(' />\n')6334    def exportAttributes(self, outfile, level, namespace_='', name_='docVarListEntryType'):6335        pass6336    def exportChildren(self, outfile, level, namespace_='', name_='docVarListEntryType'):6337        if self.term:6338            self.term.export(outfile, level, namespace_, name_='term', )6339    def hasContent_(self):6340        if (6341            self.term is not None6342            ):6343            return True6344        else:6345            return False6346    def exportLiteral(self, outfile, level, name_='docVarListEntryType'):6347        level += 16348        self.exportLiteralAttributes(outfile, level, name_)6349        if self.hasContent_():6350            self.exportLiteralChildren(outfile, level, name_)6351    def exportLiteralAttributes(self, outfile, level, name_):6352        pass6353    def exportLiteralChildren(self, outfile, level, name_):6354        if self.term:6355            showIndent(outfile, level)6356            outfile.write('term=model_.docTitleType(\n')6357            self.term.exportLiteral(outfile, level, name_='term')6358            showIndent(outfile, level)6359            outfile.write('),\n')6360    def build(self, node_):6361        attrs = node_.attributes6362        self.buildAttributes(attrs)6363        for child_ in node_.childNodes:6364            nodeName_ = child_.nodeName.split(':')[-1]6365            self.buildChildren(child_, nodeName_)6366    def buildAttributes(self, attrs):6367        pass6368    def buildChildren(self, child_, nodeName_):6369        if child_.nodeType == Node.ELEMENT_NODE and \6370            nodeName_ == 'term':6371            obj_ = docTitleType.factory()6372            obj_.build(child_)6373            self.set_term(obj_)6374# end class docVarListEntryType6375class docVariableListType(GeneratedsSuper):6376    subclass = None6377    superclass = None6378    def __init__(self, valueOf_=''):6379        self.valueOf_ = valueOf_6380    def factory(*args_, **kwargs_):6381        if docVariableListType.subclass:6382            return docVariableListType.subclass(*args_, **kwargs_)6383        else:6384            return docVariableListType(*args_, **kwargs_)6385    factory = staticmethod(factory)6386    def getValueOf_(self): return self.valueOf_6387    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_6388    def export(self, outfile, level, namespace_='', name_='docVariableListType', namespacedef_=''):6389        showIndent(outfile, level)6390        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))6391        self.exportAttributes(outfile, level, namespace_, name_='docVariableListType')6392        if self.hasContent_():6393            outfile.write('>\n')6394            self.exportChildren(outfile, level + 1, namespace_, name_)6395            showIndent(outfile, level)6396            outfile.write('</%s%s>\n' % (namespace_, name_))6397        else:6398            outfile.write(' />\n')6399    def exportAttributes(self, outfile, level, namespace_='', name_='docVariableListType'):6400        pass6401    def exportChildren(self, outfile, level, namespace_='', name_='docVariableListType'):6402        if self.valueOf_.find('![CDATA')>-1:6403            value=quote_xml('%s' % self.valueOf_)6404            value=value.replace('![CDATA','<![CDATA')6405            value=value.replace(']]',']]>')6406            outfile.write(value)6407        else:6408            outfile.write(quote_xml('%s' % self.valueOf_))6409    def hasContent_(self):6410        if (6411            self.valueOf_ is not None6412            ):6413            return True6414        else:6415            return False6416    def exportLiteral(self, outfile, level, name_='docVariableListType'):6417        level += 16418        self.exportLiteralAttributes(outfile, level, name_)6419        if self.hasContent_():6420            self.exportLiteralChildren(outfile, level, name_)6421    def exportLiteralAttributes(self, outfile, level, name_):6422        pass6423    def exportLiteralChildren(self, outfile, level, name_):6424        showIndent(outfile, level)6425        outfile.write('valueOf_ = "%s",\n' % (self.valueOf_,))6426    def build(self, node_):6427        attrs = node_.attributes6428        self.buildAttributes(attrs)6429        self.valueOf_ = ''6430        for child_ in node_.childNodes:6431            nodeName_ = child_.nodeName.split(':')[-1]6432            self.buildChildren(child_, nodeName_)6433    def buildAttributes(self, attrs):6434        pass6435    def buildChildren(self, child_, nodeName_):6436        if child_.nodeType == Node.TEXT_NODE:6437            self.valueOf_ += child_.nodeValue6438        elif child_.nodeType == Node.CDATA_SECTION_NODE:6439            self.valueOf_ += '![CDATA['+child_.nodeValue+']]'6440# end class docVariableListType6441class docRefTextType(GeneratedsSuper):6442    subclass = None6443    superclass = None6444    def __init__(self, refid=None, kindref=None, external=None, valueOf_='', mixedclass_=None, content_=None):6445        self.refid = refid6446        self.kindref = kindref6447        self.external = external6448        if mixedclass_ is None:6449            self.mixedclass_ = MixedContainer6450        else:6451            self.mixedclass_ = mixedclass_6452        if content_ is None:6453            self.content_ = []6454        else:6455            self.content_ = content_6456    def factory(*args_, **kwargs_):6457        if docRefTextType.subclass:6458            return docRefTextType.subclass(*args_, **kwargs_)6459        else:6460            return docRefTextType(*args_, **kwargs_)6461    factory = staticmethod(factory)6462    def get_refid(self): return self.refid6463    def set_refid(self, refid): self.refid = refid6464    def get_kindref(self): return self.kindref6465    def set_kindref(self, kindref): self.kindref = kindref6466    def get_external(self): return self.external6467    def set_external(self, external): self.external = external6468    def getValueOf_(self): return self.valueOf_6469    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_6470    def export(self, outfile, level, namespace_='', name_='docRefTextType', namespacedef_=''):6471        showIndent(outfile, level)6472        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))6473        self.exportAttributes(outfile, level, namespace_, name_='docRefTextType')6474        outfile.write('>')6475        self.exportChildren(outfile, level + 1, namespace_, name_)6476        outfile.write('</%s%s>\n' % (namespace_, name_))6477    def exportAttributes(self, outfile, level, namespace_='', name_='docRefTextType'):6478        if self.refid is not None:6479            outfile.write(' refid=%s' % (self.format_string(quote_attrib(self.refid).encode(ExternalEncoding), input_name='refid'), ))6480        if self.kindref is not None:6481            outfile.write(' kindref=%s' % (quote_attrib(self.kindref), ))6482        if self.external is not None:6483            outfile.write(' external=%s' % (self.format_string(quote_attrib(self.external).encode(ExternalEncoding), input_name='external'), ))6484    def exportChildren(self, outfile, level, namespace_='', name_='docRefTextType'):6485        if self.valueOf_.find('![CDATA')>-1:6486            value=quote_xml('%s' % self.valueOf_)6487            value=value.replace('![CDATA','<![CDATA')6488            value=value.replace(']]',']]>')6489            outfile.write(value)6490        else:6491            outfile.write(quote_xml('%s' % self.valueOf_))6492    def hasContent_(self):6493        if (6494            self.valueOf_ is not None6495            ):6496            return True6497        else:6498            return False6499    def exportLiteral(self, outfile, level, name_='docRefTextType'):6500        level += 16501        self.exportLiteralAttributes(outfile, level, name_)6502        if self.hasContent_():6503            self.exportLiteralChildren(outfile, level, name_)6504    def exportLiteralAttributes(self, outfile, level, name_):6505        if self.refid is not None:6506            showIndent(outfile, level)6507            outfile.write('refid = %s,\n' % (self.refid,))6508        if self.kindref is not None:6509            showIndent(outfile, level)6510            outfile.write('kindref = "%s",\n' % (self.kindref,))6511        if self.external is not None:6512            showIndent(outfile, level)6513            outfile.write('external = %s,\n' % (self.external,))6514    def exportLiteralChildren(self, outfile, level, name_):6515        showIndent(outfile, level)6516        outfile.write('valueOf_ = "%s",\n' % (self.valueOf_,))6517    def build(self, node_):6518        attrs = node_.attributes6519        self.buildAttributes(attrs)6520        self.valueOf_ = ''6521        for child_ in node_.childNodes:6522            nodeName_ = child_.nodeName.split(':')[-1]6523            self.buildChildren(child_, nodeName_)6524    def buildAttributes(self, attrs):6525        if attrs.get('refid'):6526            self.refid = attrs.get('refid').value6527        if attrs.get('kindref'):6528            self.kindref = attrs.get('kindref').value6529        if attrs.get('external'):6530            self.external = attrs.get('external').value6531    def buildChildren(self, child_, nodeName_):6532        if child_.nodeType == Node.TEXT_NODE:6533            obj_ = self.mixedclass_(MixedContainer.CategoryText,6534                MixedContainer.TypeNone, '', child_.nodeValue)6535            self.content_.append(obj_)6536        if child_.nodeType == Node.TEXT_NODE:6537            self.valueOf_ += child_.nodeValue6538        elif child_.nodeType == Node.CDATA_SECTION_NODE:6539            self.valueOf_ += '![CDATA['+child_.nodeValue+']]'6540# end class docRefTextType6541class docTableType(GeneratedsSuper):6542    subclass = None6543    superclass = None6544    def __init__(self, rows=None, cols=None, row=None, caption=None):6545        self.rows = rows6546        self.cols = cols6547        if row is None:6548            self.row = []6549        else:6550            self.row = row6551        self.caption = caption6552    def factory(*args_, **kwargs_):6553        if docTableType.subclass:6554            return docTableType.subclass(*args_, **kwargs_)6555        else:6556            return docTableType(*args_, **kwargs_)6557    factory = staticmethod(factory)6558    def get_row(self): return self.row6559    def set_row(self, row): self.row = row6560    def add_row(self, value): self.row.append(value)6561    def insert_row(self, index, value): self.row[index] = value6562    def get_caption(self): return self.caption6563    def set_caption(self, caption): self.caption = caption6564    def get_rows(self): return self.rows6565    def set_rows(self, rows): self.rows = rows6566    def get_cols(self): return self.cols6567    def set_cols(self, cols): self.cols = cols6568    def export(self, outfile, level, namespace_='', name_='docTableType', namespacedef_=''):6569        showIndent(outfile, level)6570        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))6571        self.exportAttributes(outfile, level, namespace_, name_='docTableType')6572        if self.hasContent_():6573            outfile.write('>\n')6574            self.exportChildren(outfile, level + 1, namespace_, name_)6575            showIndent(outfile, level)6576            outfile.write('</%s%s>\n' % (namespace_, name_))6577        else:6578            outfile.write(' />\n')6579    def exportAttributes(self, outfile, level, namespace_='', name_='docTableType'):6580        if self.rows is not None:6581            outfile.write(' rows="%s"' % self.format_integer(self.rows, input_name='rows'))6582        if self.cols is not None:6583            outfile.write(' cols="%s"' % self.format_integer(self.cols, input_name='cols'))6584    def exportChildren(self, outfile, level, namespace_='', name_='docTableType'):6585        for row_ in self.row:6586            row_.export(outfile, level, namespace_, name_='row')6587        if self.caption:6588            self.caption.export(outfile, level, namespace_, name_='caption')6589    def hasContent_(self):6590        if (6591            self.row is not None or6592            self.caption is not None6593            ):6594            return True6595        else:6596            return False6597    def exportLiteral(self, outfile, level, name_='docTableType'):6598        level += 16599        self.exportLiteralAttributes(outfile, level, name_)6600        if self.hasContent_():6601            self.exportLiteralChildren(outfile, level, name_)6602    def exportLiteralAttributes(self, outfile, level, name_):6603        if self.rows is not None:6604            showIndent(outfile, level)6605            outfile.write('rows = %s,\n' % (self.rows,))6606        if self.cols is not None:6607            showIndent(outfile, level)6608            outfile.write('cols = %s,\n' % (self.cols,))6609    def exportLiteralChildren(self, outfile, level, name_):6610        showIndent(outfile, level)6611        outfile.write('row=[\n')6612        level += 16613        for row in self.row:6614            showIndent(outfile, level)6615            outfile.write('model_.row(\n')6616            row.exportLiteral(outfile, level, name_='row')6617            showIndent(outfile, level)6618            outfile.write('),\n')6619        level -= 16620        showIndent(outfile, level)6621        outfile.write('],\n')6622        if self.caption:6623            showIndent(outfile, level)6624            outfile.write('caption=model_.docCaptionType(\n')6625            self.caption.exportLiteral(outfile, level, name_='caption')6626            showIndent(outfile, level)6627            outfile.write('),\n')6628    def build(self, node_):6629        attrs = node_.attributes6630        self.buildAttributes(attrs)6631        for child_ in node_.childNodes:6632            nodeName_ = child_.nodeName.split(':')[-1]6633            self.buildChildren(child_, nodeName_)6634    def buildAttributes(self, attrs):6635        if attrs.get('rows'):6636            try:6637                self.rows = int(attrs.get('rows').value)6638            except ValueError, exp:6639                raise ValueError('Bad integer attribute (rows): %s' % exp)6640        if attrs.get('cols'):6641            try:6642                self.cols = int(attrs.get('cols').value)6643            except ValueError, exp:6644                raise ValueError('Bad integer attribute (cols): %s' % exp)6645    def buildChildren(self, child_, nodeName_):6646        if child_.nodeType == Node.ELEMENT_NODE and \6647            nodeName_ == 'row':6648            obj_ = docRowType.factory()6649            obj_.build(child_)6650            self.row.append(obj_)6651        elif child_.nodeType == Node.ELEMENT_NODE and \6652            nodeName_ == 'caption':6653            obj_ = docCaptionType.factory()6654            obj_.build(child_)6655            self.set_caption(obj_)6656# end class docTableType6657class docRowType(GeneratedsSuper):6658    subclass = None6659    superclass = None6660    def __init__(self, entry=None):6661        if entry is None:6662            self.entry = []6663        else:6664            self.entry = entry6665    def factory(*args_, **kwargs_):6666        if docRowType.subclass:6667            return docRowType.subclass(*args_, **kwargs_)6668        else:6669            return docRowType(*args_, **kwargs_)6670    factory = staticmethod(factory)6671    def get_entry(self): return self.entry6672    def set_entry(self, entry): self.entry = entry6673    def add_entry(self, value): self.entry.append(value)6674    def insert_entry(self, index, value): self.entry[index] = value6675    def export(self, outfile, level, namespace_='', name_='docRowType', namespacedef_=''):6676        showIndent(outfile, level)6677        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))6678        self.exportAttributes(outfile, level, namespace_, name_='docRowType')6679        if self.hasContent_():6680            outfile.write('>\n')6681            self.exportChildren(outfile, level + 1, namespace_, name_)6682            showIndent(outfile, level)6683            outfile.write('</%s%s>\n' % (namespace_, name_))6684        else:6685            outfile.write(' />\n')6686    def exportAttributes(self, outfile, level, namespace_='', name_='docRowType'):6687        pass6688    def exportChildren(self, outfile, level, namespace_='', name_='docRowType'):6689        for entry_ in self.entry:6690            entry_.export(outfile, level, namespace_, name_='entry')6691    def hasContent_(self):6692        if (6693            self.entry is not None6694            ):6695            return True6696        else:6697            return False6698    def exportLiteral(self, outfile, level, name_='docRowType'):6699        level += 16700        self.exportLiteralAttributes(outfile, level, name_)6701        if self.hasContent_():6702            self.exportLiteralChildren(outfile, level, name_)6703    def exportLiteralAttributes(self, outfile, level, name_):6704        pass6705    def exportLiteralChildren(self, outfile, level, name_):6706        showIndent(outfile, level)6707        outfile.write('entry=[\n')6708        level += 16709        for entry in self.entry:6710            showIndent(outfile, level)6711            outfile.write('model_.entry(\n')6712            entry.exportLiteral(outfile, level, name_='entry')6713            showIndent(outfile, level)6714            outfile.write('),\n')6715        level -= 16716        showIndent(outfile, level)6717        outfile.write('],\n')6718    def build(self, node_):6719        attrs = node_.attributes6720        self.buildAttributes(attrs)6721        for child_ in node_.childNodes:6722            nodeName_ = child_.nodeName.split(':')[-1]6723            self.buildChildren(child_, nodeName_)6724    def buildAttributes(self, attrs):6725        pass6726    def buildChildren(self, child_, nodeName_):6727        if child_.nodeType == Node.ELEMENT_NODE and \6728            nodeName_ == 'entry':6729            obj_ = docEntryType.factory()6730            obj_.build(child_)6731            self.entry.append(obj_)6732# end class docRowType6733class docEntryType(GeneratedsSuper):6734    subclass = None6735    superclass = None6736    def __init__(self, thead=None, para=None):6737        self.thead = thead6738        if para is None:6739            self.para = []6740        else:6741            self.para = para6742    def factory(*args_, **kwargs_):6743        if docEntryType.subclass:6744            return docEntryType.subclass(*args_, **kwargs_)6745        else:6746            return docEntryType(*args_, **kwargs_)6747    factory = staticmethod(factory)6748    def get_para(self): return self.para6749    def set_para(self, para): self.para = para6750    def add_para(self, value): self.para.append(value)6751    def insert_para(self, index, value): self.para[index] = value6752    def get_thead(self): return self.thead6753    def set_thead(self, thead): self.thead = thead6754    def export(self, outfile, level, namespace_='', name_='docEntryType', namespacedef_=''):6755        showIndent(outfile, level)6756        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))6757        self.exportAttributes(outfile, level, namespace_, name_='docEntryType')6758        if self.hasContent_():6759            outfile.write('>\n')6760            self.exportChildren(outfile, level + 1, namespace_, name_)6761            showIndent(outfile, level)6762            outfile.write('</%s%s>\n' % (namespace_, name_))6763        else:6764            outfile.write(' />\n')6765    def exportAttributes(self, outfile, level, namespace_='', name_='docEntryType'):6766        if self.thead is not None:6767            outfile.write(' thead=%s' % (quote_attrib(self.thead), ))6768    def exportChildren(self, outfile, level, namespace_='', name_='docEntryType'):6769        for para_ in self.para:6770            para_.export(outfile, level, namespace_, name_='para')6771    def hasContent_(self):6772        if (6773            self.para is not None6774            ):6775            return True6776        else:6777            return False6778    def exportLiteral(self, outfile, level, name_='docEntryType'):6779        level += 16780        self.exportLiteralAttributes(outfile, level, name_)6781        if self.hasContent_():6782            self.exportLiteralChildren(outfile, level, name_)6783    def exportLiteralAttributes(self, outfile, level, name_):6784        if self.thead is not None:6785            showIndent(outfile, level)6786            outfile.write('thead = "%s",\n' % (self.thead,))6787    def exportLiteralChildren(self, outfile, level, name_):6788        showIndent(outfile, level)6789        outfile.write('para=[\n')6790        level += 16791        for para in self.para:6792            showIndent(outfile, level)6793            outfile.write('model_.para(\n')6794            para.exportLiteral(outfile, level, name_='para')6795            showIndent(outfile, level)6796            outfile.write('),\n')6797        level -= 16798        showIndent(outfile, level)6799        outfile.write('],\n')6800    def build(self, node_):6801        attrs = node_.attributes6802        self.buildAttributes(attrs)6803        for child_ in node_.childNodes:6804            nodeName_ = child_.nodeName.split(':')[-1]6805            self.buildChildren(child_, nodeName_)6806    def buildAttributes(self, attrs):6807        if attrs.get('thead'):6808            self.thead = attrs.get('thead').value6809    def buildChildren(self, child_, nodeName_):6810        if child_.nodeType == Node.ELEMENT_NODE and \6811            nodeName_ == 'para':6812            obj_ = docParaType.factory()6813            obj_.build(child_)6814            self.para.append(obj_)6815# end class docEntryType6816class docCaptionType(GeneratedsSuper):6817    subclass = None6818    superclass = None6819    def __init__(self, valueOf_='', mixedclass_=None, content_=None):6820        if mixedclass_ is None:6821            self.mixedclass_ = MixedContainer6822        else:6823            self.mixedclass_ = mixedclass_6824        if content_ is None:6825            self.content_ = []6826        else:6827            self.content_ = content_6828    def factory(*args_, **kwargs_):6829        if docCaptionType.subclass:6830            return docCaptionType.subclass(*args_, **kwargs_)6831        else:6832            return docCaptionType(*args_, **kwargs_)6833    factory = staticmethod(factory)6834    def getValueOf_(self): return self.valueOf_6835    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_6836    def export(self, outfile, level, namespace_='', name_='docCaptionType', namespacedef_=''):6837        showIndent(outfile, level)6838        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))6839        self.exportAttributes(outfile, level, namespace_, name_='docCaptionType')6840        outfile.write('>')6841        self.exportChildren(outfile, level + 1, namespace_, name_)6842        outfile.write('</%s%s>\n' % (namespace_, name_))6843    def exportAttributes(self, outfile, level, namespace_='', name_='docCaptionType'):6844        pass6845    def exportChildren(self, outfile, level, namespace_='', name_='docCaptionType'):6846        if self.valueOf_.find('![CDATA')>-1:6847            value=quote_xml('%s' % self.valueOf_)6848            value=value.replace('![CDATA','<![CDATA')6849            value=value.replace(']]',']]>')6850            outfile.write(value)6851        else:6852            outfile.write(quote_xml('%s' % self.valueOf_))6853    def hasContent_(self):6854        if (6855            self.valueOf_ is not None6856            ):6857            return True6858        else:6859            return False6860    def exportLiteral(self, outfile, level, name_='docCaptionType'):6861        level += 16862        self.exportLiteralAttributes(outfile, level, name_)6863        if self.hasContent_():6864            self.exportLiteralChildren(outfile, level, name_)6865    def exportLiteralAttributes(self, outfile, level, name_):6866        pass6867    def exportLiteralChildren(self, outfile, level, name_):6868        showIndent(outfile, level)6869        outfile.write('valueOf_ = "%s",\n' % (self.valueOf_,))6870    def build(self, node_):6871        attrs = node_.attributes6872        self.buildAttributes(attrs)6873        self.valueOf_ = ''6874        for child_ in node_.childNodes:6875            nodeName_ = child_.nodeName.split(':')[-1]6876            self.buildChildren(child_, nodeName_)6877    def buildAttributes(self, attrs):6878        pass6879    def buildChildren(self, child_, nodeName_):6880        if child_.nodeType == Node.TEXT_NODE:6881            obj_ = self.mixedclass_(MixedContainer.CategoryText,6882                MixedContainer.TypeNone, '', child_.nodeValue)6883            self.content_.append(obj_)6884        if child_.nodeType == Node.TEXT_NODE:6885            self.valueOf_ += child_.nodeValue6886        elif child_.nodeType == Node.CDATA_SECTION_NODE:6887            self.valueOf_ += '![CDATA['+child_.nodeValue+']]'6888# end class docCaptionType6889class docHeadingType(GeneratedsSuper):6890    subclass = None6891    superclass = None6892    def __init__(self, level=None, valueOf_='', mixedclass_=None, content_=None):6893        self.level = level6894        if mixedclass_ is None:6895            self.mixedclass_ = MixedContainer6896        else:6897            self.mixedclass_ = mixedclass_6898        if content_ is None:6899            self.content_ = []6900        else:6901            self.content_ = content_6902    def factory(*args_, **kwargs_):6903        if docHeadingType.subclass:6904            return docHeadingType.subclass(*args_, **kwargs_)6905        else:6906            return docHeadingType(*args_, **kwargs_)6907    factory = staticmethod(factory)6908    def get_level(self): return self.level6909    def set_level(self, level): self.level = level6910    def getValueOf_(self): return self.valueOf_6911    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_6912    def export(self, outfile, level, namespace_='', name_='docHeadingType', namespacedef_=''):6913        showIndent(outfile, level)6914        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))6915        self.exportAttributes(outfile, level, namespace_, name_='docHeadingType')6916        outfile.write('>')6917        self.exportChildren(outfile, level + 1, namespace_, name_)6918        outfile.write('</%s%s>\n' % (namespace_, name_))6919    def exportAttributes(self, outfile, level, namespace_='', name_='docHeadingType'):6920        if self.level is not None:6921            outfile.write(' level="%s"' % self.format_integer(self.level, input_name='level'))6922    def exportChildren(self, outfile, level, namespace_='', name_='docHeadingType'):6923        if self.valueOf_.find('![CDATA')>-1:6924            value=quote_xml('%s' % self.valueOf_)6925            value=value.replace('![CDATA','<![CDATA')6926            value=value.replace(']]',']]>')6927            outfile.write(value)6928        else:6929            outfile.write(quote_xml('%s' % self.valueOf_))6930    def hasContent_(self):6931        if (6932            self.valueOf_ is not None6933            ):6934            return True6935        else:6936            return False6937    def exportLiteral(self, outfile, level, name_='docHeadingType'):6938        level += 16939        self.exportLiteralAttributes(outfile, level, name_)6940        if self.hasContent_():6941            self.exportLiteralChildren(outfile, level, name_)6942    def exportLiteralAttributes(self, outfile, level, name_):6943        if self.level is not None:6944            showIndent(outfile, level)6945            outfile.write('level = %s,\n' % (self.level,))6946    def exportLiteralChildren(self, outfile, level, name_):6947        showIndent(outfile, level)6948        outfile.write('valueOf_ = "%s",\n' % (self.valueOf_,))6949    def build(self, node_):6950        attrs = node_.attributes6951        self.buildAttributes(attrs)6952        self.valueOf_ = ''6953        for child_ in node_.childNodes:6954            nodeName_ = child_.nodeName.split(':')[-1]6955            self.buildChildren(child_, nodeName_)6956    def buildAttributes(self, attrs):6957        if attrs.get('level'):6958            try:6959                self.level = int(attrs.get('level').value)6960            except ValueError, exp:6961                raise ValueError('Bad integer attribute (level): %s' % exp)6962    def buildChildren(self, child_, nodeName_):6963        if child_.nodeType == Node.TEXT_NODE:6964            obj_ = self.mixedclass_(MixedContainer.CategoryText,6965                MixedContainer.TypeNone, '', child_.nodeValue)6966            self.content_.append(obj_)6967        if child_.nodeType == Node.TEXT_NODE:6968            self.valueOf_ += child_.nodeValue6969        elif child_.nodeType == Node.CDATA_SECTION_NODE:6970            self.valueOf_ += '![CDATA['+child_.nodeValue+']]'6971# end class docHeadingType6972class docImageType(GeneratedsSuper):6973    subclass = None6974    superclass = None6975    def __init__(self, width=None, type_=None, name=None, height=None, valueOf_='', mixedclass_=None, content_=None):6976        self.width = width6977        self.type_ = type_6978        self.name = name6979        self.height = height6980        if mixedclass_ is None:6981            self.mixedclass_ = MixedContainer6982        else:6983            self.mixedclass_ = mixedclass_6984        if content_ is None:6985            self.content_ = []6986        else:6987            self.content_ = content_6988    def factory(*args_, **kwargs_):6989        if docImageType.subclass:6990            return docImageType.subclass(*args_, **kwargs_)6991        else:6992            return docImageType(*args_, **kwargs_)6993    factory = staticmethod(factory)6994    def get_width(self): return self.width6995    def set_width(self, width): self.width = width6996    def get_type(self): return self.type_6997    def set_type(self, type_): self.type_ = type_6998    def get_name(self): return self.name6999    def set_name(self, name): self.name = name7000    def get_height(self): return self.height7001    def set_height(self, height): self.height = height7002    def getValueOf_(self): return self.valueOf_7003    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_7004    def export(self, outfile, level, namespace_='', name_='docImageType', namespacedef_=''):7005        showIndent(outfile, level)7006        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))7007        self.exportAttributes(outfile, level, namespace_, name_='docImageType')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_='docImageType'):7012        if self.width is not None:7013            outfile.write(' width=%s' % (self.format_string(quote_attrib(self.width).encode(ExternalEncoding), input_name='width'), ))7014        if self.type_ is not None:7015            outfile.write(' type=%s' % (quote_attrib(self.type_), ))7016        if self.name is not None:7017            outfile.write(' name=%s' % (self.format_string(quote_attrib(self.name).encode(ExternalEncoding), input_name='name'), ))7018        if self.height is not None:7019            outfile.write(' height=%s' % (self.format_string(quote_attrib(self.height).encode(ExternalEncoding), input_name='height'), ))7020    def exportChildren(self, outfile, level, namespace_='', name_='docImageType'):7021        if self.valueOf_.find('![CDATA')>-1:7022            value=quote_xml('%s' % self.valueOf_)7023            value=value.replace('![CDATA','<![CDATA')7024            value=value.replace(']]',']]>')7025            outfile.write(value)7026        else:7027            outfile.write(quote_xml('%s' % self.valueOf_))7028    def hasContent_(self):7029        if (7030            self.valueOf_ is not None7031            ):7032            return True7033        else:7034            return False7035    def exportLiteral(self, outfile, level, name_='docImageType'):7036        level += 17037        self.exportLiteralAttributes(outfile, level, name_)7038        if self.hasContent_():7039            self.exportLiteralChildren(outfile, level, name_)7040    def exportLiteralAttributes(self, outfile, level, name_):7041        if self.width is not None:7042            showIndent(outfile, level)7043            outfile.write('width = %s,\n' % (self.width,))7044        if self.type_ is not None:7045            showIndent(outfile, level)7046            outfile.write('type_ = "%s",\n' % (self.type_,))7047        if self.name is not None:7048            showIndent(outfile, level)7049            outfile.write('name = %s,\n' % (self.name,))7050        if self.height is not None:7051            showIndent(outfile, level)7052            outfile.write('height = %s,\n' % (self.height,))7053    def exportLiteralChildren(self, outfile, level, name_):7054        showIndent(outfile, level)7055        outfile.write('valueOf_ = "%s",\n' % (self.valueOf_,))7056    def build(self, node_):7057        attrs = node_.attributes7058        self.buildAttributes(attrs)7059        self.valueOf_ = ''7060        for child_ in node_.childNodes:7061            nodeName_ = child_.nodeName.split(':')[-1]7062            self.buildChildren(child_, nodeName_)7063    def buildAttributes(self, attrs):7064        if attrs.get('width'):7065            self.width = attrs.get('width').value7066        if attrs.get('type'):7067            self.type_ = attrs.get('type').value7068        if attrs.get('name'):7069            self.name = attrs.get('name').value7070        if attrs.get('height'):7071            self.height = attrs.get('height').value7072    def buildChildren(self, child_, nodeName_):7073        if child_.nodeType == Node.TEXT_NODE:7074            obj_ = self.mixedclass_(MixedContainer.CategoryText,7075                MixedContainer.TypeNone, '', child_.nodeValue)7076            self.content_.append(obj_)7077        if child_.nodeType == Node.TEXT_NODE:7078            self.valueOf_ += child_.nodeValue7079        elif child_.nodeType == Node.CDATA_SECTION_NODE:7080            self.valueOf_ += '![CDATA['+child_.nodeValue+']]'7081# end class docImageType7082class docDotFileType(GeneratedsSuper):7083    subclass = None7084    superclass = None7085    def __init__(self, name=None, valueOf_='', mixedclass_=None, content_=None):7086        self.name = name7087        if mixedclass_ is None:7088            self.mixedclass_ = MixedContainer7089        else:7090            self.mixedclass_ = mixedclass_7091        if content_ is None:7092            self.content_ = []7093        else:7094            self.content_ = content_7095    def factory(*args_, **kwargs_):7096        if docDotFileType.subclass:7097            return docDotFileType.subclass(*args_, **kwargs_)7098        else:7099            return docDotFileType(*args_, **kwargs_)7100    factory = staticmethod(factory)7101    def get_name(self): return self.name7102    def set_name(self, name): self.name = name7103    def getValueOf_(self): return self.valueOf_7104    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_7105    def export(self, outfile, level, namespace_='', name_='docDotFileType', namespacedef_=''):7106        showIndent(outfile, level)7107        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))7108        self.exportAttributes(outfile, level, namespace_, name_='docDotFileType')7109        outfile.write('>')7110        self.exportChildren(outfile, level + 1, namespace_, name_)7111        outfile.write('</%s%s>\n' % (namespace_, name_))7112    def exportAttributes(self, outfile, level, namespace_='', name_='docDotFileType'):7113        if self.name is not None:7114            outfile.write(' name=%s' % (self.format_string(quote_attrib(self.name).encode(ExternalEncoding), input_name='name'), ))7115    def exportChildren(self, outfile, level, namespace_='', name_='docDotFileType'):7116        if self.valueOf_.find('![CDATA')>-1:7117            value=quote_xml('%s' % self.valueOf_)7118            value=value.replace('![CDATA','<![CDATA')7119            value=value.replace(']]',']]>')7120            outfile.write(value)7121        else:7122            outfile.write(quote_xml('%s' % self.valueOf_))7123    def hasContent_(self):7124        if (7125            self.valueOf_ is not None7126            ):7127            return True7128        else:7129            return False7130    def exportLiteral(self, outfile, level, name_='docDotFileType'):7131        level += 17132        self.exportLiteralAttributes(outfile, level, name_)7133        if self.hasContent_():7134            self.exportLiteralChildren(outfile, level, name_)7135    def exportLiteralAttributes(self, outfile, level, name_):7136        if self.name is not None:7137            showIndent(outfile, level)7138            outfile.write('name = %s,\n' % (self.name,))7139    def exportLiteralChildren(self, outfile, level, name_):7140        showIndent(outfile, level)7141        outfile.write('valueOf_ = "%s",\n' % (self.valueOf_,))7142    def build(self, node_):7143        attrs = node_.attributes7144        self.buildAttributes(attrs)7145        self.valueOf_ = ''7146        for child_ in node_.childNodes:7147            nodeName_ = child_.nodeName.split(':')[-1]7148            self.buildChildren(child_, nodeName_)7149    def buildAttributes(self, attrs):7150        if attrs.get('name'):7151            self.name = attrs.get('name').value7152    def buildChildren(self, child_, nodeName_):7153        if child_.nodeType == Node.TEXT_NODE:7154            obj_ = self.mixedclass_(MixedContainer.CategoryText,7155                MixedContainer.TypeNone, '', child_.nodeValue)7156            self.content_.append(obj_)7157        if child_.nodeType == Node.TEXT_NODE:7158            self.valueOf_ += child_.nodeValue7159        elif child_.nodeType == Node.CDATA_SECTION_NODE:7160            self.valueOf_ += '![CDATA['+child_.nodeValue+']]'7161# end class docDotFileType7162class docTocItemType(GeneratedsSuper):7163    subclass = None7164    superclass = None7165    def __init__(self, id=None, valueOf_='', mixedclass_=None, content_=None):7166        self.id = id7167        if mixedclass_ is None:7168            self.mixedclass_ = MixedContainer7169        else:7170            self.mixedclass_ = mixedclass_7171        if content_ is None:7172            self.content_ = []7173        else:7174            self.content_ = content_7175    def factory(*args_, **kwargs_):7176        if docTocItemType.subclass:7177            return docTocItemType.subclass(*args_, **kwargs_)7178        else:7179            return docTocItemType(*args_, **kwargs_)7180    factory = staticmethod(factory)7181    def get_id(self): return self.id7182    def set_id(self, id): self.id = id7183    def getValueOf_(self): return self.valueOf_7184    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_7185    def export(self, outfile, level, namespace_='', name_='docTocItemType', namespacedef_=''):7186        showIndent(outfile, level)7187        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))7188        self.exportAttributes(outfile, level, namespace_, name_='docTocItemType')7189        outfile.write('>')7190        self.exportChildren(outfile, level + 1, namespace_, name_)7191        outfile.write('</%s%s>\n' % (namespace_, name_))7192    def exportAttributes(self, outfile, level, namespace_='', name_='docTocItemType'):7193        if self.id is not None:7194            outfile.write(' id=%s' % (self.format_string(quote_attrib(self.id).encode(ExternalEncoding), input_name='id'), ))7195    def exportChildren(self, outfile, level, namespace_='', name_='docTocItemType'):7196        if self.valueOf_.find('![CDATA')>-1:7197            value=quote_xml('%s' % self.valueOf_)7198            value=value.replace('![CDATA','<![CDATA')7199            value=value.replace(']]',']]>')7200            outfile.write(value)7201        else:7202            outfile.write(quote_xml('%s' % self.valueOf_))7203    def hasContent_(self):7204        if (7205            self.valueOf_ is not None7206            ):7207            return True7208        else:7209            return False7210    def exportLiteral(self, outfile, level, name_='docTocItemType'):7211        level += 17212        self.exportLiteralAttributes(outfile, level, name_)7213        if self.hasContent_():7214            self.exportLiteralChildren(outfile, level, name_)7215    def exportLiteralAttributes(self, outfile, level, name_):7216        if self.id is not None:7217            showIndent(outfile, level)7218            outfile.write('id = %s,\n' % (self.id,))7219    def exportLiteralChildren(self, outfile, level, name_):7220        showIndent(outfile, level)7221        outfile.write('valueOf_ = "%s",\n' % (self.valueOf_,))7222    def build(self, node_):7223        attrs = node_.attributes7224        self.buildAttributes(attrs)7225        self.valueOf_ = ''7226        for child_ in node_.childNodes:7227            nodeName_ = child_.nodeName.split(':')[-1]7228            self.buildChildren(child_, nodeName_)7229    def buildAttributes(self, attrs):7230        if attrs.get('id'):7231            self.id = attrs.get('id').value7232    def buildChildren(self, child_, nodeName_):7233        if child_.nodeType == Node.TEXT_NODE:7234            obj_ = self.mixedclass_(MixedContainer.CategoryText,7235                MixedContainer.TypeNone, '', child_.nodeValue)7236            self.content_.append(obj_)7237        if child_.nodeType == Node.TEXT_NODE:7238            self.valueOf_ += child_.nodeValue7239        elif child_.nodeType == Node.CDATA_SECTION_NODE:7240            self.valueOf_ += '![CDATA['+child_.nodeValue+']]'7241# end class docTocItemType7242class docTocListType(GeneratedsSuper):7243    subclass = None7244    superclass = None7245    def __init__(self, tocitem=None):7246        if tocitem is None:7247            self.tocitem = []7248        else:7249            self.tocitem = tocitem7250    def factory(*args_, **kwargs_):7251        if docTocListType.subclass:7252            return docTocListType.subclass(*args_, **kwargs_)7253        else:7254            return docTocListType(*args_, **kwargs_)7255    factory = staticmethod(factory)7256    def get_tocitem(self): return self.tocitem7257    def set_tocitem(self, tocitem): self.tocitem = tocitem7258    def add_tocitem(self, value): self.tocitem.append(value)7259    def insert_tocitem(self, index, value): self.tocitem[index] = value7260    def export(self, outfile, level, namespace_='', name_='docTocListType', namespacedef_=''):7261        showIndent(outfile, level)7262        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))7263        self.exportAttributes(outfile, level, namespace_, name_='docTocListType')7264        if self.hasContent_():7265            outfile.write('>\n')7266            self.exportChildren(outfile, level + 1, namespace_, name_)7267            showIndent(outfile, level)7268            outfile.write('</%s%s>\n' % (namespace_, name_))7269        else:7270            outfile.write(' />\n')7271    def exportAttributes(self, outfile, level, namespace_='', name_='docTocListType'):7272        pass7273    def exportChildren(self, outfile, level, namespace_='', name_='docTocListType'):7274        for tocitem_ in self.tocitem:7275            tocitem_.export(outfile, level, namespace_, name_='tocitem')7276    def hasContent_(self):7277        if (7278            self.tocitem is not None7279            ):7280            return True7281        else:7282            return False7283    def exportLiteral(self, outfile, level, name_='docTocListType'):7284        level += 17285        self.exportLiteralAttributes(outfile, level, name_)7286        if self.hasContent_():7287            self.exportLiteralChildren(outfile, level, name_)7288    def exportLiteralAttributes(self, outfile, level, name_):7289        pass7290    def exportLiteralChildren(self, outfile, level, name_):7291        showIndent(outfile, level)7292        outfile.write('tocitem=[\n')7293        level += 17294        for tocitem in self.tocitem:7295            showIndent(outfile, level)7296            outfile.write('model_.tocitem(\n')7297            tocitem.exportLiteral(outfile, level, name_='tocitem')7298            showIndent(outfile, level)7299            outfile.write('),\n')7300        level -= 17301        showIndent(outfile, level)7302        outfile.write('],\n')7303    def build(self, node_):7304        attrs = node_.attributes7305        self.buildAttributes(attrs)7306        for child_ in node_.childNodes:7307            nodeName_ = child_.nodeName.split(':')[-1]7308            self.buildChildren(child_, nodeName_)7309    def buildAttributes(self, attrs):7310        pass7311    def buildChildren(self, child_, nodeName_):7312        if child_.nodeType == Node.ELEMENT_NODE and \7313            nodeName_ == 'tocitem':7314            obj_ = docTocItemType.factory()7315            obj_.build(child_)7316            self.tocitem.append(obj_)7317# end class docTocListType7318class docLanguageType(GeneratedsSuper):7319    subclass = None7320    superclass = None7321    def __init__(self, langid=None, para=None):7322        self.langid = langid7323        if para is None:7324            self.para = []7325        else:7326            self.para = para7327    def factory(*args_, **kwargs_):7328        if docLanguageType.subclass:7329            return docLanguageType.subclass(*args_, **kwargs_)7330        else:7331            return docLanguageType(*args_, **kwargs_)7332    factory = staticmethod(factory)7333    def get_para(self): return self.para7334    def set_para(self, para): self.para = para7335    def add_para(self, value): self.para.append(value)7336    def insert_para(self, index, value): self.para[index] = value7337    def get_langid(self): return self.langid7338    def set_langid(self, langid): self.langid = langid7339    def export(self, outfile, level, namespace_='', name_='docLanguageType', namespacedef_=''):7340        showIndent(outfile, level)7341        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))7342        self.exportAttributes(outfile, level, namespace_, name_='docLanguageType')7343        if self.hasContent_():7344            outfile.write('>\n')7345            self.exportChildren(outfile, level + 1, namespace_, name_)7346            showIndent(outfile, level)7347            outfile.write('</%s%s>\n' % (namespace_, name_))7348        else:7349            outfile.write(' />\n')7350    def exportAttributes(self, outfile, level, namespace_='', name_='docLanguageType'):7351        if self.langid is not None:7352            outfile.write(' langid=%s' % (self.format_string(quote_attrib(self.langid).encode(ExternalEncoding), input_name='langid'), ))7353    def exportChildren(self, outfile, level, namespace_='', name_='docLanguageType'):7354        for para_ in self.para:7355            para_.export(outfile, level, namespace_, name_='para')7356    def hasContent_(self):7357        if (7358            self.para is not None7359            ):7360            return True7361        else:7362            return False7363    def exportLiteral(self, outfile, level, name_='docLanguageType'):7364        level += 17365        self.exportLiteralAttributes(outfile, level, name_)7366        if self.hasContent_():7367            self.exportLiteralChildren(outfile, level, name_)7368    def exportLiteralAttributes(self, outfile, level, name_):7369        if self.langid is not None:7370            showIndent(outfile, level)7371            outfile.write('langid = %s,\n' % (self.langid,))7372    def exportLiteralChildren(self, outfile, level, name_):7373        showIndent(outfile, level)7374        outfile.write('para=[\n')7375        level += 17376        for para in self.para:7377            showIndent(outfile, level)7378            outfile.write('model_.para(\n')7379            para.exportLiteral(outfile, level, name_='para')7380            showIndent(outfile, level)7381            outfile.write('),\n')7382        level -= 17383        showIndent(outfile, level)7384        outfile.write('],\n')7385    def build(self, node_):7386        attrs = node_.attributes7387        self.buildAttributes(attrs)7388        for child_ in node_.childNodes:7389            nodeName_ = child_.nodeName.split(':')[-1]7390            self.buildChildren(child_, nodeName_)7391    def buildAttributes(self, attrs):7392        if attrs.get('langid'):7393            self.langid = attrs.get('langid').value7394    def buildChildren(self, child_, nodeName_):7395        if child_.nodeType == Node.ELEMENT_NODE and \7396            nodeName_ == 'para':7397            obj_ = docParaType.factory()7398            obj_.build(child_)7399            self.para.append(obj_)7400# end class docLanguageType7401class docParamListType(GeneratedsSuper):7402    subclass = None7403    superclass = None7404    def __init__(self, kind=None, parameteritem=None):7405        self.kind = kind7406        if parameteritem is None:7407            self.parameteritem = []7408        else:7409            self.parameteritem = parameteritem7410    def factory(*args_, **kwargs_):7411        if docParamListType.subclass:7412            return docParamListType.subclass(*args_, **kwargs_)7413        else:7414            return docParamListType(*args_, **kwargs_)7415    factory = staticmethod(factory)7416    def get_parameteritem(self): return self.parameteritem7417    def set_parameteritem(self, parameteritem): self.parameteritem = parameteritem7418    def add_parameteritem(self, value): self.parameteritem.append(value)7419    def insert_parameteritem(self, index, value): self.parameteritem[index] = value7420    def get_kind(self): return self.kind7421    def set_kind(self, kind): self.kind = kind7422    def export(self, outfile, level, namespace_='', name_='docParamListType', namespacedef_=''):7423        showIndent(outfile, level)7424        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))7425        self.exportAttributes(outfile, level, namespace_, name_='docParamListType')7426        if self.hasContent_():7427            outfile.write('>\n')7428            self.exportChildren(outfile, level + 1, namespace_, name_)7429            showIndent(outfile, level)7430            outfile.write('</%s%s>\n' % (namespace_, name_))7431        else:7432            outfile.write(' />\n')7433    def exportAttributes(self, outfile, level, namespace_='', name_='docParamListType'):7434        if self.kind is not None:7435            outfile.write(' kind=%s' % (quote_attrib(self.kind), ))7436    def exportChildren(self, outfile, level, namespace_='', name_='docParamListType'):7437        for parameteritem_ in self.parameteritem:7438            parameteritem_.export(outfile, level, namespace_, name_='parameteritem')7439    def hasContent_(self):7440        if (7441            self.parameteritem is not None7442            ):7443            return True7444        else:7445            return False7446    def exportLiteral(self, outfile, level, name_='docParamListType'):7447        level += 17448        self.exportLiteralAttributes(outfile, level, name_)7449        if self.hasContent_():7450            self.exportLiteralChildren(outfile, level, name_)7451    def exportLiteralAttributes(self, outfile, level, name_):7452        if self.kind is not None:7453            showIndent(outfile, level)7454            outfile.write('kind = "%s",\n' % (self.kind,))7455    def exportLiteralChildren(self, outfile, level, name_):7456        showIndent(outfile, level)7457        outfile.write('parameteritem=[\n')7458        level += 17459        for parameteritem in self.parameteritem:7460            showIndent(outfile, level)7461            outfile.write('model_.parameteritem(\n')7462            parameteritem.exportLiteral(outfile, level, name_='parameteritem')7463            showIndent(outfile, level)7464            outfile.write('),\n')7465        level -= 17466        showIndent(outfile, level)7467        outfile.write('],\n')7468    def build(self, node_):7469        attrs = node_.attributes7470        self.buildAttributes(attrs)7471        for child_ in node_.childNodes:7472            nodeName_ = child_.nodeName.split(':')[-1]7473            self.buildChildren(child_, nodeName_)7474    def buildAttributes(self, attrs):7475        if attrs.get('kind'):7476            self.kind = attrs.get('kind').value7477    def buildChildren(self, child_, nodeName_):7478        if child_.nodeType == Node.ELEMENT_NODE and \7479            nodeName_ == 'parameteritem':7480            obj_ = docParamListItem.factory()7481            obj_.build(child_)7482            self.parameteritem.append(obj_)7483# end class docParamListType7484class docParamListItem(GeneratedsSuper):7485    subclass = None7486    superclass = None7487    def __init__(self, parameternamelist=None, parameterdescription=None):7488        if parameternamelist is None:7489            self.parameternamelist = []7490        else:7491            self.parameternamelist = parameternamelist7492        self.parameterdescription = parameterdescription7493    def factory(*args_, **kwargs_):7494        if docParamListItem.subclass:7495            return docParamListItem.subclass(*args_, **kwargs_)7496        else:7497            return docParamListItem(*args_, **kwargs_)7498    factory = staticmethod(factory)7499    def get_parameternamelist(self): return self.parameternamelist7500    def set_parameternamelist(self, parameternamelist): self.parameternamelist = parameternamelist7501    def add_parameternamelist(self, value): self.parameternamelist.append(value)7502    def insert_parameternamelist(self, index, value): self.parameternamelist[index] = value7503    def get_parameterdescription(self): return self.parameterdescription7504    def set_parameterdescription(self, parameterdescription): self.parameterdescription = parameterdescription7505    def export(self, outfile, level, namespace_='', name_='docParamListItem', namespacedef_=''):7506        showIndent(outfile, level)7507        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))7508        self.exportAttributes(outfile, level, namespace_, name_='docParamListItem')7509        if self.hasContent_():7510            outfile.write('>\n')7511            self.exportChildren(outfile, level + 1, namespace_, name_)7512            showIndent(outfile, level)7513            outfile.write('</%s%s>\n' % (namespace_, name_))7514        else:7515            outfile.write(' />\n')7516    def exportAttributes(self, outfile, level, namespace_='', name_='docParamListItem'):7517        pass7518    def exportChildren(self, outfile, level, namespace_='', name_='docParamListItem'):7519        for parameternamelist_ in self.parameternamelist:7520            parameternamelist_.export(outfile, level, namespace_, name_='parameternamelist')7521        if self.parameterdescription:7522            self.parameterdescription.export(outfile, level, namespace_, name_='parameterdescription', )7523    def hasContent_(self):7524        if (7525            self.parameternamelist is not None or7526            self.parameterdescription is not None7527            ):7528            return True7529        else:7530            return False7531    def exportLiteral(self, outfile, level, name_='docParamListItem'):7532        level += 17533        self.exportLiteralAttributes(outfile, level, name_)7534        if self.hasContent_():7535            self.exportLiteralChildren(outfile, level, name_)7536    def exportLiteralAttributes(self, outfile, level, name_):7537        pass7538    def exportLiteralChildren(self, outfile, level, name_):7539        showIndent(outfile, level)7540        outfile.write('parameternamelist=[\n')7541        level += 17542        for parameternamelist in self.parameternamelist:7543            showIndent(outfile, level)7544            outfile.write('model_.parameternamelist(\n')7545            parameternamelist.exportLiteral(outfile, level, name_='parameternamelist')7546            showIndent(outfile, level)7547            outfile.write('),\n')7548        level -= 17549        showIndent(outfile, level)7550        outfile.write('],\n')7551        if self.parameterdescription:7552            showIndent(outfile, level)7553            outfile.write('parameterdescription=model_.descriptionType(\n')7554            self.parameterdescription.exportLiteral(outfile, level, name_='parameterdescription')7555            showIndent(outfile, level)7556            outfile.write('),\n')7557    def build(self, node_):7558        attrs = node_.attributes7559        self.buildAttributes(attrs)7560        for child_ in node_.childNodes:7561            nodeName_ = child_.nodeName.split(':')[-1]7562            self.buildChildren(child_, nodeName_)7563    def buildAttributes(self, attrs):7564        pass7565    def buildChildren(self, child_, nodeName_):7566        if child_.nodeType == Node.ELEMENT_NODE and \7567            nodeName_ == 'parameternamelist':7568            obj_ = docParamNameList.factory()7569            obj_.build(child_)7570            self.parameternamelist.append(obj_)7571        elif child_.nodeType == Node.ELEMENT_NODE and \7572            nodeName_ == 'parameterdescription':7573            obj_ = descriptionType.factory()7574            obj_.build(child_)7575            self.set_parameterdescription(obj_)7576# end class docParamListItem7577class docParamNameList(GeneratedsSuper):7578    subclass = None7579    superclass = None7580    def __init__(self, parametername=None):7581        if parametername is None:7582            self.parametername = []7583        else:7584            self.parametername = parametername7585    def factory(*args_, **kwargs_):7586        if docParamNameList.subclass:7587            return docParamNameList.subclass(*args_, **kwargs_)7588        else:7589            return docParamNameList(*args_, **kwargs_)7590    factory = staticmethod(factory)7591    def get_parametername(self): return self.parametername7592    def set_parametername(self, parametername): self.parametername = parametername7593    def add_parametername(self, value): self.parametername.append(value)7594    def insert_parametername(self, index, value): self.parametername[index] = value7595    def export(self, outfile, level, namespace_='', name_='docParamNameList', namespacedef_=''):7596        showIndent(outfile, level)7597        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))7598        self.exportAttributes(outfile, level, namespace_, name_='docParamNameList')7599        if self.hasContent_():7600            outfile.write('>\n')7601            self.exportChildren(outfile, level + 1, namespace_, name_)7602            showIndent(outfile, level)7603            outfile.write('</%s%s>\n' % (namespace_, name_))7604        else:7605            outfile.write(' />\n')7606    def exportAttributes(self, outfile, level, namespace_='', name_='docParamNameList'):7607        pass7608    def exportChildren(self, outfile, level, namespace_='', name_='docParamNameList'):7609        for parametername_ in self.parametername:7610            parametername_.export(outfile, level, namespace_, name_='parametername')7611    def hasContent_(self):7612        if (7613            self.parametername is not None7614            ):7615            return True7616        else:7617            return False7618    def exportLiteral(self, outfile, level, name_='docParamNameList'):7619        level += 17620        self.exportLiteralAttributes(outfile, level, name_)7621        if self.hasContent_():7622            self.exportLiteralChildren(outfile, level, name_)7623    def exportLiteralAttributes(self, outfile, level, name_):7624        pass7625    def exportLiteralChildren(self, outfile, level, name_):7626        showIndent(outfile, level)7627        outfile.write('parametername=[\n')7628        level += 17629        for parametername in self.parametername:7630            showIndent(outfile, level)7631            outfile.write('model_.parametername(\n')7632            parametername.exportLiteral(outfile, level, name_='parametername')7633            showIndent(outfile, level)7634            outfile.write('),\n')7635        level -= 17636        showIndent(outfile, level)7637        outfile.write('],\n')7638    def build(self, node_):7639        attrs = node_.attributes7640        self.buildAttributes(attrs)7641        for child_ in node_.childNodes:7642            nodeName_ = child_.nodeName.split(':')[-1]7643            self.buildChildren(child_, nodeName_)7644    def buildAttributes(self, attrs):7645        pass7646    def buildChildren(self, child_, nodeName_):7647        if child_.nodeType == Node.ELEMENT_NODE and \7648            nodeName_ == 'parametername':7649            obj_ = docParamName.factory()7650            obj_.build(child_)7651            self.parametername.append(obj_)7652# end class docParamNameList7653class docParamName(GeneratedsSuper):7654    subclass = None7655    superclass = None7656    def __init__(self, direction=None, ref=None, mixedclass_=None, content_=None):7657        self.direction = direction7658        if mixedclass_ is None:7659            self.mixedclass_ = MixedContainer7660        else:7661            self.mixedclass_ = mixedclass_7662        if content_ is None:7663            self.content_ = []7664        else:7665            self.content_ = content_7666    def factory(*args_, **kwargs_):7667        if docParamName.subclass:7668            return docParamName.subclass(*args_, **kwargs_)7669        else:7670            return docParamName(*args_, **kwargs_)7671    factory = staticmethod(factory)7672    def get_ref(self): return self.ref7673    def set_ref(self, ref): self.ref = ref7674    def get_direction(self): return self.direction7675    def set_direction(self, direction): self.direction = direction7676    def export(self, outfile, level, namespace_='', name_='docParamName', namespacedef_=''):7677        showIndent(outfile, level)7678        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))7679        self.exportAttributes(outfile, level, namespace_, name_='docParamName')7680        outfile.write('>')7681        self.exportChildren(outfile, level + 1, namespace_, name_)7682        outfile.write('</%s%s>\n' % (namespace_, name_))7683    def exportAttributes(self, outfile, level, namespace_='', name_='docParamName'):7684        if self.direction is not None:7685            outfile.write(' direction=%s' % (quote_attrib(self.direction), ))7686    def exportChildren(self, outfile, level, namespace_='', name_='docParamName'):7687        for item_ in self.content_:7688            item_.export(outfile, level, item_.name, namespace_)7689    def hasContent_(self):7690        if (7691            self.ref is not None7692            ):7693            return True7694        else:7695            return False7696    def exportLiteral(self, outfile, level, name_='docParamName'):7697        level += 17698        self.exportLiteralAttributes(outfile, level, name_)7699        if self.hasContent_():7700            self.exportLiteralChildren(outfile, level, name_)7701    def exportLiteralAttributes(self, outfile, level, name_):7702        if self.direction is not None:7703            showIndent(outfile, level)7704            outfile.write('direction = "%s",\n' % (self.direction,))7705    def exportLiteralChildren(self, outfile, level, name_):7706        showIndent(outfile, level)7707        outfile.write('content_ = [\n')7708        for item_ in self.content_:7709            item_.exportLiteral(outfile, level, name_)7710        showIndent(outfile, level)7711        outfile.write('],\n')7712    def build(self, node_):7713        attrs = node_.attributes7714        self.buildAttributes(attrs)7715        for child_ in node_.childNodes:7716            nodeName_ = child_.nodeName.split(':')[-1]7717            self.buildChildren(child_, nodeName_)7718    def buildAttributes(self, attrs):7719        if attrs.get('direction'):7720            self.direction = attrs.get('direction').value7721    def buildChildren(self, child_, nodeName_):7722        if child_.nodeType == Node.ELEMENT_NODE and \7723            nodeName_ == 'ref':7724            childobj_ = docRefTextType.factory()7725            childobj_.build(child_)7726            obj_ = self.mixedclass_(MixedContainer.CategoryComplex,7727                MixedContainer.TypeNone, 'ref', childobj_)7728            self.content_.append(obj_)7729        elif child_.nodeType == Node.TEXT_NODE:7730            obj_ = self.mixedclass_(MixedContainer.CategoryText,7731                MixedContainer.TypeNone, '', child_.nodeValue)7732            self.content_.append(obj_)7733# end class docParamName7734class docXRefSectType(GeneratedsSuper):7735    subclass = None7736    superclass = None7737    def __init__(self, id=None, xreftitle=None, xrefdescription=None):7738        self.id = id7739        if xreftitle is None:7740            self.xreftitle = []7741        else:7742            self.xreftitle = xreftitle7743        self.xrefdescription = xrefdescription7744    def factory(*args_, **kwargs_):7745        if docXRefSectType.subclass:7746            return docXRefSectType.subclass(*args_, **kwargs_)7747        else:7748            return docXRefSectType(*args_, **kwargs_)7749    factory = staticmethod(factory)7750    def get_xreftitle(self): return self.xreftitle7751    def set_xreftitle(self, xreftitle): self.xreftitle = xreftitle7752    def add_xreftitle(self, value): self.xreftitle.append(value)7753    def insert_xreftitle(self, index, value): self.xreftitle[index] = value7754    def get_xrefdescription(self): return self.xrefdescription7755    def set_xrefdescription(self, xrefdescription): self.xrefdescription = xrefdescription7756    def get_id(self): return self.id7757    def set_id(self, id): self.id = id7758    def export(self, outfile, level, namespace_='', name_='docXRefSectType', namespacedef_=''):7759        showIndent(outfile, level)7760        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))7761        self.exportAttributes(outfile, level, namespace_, name_='docXRefSectType')7762        if self.hasContent_():7763            outfile.write('>\n')7764            self.exportChildren(outfile, level + 1, namespace_, name_)7765            showIndent(outfile, level)7766            outfile.write('</%s%s>\n' % (namespace_, name_))7767        else:7768            outfile.write(' />\n')7769    def exportAttributes(self, outfile, level, namespace_='', name_='docXRefSectType'):7770        if self.id is not None:7771            outfile.write(' id=%s' % (self.format_string(quote_attrib(self.id).encode(ExternalEncoding), input_name='id'), ))7772    def exportChildren(self, outfile, level, namespace_='', name_='docXRefSectType'):7773        for xreftitle_ in self.xreftitle:7774            showIndent(outfile, level)7775            outfile.write('<%sxreftitle>%s</%sxreftitle>\n' % (namespace_, self.format_string(quote_xml(xreftitle_).encode(ExternalEncoding), input_name='xreftitle'), namespace_))7776        if self.xrefdescription:7777            self.xrefdescription.export(outfile, level, namespace_, name_='xrefdescription', )7778    def hasContent_(self):7779        if (7780            self.xreftitle is not None or7781            self.xrefdescription is not None7782            ):7783            return True7784        else:7785            return False7786    def exportLiteral(self, outfile, level, name_='docXRefSectType'):7787        level += 17788        self.exportLiteralAttributes(outfile, level, name_)7789        if self.hasContent_():7790            self.exportLiteralChildren(outfile, level, name_)7791    def exportLiteralAttributes(self, outfile, level, name_):7792        if self.id is not None:7793            showIndent(outfile, level)7794            outfile.write('id = %s,\n' % (self.id,))7795    def exportLiteralChildren(self, outfile, level, name_):7796        showIndent(outfile, level)7797        outfile.write('xreftitle=[\n')7798        level += 17799        for xreftitle in self.xreftitle:7800            showIndent(outfile, level)7801            outfile.write('%s,\n' % quote_python(xreftitle).encode(ExternalEncoding))7802        level -= 17803        showIndent(outfile, level)7804        outfile.write('],\n')7805        if self.xrefdescription:7806            showIndent(outfile, level)7807            outfile.write('xrefdescription=model_.descriptionType(\n')7808            self.xrefdescription.exportLiteral(outfile, level, name_='xrefdescription')7809            showIndent(outfile, level)7810            outfile.write('),\n')7811    def build(self, node_):7812        attrs = node_.attributes7813        self.buildAttributes(attrs)7814        for child_ in node_.childNodes:7815            nodeName_ = child_.nodeName.split(':')[-1]7816            self.buildChildren(child_, nodeName_)7817    def buildAttributes(self, attrs):7818        if attrs.get('id'):7819            self.id = attrs.get('id').value7820    def buildChildren(self, child_, nodeName_):7821        if child_.nodeType == Node.ELEMENT_NODE and \7822            nodeName_ == 'xreftitle':7823            xreftitle_ = ''7824            for text__content_ in child_.childNodes:7825                xreftitle_ += text__content_.nodeValue7826            self.xreftitle.append(xreftitle_)7827        elif child_.nodeType == Node.ELEMENT_NODE and \7828            nodeName_ == 'xrefdescription':7829            obj_ = descriptionType.factory()7830            obj_.build(child_)7831            self.set_xrefdescription(obj_)7832# end class docXRefSectType7833class docCopyType(GeneratedsSuper):7834    subclass = None7835    superclass = None7836    def __init__(self, link=None, para=None, sect1=None, internal=None):7837        self.link = link7838        if para is None:7839            self.para = []7840        else:7841            self.para = para7842        if sect1 is None:7843            self.sect1 = []7844        else:7845            self.sect1 = sect17846        self.internal = internal7847    def factory(*args_, **kwargs_):7848        if docCopyType.subclass:7849            return docCopyType.subclass(*args_, **kwargs_)7850        else:7851            return docCopyType(*args_, **kwargs_)7852    factory = staticmethod(factory)7853    def get_para(self): return self.para7854    def set_para(self, para): self.para = para7855    def add_para(self, value): self.para.append(value)7856    def insert_para(self, index, value): self.para[index] = value7857    def get_sect1(self): return self.sect17858    def set_sect1(self, sect1): self.sect1 = sect17859    def add_sect1(self, value): self.sect1.append(value)7860    def insert_sect1(self, index, value): self.sect1[index] = value7861    def get_internal(self): return self.internal7862    def set_internal(self, internal): self.internal = internal7863    def get_link(self): return self.link7864    def set_link(self, link): self.link = link7865    def export(self, outfile, level, namespace_='', name_='docCopyType', namespacedef_=''):7866        showIndent(outfile, level)7867        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))7868        self.exportAttributes(outfile, level, namespace_, name_='docCopyType')7869        if self.hasContent_():7870            outfile.write('>\n')7871            self.exportChildren(outfile, level + 1, namespace_, name_)7872            showIndent(outfile, level)7873            outfile.write('</%s%s>\n' % (namespace_, name_))7874        else:7875            outfile.write(' />\n')7876    def exportAttributes(self, outfile, level, namespace_='', name_='docCopyType'):7877        if self.link is not None:7878            outfile.write(' link=%s' % (self.format_string(quote_attrib(self.link).encode(ExternalEncoding), input_name='link'), ))7879    def exportChildren(self, outfile, level, namespace_='', name_='docCopyType'):7880        for para_ in self.para:7881            para_.export(outfile, level, namespace_, name_='para')7882        for sect1_ in self.sect1:7883            sect1_.export(outfile, level, namespace_, name_='sect1')7884        if self.internal:7885            self.internal.export(outfile, level, namespace_, name_='internal')7886    def hasContent_(self):7887        if (7888            self.para is not None or7889            self.sect1 is not None or7890            self.internal is not None7891            ):7892            return True7893        else:7894            return False7895    def exportLiteral(self, outfile, level, name_='docCopyType'):7896        level += 17897        self.exportLiteralAttributes(outfile, level, name_)7898        if self.hasContent_():7899            self.exportLiteralChildren(outfile, level, name_)7900    def exportLiteralAttributes(self, outfile, level, name_):7901        if self.link is not None:7902            showIndent(outfile, level)7903            outfile.write('link = %s,\n' % (self.link,))7904    def exportLiteralChildren(self, outfile, level, name_):7905        showIndent(outfile, level)7906        outfile.write('para=[\n')7907        level += 17908        for para in self.para:7909            showIndent(outfile, level)7910            outfile.write('model_.para(\n')7911            para.exportLiteral(outfile, level, name_='para')7912            showIndent(outfile, level)7913            outfile.write('),\n')7914        level -= 17915        showIndent(outfile, level)7916        outfile.write('],\n')7917        showIndent(outfile, level)7918        outfile.write('sect1=[\n')7919        level += 17920        for sect1 in self.sect1:7921            showIndent(outfile, level)7922            outfile.write('model_.sect1(\n')7923            sect1.exportLiteral(outfile, level, name_='sect1')7924            showIndent(outfile, level)7925            outfile.write('),\n')7926        level -= 17927        showIndent(outfile, level)7928        outfile.write('],\n')7929        if self.internal:7930            showIndent(outfile, level)7931            outfile.write('internal=model_.docInternalType(\n')7932            self.internal.exportLiteral(outfile, level, name_='internal')7933            showIndent(outfile, level)7934            outfile.write('),\n')7935    def build(self, node_):7936        attrs = node_.attributes7937        self.buildAttributes(attrs)7938        for child_ in node_.childNodes:7939            nodeName_ = child_.nodeName.split(':')[-1]7940            self.buildChildren(child_, nodeName_)7941    def buildAttributes(self, attrs):7942        if attrs.get('link'):7943            self.link = attrs.get('link').value7944    def buildChildren(self, child_, nodeName_):7945        if child_.nodeType == Node.ELEMENT_NODE and \7946            nodeName_ == 'para':7947            obj_ = docParaType.factory()7948            obj_.build(child_)7949            self.para.append(obj_)7950        elif child_.nodeType == Node.ELEMENT_NODE and \7951            nodeName_ == 'sect1':7952            obj_ = docSect1Type.factory()7953            obj_.build(child_)7954            self.sect1.append(obj_)7955        elif child_.nodeType == Node.ELEMENT_NODE and \7956            nodeName_ == 'internal':7957            obj_ = docInternalType.factory()7958            obj_.build(child_)7959            self.set_internal(obj_)7960# end class docCopyType7961class docCharType(GeneratedsSuper):7962    subclass = None7963    superclass = None7964    def __init__(self, char=None, valueOf_=''):7965        self.char = char7966        self.valueOf_ = valueOf_7967    def factory(*args_, **kwargs_):7968        if docCharType.subclass:7969            return docCharType.subclass(*args_, **kwargs_)7970        else:7971            return docCharType(*args_, **kwargs_)7972    factory = staticmethod(factory)7973    def get_char(self): return self.char7974    def set_char(self, char): self.char = char7975    def getValueOf_(self): return self.valueOf_7976    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_7977    def export(self, outfile, level, namespace_='', name_='docCharType', namespacedef_=''):7978        showIndent(outfile, level)7979        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))7980        self.exportAttributes(outfile, level, namespace_, name_='docCharType')7981        if self.hasContent_():7982            outfile.write('>\n')7983            self.exportChildren(outfile, level + 1, namespace_, name_)7984            showIndent(outfile, level)7985            outfile.write('</%s%s>\n' % (namespace_, name_))7986        else:7987            outfile.write(' />\n')7988    def exportAttributes(self, outfile, level, namespace_='', name_='docCharType'):7989        if self.char is not None:7990            outfile.write(' char=%s' % (quote_attrib(self.char), ))7991    def exportChildren(self, outfile, level, namespace_='', name_='docCharType'):7992        if self.valueOf_.find('![CDATA')>-1:7993            value=quote_xml('%s' % self.valueOf_)7994            value=value.replace('![CDATA','<![CDATA')7995            value=value.replace(']]',']]>')7996            outfile.write(value)7997        else:7998            outfile.write(quote_xml('%s' % self.valueOf_))7999    def hasContent_(self):8000        if (8001            self.valueOf_ is not None8002            ):8003            return True8004        else:8005            return False8006    def exportLiteral(self, outfile, level, name_='docCharType'):8007        level += 18008        self.exportLiteralAttributes(outfile, level, name_)8009        if self.hasContent_():8010            self.exportLiteralChildren(outfile, level, name_)8011    def exportLiteralAttributes(self, outfile, level, name_):8012        if self.char is not None:8013            showIndent(outfile, level)8014            outfile.write('char = "%s",\n' % (self.char,))8015    def exportLiteralChildren(self, outfile, level, name_):8016        showIndent(outfile, level)8017        outfile.write('valueOf_ = "%s",\n' % (self.valueOf_,))8018    def build(self, node_):8019        attrs = node_.attributes8020        self.buildAttributes(attrs)8021        self.valueOf_ = ''8022        for child_ in node_.childNodes:8023            nodeName_ = child_.nodeName.split(':')[-1]8024            self.buildChildren(child_, nodeName_)8025    def buildAttributes(self, attrs):8026        if attrs.get('char'):8027            self.char = attrs.get('char').value8028    def buildChildren(self, child_, nodeName_):8029        if child_.nodeType == Node.TEXT_NODE:8030            self.valueOf_ += child_.nodeValue8031        elif child_.nodeType == Node.CDATA_SECTION_NODE:8032            self.valueOf_ += '![CDATA['+child_.nodeValue+']]'8033# end class docCharType8034class docEmptyType(GeneratedsSuper):8035    subclass = None8036    superclass = None8037    def __init__(self, valueOf_=''):8038        self.valueOf_ = valueOf_8039    def factory(*args_, **kwargs_):8040        if docEmptyType.subclass:8041            return docEmptyType.subclass(*args_, **kwargs_)8042        else:8043            return docEmptyType(*args_, **kwargs_)8044    factory = staticmethod(factory)8045    def getValueOf_(self): return self.valueOf_8046    def setValueOf_(self, valueOf_): self.valueOf_ = valueOf_8047    def export(self, outfile, level, namespace_='', name_='docEmptyType', namespacedef_=''):8048        showIndent(outfile, level)8049        outfile.write('<%s%s %s' % (namespace_, name_, namespacedef_, ))8050        self.exportAttributes(outfile, level, namespace_, name_='docEmptyType')8051        if self.hasContent_():8052            outfile.write('>\n')8053            self.exportChildren(outfile, level + 1, namespace_, name_)8054            showIndent(outfile, level)8055            outfile.write('</%s%s>\n' % (namespace_, name_))8056        else:8057            outfile.write(' />\n')8058    def exportAttributes(self, outfile, level, namespace_='', name_='docEmptyType'):8059        pass8060    def exportChildren(self, outfile, level, namespace_='', name_='docEmptyType'):8061        if self.valueOf_.find('![CDATA')>-1:8062            value=quote_xml('%s' % self.valueOf_)8063            value=value.replace('![CDATA','<![CDATA')8064            value=value.replace(']]',']]>')8065            outfile.write(value)8066        else:8067            outfile.write(quote_xml('%s' % self.valueOf_))8068    def hasContent_(self):8069        if (8070            self.valueOf_ is not None8071            ):8072            return True...sad.py
Source:sad.py  
...786            name_ = self.original_tagname_787        showIndent(outfile, level, pretty_print)788        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))789        already_processed = set()790        self.exportAttributes(outfile, level, already_processed, namespace_, name_='softwareassembly')791        if self.hasContent_():792            outfile.write('>%s' % (eol_, ))793            self.exportChildren(outfile, level + 1, namespace_='', name_='softwareassembly', pretty_print=pretty_print)794            showIndent(outfile, level, pretty_print)795            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))796        else:797            outfile.write('/>%s' % (eol_, ))798    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='softwareassembly'):799        if self.id_ is not None and 'id' not in already_processed:800            already_processed.add('id')801            outfile.write(' id=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.id_), input_name='id')), ))802        if self.name is not None and 'name' not in already_processed:803            already_processed.add('name')804            outfile.write(' name=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.name), input_name='name')), ))805        if self.version is not None and 'version' not in already_processed:806            already_processed.add('version')807            outfile.write(' version=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.version), input_name='version')), ))808    def exportChildren(self, outfile, level, namespace_='', name_='softwareassembly', fromsubclass_=False, pretty_print=True):809        if pretty_print:810            eol_ = '\n'811        else:812            eol_ = ''813        if self.description is not None:814            showIndent(outfile, level, pretty_print)815            outfile.write('<description>%s</description>%s' % (self.gds_encode(self.gds_format_string(quote_xml(self.description), input_name='description')), eol_))816        if self.componentfiles is not None:817            self.componentfiles.export(outfile, level, namespace_, name_='componentfiles', pretty_print=pretty_print)818        if self.partitioning is not None:819            self.partitioning.export(outfile, level, namespace_, name_='partitioning', pretty_print=pretty_print)820        if self.assemblycontroller is not None:821            self.assemblycontroller.export(outfile, level, namespace_, name_='assemblycontroller', pretty_print=pretty_print)822        if self.connections is not None:823            self.connections.export(outfile, level, namespace_, name_='connections', pretty_print=pretty_print)824        if self.externalports is not None:825            self.externalports.export(outfile, level, namespace_, name_='externalports', pretty_print=pretty_print)826        if self.externalproperties is not None:827            self.externalproperties.export(outfile, level, namespace_, name_='externalproperties', pretty_print=pretty_print)828        if self.options is not None:829            self.options.export(outfile, level, namespace_, name_='options', pretty_print=pretty_print)830        for usesdevicedependencies_ in self.usesdevicedependencies:831            usesdevicedependencies_.export(outfile, level, namespace_, name_='usesdevicedependencies', pretty_print=pretty_print)832    def build(self, node):833        already_processed = set()834        self.buildAttributes(node, node.attrib, already_processed)835        for child in node:836            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]837            self.buildChildren(child, node, nodeName_)838        return self839    def buildAttributes(self, node, attrs, already_processed):840        value = find_attr_value_('id', node)841        if value is not None and 'id' not in already_processed:842            already_processed.add('id')843            self.id_ = value844        value = find_attr_value_('name', node)845        if value is not None and 'name' not in already_processed:846            already_processed.add('name')847            self.name = value848        value = find_attr_value_('version', node)849        if value is not None and 'version' not in already_processed:850            already_processed.add('version')851            self.version = value852    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):853        if nodeName_ == 'description':854            description_ = child_.text855            description_ = self.gds_validate_string(description_, node, 'description')856            self.description = description_857        elif nodeName_ == 'componentfiles':858            obj_ = componentfiles.factory()859            obj_.build(child_)860            self.componentfiles = obj_861            obj_.original_tagname_ = 'componentfiles'862        elif nodeName_ == 'partitioning':863            obj_ = partitioning.factory()864            obj_.build(child_)865            self.partitioning = obj_866            obj_.original_tagname_ = 'partitioning'867        elif nodeName_ == 'assemblycontroller':868            obj_ = assemblycontroller.factory()869            obj_.build(child_)870            self.assemblycontroller = obj_871            obj_.original_tagname_ = 'assemblycontroller'872        elif nodeName_ == 'connections':873            obj_ = connections.factory()874            obj_.build(child_)875            self.connections = obj_876            obj_.original_tagname_ = 'connections'877        elif nodeName_ == 'externalports':878            obj_ = externalports.factory()879            obj_.build(child_)880            self.externalports = obj_881            obj_.original_tagname_ = 'externalports'882        elif nodeName_ == 'externalproperties':883            obj_ = externalproperties.factory()884            obj_.build(child_)885            self.externalproperties = obj_886            obj_.original_tagname_ = 'externalproperties'887        elif nodeName_ == 'options':888            obj_ = options.factory()889            obj_.build(child_)890            self.options = obj_891            obj_.original_tagname_ = 'options'892        elif nodeName_ == 'usesdevicedependencies':893            obj_ = usesdevicedependencies.factory()894            obj_.build(child_)895            self.usesdevicedependencies.append(obj_)896            obj_.original_tagname_ = 'usesdevicedependencies'897# end class softwareassembly898class componentfiles(GeneratedsSuper):899    subclass = None900    superclass = None901    def __init__(self, componentfile=None):902        self.original_tagname_ = None903        if componentfile is None:904            self.componentfile = []905        else:906            self.componentfile = componentfile907    def factory(*args_, **kwargs_):908        if CurrentSubclassModule_ is not None:909            subclass = getSubclassFromModule_(910                CurrentSubclassModule_, componentfiles)911            if subclass is not None:912                return subclass(*args_, **kwargs_)913        if componentfiles.subclass:914            return componentfiles.subclass(*args_, **kwargs_)915        else:916            return componentfiles(*args_, **kwargs_)917    factory = staticmethod(factory)918    def get_componentfile(self): return self.componentfile919    def set_componentfile(self, componentfile): self.componentfile = componentfile920    def add_componentfile(self, value): self.componentfile.append(value)921    def insert_componentfile_at(self, index, value): self.componentfile.insert(index, value)922    def replace_componentfile_at(self, index, value): self.componentfile[index] = value923    componentfileProp = property(get_componentfile, set_componentfile)924    def hasContent_(self):925        if (926            self.componentfile927        ):928            return True929        else:930            return False931    def export(self, outfile, level, namespace_='', name_='componentfiles', namespacedef_='', pretty_print=True):932        imported_ns_def_ = GenerateDSNamespaceDefs_.get('componentfiles')933        if imported_ns_def_ is not None:934            namespacedef_ = imported_ns_def_935        if pretty_print:936            eol_ = '\n'937        else:938            eol_ = ''939        if self.original_tagname_ is not None:940            name_ = self.original_tagname_941        showIndent(outfile, level, pretty_print)942        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))943        already_processed = set()944        self.exportAttributes(outfile, level, already_processed, namespace_, name_='componentfiles')945        if self.hasContent_():946            outfile.write('>%s' % (eol_, ))947            self.exportChildren(outfile, level + 1, namespace_='', name_='componentfiles', pretty_print=pretty_print)948            showIndent(outfile, level, pretty_print)949            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))950        else:951            outfile.write('/>%s' % (eol_, ))952    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='componentfiles'):953        pass954    def exportChildren(self, outfile, level, namespace_='', name_='componentfiles', fromsubclass_=False, pretty_print=True):955        if pretty_print:956            eol_ = '\n'957        else:958            eol_ = ''959        for componentfile_ in self.componentfile:960            componentfile_.export(outfile, level, namespace_, name_='componentfile', pretty_print=pretty_print)961    def build(self, node):962        already_processed = set()963        self.buildAttributes(node, node.attrib, already_processed)964        for child in node:965            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]966            self.buildChildren(child, node, nodeName_)967        return self968    def buildAttributes(self, node, attrs, already_processed):969        pass970    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):971        if nodeName_ == 'componentfile':972            obj_ = componentfile.factory()973            obj_.build(child_)974            self.componentfile.append(obj_)975            obj_.original_tagname_ = 'componentfile'976# end class componentfiles977class componentfile(GeneratedsSuper):978    subclass = None979    superclass = None980    def __init__(self, id_=None, type_=None, localfile=None):981        self.original_tagname_ = None982        self.id_ = _cast(None, id_)983        self.type_ = _cast(None, type_)984        self.localfile = localfile985    def factory(*args_, **kwargs_):986        if CurrentSubclassModule_ is not None:987            subclass = getSubclassFromModule_(988                CurrentSubclassModule_, componentfile)989            if subclass is not None:990                return subclass(*args_, **kwargs_)991        if componentfile.subclass:992            return componentfile.subclass(*args_, **kwargs_)993        else:994            return componentfile(*args_, **kwargs_)995    factory = staticmethod(factory)996    def get_localfile(self): return self.localfile997    def set_localfile(self, localfile): self.localfile = localfile998    localfileProp = property(get_localfile, set_localfile)999    def get_id(self): return self.id_1000    def set_id(self, id_): self.id_ = id_1001    idProp = property(get_id, set_id)1002    def get_type(self): return self.type_1003    def set_type(self, type_): self.type_ = type_1004    typeProp = property(get_type, set_type)1005    def hasContent_(self):1006        if (1007            self.localfile is not None1008        ):1009            return True1010        else:1011            return False1012    def export(self, outfile, level, namespace_='', name_='componentfile', namespacedef_='', pretty_print=True):1013        imported_ns_def_ = GenerateDSNamespaceDefs_.get('componentfile')1014        if imported_ns_def_ is not None:1015            namespacedef_ = imported_ns_def_1016        if pretty_print:1017            eol_ = '\n'1018        else:1019            eol_ = ''1020        if self.original_tagname_ is not None:1021            name_ = self.original_tagname_1022        showIndent(outfile, level, pretty_print)1023        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))1024        already_processed = set()1025        self.exportAttributes(outfile, level, already_processed, namespace_, name_='componentfile')1026        if self.hasContent_():1027            outfile.write('>%s' % (eol_, ))1028            self.exportChildren(outfile, level + 1, namespace_='', name_='componentfile', pretty_print=pretty_print)1029            showIndent(outfile, level, pretty_print)1030            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))1031        else:1032            outfile.write('/>%s' % (eol_, ))1033    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='componentfile'):1034        if self.id_ is not None and 'id' not in already_processed:1035            already_processed.add('id')1036            outfile.write(' id=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.id_), input_name='id')), ))1037        if self.type_ is not None and 'type_' not in already_processed:1038            already_processed.add('type_')1039            outfile.write(' type=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.type_), input_name='type')), ))1040    def exportChildren(self, outfile, level, namespace_='', name_='componentfile', fromsubclass_=False, pretty_print=True):1041        if pretty_print:1042            eol_ = '\n'1043        else:1044            eol_ = ''1045        if self.localfile is not None:1046            self.localfile.export(outfile, level, namespace_, name_='localfile', pretty_print=pretty_print)1047    def build(self, node):1048        already_processed = set()1049        self.buildAttributes(node, node.attrib, already_processed)1050        for child in node:1051            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]1052            self.buildChildren(child, node, nodeName_)1053        return self1054    def buildAttributes(self, node, attrs, already_processed):1055        value = find_attr_value_('id', node)1056        if value is not None and 'id' not in already_processed:1057            already_processed.add('id')1058            self.id_ = value1059        value = find_attr_value_('type', node)1060        if value is not None and 'type' not in already_processed:1061            already_processed.add('type')1062            self.type_ = value1063    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):1064        if nodeName_ == 'localfile':1065            obj_ = localfile.factory()1066            obj_.build(child_)1067            self.localfile = obj_1068            obj_.original_tagname_ = 'localfile'1069# end class componentfile1070class localfile(GeneratedsSuper):1071    subclass = None1072    superclass = None1073    def __init__(self, name=None):1074        self.original_tagname_ = None1075        self.name = _cast(None, name)1076    def factory(*args_, **kwargs_):1077        if CurrentSubclassModule_ is not None:1078            subclass = getSubclassFromModule_(1079                CurrentSubclassModule_, localfile)1080            if subclass is not None:1081                return subclass(*args_, **kwargs_)1082        if localfile.subclass:1083            return localfile.subclass(*args_, **kwargs_)1084        else:1085            return localfile(*args_, **kwargs_)1086    factory = staticmethod(factory)1087    def get_name(self): return self.name1088    def set_name(self, name): self.name = name1089    nameProp = property(get_name, set_name)1090    def hasContent_(self):1091        if (1092        ):1093            return True1094        else:1095            return False1096    def export(self, outfile, level, namespace_='', name_='localfile', namespacedef_='', pretty_print=True):1097        imported_ns_def_ = GenerateDSNamespaceDefs_.get('localfile')1098        if imported_ns_def_ is not None:1099            namespacedef_ = imported_ns_def_1100        if pretty_print:1101            eol_ = '\n'1102        else:1103            eol_ = ''1104        if self.original_tagname_ is not None:1105            name_ = self.original_tagname_1106        showIndent(outfile, level, pretty_print)1107        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))1108        already_processed = set()1109        self.exportAttributes(outfile, level, already_processed, namespace_, name_='localfile')1110        if self.hasContent_():1111            outfile.write('>%s' % (eol_, ))1112            self.exportChildren(outfile, level + 1, namespace_='', name_='localfile', pretty_print=pretty_print)1113            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))1114        else:1115            outfile.write('/>%s' % (eol_, ))1116    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='localfile'):1117        if self.name is not None and 'name' not in already_processed:1118            already_processed.add('name')1119            outfile.write(' name=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.name), input_name='name')), ))1120    def exportChildren(self, outfile, level, namespace_='', name_='localfile', fromsubclass_=False, pretty_print=True):1121        pass1122    def build(self, node):1123        already_processed = set()1124        self.buildAttributes(node, node.attrib, already_processed)1125        for child in node:1126            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]1127            self.buildChildren(child, node, nodeName_)1128        return self1129    def buildAttributes(self, node, attrs, already_processed):1130        value = find_attr_value_('name', node)1131        if value is not None and 'name' not in already_processed:1132            already_processed.add('name')1133            self.name = value1134    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):1135        pass1136# end class localfile1137class partitioning(GeneratedsSuper):1138    subclass = None1139    superclass = None1140    def __init__(self, componentplacement=None, hostcollocation=None):1141        self.original_tagname_ = None1142        if componentplacement is None:1143            self.componentplacement = []1144        else:1145            self.componentplacement = componentplacement1146        if hostcollocation is None:1147            self.hostcollocation = []1148        else:1149            self.hostcollocation = hostcollocation1150    def factory(*args_, **kwargs_):1151        if CurrentSubclassModule_ is not None:1152            subclass = getSubclassFromModule_(1153                CurrentSubclassModule_, partitioning)1154            if subclass is not None:1155                return subclass(*args_, **kwargs_)1156        if partitioning.subclass:1157            return partitioning.subclass(*args_, **kwargs_)1158        else:1159            return partitioning(*args_, **kwargs_)1160    factory = staticmethod(factory)1161    def get_componentplacement(self): return self.componentplacement1162    def set_componentplacement(self, componentplacement): self.componentplacement = componentplacement1163    def add_componentplacement(self, value): self.componentplacement.append(value)1164    def insert_componentplacement_at(self, index, value): self.componentplacement.insert(index, value)1165    def replace_componentplacement_at(self, index, value): self.componentplacement[index] = value1166    componentplacementProp = property(get_componentplacement, set_componentplacement)1167    def get_hostcollocation(self): return self.hostcollocation1168    def set_hostcollocation(self, hostcollocation): self.hostcollocation = hostcollocation1169    def add_hostcollocation(self, value): self.hostcollocation.append(value)1170    def insert_hostcollocation_at(self, index, value): self.hostcollocation.insert(index, value)1171    def replace_hostcollocation_at(self, index, value): self.hostcollocation[index] = value1172    hostcollocationProp = property(get_hostcollocation, set_hostcollocation)1173    def hasContent_(self):1174        if (1175            self.componentplacement or1176            self.hostcollocation1177        ):1178            return True1179        else:1180            return False1181    def export(self, outfile, level, namespace_='', name_='partitioning', namespacedef_='', pretty_print=True):1182        imported_ns_def_ = GenerateDSNamespaceDefs_.get('partitioning')1183        if imported_ns_def_ is not None:1184            namespacedef_ = imported_ns_def_1185        if pretty_print:1186            eol_ = '\n'1187        else:1188            eol_ = ''1189        if self.original_tagname_ is not None:1190            name_ = self.original_tagname_1191        showIndent(outfile, level, pretty_print)1192        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))1193        already_processed = set()1194        self.exportAttributes(outfile, level, already_processed, namespace_, name_='partitioning')1195        if self.hasContent_():1196            outfile.write('>%s' % (eol_, ))1197            self.exportChildren(outfile, level + 1, namespace_='', name_='partitioning', pretty_print=pretty_print)1198            showIndent(outfile, level, pretty_print)1199            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))1200        else:1201            outfile.write('/>%s' % (eol_, ))1202    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='partitioning'):1203        pass1204    def exportChildren(self, outfile, level, namespace_='', name_='partitioning', fromsubclass_=False, pretty_print=True):1205        if pretty_print:1206            eol_ = '\n'1207        else:1208            eol_ = ''1209        for componentplacement_ in self.componentplacement:1210            componentplacement_.export(outfile, level, namespace_, name_='componentplacement', pretty_print=pretty_print)1211        for hostcollocation_ in self.hostcollocation:1212            hostcollocation_.export(outfile, level, namespace_, name_='hostcollocation', pretty_print=pretty_print)1213    def build(self, node):1214        already_processed = set()1215        self.buildAttributes(node, node.attrib, already_processed)1216        for child in node:1217            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]1218            self.buildChildren(child, node, nodeName_)1219        return self1220    def buildAttributes(self, node, attrs, already_processed):1221        pass1222    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):1223        if nodeName_ == 'componentplacement':1224            obj_ = componentplacement.factory()1225            obj_.build(child_)1226            self.componentplacement.append(obj_)1227            obj_.original_tagname_ = 'componentplacement'1228        elif nodeName_ == 'hostcollocation':1229            obj_ = hostcollocation.factory()1230            obj_.build(child_)1231            self.hostcollocation.append(obj_)1232            obj_.original_tagname_ = 'hostcollocation'1233# end class partitioning1234class componentplacement(GeneratedsSuper):1235    subclass = None1236    superclass = None1237    def __init__(self, componentfileref=None, componentinstantiation=None):1238        self.original_tagname_ = None1239        self.componentfileref = componentfileref1240        if componentinstantiation is None:1241            self.componentinstantiation = []1242        else:1243            self.componentinstantiation = componentinstantiation1244    def factory(*args_, **kwargs_):1245        if CurrentSubclassModule_ is not None:1246            subclass = getSubclassFromModule_(1247                CurrentSubclassModule_, componentplacement)1248            if subclass is not None:1249                return subclass(*args_, **kwargs_)1250        if componentplacement.subclass:1251            return componentplacement.subclass(*args_, **kwargs_)1252        else:1253            return componentplacement(*args_, **kwargs_)1254    factory = staticmethod(factory)1255    def get_componentfileref(self): return self.componentfileref1256    def set_componentfileref(self, componentfileref): self.componentfileref = componentfileref1257    componentfilerefProp = property(get_componentfileref, set_componentfileref)1258    def get_componentinstantiation(self): return self.componentinstantiation1259    def set_componentinstantiation(self, componentinstantiation): self.componentinstantiation = componentinstantiation1260    def add_componentinstantiation(self, value): self.componentinstantiation.append(value)1261    def insert_componentinstantiation_at(self, index, value): self.componentinstantiation.insert(index, value)1262    def replace_componentinstantiation_at(self, index, value): self.componentinstantiation[index] = value1263    componentinstantiationProp = property(get_componentinstantiation, set_componentinstantiation)1264    def hasContent_(self):1265        if (1266            self.componentfileref is not None or1267            self.componentinstantiation1268        ):1269            return True1270        else:1271            return False1272    def export(self, outfile, level, namespace_='', name_='componentplacement', namespacedef_='', pretty_print=True):1273        imported_ns_def_ = GenerateDSNamespaceDefs_.get('componentplacement')1274        if imported_ns_def_ is not None:1275            namespacedef_ = imported_ns_def_1276        if pretty_print:1277            eol_ = '\n'1278        else:1279            eol_ = ''1280        if self.original_tagname_ is not None:1281            name_ = self.original_tagname_1282        showIndent(outfile, level, pretty_print)1283        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))1284        already_processed = set()1285        self.exportAttributes(outfile, level, already_processed, namespace_, name_='componentplacement')1286        if self.hasContent_():1287            outfile.write('>%s' % (eol_, ))1288            self.exportChildren(outfile, level + 1, namespace_='', name_='componentplacement', pretty_print=pretty_print)1289            showIndent(outfile, level, pretty_print)1290            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))1291        else:1292            outfile.write('/>%s' % (eol_, ))1293    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='componentplacement'):1294        pass1295    def exportChildren(self, outfile, level, namespace_='', name_='componentplacement', fromsubclass_=False, pretty_print=True):1296        if pretty_print:1297            eol_ = '\n'1298        else:1299            eol_ = ''1300        if self.componentfileref is not None:1301            self.componentfileref.export(outfile, level, namespace_, name_='componentfileref', pretty_print=pretty_print)1302        for componentinstantiation_ in self.componentinstantiation:1303            componentinstantiation_.export(outfile, level, namespace_, name_='componentinstantiation', pretty_print=pretty_print)1304    def build(self, node):1305        already_processed = set()1306        self.buildAttributes(node, node.attrib, already_processed)1307        for child in node:1308            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]1309            self.buildChildren(child, node, nodeName_)1310        return self1311    def buildAttributes(self, node, attrs, already_processed):1312        pass1313    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):1314        if nodeName_ == 'componentfileref':1315            obj_ = componentfileref.factory()1316            obj_.build(child_)1317            self.componentfileref = obj_1318            obj_.original_tagname_ = 'componentfileref'1319        elif nodeName_ == 'componentinstantiation':1320            obj_ = componentinstantiation.factory()1321            obj_.build(child_)1322            self.componentinstantiation.append(obj_)1323            obj_.original_tagname_ = 'componentinstantiation'1324# end class componentplacement1325class componentfileref(GeneratedsSuper):1326    subclass = None1327    superclass = None1328    def __init__(self, refid=None):1329        self.original_tagname_ = None1330        self.refid = _cast(None, refid)1331    def factory(*args_, **kwargs_):1332        if CurrentSubclassModule_ is not None:1333            subclass = getSubclassFromModule_(1334                CurrentSubclassModule_, componentfileref)1335            if subclass is not None:1336                return subclass(*args_, **kwargs_)1337        if componentfileref.subclass:1338            return componentfileref.subclass(*args_, **kwargs_)1339        else:1340            return componentfileref(*args_, **kwargs_)1341    factory = staticmethod(factory)1342    def get_refid(self): return self.refid1343    def set_refid(self, refid): self.refid = refid1344    refidProp = property(get_refid, set_refid)1345    def hasContent_(self):1346        if (1347        ):1348            return True1349        else:1350            return False1351    def export(self, outfile, level, namespace_='', name_='componentfileref', namespacedef_='', pretty_print=True):1352        imported_ns_def_ = GenerateDSNamespaceDefs_.get('componentfileref')1353        if imported_ns_def_ is not None:1354            namespacedef_ = imported_ns_def_1355        if pretty_print:1356            eol_ = '\n'1357        else:1358            eol_ = ''1359        if self.original_tagname_ is not None:1360            name_ = self.original_tagname_1361        showIndent(outfile, level, pretty_print)1362        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))1363        already_processed = set()1364        self.exportAttributes(outfile, level, already_processed, namespace_, name_='componentfileref')1365        if self.hasContent_():1366            outfile.write('>%s' % (eol_, ))1367            self.exportChildren(outfile, level + 1, namespace_='', name_='componentfileref', pretty_print=pretty_print)1368            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))1369        else:1370            outfile.write('/>%s' % (eol_, ))1371    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='componentfileref'):1372        if self.refid is not None and 'refid' not in already_processed:1373            already_processed.add('refid')1374            outfile.write(' refid=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.refid), input_name='refid')), ))1375    def exportChildren(self, outfile, level, namespace_='', name_='componentfileref', fromsubclass_=False, pretty_print=True):1376        pass1377    def build(self, node):1378        already_processed = set()1379        self.buildAttributes(node, node.attrib, already_processed)1380        for child in node:1381            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]1382            self.buildChildren(child, node, nodeName_)1383        return self1384    def buildAttributes(self, node, attrs, already_processed):1385        value = find_attr_value_('refid', node)1386        if value is not None and 'refid' not in already_processed:1387            already_processed.add('refid')1388            self.refid = value1389    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):1390        pass1391# end class componentfileref1392class componentinstantiation(GeneratedsSuper):1393    subclass = None1394    superclass = None1395    def __init__(self, id_=None, startorder=None, usagename=None, componentproperties=None, affinity=None, loggingconfig=None, findcomponent=None, devicerequires=None):1396        self.original_tagname_ = None1397        self.id_ = _cast(None, id_)1398        self.startorder = _cast(None, startorder)1399        self.usagename = usagename1400        self.componentproperties = componentproperties1401        self.affinity = affinity1402        self.loggingconfig = loggingconfig1403        self.findcomponent = findcomponent1404        self.devicerequires = devicerequires1405    def factory(*args_, **kwargs_):1406        if CurrentSubclassModule_ is not None:1407            subclass = getSubclassFromModule_(1408                CurrentSubclassModule_, componentinstantiation)1409            if subclass is not None:1410                return subclass(*args_, **kwargs_)1411        if componentinstantiation.subclass:1412            return componentinstantiation.subclass(*args_, **kwargs_)1413        else:1414            return componentinstantiation(*args_, **kwargs_)1415    factory = staticmethod(factory)1416    def get_usagename(self): return self.usagename1417    def set_usagename(self, usagename): self.usagename = usagename1418    usagenameProp = property(get_usagename, set_usagename)1419    def get_componentproperties(self): return self.componentproperties1420    def set_componentproperties(self, componentproperties): self.componentproperties = componentproperties1421    componentpropertiesProp = property(get_componentproperties, set_componentproperties)1422    def get_affinity(self): return self.affinity1423    def set_affinity(self, affinity): self.affinity = affinity1424    affinityProp = property(get_affinity, set_affinity)1425    def get_loggingconfig(self): return self.loggingconfig1426    def set_loggingconfig(self, loggingconfig): self.loggingconfig = loggingconfig1427    loggingconfigProp = property(get_loggingconfig, set_loggingconfig)1428    def get_findcomponent(self): return self.findcomponent1429    def set_findcomponent(self, findcomponent): self.findcomponent = findcomponent1430    findcomponentProp = property(get_findcomponent, set_findcomponent)1431    def get_devicerequires(self): return self.devicerequires1432    def set_devicerequires(self, devicerequires): self.devicerequires = devicerequires1433    devicerequiresProp = property(get_devicerequires, set_devicerequires)1434    def get_id(self): return self.id_1435    def set_id(self, id_): self.id_ = id_1436    idProp = property(get_id, set_id)1437    def get_startorder(self): return self.startorder1438    def set_startorder(self, startorder): self.startorder = startorder1439    startorderProp = property(get_startorder, set_startorder)1440    def hasContent_(self):1441        if (1442            self.usagename is not None or1443            self.componentproperties is not None or1444            self.affinity is not None or1445            self.loggingconfig is not None or1446            self.findcomponent is not None or1447            self.devicerequires is not None1448        ):1449            return True1450        else:1451            return False1452    def export(self, outfile, level, namespace_='', name_='componentinstantiation', namespacedef_='', pretty_print=True):1453        imported_ns_def_ = GenerateDSNamespaceDefs_.get('componentinstantiation')1454        if imported_ns_def_ is not None:1455            namespacedef_ = imported_ns_def_1456        if pretty_print:1457            eol_ = '\n'1458        else:1459            eol_ = ''1460        if self.original_tagname_ is not None:1461            name_ = self.original_tagname_1462        showIndent(outfile, level, pretty_print)1463        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))1464        already_processed = set()1465        self.exportAttributes(outfile, level, already_processed, namespace_, name_='componentinstantiation')1466        if self.hasContent_():1467            outfile.write('>%s' % (eol_, ))1468            self.exportChildren(outfile, level + 1, namespace_='', name_='componentinstantiation', pretty_print=pretty_print)1469            showIndent(outfile, level, pretty_print)1470            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))1471        else:1472            outfile.write('/>%s' % (eol_, ))1473    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='componentinstantiation'):1474        if self.id_ is not None and 'id' not in already_processed:1475            already_processed.add('id')1476            outfile.write(' id=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.id_), input_name='id')), ))1477        if self.startorder is not None and 'startorder' not in already_processed:1478            already_processed.add('startorder')1479            outfile.write(' startorder=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.startorder), input_name='startorder')), ))1480    def exportChildren(self, outfile, level, namespace_='', name_='componentinstantiation', fromsubclass_=False, pretty_print=True):1481        if pretty_print:1482            eol_ = '\n'1483        else:1484            eol_ = ''1485        if self.usagename is not None:1486            showIndent(outfile, level, pretty_print)1487            outfile.write('<usagename>%s</usagename>%s' % (self.gds_encode(self.gds_format_string(quote_xml(self.usagename), input_name='usagename')), eol_))1488        if self.componentproperties is not None:1489            self.componentproperties.export(outfile, level, namespace_, name_='componentproperties', pretty_print=pretty_print)1490        if self.affinity is not None:1491            self.affinity.export(outfile, level, namespace_, name_='affinity', pretty_print=pretty_print)1492        if self.loggingconfig is not None:1493            self.loggingconfig.export(outfile, level, namespace_, name_='loggingconfig', pretty_print=pretty_print)1494        if self.findcomponent is not None:1495            self.findcomponent.export(outfile, level, namespace_, name_='findcomponent', pretty_print=pretty_print)1496        if self.devicerequires is not None:1497            self.devicerequires.export(outfile, level, namespace_, name_='devicerequires', pretty_print=pretty_print)1498    def build(self, node):1499        already_processed = set()1500        self.buildAttributes(node, node.attrib, already_processed)1501        for child in node:1502            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]1503            self.buildChildren(child, node, nodeName_)1504        return self1505    def buildAttributes(self, node, attrs, already_processed):1506        value = find_attr_value_('id', node)1507        if value is not None and 'id' not in already_processed:1508            already_processed.add('id')1509            self.id_ = value1510        value = find_attr_value_('startorder', node)1511        if value is not None and 'startorder' not in already_processed:1512            already_processed.add('startorder')1513            self.startorder = value1514    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):1515        if nodeName_ == 'usagename':1516            usagename_ = child_.text1517            usagename_ = self.gds_validate_string(usagename_, node, 'usagename')1518            self.usagename = usagename_1519        elif nodeName_ == 'componentproperties':1520            obj_ = componentproperties.factory()1521            obj_.build(child_)1522            self.componentproperties = obj_1523            obj_.original_tagname_ = 'componentproperties'1524        elif nodeName_ == 'affinity':1525            obj_ = affinity.factory()1526            obj_.build(child_)1527            self.affinity = obj_1528            obj_.original_tagname_ = 'affinity'1529        elif nodeName_ == 'loggingconfig':1530            obj_ = loggingconfig.factory()1531            obj_.build(child_)1532            self.loggingconfig = obj_1533            obj_.original_tagname_ = 'loggingconfig'1534        elif nodeName_ == 'findcomponent':1535            obj_ = findcomponent.factory()1536            obj_.build(child_)1537            self.findcomponent = obj_1538            obj_.original_tagname_ = 'findcomponent'1539        elif nodeName_ == 'devicerequires':1540            obj_ = devicerequires.factory()1541            obj_.build(child_)1542            self.devicerequires = obj_1543            obj_.original_tagname_ = 'devicerequires'1544# end class componentinstantiation1545class loggingconfig(GeneratedsSuper):1546    subclass = None1547    superclass = None1548    def __init__(self, level=None, valueOf_=None):1549        self.original_tagname_ = None1550        self.level = _cast(None, level)1551        self.value = valueOf_1552    def factory(*args_, **kwargs_):1553        if CurrentSubclassModule_ is not None:1554            subclass = getSubclassFromModule_(1555                CurrentSubclassModule_, loggingconfig)1556            if subclass is not None:1557                return subclass(*args_, **kwargs_)1558        if loggingconfig.subclass:1559            return loggingconfig.subclass(*args_, **kwargs_)1560        else:1561            return loggingconfig(*args_, **kwargs_)1562    factory = staticmethod(factory)1563    def get_level(self): return self.level1564    def set_level(self, level): self.level = level1565    levelProp = property(get_level, set_level)1566    def get_value(self): return self.value1567    def set_value(self, valueOf_): self.value = valueOf_1568    def hasContent_(self):1569        if (1570            (1 if type(self.value ) in [int,float] else self.value)1571        ):1572            return True1573        else:1574            return False1575    def export(self, outfile, level, namespace_='', name_='loggingconfig', namespacedef_='', pretty_print=True):1576        imported_ns_def_ = GenerateDSNamespaceDefs_.get('loggingconfig')1577        if imported_ns_def_ is not None:1578            namespacedef_ = imported_ns_def_1579        if pretty_print:1580            eol_ = '\n'1581        else:1582            eol_ = ''1583        if self.original_tagname_ is not None:1584            name_ = self.original_tagname_1585        showIndent(outfile, level, pretty_print)1586        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))1587        already_processed = set()1588        self.exportAttributes(outfile, level, already_processed, namespace_, name_='loggingconfig')1589        if self.hasContent_():1590            outfile.write('>')1591            outfile.write(self.convert_unicode(self.value))1592            self.exportChildren(outfile, level + 1, namespace_='', name_='loggingconfig', pretty_print=pretty_print)1593            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))1594        else:1595            outfile.write('/>%s' % (eol_, ))1596    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='loggingconfig'):1597        if self.level is not None and 'level' not in already_processed:1598            already_processed.add('level')1599            outfile.write(' level=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.level), input_name='level')), ))1600    def exportChildren(self, outfile, level, namespace_='', name_='loggingconfig', fromsubclass_=False, pretty_print=True):1601        pass1602    def build(self, node):1603        already_processed = set()1604        self.buildAttributes(node, node.attrib, already_processed)1605        self.value = get_all_text_(node)1606        for child in node:1607            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]1608            self.buildChildren(child, node, nodeName_)1609        return self1610    def buildAttributes(self, node, attrs, already_processed):1611        value = find_attr_value_('level', node)1612        if value is not None and 'level' not in already_processed:1613            already_processed.add('level')1614            self.level = value1615    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):1616        pass1617# end class loggingconfig1618class affinity(GeneratedsSuper):1619    subclass = None1620    superclass = None1621    def __init__(self, simpleref=None, simplesequenceref=None, structref=None, structsequenceref=None):1622        self.original_tagname_ = None1623        if simpleref is None:1624            self.simpleref = []1625        else:1626            self.simpleref = simpleref1627        if simplesequenceref is None:1628            self.simplesequenceref = []1629        else:1630            self.simplesequenceref = simplesequenceref1631        if structref is None:1632            self.structref = []1633        else:1634            self.structref = structref1635        if structsequenceref is None:1636            self.structsequenceref = []1637        else:1638            self.structsequenceref = structsequenceref1639    def factory(*args_, **kwargs_):1640        if CurrentSubclassModule_ is not None:1641            subclass = getSubclassFromModule_(1642                CurrentSubclassModule_, affinity)1643            if subclass is not None:1644                return subclass(*args_, **kwargs_)1645        if affinity.subclass:1646            return affinity.subclass(*args_, **kwargs_)1647        else:1648            return affinity(*args_, **kwargs_)1649    factory = staticmethod(factory)1650    def get_simpleref(self): return self.simpleref1651    def set_simpleref(self, simpleref): self.simpleref = simpleref1652    def add_simpleref(self, value): self.simpleref.append(value)1653    def insert_simpleref_at(self, index, value): self.simpleref.insert(index, value)1654    def replace_simpleref_at(self, index, value): self.simpleref[index] = value1655    simplerefProp = property(get_simpleref, set_simpleref)1656    def get_simplesequenceref(self): return self.simplesequenceref1657    def set_simplesequenceref(self, simplesequenceref): self.simplesequenceref = simplesequenceref1658    def add_simplesequenceref(self, value): self.simplesequenceref.append(value)1659    def insert_simplesequenceref_at(self, index, value): self.simplesequenceref.insert(index, value)1660    def replace_simplesequenceref_at(self, index, value): self.simplesequenceref[index] = value1661    simplesequencerefProp = property(get_simplesequenceref, set_simplesequenceref)1662    def get_structref(self): return self.structref1663    def set_structref(self, structref): self.structref = structref1664    def add_structref(self, value): self.structref.append(value)1665    def insert_structref_at(self, index, value): self.structref.insert(index, value)1666    def replace_structref_at(self, index, value): self.structref[index] = value1667    structrefProp = property(get_structref, set_structref)1668    def get_structsequenceref(self): return self.structsequenceref1669    def set_structsequenceref(self, structsequenceref): self.structsequenceref = structsequenceref1670    def add_structsequenceref(self, value): self.structsequenceref.append(value)1671    def insert_structsequenceref_at(self, index, value): self.structsequenceref.insert(index, value)1672    def replace_structsequenceref_at(self, index, value): self.structsequenceref[index] = value1673    structsequencerefProp = property(get_structsequenceref, set_structsequenceref)1674    def hasContent_(self):1675        if (1676            self.simpleref or1677            self.simplesequenceref or1678            self.structref or1679            self.structsequenceref1680        ):1681            return True1682        else:1683            return False1684    def export(self, outfile, level, namespace_='', name_='affinity', namespacedef_='', pretty_print=True):1685        imported_ns_def_ = GenerateDSNamespaceDefs_.get('affinity')1686        if imported_ns_def_ is not None:1687            namespacedef_ = imported_ns_def_1688        if pretty_print:1689            eol_ = '\n'1690        else:1691            eol_ = ''1692        if self.original_tagname_ is not None:1693            name_ = self.original_tagname_1694        showIndent(outfile, level, pretty_print)1695        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))1696        already_processed = set()1697        self.exportAttributes(outfile, level, already_processed, namespace_, name_='affinity')1698        if self.hasContent_():1699            outfile.write('>%s' % (eol_, ))1700            self.exportChildren(outfile, level + 1, namespace_='', name_='affinity', pretty_print=pretty_print)1701            showIndent(outfile, level, pretty_print)1702            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))1703        else:1704            outfile.write('/>%s' % (eol_, ))1705    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='affinity'):1706        pass1707    def exportChildren(self, outfile, level, namespace_='', name_='affinity', fromsubclass_=False, pretty_print=True):1708        if pretty_print:1709            eol_ = '\n'1710        else:1711            eol_ = ''1712        for simpleref_ in self.simpleref:1713            simpleref_.export(outfile, level, namespace_, name_='simpleref', pretty_print=pretty_print)1714        for simplesequenceref_ in self.simplesequenceref:1715            simplesequenceref_.export(outfile, level, namespace_, name_='simplesequenceref', pretty_print=pretty_print)1716        for structref_ in self.structref:1717            structref_.export(outfile, level, namespace_, name_='structref', pretty_print=pretty_print)1718        for structsequenceref_ in self.structsequenceref:1719            structsequenceref_.export(outfile, level, namespace_, name_='structsequenceref', pretty_print=pretty_print)1720    def build(self, node):1721        already_processed = set()1722        self.buildAttributes(node, node.attrib, already_processed)1723        for child in node:1724            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]1725            self.buildChildren(child, node, nodeName_)1726        return self1727    def buildAttributes(self, node, attrs, already_processed):1728        pass1729    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):1730        if nodeName_ == 'simpleref':1731            obj_ = simpleref.factory()1732            obj_.build(child_)1733            self.simpleref.append(obj_)1734            obj_.original_tagname_ = 'simpleref'1735        elif nodeName_ == 'simplesequenceref':1736            obj_ = simplesequenceref.factory()1737            obj_.build(child_)1738            self.simplesequenceref.append(obj_)1739            obj_.original_tagname_ = 'simplesequenceref'1740        elif nodeName_ == 'structref':1741            obj_ = structref.factory()1742            obj_.build(child_)1743            self.structref.append(obj_)1744            obj_.original_tagname_ = 'structref'1745        elif nodeName_ == 'structsequenceref':1746            obj_ = structsequenceref.factory()1747            obj_.build(child_)1748            self.structsequenceref.append(obj_)1749            obj_.original_tagname_ = 'structsequenceref'1750# end class affinity1751class devicerequires(GeneratedsSuper):1752    subclass = None1753    superclass = None1754    def __init__(self, requires=None):1755        self.original_tagname_ = None1756        if requires is None:1757            self.requires = []1758        else:1759            self.requires = requires1760    def factory(*args_, **kwargs_):1761        if CurrentSubclassModule_ is not None:1762            subclass = getSubclassFromModule_(1763                CurrentSubclassModule_, devicerequires)1764            if subclass is not None:1765                return subclass(*args_, **kwargs_)1766        if devicerequires.subclass:1767            return devicerequires.subclass(*args_, **kwargs_)1768        else:1769            return devicerequires(*args_, **kwargs_)1770    factory = staticmethod(factory)1771    def get_requires(self): return self.requires1772    def set_requires(self, requires): self.requires = requires1773    def add_requires(self, value): self.requires.append(value)1774    def insert_requires_at(self, index, value): self.requires.insert(index, value)1775    def replace_requires_at(self, index, value): self.requires[index] = value1776    requiresProp = property(get_requires, set_requires)1777    def hasContent_(self):1778        if (1779            self.requires1780        ):1781            return True1782        else:1783            return False1784    def export(self, outfile, level, namespace_='', name_='devicerequires', namespacedef_='', pretty_print=True):1785        imported_ns_def_ = GenerateDSNamespaceDefs_.get('devicerequires')1786        if imported_ns_def_ is not None:1787            namespacedef_ = imported_ns_def_1788        if pretty_print:1789            eol_ = '\n'1790        else:1791            eol_ = ''1792        if self.original_tagname_ is not None:1793            name_ = self.original_tagname_1794        showIndent(outfile, level, pretty_print)1795        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))1796        already_processed = set()1797        self.exportAttributes(outfile, level, already_processed, namespace_, name_='devicerequires')1798        if self.hasContent_():1799            outfile.write('>%s' % (eol_, ))1800            self.exportChildren(outfile, level + 1, namespace_='', name_='devicerequires', pretty_print=pretty_print)1801            showIndent(outfile, level, pretty_print)1802            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))1803        else:1804            outfile.write('/>%s' % (eol_, ))1805    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='devicerequires'):1806        pass1807    def exportChildren(self, outfile, level, namespace_='', name_='devicerequires', fromsubclass_=False, pretty_print=True):1808        if pretty_print:1809            eol_ = '\n'1810        else:1811            eol_ = ''1812        for requires_ in self.requires:1813            requires_.export(outfile, level, namespace_, name_='requires', pretty_print=pretty_print)1814    def build(self, node):1815        already_processed = set()1816        self.buildAttributes(node, node.attrib, already_processed)1817        for child in node:1818            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]1819            self.buildChildren(child, node, nodeName_)1820        return self1821    def buildAttributes(self, node, attrs, already_processed):1822        pass1823    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):1824        if nodeName_ == 'requires':1825            obj_ = idvalue.factory()1826            obj_.build(child_)1827            self.requires.append(obj_)1828            obj_.original_tagname_ = 'requires'1829# end class devicerequires1830class idvalue(GeneratedsSuper):1831    subclass = None1832    superclass = None1833    def __init__(self, id_=None, value=None):1834        self.original_tagname_ = None1835        self.id = _cast(None, id_)1836        self.value = _cast(None, value)1837    def factory(*args_, **kwargs_):1838        if CurrentSubclassModule_ is not None:1839            subclass = getSubclassFromModule_(1840                CurrentSubclassModule_, idvalue)1841            if subclass is not None:1842                return subclass(*args_, **kwargs_)1843        if idvalue.subclass:1844            return idvalue.subclass(*args_, **kwargs_)1845        else:1846            return idvalue(*args_, **kwargs_)1847    factory = staticmethod(factory)1848    def get_id(self): return self.id1849    def set_id(self, id_): self.id = id_1850    idProp = property(get_id, set_id)1851    def get_value(self): return self.value1852    def set_value(self, value): self.value = value1853    valueProp = property(get_value, set_value)1854    def hasContent_(self):1855        if (1856        ):1857            return True1858        else:1859            return False1860    def export(self, outfile, level, namespace_='', name_='idvalue', namespacedef_='', pretty_print=True):1861        imported_ns_def_ = GenerateDSNamespaceDefs_.get('idvalue')1862        if imported_ns_def_ is not None:1863            namespacedef_ = imported_ns_def_1864        if pretty_print:1865            eol_ = '\n'1866        else:1867            eol_ = ''1868        if self.original_tagname_ is not None:1869            name_ = self.original_tagname_1870        showIndent(outfile, level, pretty_print)1871        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))1872        already_processed = set()1873        self.exportAttributes(outfile, level, already_processed, namespace_, name_='idvalue')1874        if self.hasContent_():1875            outfile.write('>%s' % (eol_, ))1876            self.exportChildren(outfile, level + 1, namespace_='', name_='idvalue', pretty_print=pretty_print)1877            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))1878        else:1879            outfile.write('/>%s' % (eol_, ))1880    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='idvalue'):1881        if self.id is not None and 'id' not in already_processed:1882            already_processed.add('id')1883            outfile.write(' id=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.id), input_name='id')), ))1884        if self.value is not None and 'value' not in already_processed:1885            already_processed.add('value')1886            outfile.write(' value=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.value), input_name='value')), ))1887    def exportChildren(self, outfile, level, namespace_='', name_='idvalue', fromsubclass_=False, pretty_print=True):1888        pass1889    def build(self, node):1890        already_processed = set()1891        self.buildAttributes(node, node.attrib, already_processed)1892        for child in node:1893            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]1894            self.buildChildren(child, node, nodeName_)1895        return self1896    def buildAttributes(self, node, attrs, already_processed):1897        value = find_attr_value_('id', node)1898        if value is not None and 'id' not in already_processed:1899            already_processed.add('id')1900            self.id = value1901        value = find_attr_value_('value', node)1902        if value is not None and 'value' not in already_processed:1903            already_processed.add('value')1904            self.value = value1905    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):1906        pass1907# end class idvalue1908class componentproperties(GeneratedsSuper):1909    subclass = None1910    superclass = None1911    def __init__(self, simpleref=None, simplesequenceref=None, structref=None, structsequenceref=None):1912        self.original_tagname_ = None1913        if simpleref is None:1914            self.simpleref = []1915        else:1916            self.simpleref = simpleref1917        if simplesequenceref is None:1918            self.simplesequenceref = []1919        else:1920            self.simplesequenceref = simplesequenceref1921        if structref is None:1922            self.structref = []1923        else:1924            self.structref = structref1925        if structsequenceref is None:1926            self.structsequenceref = []1927        else:1928            self.structsequenceref = structsequenceref1929    def factory(*args_, **kwargs_):1930        if CurrentSubclassModule_ is not None:1931            subclass = getSubclassFromModule_(1932                CurrentSubclassModule_, componentproperties)1933            if subclass is not None:1934                return subclass(*args_, **kwargs_)1935        if componentproperties.subclass:1936            return componentproperties.subclass(*args_, **kwargs_)1937        else:1938            return componentproperties(*args_, **kwargs_)1939    factory = staticmethod(factory)1940    def get_simpleref(self): return self.simpleref1941    def set_simpleref(self, simpleref): self.simpleref = simpleref1942    def add_simpleref(self, value): self.simpleref.append(value)1943    def insert_simpleref_at(self, index, value): self.simpleref.insert(index, value)1944    def replace_simpleref_at(self, index, value): self.simpleref[index] = value1945    simplerefProp = property(get_simpleref, set_simpleref)1946    def get_simplesequenceref(self): return self.simplesequenceref1947    def set_simplesequenceref(self, simplesequenceref): self.simplesequenceref = simplesequenceref1948    def add_simplesequenceref(self, value): self.simplesequenceref.append(value)1949    def insert_simplesequenceref_at(self, index, value): self.simplesequenceref.insert(index, value)1950    def replace_simplesequenceref_at(self, index, value): self.simplesequenceref[index] = value1951    simplesequencerefProp = property(get_simplesequenceref, set_simplesequenceref)1952    def get_structref(self): return self.structref1953    def set_structref(self, structref): self.structref = structref1954    def add_structref(self, value): self.structref.append(value)1955    def insert_structref_at(self, index, value): self.structref.insert(index, value)1956    def replace_structref_at(self, index, value): self.structref[index] = value1957    structrefProp = property(get_structref, set_structref)1958    def get_structsequenceref(self): return self.structsequenceref1959    def set_structsequenceref(self, structsequenceref): self.structsequenceref = structsequenceref1960    def add_structsequenceref(self, value): self.structsequenceref.append(value)1961    def insert_structsequenceref_at(self, index, value): self.structsequenceref.insert(index, value)1962    def replace_structsequenceref_at(self, index, value): self.structsequenceref[index] = value1963    structsequencerefProp = property(get_structsequenceref, set_structsequenceref)1964    def hasContent_(self):1965        if (1966            self.simpleref or1967            self.simplesequenceref or1968            self.structref or1969            self.structsequenceref1970        ):1971            return True1972        else:1973            return False1974    def export(self, outfile, level, namespace_='', name_='componentproperties', namespacedef_='', pretty_print=True):1975        imported_ns_def_ = GenerateDSNamespaceDefs_.get('componentproperties')1976        if imported_ns_def_ is not None:1977            namespacedef_ = imported_ns_def_1978        if pretty_print:1979            eol_ = '\n'1980        else:1981            eol_ = ''1982        if self.original_tagname_ is not None:1983            name_ = self.original_tagname_1984        showIndent(outfile, level, pretty_print)1985        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))1986        already_processed = set()1987        self.exportAttributes(outfile, level, already_processed, namespace_, name_='componentproperties')1988        if self.hasContent_():1989            outfile.write('>%s' % (eol_, ))1990            self.exportChildren(outfile, level + 1, namespace_='', name_='componentproperties', pretty_print=pretty_print)1991            showIndent(outfile, level, pretty_print)1992            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))1993        else:1994            outfile.write('/>%s' % (eol_, ))1995    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='componentproperties'):1996        pass1997    def exportChildren(self, outfile, level, namespace_='', name_='componentproperties', fromsubclass_=False, pretty_print=True):1998        if pretty_print:1999            eol_ = '\n'2000        else:2001            eol_ = ''2002        for simpleref_ in self.simpleref:2003            simpleref_.export(outfile, level, namespace_, name_='simpleref', pretty_print=pretty_print)2004        for simplesequenceref_ in self.simplesequenceref:2005            simplesequenceref_.export(outfile, level, namespace_, name_='simplesequenceref', pretty_print=pretty_print)2006        for structref_ in self.structref:2007            structref_.export(outfile, level, namespace_, name_='structref', pretty_print=pretty_print)2008        for structsequenceref_ in self.structsequenceref:2009            structsequenceref_.export(outfile, level, namespace_, name_='structsequenceref', pretty_print=pretty_print)2010    def build(self, node):2011        already_processed = set()2012        self.buildAttributes(node, node.attrib, already_processed)2013        for child in node:2014            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]2015            self.buildChildren(child, node, nodeName_)2016        return self2017    def buildAttributes(self, node, attrs, already_processed):2018        pass2019    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):2020        if nodeName_ == 'simpleref':2021            obj_ = simpleref.factory()2022            obj_.build(child_)2023            self.simpleref.append(obj_)2024            obj_.original_tagname_ = 'simpleref'2025        elif nodeName_ == 'simplesequenceref':2026            obj_ = simplesequenceref.factory()2027            obj_.build(child_)2028            self.simplesequenceref.append(obj_)2029            obj_.original_tagname_ = 'simplesequenceref'2030        elif nodeName_ == 'structref':2031            obj_ = structref.factory()2032            obj_.build(child_)2033            self.structref.append(obj_)2034            obj_.original_tagname_ = 'structref'2035        elif nodeName_ == 'structsequenceref':2036            obj_ = structsequenceref.factory()2037            obj_.build(child_)2038            self.structsequenceref.append(obj_)2039            obj_.original_tagname_ = 'structsequenceref'2040# end class componentproperties2041class findcomponent(GeneratedsSuper):2042    subclass = None2043    superclass = None2044    def __init__(self, componentresourcefactoryref=None, namingservice=None):2045        self.original_tagname_ = None2046        self.componentresourcefactoryref = componentresourcefactoryref2047        self.namingservice = namingservice2048    def factory(*args_, **kwargs_):2049        if CurrentSubclassModule_ is not None:2050            subclass = getSubclassFromModule_(2051                CurrentSubclassModule_, findcomponent)2052            if subclass is not None:2053                return subclass(*args_, **kwargs_)2054        if findcomponent.subclass:2055            return findcomponent.subclass(*args_, **kwargs_)2056        else:2057            return findcomponent(*args_, **kwargs_)2058    factory = staticmethod(factory)2059    def get_componentresourcefactoryref(self): return self.componentresourcefactoryref2060    def set_componentresourcefactoryref(self, componentresourcefactoryref): self.componentresourcefactoryref = componentresourcefactoryref2061    componentresourcefactoryrefProp = property(get_componentresourcefactoryref, set_componentresourcefactoryref)2062    def get_namingservice(self): return self.namingservice2063    def set_namingservice(self, namingservice): self.namingservice = namingservice2064    namingserviceProp = property(get_namingservice, set_namingservice)2065    def hasContent_(self):2066        if (2067            self.componentresourcefactoryref is not None or2068            self.namingservice is not None2069        ):2070            return True2071        else:2072            return False2073    def export(self, outfile, level, namespace_='', name_='findcomponent', namespacedef_='', pretty_print=True):2074        imported_ns_def_ = GenerateDSNamespaceDefs_.get('findcomponent')2075        if imported_ns_def_ is not None:2076            namespacedef_ = imported_ns_def_2077        if pretty_print:2078            eol_ = '\n'2079        else:2080            eol_ = ''2081        if self.original_tagname_ is not None:2082            name_ = self.original_tagname_2083        showIndent(outfile, level, pretty_print)2084        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))2085        already_processed = set()2086        self.exportAttributes(outfile, level, already_processed, namespace_, name_='findcomponent')2087        if self.hasContent_():2088            outfile.write('>%s' % (eol_, ))2089            self.exportChildren(outfile, level + 1, namespace_='', name_='findcomponent', pretty_print=pretty_print)2090            showIndent(outfile, level, pretty_print)2091            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))2092        else:2093            outfile.write('/>%s' % (eol_, ))2094    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='findcomponent'):2095        pass2096    def exportChildren(self, outfile, level, namespace_='', name_='findcomponent', fromsubclass_=False, pretty_print=True):2097        if pretty_print:2098            eol_ = '\n'2099        else:2100            eol_ = ''2101        if self.componentresourcefactoryref is not None:2102            self.componentresourcefactoryref.export(outfile, level, namespace_, name_='componentresourcefactoryref', pretty_print=pretty_print)2103        if self.namingservice is not None:2104            self.namingservice.export(outfile, level, namespace_, name_='namingservice', pretty_print=pretty_print)2105    def build(self, node):2106        already_processed = set()2107        self.buildAttributes(node, node.attrib, already_processed)2108        for child in node:2109            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]2110            self.buildChildren(child, node, nodeName_)2111        return self2112    def buildAttributes(self, node, attrs, already_processed):2113        pass2114    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):2115        if nodeName_ == 'componentresourcefactoryref':2116            obj_ = componentresourcefactoryref.factory()2117            obj_.build(child_)2118            self.componentresourcefactoryref = obj_2119            obj_.original_tagname_ = 'componentresourcefactoryref'2120        elif nodeName_ == 'namingservice':2121            obj_ = namingservice.factory()2122            obj_.build(child_)2123            self.namingservice = obj_2124            obj_.original_tagname_ = 'namingservice'2125# end class findcomponent2126class componentresourcefactoryref(GeneratedsSuper):2127    subclass = None2128    superclass = None2129    def __init__(self, refid=None, resourcefactoryproperties=None):2130        self.original_tagname_ = None2131        self.refid = _cast(None, refid)2132        self.resourcefactoryproperties = resourcefactoryproperties2133    def factory(*args_, **kwargs_):2134        if CurrentSubclassModule_ is not None:2135            subclass = getSubclassFromModule_(2136                CurrentSubclassModule_, componentresourcefactoryref)2137            if subclass is not None:2138                return subclass(*args_, **kwargs_)2139        if componentresourcefactoryref.subclass:2140            return componentresourcefactoryref.subclass(*args_, **kwargs_)2141        else:2142            return componentresourcefactoryref(*args_, **kwargs_)2143    factory = staticmethod(factory)2144    def get_resourcefactoryproperties(self): return self.resourcefactoryproperties2145    def set_resourcefactoryproperties(self, resourcefactoryproperties): self.resourcefactoryproperties = resourcefactoryproperties2146    resourcefactorypropertiesProp = property(get_resourcefactoryproperties, set_resourcefactoryproperties)2147    def get_refid(self): return self.refid2148    def set_refid(self, refid): self.refid = refid2149    refidProp = property(get_refid, set_refid)2150    def hasContent_(self):2151        if (2152            self.resourcefactoryproperties is not None2153        ):2154            return True2155        else:2156            return False2157    def export(self, outfile, level, namespace_='', name_='componentresourcefactoryref', namespacedef_='', pretty_print=True):2158        imported_ns_def_ = GenerateDSNamespaceDefs_.get('componentresourcefactoryref')2159        if imported_ns_def_ is not None:2160            namespacedef_ = imported_ns_def_2161        if pretty_print:2162            eol_ = '\n'2163        else:2164            eol_ = ''2165        if self.original_tagname_ is not None:2166            name_ = self.original_tagname_2167        showIndent(outfile, level, pretty_print)2168        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))2169        already_processed = set()2170        self.exportAttributes(outfile, level, already_processed, namespace_, name_='componentresourcefactoryref')2171        if self.hasContent_():2172            outfile.write('>%s' % (eol_, ))2173            self.exportChildren(outfile, level + 1, namespace_='', name_='componentresourcefactoryref', pretty_print=pretty_print)2174            showIndent(outfile, level, pretty_print)2175            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))2176        else:2177            outfile.write('/>%s' % (eol_, ))2178    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='componentresourcefactoryref'):2179        if self.refid is not None and 'refid' not in already_processed:2180            already_processed.add('refid')2181            outfile.write(' refid=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.refid), input_name='refid')), ))2182    def exportChildren(self, outfile, level, namespace_='', name_='componentresourcefactoryref', fromsubclass_=False, pretty_print=True):2183        if pretty_print:2184            eol_ = '\n'2185        else:2186            eol_ = ''2187        if self.resourcefactoryproperties is not None:2188            self.resourcefactoryproperties.export(outfile, level, namespace_, name_='resourcefactoryproperties', pretty_print=pretty_print)2189    def build(self, node):2190        already_processed = set()2191        self.buildAttributes(node, node.attrib, already_processed)2192        for child in node:2193            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]2194            self.buildChildren(child, node, nodeName_)2195        return self2196    def buildAttributes(self, node, attrs, already_processed):2197        value = find_attr_value_('refid', node)2198        if value is not None and 'refid' not in already_processed:2199            already_processed.add('refid')2200            self.refid = value2201    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):2202        if nodeName_ == 'resourcefactoryproperties':2203            obj_ = resourcefactoryproperties.factory()2204            obj_.build(child_)2205            self.resourcefactoryproperties = obj_2206            obj_.original_tagname_ = 'resourcefactoryproperties'2207# end class componentresourcefactoryref2208class devicethatloadedthiscomponentref(GeneratedsSuper):2209    subclass = None2210    superclass = None2211    def __init__(self, refid=None):2212        self.original_tagname_ = None2213        self.refid = _cast(None, refid)2214    def factory(*args_, **kwargs_):2215        if CurrentSubclassModule_ is not None:2216            subclass = getSubclassFromModule_(2217                CurrentSubclassModule_, devicethatloadedthiscomponentref)2218            if subclass is not None:2219                return subclass(*args_, **kwargs_)2220        if devicethatloadedthiscomponentref.subclass:2221            return devicethatloadedthiscomponentref.subclass(*args_, **kwargs_)2222        else:2223            return devicethatloadedthiscomponentref(*args_, **kwargs_)2224    factory = staticmethod(factory)2225    def get_refid(self): return self.refid2226    def set_refid(self, refid): self.refid = refid2227    refidProp = property(get_refid, set_refid)2228    def hasContent_(self):2229        if (2230        ):2231            return True2232        else:2233            return False2234    def export(self, outfile, level, namespace_='', name_='devicethatloadedthiscomponentref', namespacedef_='', pretty_print=True):2235        imported_ns_def_ = GenerateDSNamespaceDefs_.get('devicethatloadedthiscomponentref')2236        if imported_ns_def_ is not None:2237            namespacedef_ = imported_ns_def_2238        if pretty_print:2239            eol_ = '\n'2240        else:2241            eol_ = ''2242        if self.original_tagname_ is not None:2243            name_ = self.original_tagname_2244        showIndent(outfile, level, pretty_print)2245        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))2246        already_processed = set()2247        self.exportAttributes(outfile, level, already_processed, namespace_, name_='devicethatloadedthiscomponentref')2248        if self.hasContent_():2249            outfile.write('>%s' % (eol_, ))2250            self.exportChildren(outfile, level + 1, namespace_='', name_='devicethatloadedthiscomponentref', pretty_print=pretty_print)2251            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))2252        else:2253            outfile.write('/>%s' % (eol_, ))2254    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='devicethatloadedthiscomponentref'):2255        if self.refid is not None and 'refid' not in already_processed:2256            already_processed.add('refid')2257            outfile.write(' refid=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.refid), input_name='refid')), ))2258    def exportChildren(self, outfile, level, namespace_='', name_='devicethatloadedthiscomponentref', fromsubclass_=False, pretty_print=True):2259        pass2260    def build(self, node):2261        already_processed = set()2262        self.buildAttributes(node, node.attrib, already_processed)2263        for child in node:2264            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]2265            self.buildChildren(child, node, nodeName_)2266        return self2267    def buildAttributes(self, node, attrs, already_processed):2268        value = find_attr_value_('refid', node)2269        if value is not None and 'refid' not in already_processed:2270            already_processed.add('refid')2271            self.refid = value2272    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):2273        pass2274# end class devicethatloadedthiscomponentref2275class deviceusedbythiscomponentref(GeneratedsSuper):2276    subclass = None2277    superclass = None2278    def __init__(self, refid=None, usesrefid=None):2279        self.original_tagname_ = None2280        self.refid = _cast(None, refid)2281        self.usesrefid = _cast(None, usesrefid)2282    def factory(*args_, **kwargs_):2283        if CurrentSubclassModule_ is not None:2284            subclass = getSubclassFromModule_(2285                CurrentSubclassModule_, deviceusedbythiscomponentref)2286            if subclass is not None:2287                return subclass(*args_, **kwargs_)2288        if deviceusedbythiscomponentref.subclass:2289            return deviceusedbythiscomponentref.subclass(*args_, **kwargs_)2290        else:2291            return deviceusedbythiscomponentref(*args_, **kwargs_)2292    factory = staticmethod(factory)2293    def get_refid(self): return self.refid2294    def set_refid(self, refid): self.refid = refid2295    refidProp = property(get_refid, set_refid)2296    def get_usesrefid(self): return self.usesrefid2297    def set_usesrefid(self, usesrefid): self.usesrefid = usesrefid2298    usesrefidProp = property(get_usesrefid, set_usesrefid)2299    def hasContent_(self):2300        if (2301        ):2302            return True2303        else:2304            return False2305    def export(self, outfile, level, namespace_='', name_='deviceusedbythiscomponentref', namespacedef_='', pretty_print=True):2306        imported_ns_def_ = GenerateDSNamespaceDefs_.get('deviceusedbythiscomponentref')2307        if imported_ns_def_ is not None:2308            namespacedef_ = imported_ns_def_2309        if pretty_print:2310            eol_ = '\n'2311        else:2312            eol_ = ''2313        if self.original_tagname_ is not None:2314            name_ = self.original_tagname_2315        showIndent(outfile, level, pretty_print)2316        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))2317        already_processed = set()2318        self.exportAttributes(outfile, level, already_processed, namespace_, name_='deviceusedbythiscomponentref')2319        if self.hasContent_():2320            outfile.write('>%s' % (eol_, ))2321            self.exportChildren(outfile, level + 1, namespace_='', name_='deviceusedbythiscomponentref', pretty_print=pretty_print)2322            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))2323        else:2324            outfile.write('/>%s' % (eol_, ))2325    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='deviceusedbythiscomponentref'):2326        if self.refid is not None and 'refid' not in already_processed:2327            already_processed.add('refid')2328            outfile.write(' refid=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.refid), input_name='refid')), ))2329        if self.usesrefid is not None and 'usesrefid' not in already_processed:2330            already_processed.add('usesrefid')2331            outfile.write(' usesrefid=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.usesrefid), input_name='usesrefid')), ))2332    def exportChildren(self, outfile, level, namespace_='', name_='deviceusedbythiscomponentref', fromsubclass_=False, pretty_print=True):2333        pass2334    def build(self, node):2335        already_processed = set()2336        self.buildAttributes(node, node.attrib, already_processed)2337        for child in node:2338            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]2339            self.buildChildren(child, node, nodeName_)2340        return self2341    def buildAttributes(self, node, attrs, already_processed):2342        value = find_attr_value_('refid', node)2343        if value is not None and 'refid' not in already_processed:2344            already_processed.add('refid')2345            self.refid = value2346        value = find_attr_value_('usesrefid', node)2347        if value is not None and 'usesrefid' not in already_processed:2348            already_processed.add('usesrefid')2349            self.usesrefid = value2350    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):2351        pass2352# end class deviceusedbythiscomponentref2353class deviceusedbyapplication(GeneratedsSuper):2354    subclass = None2355    superclass = None2356    def __init__(self, usesrefid=None):2357        self.original_tagname_ = None2358        self.usesrefid = _cast(None, usesrefid)2359    def factory(*args_, **kwargs_):2360        if CurrentSubclassModule_ is not None:2361            subclass = getSubclassFromModule_(2362                CurrentSubclassModule_, deviceusedbyapplication)2363            if subclass is not None:2364                return subclass(*args_, **kwargs_)2365        if deviceusedbyapplication.subclass:2366            return deviceusedbyapplication.subclass(*args_, **kwargs_)2367        else:2368            return deviceusedbyapplication(*args_, **kwargs_)2369    factory = staticmethod(factory)2370    def get_usesrefid(self): return self.usesrefid2371    def set_usesrefid(self, usesrefid): self.usesrefid = usesrefid2372    usesrefidProp = property(get_usesrefid, set_usesrefid)2373    def hasContent_(self):2374        if (2375        ):2376            return True2377        else:2378            return False2379    def export(self, outfile, level, namespace_='', name_='deviceusedbyapplication', namespacedef_='', pretty_print=True):2380        imported_ns_def_ = GenerateDSNamespaceDefs_.get('deviceusedbyapplication')2381        if imported_ns_def_ is not None:2382            namespacedef_ = imported_ns_def_2383        if pretty_print:2384            eol_ = '\n'2385        else:2386            eol_ = ''2387        if self.original_tagname_ is not None:2388            name_ = self.original_tagname_2389        showIndent(outfile, level, pretty_print)2390        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))2391        already_processed = set()2392        self.exportAttributes(outfile, level, already_processed, namespace_, name_='deviceusedbyapplication')2393        if self.hasContent_():2394            outfile.write('>%s' % (eol_, ))2395            self.exportChildren(outfile, level + 1, namespace_='', name_='deviceusedbyapplication', pretty_print=pretty_print)2396            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))2397        else:2398            outfile.write('/>%s' % (eol_, ))2399    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='deviceusedbyapplication'):2400        if self.usesrefid is not None and 'usesrefid' not in already_processed:2401            already_processed.add('usesrefid')2402            outfile.write(' usesrefid=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.usesrefid), input_name='usesrefid')), ))2403    def exportChildren(self, outfile, level, namespace_='', name_='deviceusedbyapplication', fromsubclass_=False, pretty_print=True):2404        pass2405    def build(self, node):2406        already_processed = set()2407        self.buildAttributes(node, node.attrib, already_processed)2408        for child in node:2409            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]2410            self.buildChildren(child, node, nodeName_)2411        return self2412    def buildAttributes(self, node, attrs, already_processed):2413        value = find_attr_value_('usesrefid', node)2414        if value is not None and 'usesrefid' not in already_processed:2415            already_processed.add('usesrefid')2416            self.usesrefid = value2417    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):2418        pass2419# end class deviceusedbyapplication2420class resourcefactoryproperties(GeneratedsSuper):2421    subclass = None2422    superclass = None2423    def __init__(self, simpleref=None, simplesequenceref=None, structref=None, structsequenceref=None):2424        self.original_tagname_ = None2425        if simpleref is None:2426            self.simpleref = []2427        else:2428            self.simpleref = simpleref2429        if simplesequenceref is None:2430            self.simplesequenceref = []2431        else:2432            self.simplesequenceref = simplesequenceref2433        if structref is None:2434            self.structref = []2435        else:2436            self.structref = structref2437        if structsequenceref is None:2438            self.structsequenceref = []2439        else:2440            self.structsequenceref = structsequenceref2441    def factory(*args_, **kwargs_):2442        if CurrentSubclassModule_ is not None:2443            subclass = getSubclassFromModule_(2444                CurrentSubclassModule_, resourcefactoryproperties)2445            if subclass is not None:2446                return subclass(*args_, **kwargs_)2447        if resourcefactoryproperties.subclass:2448            return resourcefactoryproperties.subclass(*args_, **kwargs_)2449        else:2450            return resourcefactoryproperties(*args_, **kwargs_)2451    factory = staticmethod(factory)2452    def get_simpleref(self): return self.simpleref2453    def set_simpleref(self, simpleref): self.simpleref = simpleref2454    def add_simpleref(self, value): self.simpleref.append(value)2455    def insert_simpleref_at(self, index, value): self.simpleref.insert(index, value)2456    def replace_simpleref_at(self, index, value): self.simpleref[index] = value2457    simplerefProp = property(get_simpleref, set_simpleref)2458    def get_simplesequenceref(self): return self.simplesequenceref2459    def set_simplesequenceref(self, simplesequenceref): self.simplesequenceref = simplesequenceref2460    def add_simplesequenceref(self, value): self.simplesequenceref.append(value)2461    def insert_simplesequenceref_at(self, index, value): self.simplesequenceref.insert(index, value)2462    def replace_simplesequenceref_at(self, index, value): self.simplesequenceref[index] = value2463    simplesequencerefProp = property(get_simplesequenceref, set_simplesequenceref)2464    def get_structref(self): return self.structref2465    def set_structref(self, structref): self.structref = structref2466    def add_structref(self, value): self.structref.append(value)2467    def insert_structref_at(self, index, value): self.structref.insert(index, value)2468    def replace_structref_at(self, index, value): self.structref[index] = value2469    structrefProp = property(get_structref, set_structref)2470    def get_structsequenceref(self): return self.structsequenceref2471    def set_structsequenceref(self, structsequenceref): self.structsequenceref = structsequenceref2472    def add_structsequenceref(self, value): self.structsequenceref.append(value)2473    def insert_structsequenceref_at(self, index, value): self.structsequenceref.insert(index, value)2474    def replace_structsequenceref_at(self, index, value): self.structsequenceref[index] = value2475    structsequencerefProp = property(get_structsequenceref, set_structsequenceref)2476    def hasContent_(self):2477        if (2478            self.simpleref or2479            self.simplesequenceref or2480            self.structref or2481            self.structsequenceref2482        ):2483            return True2484        else:2485            return False2486    def export(self, outfile, level, namespace_='', name_='resourcefactoryproperties', namespacedef_='', pretty_print=True):2487        imported_ns_def_ = GenerateDSNamespaceDefs_.get('resourcefactoryproperties')2488        if imported_ns_def_ is not None:2489            namespacedef_ = imported_ns_def_2490        if pretty_print:2491            eol_ = '\n'2492        else:2493            eol_ = ''2494        if self.original_tagname_ is not None:2495            name_ = self.original_tagname_2496        showIndent(outfile, level, pretty_print)2497        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))2498        already_processed = set()2499        self.exportAttributes(outfile, level, already_processed, namespace_, name_='resourcefactoryproperties')2500        if self.hasContent_():2501            outfile.write('>%s' % (eol_, ))2502            self.exportChildren(outfile, level + 1, namespace_='', name_='resourcefactoryproperties', pretty_print=pretty_print)2503            showIndent(outfile, level, pretty_print)2504            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))2505        else:2506            outfile.write('/>%s' % (eol_, ))2507    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='resourcefactoryproperties'):2508        pass2509    def exportChildren(self, outfile, level, namespace_='', name_='resourcefactoryproperties', fromsubclass_=False, pretty_print=True):2510        if pretty_print:2511            eol_ = '\n'2512        else:2513            eol_ = ''2514        for simpleref_ in self.simpleref:2515            simpleref_.export(outfile, level, namespace_, name_='simpleref', pretty_print=pretty_print)2516        for simplesequenceref_ in self.simplesequenceref:2517            simplesequenceref_.export(outfile, level, namespace_, name_='simplesequenceref', pretty_print=pretty_print)2518        for structref_ in self.structref:2519            structref_.export(outfile, level, namespace_, name_='structref', pretty_print=pretty_print)2520        for structsequenceref_ in self.structsequenceref:2521            structsequenceref_.export(outfile, level, namespace_, name_='structsequenceref', pretty_print=pretty_print)2522    def build(self, node):2523        already_processed = set()2524        self.buildAttributes(node, node.attrib, already_processed)2525        for child in node:2526            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]2527            self.buildChildren(child, node, nodeName_)2528        return self2529    def buildAttributes(self, node, attrs, already_processed):2530        pass2531    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):2532        if nodeName_ == 'simpleref':2533            obj_ = simpleref.factory()2534            obj_.build(child_)2535            self.simpleref.append(obj_)2536            obj_.original_tagname_ = 'simpleref'2537        elif nodeName_ == 'simplesequenceref':2538            obj_ = simplesequenceref.factory()2539            obj_.build(child_)2540            self.simplesequenceref.append(obj_)2541            obj_.original_tagname_ = 'simplesequenceref'2542        elif nodeName_ == 'structref':2543            obj_ = structref.factory()2544            obj_.build(child_)2545            self.structref.append(obj_)2546            obj_.original_tagname_ = 'structref'2547        elif nodeName_ == 'structsequenceref':2548            obj_ = structsequenceref.factory()2549            obj_.build(child_)2550            self.structsequenceref.append(obj_)2551            obj_.original_tagname_ = 'structsequenceref'2552# end class resourcefactoryproperties2553class simpleref(GeneratedsSuper):2554    subclass = None2555    superclass = None2556    def __init__(self, refid=None, value=None):2557        self.original_tagname_ = None2558        self.refid = _cast(None, refid)2559        self.value = _cast(None, value)2560    def factory(*args_, **kwargs_):2561        if CurrentSubclassModule_ is not None:2562            subclass = getSubclassFromModule_(2563                CurrentSubclassModule_, simpleref)2564            if subclass is not None:2565                return subclass(*args_, **kwargs_)2566        if simpleref.subclass:2567            return simpleref.subclass(*args_, **kwargs_)2568        else:2569            return simpleref(*args_, **kwargs_)2570    factory = staticmethod(factory)2571    def get_refid(self): return self.refid2572    def set_refid(self, refid): self.refid = refid2573    refidProp = property(get_refid, set_refid)2574    def get_value(self): return self.value2575    def set_value(self, value): self.value = value2576    valueProp = property(get_value, set_value)2577    def hasContent_(self):2578        if (2579        ):2580            return True2581        else:2582            return False2583    def export(self, outfile, level, namespace_='', name_='simpleref', namespacedef_='', pretty_print=True):2584        imported_ns_def_ = GenerateDSNamespaceDefs_.get('simpleref')2585        if imported_ns_def_ is not None:2586            namespacedef_ = imported_ns_def_2587        if pretty_print:2588            eol_ = '\n'2589        else:2590            eol_ = ''2591        if self.original_tagname_ is not None:2592            name_ = self.original_tagname_2593        showIndent(outfile, level, pretty_print)2594        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))2595        already_processed = set()2596        self.exportAttributes(outfile, level, already_processed, namespace_, name_='simpleref')2597        if self.hasContent_():2598            outfile.write('>%s' % (eol_, ))2599            self.exportChildren(outfile, level + 1, namespace_='', name_='simpleref', pretty_print=pretty_print)2600            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))2601        else:2602            outfile.write('/>%s' % (eol_, ))2603    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='simpleref'):2604        if self.refid is not None and 'refid' not in already_processed:2605            already_processed.add('refid')2606            outfile.write(' refid=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.refid), input_name='refid')), ))2607        if self.value is not None and 'value' not in already_processed:2608            already_processed.add('value')2609            outfile.write(' value=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.value), input_name='value')), ))2610    def exportChildren(self, outfile, level, namespace_='', name_='simpleref', fromsubclass_=False, pretty_print=True):2611        pass2612    def build(self, node):2613        already_processed = set()2614        self.buildAttributes(node, node.attrib, already_processed)2615        for child in node:2616            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]2617            self.buildChildren(child, node, nodeName_)2618        return self2619    def buildAttributes(self, node, attrs, already_processed):2620        value = find_attr_value_('refid', node)2621        if value is not None and 'refid' not in already_processed:2622            already_processed.add('refid')2623            self.refid = value2624        value = find_attr_value_('value', node)2625        if value is not None and 'value' not in already_processed:2626            already_processed.add('value')2627            self.value = value2628    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):2629        pass2630# end class simpleref2631class simplesequenceref(GeneratedsSuper):2632    subclass = None2633    superclass = None2634    def __init__(self, refid=None, values=None):2635        self.original_tagname_ = None2636        self.refid = _cast(None, refid)2637        self.values = values2638    def factory(*args_, **kwargs_):2639        if CurrentSubclassModule_ is not None:2640            subclass = getSubclassFromModule_(2641                CurrentSubclassModule_, simplesequenceref)2642            if subclass is not None:2643                return subclass(*args_, **kwargs_)2644        if simplesequenceref.subclass:2645            return simplesequenceref.subclass(*args_, **kwargs_)2646        else:2647            return simplesequenceref(*args_, **kwargs_)2648    factory = staticmethod(factory)2649    def get_values(self): return self.values2650    def set_values(self, values): self.values = values2651    valuesProp = property(get_values, set_values)2652    def get_refid(self): return self.refid2653    def set_refid(self, refid): self.refid = refid2654    refidProp = property(get_refid, set_refid)2655    def hasContent_(self):2656        if (2657            self.values is not None2658        ):2659            return True2660        else:2661            return False2662    def export(self, outfile, level, namespace_='', name_='simplesequenceref', namespacedef_='', pretty_print=True):2663        imported_ns_def_ = GenerateDSNamespaceDefs_.get('simplesequenceref')2664        if imported_ns_def_ is not None:2665            namespacedef_ = imported_ns_def_2666        if pretty_print:2667            eol_ = '\n'2668        else:2669            eol_ = ''2670        if self.original_tagname_ is not None:2671            name_ = self.original_tagname_2672        showIndent(outfile, level, pretty_print)2673        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))2674        already_processed = set()2675        self.exportAttributes(outfile, level, already_processed, namespace_, name_='simplesequenceref')2676        if self.hasContent_():2677            outfile.write('>%s' % (eol_, ))2678            self.exportChildren(outfile, level + 1, namespace_='', name_='simplesequenceref', pretty_print=pretty_print)2679            showIndent(outfile, level, pretty_print)2680            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))2681        else:2682            outfile.write('/>%s' % (eol_, ))2683    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='simplesequenceref'):2684        if self.refid is not None and 'refid' not in already_processed:2685            already_processed.add('refid')2686            outfile.write(' refid=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.refid), input_name='refid')), ))2687    def exportChildren(self, outfile, level, namespace_='', name_='simplesequenceref', fromsubclass_=False, pretty_print=True):2688        if pretty_print:2689            eol_ = '\n'2690        else:2691            eol_ = ''2692        if self.values is not None:2693            self.values.export(outfile, level, namespace_, name_='values', pretty_print=pretty_print)2694    def build(self, node):2695        already_processed = set()2696        self.buildAttributes(node, node.attrib, already_processed)2697        for child in node:2698            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]2699            self.buildChildren(child, node, nodeName_)2700        return self2701    def buildAttributes(self, node, attrs, already_processed):2702        value = find_attr_value_('refid', node)2703        if value is not None and 'refid' not in already_processed:2704            already_processed.add('refid')2705            self.refid = value2706    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):2707        if nodeName_ == 'values':2708            obj_ = values.factory()2709            obj_.build(child_)2710            self.values = obj_2711            obj_.original_tagname_ = 'values'2712# end class simplesequenceref2713class structref(GeneratedsSuper):2714    subclass = None2715    superclass = None2716    def __init__(self, refid=None, simpleref=None, simplesequenceref=None):2717        self.original_tagname_ = None2718        self.refid = _cast(None, refid)2719        if simpleref is None:2720            self.simpleref = []2721        else:2722            self.simpleref = simpleref2723        if simplesequenceref is None:2724            self.simplesequenceref = []2725        else:2726            self.simplesequenceref = simplesequenceref2727    def factory(*args_, **kwargs_):2728        if CurrentSubclassModule_ is not None:2729            subclass = getSubclassFromModule_(2730                CurrentSubclassModule_, structref)2731            if subclass is not None:2732                return subclass(*args_, **kwargs_)2733        if structref.subclass:2734            return structref.subclass(*args_, **kwargs_)2735        else:2736            return structref(*args_, **kwargs_)2737    factory = staticmethod(factory)2738    def get_simpleref(self): return self.simpleref2739    def set_simpleref(self, simpleref): self.simpleref = simpleref2740    def add_simpleref(self, value): self.simpleref.append(value)2741    def insert_simpleref_at(self, index, value): self.simpleref.insert(index, value)2742    def replace_simpleref_at(self, index, value): self.simpleref[index] = value2743    simplerefProp = property(get_simpleref, set_simpleref)2744    def get_simplesequenceref(self): return self.simplesequenceref2745    def set_simplesequenceref(self, simplesequenceref): self.simplesequenceref = simplesequenceref2746    def add_simplesequenceref(self, value): self.simplesequenceref.append(value)2747    def insert_simplesequenceref_at(self, index, value): self.simplesequenceref.insert(index, value)2748    def replace_simplesequenceref_at(self, index, value): self.simplesequenceref[index] = value2749    simplesequencerefProp = property(get_simplesequenceref, set_simplesequenceref)2750    def get_refid(self): return self.refid2751    def set_refid(self, refid): self.refid = refid2752    refidProp = property(get_refid, set_refid)2753    def hasContent_(self):2754        if (2755            self.simpleref or2756            self.simplesequenceref2757        ):2758            return True2759        else:2760            return False2761    def export(self, outfile, level, namespace_='', name_='structref', namespacedef_='', pretty_print=True):2762        imported_ns_def_ = GenerateDSNamespaceDefs_.get('structref')2763        if imported_ns_def_ is not None:2764            namespacedef_ = imported_ns_def_2765        if pretty_print:2766            eol_ = '\n'2767        else:2768            eol_ = ''2769        if self.original_tagname_ is not None:2770            name_ = self.original_tagname_2771        showIndent(outfile, level, pretty_print)2772        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))2773        already_processed = set()2774        self.exportAttributes(outfile, level, already_processed, namespace_, name_='structref')2775        if self.hasContent_():2776            outfile.write('>%s' % (eol_, ))2777            self.exportChildren(outfile, level + 1, namespace_='', name_='structref', pretty_print=pretty_print)2778            showIndent(outfile, level, pretty_print)2779            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))2780        else:2781            outfile.write('/>%s' % (eol_, ))2782    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='structref'):2783        if self.refid is not None and 'refid' not in already_processed:2784            already_processed.add('refid')2785            outfile.write(' refid=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.refid), input_name='refid')), ))2786    def exportChildren(self, outfile, level, namespace_='', name_='structref', fromsubclass_=False, pretty_print=True):2787        if pretty_print:2788            eol_ = '\n'2789        else:2790            eol_ = ''2791        for simpleref_ in self.simpleref:2792            simpleref_.export(outfile, level, namespace_, name_='simpleref', pretty_print=pretty_print)2793        for simplesequenceref_ in self.simplesequenceref:2794            simplesequenceref_.export(outfile, level, namespace_, name_='simplesequenceref', pretty_print=pretty_print)2795    def build(self, node):2796        already_processed = set()2797        self.buildAttributes(node, node.attrib, already_processed)2798        for child in node:2799            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]2800            self.buildChildren(child, node, nodeName_)2801        return self2802    def buildAttributes(self, node, attrs, already_processed):2803        value = find_attr_value_('refid', node)2804        if value is not None and 'refid' not in already_processed:2805            already_processed.add('refid')2806            self.refid = value2807    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):2808        if nodeName_ == 'simpleref':2809            obj_ = simpleref.factory()2810            obj_.build(child_)2811            self.simpleref.append(obj_)2812            obj_.original_tagname_ = 'simpleref'2813        elif nodeName_ == 'simplesequenceref':2814            obj_ = simplesequenceref.factory()2815            obj_.build(child_)2816            self.simplesequenceref.append(obj_)2817            obj_.original_tagname_ = 'simplesequenceref'2818# end class structref2819class structsequenceref(GeneratedsSuper):2820    subclass = None2821    superclass = None2822    def __init__(self, refid=None, structvalue=None):2823        self.original_tagname_ = None2824        self.refid = _cast(None, refid)2825        if structvalue is None:2826            self.structvalue = []2827        else:2828            self.structvalue = structvalue2829    def factory(*args_, **kwargs_):2830        if CurrentSubclassModule_ is not None:2831            subclass = getSubclassFromModule_(2832                CurrentSubclassModule_, structsequenceref)2833            if subclass is not None:2834                return subclass(*args_, **kwargs_)2835        if structsequenceref.subclass:2836            return structsequenceref.subclass(*args_, **kwargs_)2837        else:2838            return structsequenceref(*args_, **kwargs_)2839    factory = staticmethod(factory)2840    def get_structvalue(self): return self.structvalue2841    def set_structvalue(self, structvalue): self.structvalue = structvalue2842    def add_structvalue(self, value): self.structvalue.append(value)2843    def insert_structvalue_at(self, index, value): self.structvalue.insert(index, value)2844    def replace_structvalue_at(self, index, value): self.structvalue[index] = value2845    structvalueProp = property(get_structvalue, set_structvalue)2846    def get_refid(self): return self.refid2847    def set_refid(self, refid): self.refid = refid2848    refidProp = property(get_refid, set_refid)2849    def hasContent_(self):2850        if (2851            self.structvalue2852        ):2853            return True2854        else:2855            return False2856    def export(self, outfile, level, namespace_='', name_='structsequenceref', namespacedef_='', pretty_print=True):2857        imported_ns_def_ = GenerateDSNamespaceDefs_.get('structsequenceref')2858        if imported_ns_def_ is not None:2859            namespacedef_ = imported_ns_def_2860        if pretty_print:2861            eol_ = '\n'2862        else:2863            eol_ = ''2864        if self.original_tagname_ is not None:2865            name_ = self.original_tagname_2866        showIndent(outfile, level, pretty_print)2867        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))2868        already_processed = set()2869        self.exportAttributes(outfile, level, already_processed, namespace_, name_='structsequenceref')2870        if self.hasContent_():2871            outfile.write('>%s' % (eol_, ))2872            self.exportChildren(outfile, level + 1, namespace_='', name_='structsequenceref', pretty_print=pretty_print)2873            showIndent(outfile, level, pretty_print)2874            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))2875        else:2876            outfile.write('/>%s' % (eol_, ))2877    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='structsequenceref'):2878        if self.refid is not None and 'refid' not in already_processed:2879            already_processed.add('refid')2880            outfile.write(' refid=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.refid), input_name='refid')), ))2881    def exportChildren(self, outfile, level, namespace_='', name_='structsequenceref', fromsubclass_=False, pretty_print=True):2882        if pretty_print:2883            eol_ = '\n'2884        else:2885            eol_ = ''2886        for structvalue_ in self.structvalue:2887            structvalue_.export(outfile, level, namespace_, name_='structvalue', pretty_print=pretty_print)2888    def build(self, node):2889        already_processed = set()2890        self.buildAttributes(node, node.attrib, already_processed)2891        for child in node:2892            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]2893            self.buildChildren(child, node, nodeName_)2894        return self2895    def buildAttributes(self, node, attrs, already_processed):2896        value = find_attr_value_('refid', node)2897        if value is not None and 'refid' not in already_processed:2898            already_processed.add('refid')2899            self.refid = value2900    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):2901        if nodeName_ == 'structvalue':2902            obj_ = structvalue.factory()2903            obj_.build(child_)2904            self.structvalue.append(obj_)2905            obj_.original_tagname_ = 'structvalue'2906# end class structsequenceref2907class structvalue(GeneratedsSuper):2908    subclass = None2909    superclass = None2910    def __init__(self, simpleref=None, simplesequenceref=None):2911        self.original_tagname_ = None2912        if simpleref is None:2913            self.simpleref = []2914        else:2915            self.simpleref = simpleref2916        if simplesequenceref is None:2917            self.simplesequenceref = []2918        else:2919            self.simplesequenceref = simplesequenceref2920    def factory(*args_, **kwargs_):2921        if CurrentSubclassModule_ is not None:2922            subclass = getSubclassFromModule_(2923                CurrentSubclassModule_, structvalue)2924            if subclass is not None:2925                return subclass(*args_, **kwargs_)2926        if structvalue.subclass:2927            return structvalue.subclass(*args_, **kwargs_)2928        else:2929            return structvalue(*args_, **kwargs_)2930    factory = staticmethod(factory)2931    def get_simpleref(self): return self.simpleref2932    def set_simpleref(self, simpleref): self.simpleref = simpleref2933    def add_simpleref(self, value): self.simpleref.append(value)2934    def insert_simpleref_at(self, index, value): self.simpleref.insert(index, value)2935    def replace_simpleref_at(self, index, value): self.simpleref[index] = value2936    simplerefProp = property(get_simpleref, set_simpleref)2937    def get_simplesequenceref(self): return self.simplesequenceref2938    def set_simplesequenceref(self, simplesequenceref): self.simplesequenceref = simplesequenceref2939    def add_simplesequenceref(self, value): self.simplesequenceref.append(value)2940    def insert_simplesequenceref_at(self, index, value): self.simplesequenceref.insert(index, value)2941    def replace_simplesequenceref_at(self, index, value): self.simplesequenceref[index] = value2942    simplesequencerefProp = property(get_simplesequenceref, set_simplesequenceref)2943    def hasContent_(self):2944        if (2945            self.simpleref or2946            self.simplesequenceref2947        ):2948            return True2949        else:2950            return False2951    def export(self, outfile, level, namespace_='', name_='structvalue', namespacedef_='', pretty_print=True):2952        imported_ns_def_ = GenerateDSNamespaceDefs_.get('structvalue')2953        if imported_ns_def_ is not None:2954            namespacedef_ = imported_ns_def_2955        if pretty_print:2956            eol_ = '\n'2957        else:2958            eol_ = ''2959        if self.original_tagname_ is not None:2960            name_ = self.original_tagname_2961        showIndent(outfile, level, pretty_print)2962        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))2963        already_processed = set()2964        self.exportAttributes(outfile, level, already_processed, namespace_, name_='structvalue')2965        if self.hasContent_():2966            outfile.write('>%s' % (eol_, ))2967            self.exportChildren(outfile, level + 1, namespace_='', name_='structvalue', pretty_print=pretty_print)2968            showIndent(outfile, level, pretty_print)2969            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))2970        else:2971            outfile.write('/>%s' % (eol_, ))2972    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='structvalue'):2973        pass2974    def exportChildren(self, outfile, level, namespace_='', name_='structvalue', fromsubclass_=False, pretty_print=True):2975        if pretty_print:2976            eol_ = '\n'2977        else:2978            eol_ = ''2979        for simpleref_ in self.simpleref:2980            simpleref_.export(outfile, level, namespace_, name_='simpleref', pretty_print=pretty_print)2981        for simplesequenceref_ in self.simplesequenceref:2982            simplesequenceref_.export(outfile, level, namespace_, name_='simplesequenceref', pretty_print=pretty_print)2983    def build(self, node):2984        already_processed = set()2985        self.buildAttributes(node, node.attrib, already_processed)2986        for child in node:2987            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]2988            self.buildChildren(child, node, nodeName_)2989        return self2990    def buildAttributes(self, node, attrs, already_processed):2991        pass2992    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):2993        if nodeName_ == 'simpleref':2994            obj_ = simpleref.factory()2995            obj_.build(child_)2996            self.simpleref.append(obj_)2997            obj_.original_tagname_ = 'simpleref'2998        elif nodeName_ == 'simplesequenceref':2999            obj_ = simplesequenceref.factory()3000            obj_.build(child_)3001            self.simplesequenceref.append(obj_)3002            obj_.original_tagname_ = 'simplesequenceref'3003# end class structvalue3004class values(GeneratedsSuper):3005    subclass = None3006    superclass = None3007    def __init__(self, value=None):3008        self.original_tagname_ = None3009        if value is None:3010            self.value = []3011        else:3012            self.value = value3013    def factory(*args_, **kwargs_):3014        if CurrentSubclassModule_ is not None:3015            subclass = getSubclassFromModule_(3016                CurrentSubclassModule_, values)3017            if subclass is not None:3018                return subclass(*args_, **kwargs_)3019        if values.subclass:3020            return values.subclass(*args_, **kwargs_)3021        else:3022            return values(*args_, **kwargs_)3023    factory = staticmethod(factory)3024    def get_value(self): return self.value3025    def set_value(self, value): self.value = value3026    def add_value(self, value): self.value.append(value)3027    def insert_value_at(self, index, value): self.value.insert(index, value)3028    def replace_value_at(self, index, value): self.value[index] = value3029    valueProp = property(get_value, set_value)3030    def hasContent_(self):3031        if (3032            self.value3033        ):3034            return True3035        else:3036            return False3037    def export(self, outfile, level, namespace_='', name_='values', namespacedef_='', pretty_print=True):3038        imported_ns_def_ = GenerateDSNamespaceDefs_.get('values')3039        if imported_ns_def_ is not None:3040            namespacedef_ = imported_ns_def_3041        if pretty_print:3042            eol_ = '\n'3043        else:3044            eol_ = ''3045        if self.original_tagname_ is not None:3046            name_ = self.original_tagname_3047        showIndent(outfile, level, pretty_print)3048        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))3049        already_processed = set()3050        self.exportAttributes(outfile, level, already_processed, namespace_, name_='values')3051        if self.hasContent_():3052            outfile.write('>%s' % (eol_, ))3053            self.exportChildren(outfile, level + 1, namespace_='', name_='values', pretty_print=pretty_print)3054            showIndent(outfile, level, pretty_print)3055            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))3056        else:3057            outfile.write('/>%s' % (eol_, ))3058    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='values'):3059        pass3060    def exportChildren(self, outfile, level, namespace_='', name_='values', fromsubclass_=False, pretty_print=True):3061        if pretty_print:3062            eol_ = '\n'3063        else:3064            eol_ = ''3065        for value_ in self.value:3066            showIndent(outfile, level, pretty_print)3067            outfile.write('<value>%s</value>%s' % (self.gds_encode(self.gds_format_string(quote_xml(value_), input_name='value')), eol_))3068    def build(self, node):3069        already_processed = set()3070        self.buildAttributes(node, node.attrib, already_processed)3071        for child in node:3072            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]3073            self.buildChildren(child, node, nodeName_)3074        return self3075    def buildAttributes(self, node, attrs, already_processed):3076        pass3077    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):3078        if nodeName_ == 'value':3079            value_ = child_.text3080            value_ = self.gds_validate_string(value_, node, 'value')3081            self.value.append(value_)3082# end class values3083class componentinstantiationref(GeneratedsSuper):3084    subclass = None3085    superclass = None3086    def __init__(self, refid=None):3087        self.original_tagname_ = None3088        self.refid = _cast(None, refid)3089    def factory(*args_, **kwargs_):3090        if CurrentSubclassModule_ is not None:3091            subclass = getSubclassFromModule_(3092                CurrentSubclassModule_, componentinstantiationref)3093            if subclass is not None:3094                return subclass(*args_, **kwargs_)3095        if componentinstantiationref.subclass:3096            return componentinstantiationref.subclass(*args_, **kwargs_)3097        else:3098            return componentinstantiationref(*args_, **kwargs_)3099    factory = staticmethod(factory)3100    def get_refid(self): return self.refid3101    def set_refid(self, refid): self.refid = refid3102    refidProp = property(get_refid, set_refid)3103    def hasContent_(self):3104        if (3105        ):3106            return True3107        else:3108            return False3109    def export(self, outfile, level, namespace_='', name_='componentinstantiationref', namespacedef_='', pretty_print=True):3110        imported_ns_def_ = GenerateDSNamespaceDefs_.get('componentinstantiationref')3111        if imported_ns_def_ is not None:3112            namespacedef_ = imported_ns_def_3113        if pretty_print:3114            eol_ = '\n'3115        else:3116            eol_ = ''3117        if self.original_tagname_ is not None:3118            name_ = self.original_tagname_3119        showIndent(outfile, level, pretty_print)3120        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))3121        already_processed = set()3122        self.exportAttributes(outfile, level, already_processed, namespace_, name_='componentinstantiationref')3123        if self.hasContent_():3124            outfile.write('>%s' % (eol_, ))3125            self.exportChildren(outfile, level + 1, namespace_='', name_='componentinstantiationref', pretty_print=pretty_print)3126            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))3127        else:3128            outfile.write('/>%s' % (eol_, ))3129    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='componentinstantiationref'):3130        if self.refid is not None and 'refid' not in already_processed:3131            already_processed.add('refid')3132            outfile.write(' refid=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.refid), input_name='refid')), ))3133    def exportChildren(self, outfile, level, namespace_='', name_='componentinstantiationref', fromsubclass_=False, pretty_print=True):3134        pass3135    def build(self, node):3136        already_processed = set()3137        self.buildAttributes(node, node.attrib, already_processed)3138        for child in node:3139            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]3140            self.buildChildren(child, node, nodeName_)3141        return self3142    def buildAttributes(self, node, attrs, already_processed):3143        value = find_attr_value_('refid', node)3144        if value is not None and 'refid' not in already_processed:3145            already_processed.add('refid')3146            self.refid = value3147    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):3148        pass3149# end class componentinstantiationref3150class findby(GeneratedsSuper):3151    subclass = None3152    superclass = None3153    def __init__(self, namingservice=None, stringifiedobjectref=None, domainfinder=None):3154        self.original_tagname_ = None3155        self.namingservice = namingservice3156        self.stringifiedobjectref = stringifiedobjectref3157        self.domainfinder = domainfinder3158    def factory(*args_, **kwargs_):3159        if CurrentSubclassModule_ is not None:3160            subclass = getSubclassFromModule_(3161                CurrentSubclassModule_, findby)3162            if subclass is not None:3163                return subclass(*args_, **kwargs_)3164        if findby.subclass:3165            return findby.subclass(*args_, **kwargs_)3166        else:3167            return findby(*args_, **kwargs_)3168    factory = staticmethod(factory)3169    def get_namingservice(self): return self.namingservice3170    def set_namingservice(self, namingservice): self.namingservice = namingservice3171    namingserviceProp = property(get_namingservice, set_namingservice)3172    def get_stringifiedobjectref(self): return self.stringifiedobjectref3173    def set_stringifiedobjectref(self, stringifiedobjectref): self.stringifiedobjectref = stringifiedobjectref3174    stringifiedobjectrefProp = property(get_stringifiedobjectref, set_stringifiedobjectref)3175    def get_domainfinder(self): return self.domainfinder3176    def set_domainfinder(self, domainfinder): self.domainfinder = domainfinder3177    domainfinderProp = property(get_domainfinder, set_domainfinder)3178    def hasContent_(self):3179        if (3180            self.namingservice is not None or3181            self.stringifiedobjectref is not None or3182            self.domainfinder is not None3183        ):3184            return True3185        else:3186            return False3187    def export(self, outfile, level, namespace_='', name_='findby', namespacedef_='', pretty_print=True):3188        imported_ns_def_ = GenerateDSNamespaceDefs_.get('findby')3189        if imported_ns_def_ is not None:3190            namespacedef_ = imported_ns_def_3191        if pretty_print:3192            eol_ = '\n'3193        else:3194            eol_ = ''3195        if self.original_tagname_ is not None:3196            name_ = self.original_tagname_3197        showIndent(outfile, level, pretty_print)3198        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))3199        already_processed = set()3200        self.exportAttributes(outfile, level, already_processed, namespace_, name_='findby')3201        if self.hasContent_():3202            outfile.write('>%s' % (eol_, ))3203            self.exportChildren(outfile, level + 1, namespace_='', name_='findby', pretty_print=pretty_print)3204            showIndent(outfile, level, pretty_print)3205            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))3206        else:3207            outfile.write('/>%s' % (eol_, ))3208    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='findby'):3209        pass3210    def exportChildren(self, outfile, level, namespace_='', name_='findby', fromsubclass_=False, pretty_print=True):3211        if pretty_print:3212            eol_ = '\n'3213        else:3214            eol_ = ''3215        if self.namingservice is not None:3216            self.namingservice.export(outfile, level, namespace_, name_='namingservice', pretty_print=pretty_print)3217        if self.stringifiedobjectref is not None:3218            showIndent(outfile, level, pretty_print)3219            outfile.write('<stringifiedobjectref>%s</stringifiedobjectref>%s' % (self.gds_encode(self.gds_format_string(quote_xml(self.stringifiedobjectref), input_name='stringifiedobjectref')), eol_))3220        if self.domainfinder is not None:3221            self.domainfinder.export(outfile, level, namespace_, name_='domainfinder', pretty_print=pretty_print)3222    def build(self, node):3223        already_processed = set()3224        self.buildAttributes(node, node.attrib, already_processed)3225        for child in node:3226            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]3227            self.buildChildren(child, node, nodeName_)3228        return self3229    def buildAttributes(self, node, attrs, already_processed):3230        pass3231    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):3232        if nodeName_ == 'namingservice':3233            obj_ = namingservice.factory()3234            obj_.build(child_)3235            self.namingservice = obj_3236            obj_.original_tagname_ = 'namingservice'3237        elif nodeName_ == 'stringifiedobjectref':3238            stringifiedobjectref_ = child_.text3239            stringifiedobjectref_ = self.gds_validate_string(stringifiedobjectref_, node, 'stringifiedobjectref')3240            self.stringifiedobjectref = stringifiedobjectref_3241        elif nodeName_ == 'domainfinder':3242            obj_ = domainfinder.factory()3243            obj_.build(child_)3244            self.domainfinder = obj_3245            obj_.original_tagname_ = 'domainfinder'3246# end class findby3247class namingservice(GeneratedsSuper):3248    subclass = None3249    superclass = None3250    def __init__(self, name=None):3251        self.original_tagname_ = None3252        self.name = _cast(None, name)3253    def factory(*args_, **kwargs_):3254        if CurrentSubclassModule_ is not None:3255            subclass = getSubclassFromModule_(3256                CurrentSubclassModule_, namingservice)3257            if subclass is not None:3258                return subclass(*args_, **kwargs_)3259        if namingservice.subclass:3260            return namingservice.subclass(*args_, **kwargs_)3261        else:3262            return namingservice(*args_, **kwargs_)3263    factory = staticmethod(factory)3264    def get_name(self): return self.name3265    def set_name(self, name): self.name = name3266    nameProp = property(get_name, set_name)3267    def hasContent_(self):3268        if (3269        ):3270            return True3271        else:3272            return False3273    def export(self, outfile, level, namespace_='', name_='namingservice', namespacedef_='', pretty_print=True):3274        imported_ns_def_ = GenerateDSNamespaceDefs_.get('namingservice')3275        if imported_ns_def_ is not None:3276            namespacedef_ = imported_ns_def_3277        if pretty_print:3278            eol_ = '\n'3279        else:3280            eol_ = ''3281        if self.original_tagname_ is not None:3282            name_ = self.original_tagname_3283        showIndent(outfile, level, pretty_print)3284        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))3285        already_processed = set()3286        self.exportAttributes(outfile, level, already_processed, namespace_, name_='namingservice')3287        if self.hasContent_():3288            outfile.write('>%s' % (eol_, ))3289            self.exportChildren(outfile, level + 1, namespace_='', name_='namingservice', pretty_print=pretty_print)3290            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))3291        else:3292            outfile.write('/>%s' % (eol_, ))3293    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='namingservice'):3294        if self.name is not None and 'name' not in already_processed:3295            already_processed.add('name')3296            outfile.write(' name=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.name), input_name='name')), ))3297    def exportChildren(self, outfile, level, namespace_='', name_='namingservice', fromsubclass_=False, pretty_print=True):3298        pass3299    def build(self, node):3300        already_processed = set()3301        self.buildAttributes(node, node.attrib, already_processed)3302        for child in node:3303            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]3304            self.buildChildren(child, node, nodeName_)3305        return self3306    def buildAttributes(self, node, attrs, already_processed):3307        value = find_attr_value_('name', node)3308        if value is not None and 'name' not in already_processed:3309            already_processed.add('name')3310            self.name = value3311    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):3312        pass3313# end class namingservice3314class domainfinder(GeneratedsSuper):3315    subclass = None3316    superclass = None3317    def __init__(self, type_=None, name=None):3318        self.original_tagname_ = None3319        self.type_ = _cast(None, type_)3320        self.name = _cast(None, name)3321    def factory(*args_, **kwargs_):3322        if CurrentSubclassModule_ is not None:3323            subclass = getSubclassFromModule_(3324                CurrentSubclassModule_, domainfinder)3325            if subclass is not None:3326                return subclass(*args_, **kwargs_)3327        if domainfinder.subclass:3328            return domainfinder.subclass(*args_, **kwargs_)3329        else:3330            return domainfinder(*args_, **kwargs_)3331    factory = staticmethod(factory)3332    def get_type(self): return self.type_3333    def set_type(self, type_): self.type_ = type_3334    typeProp = property(get_type, set_type)3335    def get_name(self): return self.name3336    def set_name(self, name): self.name = name3337    nameProp = property(get_name, set_name)3338    def hasContent_(self):3339        if (3340        ):3341            return True3342        else:3343            return False3344    def export(self, outfile, level, namespace_='', name_='domainfinder', namespacedef_='', pretty_print=True):3345        imported_ns_def_ = GenerateDSNamespaceDefs_.get('domainfinder')3346        if imported_ns_def_ is not None:3347            namespacedef_ = imported_ns_def_3348        if pretty_print:3349            eol_ = '\n'3350        else:3351            eol_ = ''3352        if self.original_tagname_ is not None:3353            name_ = self.original_tagname_3354        showIndent(outfile, level, pretty_print)3355        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))3356        already_processed = set()3357        self.exportAttributes(outfile, level, already_processed, namespace_, name_='domainfinder')3358        if self.hasContent_():3359            outfile.write('>%s' % (eol_, ))3360            self.exportChildren(outfile, level + 1, namespace_='', name_='domainfinder', pretty_print=pretty_print)3361            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))3362        else:3363            outfile.write('/>%s' % (eol_, ))3364    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='domainfinder'):3365        if self.type_ is not None and 'type_' not in already_processed:3366            already_processed.add('type_')3367            outfile.write(' type=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.type_), input_name='type')), ))3368        if self.name is not None and 'name' not in already_processed:3369            already_processed.add('name')3370            outfile.write(' name=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.name), input_name='name')), ))3371    def exportChildren(self, outfile, level, namespace_='', name_='domainfinder', fromsubclass_=False, pretty_print=True):3372        pass3373    def build(self, node):3374        already_processed = set()3375        self.buildAttributes(node, node.attrib, already_processed)3376        for child in node:3377            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]3378            self.buildChildren(child, node, nodeName_)3379        return self3380    def buildAttributes(self, node, attrs, already_processed):3381        value = find_attr_value_('type', node)3382        if value is not None and 'type' not in already_processed:3383            already_processed.add('type')3384            self.type_ = value3385        value = find_attr_value_('name', node)3386        if value is not None and 'name' not in already_processed:3387            already_processed.add('name')3388            self.name = value3389    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):3390        pass3391# end class domainfinder3392class hostcollocationcp(GeneratedsSuper):3393    subclass = None3394    superclass = None3395    def __init__(self, componentplacement=None, extensiontype_=None):3396        self.original_tagname_ = None3397        if componentplacement is None:3398            self.componentplacement = []3399        else:3400            self.componentplacement = componentplacement3401        self.extensiontype_ = extensiontype_3402    def factory(*args_, **kwargs_):3403        if CurrentSubclassModule_ is not None:3404            subclass = getSubclassFromModule_(3405                CurrentSubclassModule_, hostcollocationcp)3406            if subclass is not None:3407                return subclass(*args_, **kwargs_)3408        if hostcollocationcp.subclass:3409            return hostcollocationcp.subclass(*args_, **kwargs_)3410        else:3411            return hostcollocationcp(*args_, **kwargs_)3412    factory = staticmethod(factory)3413    def get_componentplacement(self): return self.componentplacement3414    def set_componentplacement(self, componentplacement): self.componentplacement = componentplacement3415    def add_componentplacement(self, value): self.componentplacement.append(value)3416    def insert_componentplacement_at(self, index, value): self.componentplacement.insert(index, value)3417    def replace_componentplacement_at(self, index, value): self.componentplacement[index] = value3418    componentplacementProp = property(get_componentplacement, set_componentplacement)3419    def get_extensiontype_(self): return self.extensiontype_3420    def set_extensiontype_(self, extensiontype_): self.extensiontype_ = extensiontype_3421    def hasContent_(self):3422        if (3423            self.componentplacement3424        ):3425            return True3426        else:3427            return False3428    def export(self, outfile, level, namespace_='', name_='hostcollocationcp', namespacedef_='', pretty_print=True):3429        imported_ns_def_ = GenerateDSNamespaceDefs_.get('hostcollocationcp')3430        if imported_ns_def_ is not None:3431            namespacedef_ = imported_ns_def_3432        if pretty_print:3433            eol_ = '\n'3434        else:3435            eol_ = ''3436        if self.original_tagname_ is not None:3437            name_ = self.original_tagname_3438        showIndent(outfile, level, pretty_print)3439        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))3440        already_processed = set()3441        self.exportAttributes(outfile, level, already_processed, namespace_, name_='hostcollocationcp')3442        if self.hasContent_():3443            outfile.write('>%s' % (eol_, ))3444            self.exportChildren(outfile, level + 1, namespace_='', name_='hostcollocationcp', pretty_print=pretty_print)3445            showIndent(outfile, level, pretty_print)3446            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))3447        else:3448            outfile.write('/>%s' % (eol_, ))3449    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='hostcollocationcp'):3450        if self.extensiontype_ is not None and 'xsi:type' not in already_processed:3451            already_processed.add('xsi:type')3452            outfile.write(' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"')3453            outfile.write(' xsi:type="%s"' % self.extensiontype_)3454        pass3455    def exportChildren(self, outfile, level, namespace_='', name_='hostcollocationcp', fromsubclass_=False, pretty_print=True):3456        if pretty_print:3457            eol_ = '\n'3458        else:3459            eol_ = ''3460        for componentplacement_ in self.componentplacement:3461            componentplacement_.export(outfile, level, namespace_, name_='componentplacement', pretty_print=pretty_print)3462    def build(self, node):3463        already_processed = set()3464        self.buildAttributes(node, node.attrib, already_processed)3465        for child in node:3466            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]3467            self.buildChildren(child, node, nodeName_)3468        return self3469    def buildAttributes(self, node, attrs, already_processed):3470        value = find_attr_value_('xsi:type', node)3471        if value is not None and 'xsi:type' not in already_processed:3472            already_processed.add('xsi:type')3473            self.extensiontype_ = value3474    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):3475        if nodeName_ == 'componentplacement':3476            obj_ = componentplacement.factory()3477            obj_.build(child_)3478            self.componentplacement.append(obj_)3479            obj_.original_tagname_ = 'componentplacement'3480# end class hostcollocationcp3481class hostcollocationcpud(hostcollocationcp):3482    subclass = None3483    superclass = hostcollocationcp3484    def __init__(self, componentplacement=None, usesdeviceref=None, extensiontype_=None):3485        self.original_tagname_ = None3486        super(hostcollocationcpud, self).__init__(componentplacement, extensiontype_, )3487        if usesdeviceref is None:3488            self.usesdeviceref = []3489        else:3490            self.usesdeviceref = usesdeviceref3491        self.extensiontype_ = extensiontype_3492    def factory(*args_, **kwargs_):3493        if CurrentSubclassModule_ is not None:3494            subclass = getSubclassFromModule_(3495                CurrentSubclassModule_, hostcollocationcpud)3496            if subclass is not None:3497                return subclass(*args_, **kwargs_)3498        if hostcollocationcpud.subclass:3499            return hostcollocationcpud.subclass(*args_, **kwargs_)3500        else:3501            return hostcollocationcpud(*args_, **kwargs_)3502    factory = staticmethod(factory)3503    def get_usesdeviceref(self): return self.usesdeviceref3504    def set_usesdeviceref(self, usesdeviceref): self.usesdeviceref = usesdeviceref3505    def add_usesdeviceref(self, value): self.usesdeviceref.append(value)3506    def insert_usesdeviceref_at(self, index, value): self.usesdeviceref.insert(index, value)3507    def replace_usesdeviceref_at(self, index, value): self.usesdeviceref[index] = value3508    usesdevicerefProp = property(get_usesdeviceref, set_usesdeviceref)3509    def get_extensiontype_(self): return self.extensiontype_3510    def set_extensiontype_(self, extensiontype_): self.extensiontype_ = extensiontype_3511    def hasContent_(self):3512        if (3513            self.usesdeviceref or3514            super(hostcollocationcpud, self).hasContent_()3515        ):3516            return True3517        else:3518            return False3519    def export(self, outfile, level, namespace_='', name_='hostcollocationcpud', namespacedef_='', pretty_print=True):3520        imported_ns_def_ = GenerateDSNamespaceDefs_.get('hostcollocationcpud')3521        if imported_ns_def_ is not None:3522            namespacedef_ = imported_ns_def_3523        if pretty_print:3524            eol_ = '\n'3525        else:3526            eol_ = ''3527        if self.original_tagname_ is not None:3528            name_ = self.original_tagname_3529        showIndent(outfile, level, pretty_print)3530        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))3531        already_processed = set()3532        self.exportAttributes(outfile, level, already_processed, namespace_, name_='hostcollocationcpud')3533        if self.hasContent_():3534            outfile.write('>%s' % (eol_, ))3535            self.exportChildren(outfile, level + 1, namespace_='', name_='hostcollocationcpud', pretty_print=pretty_print)3536            showIndent(outfile, level, pretty_print)3537            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))3538        else:3539            outfile.write('/>%s' % (eol_, ))3540    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='hostcollocationcpud'):3541        super(hostcollocationcpud, self).exportAttributes(outfile, level, already_processed, namespace_, name_='hostcollocationcpud')3542        if self.extensiontype_ is not None and 'xsi:type' not in already_processed:3543            already_processed.add('xsi:type')3544            outfile.write(' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"')3545            outfile.write(' xsi:type="%s"' % self.extensiontype_)3546    def exportChildren(self, outfile, level, namespace_='', name_='hostcollocationcpud', fromsubclass_=False, pretty_print=True):3547        super(hostcollocationcpud, self).exportChildren(outfile, level, namespace_, name_, True, pretty_print=pretty_print)3548        if pretty_print:3549            eol_ = '\n'3550        else:3551            eol_ = ''3552        for usesdeviceref_ in self.usesdeviceref:3553            usesdeviceref_.export(outfile, level, namespace_, name_='usesdeviceref', pretty_print=pretty_print)3554    def build(self, node):3555        already_processed = set()3556        self.buildAttributes(node, node.attrib, already_processed)3557        for child in node:3558            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]3559            self.buildChildren(child, node, nodeName_)3560        return self3561    def buildAttributes(self, node, attrs, already_processed):3562        value = find_attr_value_('xsi:type', node)3563        if value is not None and 'xsi:type' not in already_processed:3564            already_processed.add('xsi:type')3565            self.extensiontype_ = value3566        super(hostcollocationcpud, self).buildAttributes(node, attrs, already_processed)3567    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):3568        if nodeName_ == 'usesdeviceref':3569            obj_ = usesdeviceref.factory()3570            obj_.build(child_)3571            self.usesdeviceref.append(obj_)3572            obj_.original_tagname_ = 'usesdeviceref'3573        super(hostcollocationcpud, self).buildChildren(child_, node, nodeName_, True)3574# end class hostcollocationcpud3575class hostcollocation(hostcollocationcpud):3576    subclass = None3577    superclass = hostcollocationcpud3578    def __init__(self, componentplacement=None, usesdeviceref=None, id_=None, name=None, reservation=None):3579        self.original_tagname_ = None3580        super(hostcollocation, self).__init__(componentplacement, usesdeviceref, )3581        self.id_ = _cast(None, id_)3582        self.name = _cast(None, name)3583        if reservation is None:3584            self.reservation = []3585        else:3586            self.reservation = reservation3587    def factory(*args_, **kwargs_):3588        if CurrentSubclassModule_ is not None:3589            subclass = getSubclassFromModule_(3590                CurrentSubclassModule_, hostcollocation)3591            if subclass is not None:3592                return subclass(*args_, **kwargs_)3593        if hostcollocation.subclass:3594            return hostcollocation.subclass(*args_, **kwargs_)3595        else:3596            return hostcollocation(*args_, **kwargs_)3597    factory = staticmethod(factory)3598    def get_reservation(self): return self.reservation3599    def set_reservation(self, reservation): self.reservation = reservation3600    def add_reservation(self, value): self.reservation.append(value)3601    def insert_reservation_at(self, index, value): self.reservation.insert(index, value)3602    def replace_reservation_at(self, index, value): self.reservation[index] = value3603    reservationProp = property(get_reservation, set_reservation)3604    def get_id(self): return self.id_3605    def set_id(self, id_): self.id_ = id_3606    idProp = property(get_id, set_id)3607    def get_name(self): return self.name3608    def set_name(self, name): self.name = name3609    nameProp = property(get_name, set_name)3610    def hasContent_(self):3611        if (3612            self.reservation or3613            super(hostcollocation, self).hasContent_()3614        ):3615            return True3616        else:3617            return False3618    def export(self, outfile, level, namespace_='', name_='hostcollocation', namespacedef_='', pretty_print=True):3619        imported_ns_def_ = GenerateDSNamespaceDefs_.get('hostcollocation')3620        if imported_ns_def_ is not None:3621            namespacedef_ = imported_ns_def_3622        if pretty_print:3623            eol_ = '\n'3624        else:3625            eol_ = ''3626        if self.original_tagname_ is not None:3627            name_ = self.original_tagname_3628        showIndent(outfile, level, pretty_print)3629        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))3630        already_processed = set()3631        self.exportAttributes(outfile, level, already_processed, namespace_, name_='hostcollocation')3632        if self.hasContent_():3633            outfile.write('>%s' % (eol_, ))3634            self.exportChildren(outfile, level + 1, namespace_='', name_='hostcollocation', pretty_print=pretty_print)3635            showIndent(outfile, level, pretty_print)3636            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))3637        else:3638            outfile.write('/>%s' % (eol_, ))3639    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='hostcollocation'):3640        super(hostcollocation, self).exportAttributes(outfile, level, already_processed, namespace_, name_='hostcollocation')3641        if self.id_ is not None and 'id' not in already_processed:3642            already_processed.add('id')3643            outfile.write(' id=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.id_), input_name='id')), ))3644        if self.name is not None and 'name' not in already_processed:3645            already_processed.add('name')3646            outfile.write(' name=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.name), input_name='name')), ))3647    def exportChildren(self, outfile, level, namespace_='', name_='hostcollocation', fromsubclass_=False, pretty_print=True):3648        super(hostcollocation, self).exportChildren(outfile, level, namespace_, name_, True, pretty_print=pretty_print)3649        if pretty_print:3650            eol_ = '\n'3651        else:3652            eol_ = ''3653        for reservation_ in self.reservation:3654            reservation_.export(outfile, level, namespace_, name_='reservation', pretty_print=pretty_print)3655    def build(self, node):3656        already_processed = set()3657        self.buildAttributes(node, node.attrib, already_processed)3658        for child in node:3659            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]3660            self.buildChildren(child, node, nodeName_)3661        return self3662    def buildAttributes(self, node, attrs, already_processed):3663        value = find_attr_value_('id', node)3664        if value is not None and 'id' not in already_processed:3665            already_processed.add('id')3666            self.id_ = value3667        value = find_attr_value_('name', node)3668        if value is not None and 'name' not in already_processed:3669            already_processed.add('name')3670            self.name = value3671        super(hostcollocation, self).buildAttributes(node, attrs, already_processed)3672    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):3673        if nodeName_ == 'reservation':3674            obj_ = reservation.factory()3675            obj_.build(child_)3676            self.reservation.append(obj_)3677            obj_.original_tagname_ = 'reservation'3678        super(hostcollocation, self).buildChildren(child_, node, nodeName_, True)3679# end class hostcollocation3680class reservation(GeneratedsSuper):3681    subclass = None3682    superclass = None3683    def __init__(self, kind=None, value=None):3684        self.original_tagname_ = None3685        self.kind = _cast(None, kind)3686        self.value = _cast(None, value)3687    def factory(*args_, **kwargs_):3688        if CurrentSubclassModule_ is not None:3689            subclass = getSubclassFromModule_(3690                CurrentSubclassModule_, reservation)3691            if subclass is not None:3692                return subclass(*args_, **kwargs_)3693        if reservation.subclass:3694            return reservation.subclass(*args_, **kwargs_)3695        else:3696            return reservation(*args_, **kwargs_)3697    factory = staticmethod(factory)3698    def get_kind(self): return self.kind3699    def set_kind(self, kind): self.kind = kind3700    kindProp = property(get_kind, set_kind)3701    def get_value(self): return self.value3702    def set_value(self, value): self.value = value3703    valueProp = property(get_value, set_value)3704    def hasContent_(self):3705        if (3706        ):3707            return True3708        else:3709            return False3710    def export(self, outfile, level, namespace_='', name_='reservation', namespacedef_='', pretty_print=True):3711        imported_ns_def_ = GenerateDSNamespaceDefs_.get('reservation')3712        if imported_ns_def_ is not None:3713            namespacedef_ = imported_ns_def_3714        if pretty_print:3715            eol_ = '\n'3716        else:3717            eol_ = ''3718        if self.original_tagname_ is not None:3719            name_ = self.original_tagname_3720        showIndent(outfile, level, pretty_print)3721        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))3722        already_processed = set()3723        self.exportAttributes(outfile, level, already_processed, namespace_, name_='reservation')3724        if self.hasContent_():3725            outfile.write('>%s' % (eol_, ))3726            self.exportChildren(outfile, level + 1, namespace_='', name_='reservation', pretty_print=pretty_print)3727            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))3728        else:3729            outfile.write('/>%s' % (eol_, ))3730    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='reservation'):3731        if self.kind is not None and 'kind' not in already_processed:3732            already_processed.add('kind')3733            outfile.write(' kind=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.kind), input_name='kind')), ))3734        if self.value is not None and 'value' not in already_processed:3735            already_processed.add('value')3736            outfile.write(' value=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.value), input_name='value')), ))3737    def exportChildren(self, outfile, level, namespace_='', name_='reservation', fromsubclass_=False, pretty_print=True):3738        pass3739    def build(self, node):3740        already_processed = set()3741        self.buildAttributes(node, node.attrib, already_processed)3742        for child in node:3743            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]3744            self.buildChildren(child, node, nodeName_)3745        return self3746    def buildAttributes(self, node, attrs, already_processed):3747        value = find_attr_value_('kind', node)3748        if value is not None and 'kind' not in already_processed:3749            already_processed.add('kind')3750            self.kind = value3751        value = find_attr_value_('value', node)3752        if value is not None and 'value' not in already_processed:3753            already_processed.add('value')3754            self.value = value3755    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):3756        pass3757# end class reservation3758class usesdeviceref(GeneratedsSuper):3759    subclass = None3760    superclass = None3761    def __init__(self, refid=None):3762        self.original_tagname_ = None3763        self.refid = _cast(None, refid)3764    def factory(*args_, **kwargs_):3765        if CurrentSubclassModule_ is not None:3766            subclass = getSubclassFromModule_(3767                CurrentSubclassModule_, usesdeviceref)3768            if subclass is not None:3769                return subclass(*args_, **kwargs_)3770        if usesdeviceref.subclass:3771            return usesdeviceref.subclass(*args_, **kwargs_)3772        else:3773            return usesdeviceref(*args_, **kwargs_)3774    factory = staticmethod(factory)3775    def get_refid(self): return self.refid3776    def set_refid(self, refid): self.refid = refid3777    refidProp = property(get_refid, set_refid)3778    def hasContent_(self):3779        if (3780        ):3781            return True3782        else:3783            return False3784    def export(self, outfile, level, namespace_='', name_='usesdeviceref', namespacedef_='', pretty_print=True):3785        imported_ns_def_ = GenerateDSNamespaceDefs_.get('usesdeviceref')3786        if imported_ns_def_ is not None:3787            namespacedef_ = imported_ns_def_3788        if pretty_print:3789            eol_ = '\n'3790        else:3791            eol_ = ''3792        if self.original_tagname_ is not None:3793            name_ = self.original_tagname_3794        showIndent(outfile, level, pretty_print)3795        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))3796        already_processed = set()3797        self.exportAttributes(outfile, level, already_processed, namespace_, name_='usesdeviceref')3798        if self.hasContent_():3799            outfile.write('>%s' % (eol_, ))3800            self.exportChildren(outfile, level + 1, namespace_='', name_='usesdeviceref', pretty_print=pretty_print)3801            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))3802        else:3803            outfile.write('/>%s' % (eol_, ))3804    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='usesdeviceref'):3805        if self.refid is not None and 'refid' not in already_processed:3806            already_processed.add('refid')3807            outfile.write(' refid=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.refid), input_name='refid')), ))3808    def exportChildren(self, outfile, level, namespace_='', name_='usesdeviceref', fromsubclass_=False, pretty_print=True):3809        pass3810    def build(self, node):3811        already_processed = set()3812        self.buildAttributes(node, node.attrib, already_processed)3813        for child in node:3814            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]3815            self.buildChildren(child, node, nodeName_)3816        return self3817    def buildAttributes(self, node, attrs, already_processed):3818        value = find_attr_value_('refid', node)3819        if value is not None and 'refid' not in already_processed:3820            already_processed.add('refid')3821            self.refid = value3822    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):3823        pass3824# end class usesdeviceref3825class assemblycontroller(GeneratedsSuper):3826    subclass = None3827    superclass = None3828    def __init__(self, componentinstantiationref=None):3829        self.original_tagname_ = None3830        self.componentinstantiationref = componentinstantiationref3831    def factory(*args_, **kwargs_):3832        if CurrentSubclassModule_ is not None:3833            subclass = getSubclassFromModule_(3834                CurrentSubclassModule_, assemblycontroller)3835            if subclass is not None:3836                return subclass(*args_, **kwargs_)3837        if assemblycontroller.subclass:3838            return assemblycontroller.subclass(*args_, **kwargs_)3839        else:3840            return assemblycontroller(*args_, **kwargs_)3841    factory = staticmethod(factory)3842    def get_componentinstantiationref(self): return self.componentinstantiationref3843    def set_componentinstantiationref(self, componentinstantiationref): self.componentinstantiationref = componentinstantiationref3844    componentinstantiationrefProp = property(get_componentinstantiationref, set_componentinstantiationref)3845    def hasContent_(self):3846        if (3847            self.componentinstantiationref is not None3848        ):3849            return True3850        else:3851            return False3852    def export(self, outfile, level, namespace_='', name_='assemblycontroller', namespacedef_='', pretty_print=True):3853        imported_ns_def_ = GenerateDSNamespaceDefs_.get('assemblycontroller')3854        if imported_ns_def_ is not None:3855            namespacedef_ = imported_ns_def_3856        if pretty_print:3857            eol_ = '\n'3858        else:3859            eol_ = ''3860        if self.original_tagname_ is not None:3861            name_ = self.original_tagname_3862        showIndent(outfile, level, pretty_print)3863        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))3864        already_processed = set()3865        self.exportAttributes(outfile, level, already_processed, namespace_, name_='assemblycontroller')3866        if self.hasContent_():3867            outfile.write('>%s' % (eol_, ))3868            self.exportChildren(outfile, level + 1, namespace_='', name_='assemblycontroller', pretty_print=pretty_print)3869            showIndent(outfile, level, pretty_print)3870            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))3871        else:3872            outfile.write('/>%s' % (eol_, ))3873    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='assemblycontroller'):3874        pass3875    def exportChildren(self, outfile, level, namespace_='', name_='assemblycontroller', fromsubclass_=False, pretty_print=True):3876        if pretty_print:3877            eol_ = '\n'3878        else:3879            eol_ = ''3880        if self.componentinstantiationref is not None:3881            self.componentinstantiationref.export(outfile, level, namespace_, name_='componentinstantiationref', pretty_print=pretty_print)3882    def build(self, node):3883        already_processed = set()3884        self.buildAttributes(node, node.attrib, already_processed)3885        for child in node:3886            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]3887            self.buildChildren(child, node, nodeName_)3888        return self3889    def buildAttributes(self, node, attrs, already_processed):3890        pass3891    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):3892        if nodeName_ == 'componentinstantiationref':3893            obj_ = componentinstantiationref.factory()3894            obj_.build(child_)3895            self.componentinstantiationref = obj_3896            obj_.original_tagname_ = 'componentinstantiationref'3897# end class assemblycontroller3898class connections(GeneratedsSuper):3899    subclass = None3900    superclass = None3901    def __init__(self, connectinterface=None):3902        self.original_tagname_ = None3903        if connectinterface is None:3904            self.connectinterface = []3905        else:3906            self.connectinterface = connectinterface3907    def factory(*args_, **kwargs_):3908        if CurrentSubclassModule_ is not None:3909            subclass = getSubclassFromModule_(3910                CurrentSubclassModule_, connections)3911            if subclass is not None:3912                return subclass(*args_, **kwargs_)3913        if connections.subclass:3914            return connections.subclass(*args_, **kwargs_)3915        else:3916            return connections(*args_, **kwargs_)3917    factory = staticmethod(factory)3918    def get_connectinterface(self): return self.connectinterface3919    def set_connectinterface(self, connectinterface): self.connectinterface = connectinterface3920    def add_connectinterface(self, value): self.connectinterface.append(value)3921    def insert_connectinterface_at(self, index, value): self.connectinterface.insert(index, value)3922    def replace_connectinterface_at(self, index, value): self.connectinterface[index] = value3923    connectinterfaceProp = property(get_connectinterface, set_connectinterface)3924    def hasContent_(self):3925        if (3926            self.connectinterface3927        ):3928            return True3929        else:3930            return False3931    def export(self, outfile, level, namespace_='', name_='connections', namespacedef_='', pretty_print=True):3932        imported_ns_def_ = GenerateDSNamespaceDefs_.get('connections')3933        if imported_ns_def_ is not None:3934            namespacedef_ = imported_ns_def_3935        if pretty_print:3936            eol_ = '\n'3937        else:3938            eol_ = ''3939        if self.original_tagname_ is not None:3940            name_ = self.original_tagname_3941        showIndent(outfile, level, pretty_print)3942        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))3943        already_processed = set()3944        self.exportAttributes(outfile, level, already_processed, namespace_, name_='connections')3945        if self.hasContent_():3946            outfile.write('>%s' % (eol_, ))3947            self.exportChildren(outfile, level + 1, namespace_='', name_='connections', pretty_print=pretty_print)3948            showIndent(outfile, level, pretty_print)3949            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))3950        else:3951            outfile.write('/>%s' % (eol_, ))3952    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='connections'):3953        pass3954    def exportChildren(self, outfile, level, namespace_='', name_='connections', fromsubclass_=False, pretty_print=True):3955        if pretty_print:3956            eol_ = '\n'3957        else:3958            eol_ = ''3959        for connectinterface_ in self.connectinterface:3960            connectinterface_.export(outfile, level, namespace_, name_='connectinterface', pretty_print=pretty_print)3961    def build(self, node):3962        already_processed = set()3963        self.buildAttributes(node, node.attrib, already_processed)3964        for child in node:3965            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]3966            self.buildChildren(child, node, nodeName_)3967        return self3968    def buildAttributes(self, node, attrs, already_processed):3969        pass3970    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):3971        if nodeName_ == 'connectinterface':3972            obj_ = connectinterface.factory()3973            obj_.build(child_)3974            self.connectinterface.append(obj_)3975            obj_.original_tagname_ = 'connectinterface'3976# end class connections3977class connectinterface(GeneratedsSuper):3978    subclass = None3979    superclass = None3980    def __init__(self, id_=None, usesport=None, providesport=None, componentsupportedinterface=None, findby=None):3981        self.original_tagname_ = None3982        self.id_ = _cast(None, id_)3983        self.usesport = usesport3984        self.providesport = providesport3985        self.componentsupportedinterface = componentsupportedinterface3986        self.findby = findby3987    def factory(*args_, **kwargs_):3988        if CurrentSubclassModule_ is not None:3989            subclass = getSubclassFromModule_(3990                CurrentSubclassModule_, connectinterface)3991            if subclass is not None:3992                return subclass(*args_, **kwargs_)3993        if connectinterface.subclass:3994            return connectinterface.subclass(*args_, **kwargs_)3995        else:3996            return connectinterface(*args_, **kwargs_)3997    factory = staticmethod(factory)3998    def get_usesport(self): return self.usesport3999    def set_usesport(self, usesport): self.usesport = usesport4000    usesportProp = property(get_usesport, set_usesport)4001    def get_providesport(self): return self.providesport4002    def set_providesport(self, providesport): self.providesport = providesport4003    providesportProp = property(get_providesport, set_providesport)4004    def get_componentsupportedinterface(self): return self.componentsupportedinterface4005    def set_componentsupportedinterface(self, componentsupportedinterface): self.componentsupportedinterface = componentsupportedinterface4006    componentsupportedinterfaceProp = property(get_componentsupportedinterface, set_componentsupportedinterface)4007    def get_findby(self): return self.findby4008    def set_findby(self, findby): self.findby = findby4009    findbyProp = property(get_findby, set_findby)4010    def get_id(self): return self.id_4011    def set_id(self, id_): self.id_ = id_4012    idProp = property(get_id, set_id)4013    def hasContent_(self):4014        if (4015            self.usesport is not None or4016            self.providesport is not None or4017            self.componentsupportedinterface is not None or4018            self.findby is not None4019        ):4020            return True4021        else:4022            return False4023    def export(self, outfile, level, namespace_='', name_='connectinterface', namespacedef_='', pretty_print=True):4024        imported_ns_def_ = GenerateDSNamespaceDefs_.get('connectinterface')4025        if imported_ns_def_ is not None:4026            namespacedef_ = imported_ns_def_4027        if pretty_print:4028            eol_ = '\n'4029        else:4030            eol_ = ''4031        if self.original_tagname_ is not None:4032            name_ = self.original_tagname_4033        showIndent(outfile, level, pretty_print)4034        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))4035        already_processed = set()4036        self.exportAttributes(outfile, level, already_processed, namespace_, name_='connectinterface')4037        if self.hasContent_():4038            outfile.write('>%s' % (eol_, ))4039            self.exportChildren(outfile, level + 1, namespace_='', name_='connectinterface', pretty_print=pretty_print)4040            showIndent(outfile, level, pretty_print)4041            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))4042        else:4043            outfile.write('/>%s' % (eol_, ))4044    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='connectinterface'):4045        if self.id_ is not None and 'id' not in already_processed:4046            already_processed.add('id')4047            outfile.write(' id=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.id_), input_name='id')), ))4048    def exportChildren(self, outfile, level, namespace_='', name_='connectinterface', fromsubclass_=False, pretty_print=True):4049        if pretty_print:4050            eol_ = '\n'4051        else:4052            eol_ = ''4053        if self.usesport is not None:4054            self.usesport.export(outfile, level, namespace_, name_='usesport', pretty_print=pretty_print)4055        if self.providesport is not None:4056            self.providesport.export(outfile, level, namespace_, name_='providesport', pretty_print=pretty_print)4057        if self.componentsupportedinterface is not None:4058            self.componentsupportedinterface.export(outfile, level, namespace_, name_='componentsupportedinterface', pretty_print=pretty_print)4059        if self.findby is not None:4060            self.findby.export(outfile, level, namespace_, name_='findby', pretty_print=pretty_print)4061    def build(self, node):4062        already_processed = set()4063        self.buildAttributes(node, node.attrib, already_processed)4064        for child in node:4065            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]4066            self.buildChildren(child, node, nodeName_)4067        return self4068    def buildAttributes(self, node, attrs, already_processed):4069        value = find_attr_value_('id', node)4070        if value is not None and 'id' not in already_processed:4071            already_processed.add('id')4072            self.id_ = value4073    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):4074        if nodeName_ == 'usesport':4075            obj_ = usesport.factory()4076            obj_.build(child_)4077            self.usesport = obj_4078            obj_.original_tagname_ = 'usesport'4079        elif nodeName_ == 'providesport':4080            obj_ = providesport.factory()4081            obj_.build(child_)4082            self.providesport = obj_4083            obj_.original_tagname_ = 'providesport'4084        elif nodeName_ == 'componentsupportedinterface':4085            obj_ = componentsupportedinterface.factory()4086            obj_.build(child_)4087            self.componentsupportedinterface = obj_4088            obj_.original_tagname_ = 'componentsupportedinterface'4089        elif nodeName_ == 'findby':4090            obj_ = findby.factory()4091            obj_.build(child_)4092            self.findby = obj_4093            obj_.original_tagname_ = 'findby'4094# end class connectinterface4095class usesport(GeneratedsSuper):4096    subclass = None4097    superclass = None4098    def __init__(self, usesidentifier=None, componentinstantiationref=None, devicethatloadedthiscomponentref=None, deviceusedbythiscomponentref=None, deviceusedbyapplication=None, findby=None):4099        self.original_tagname_ = None4100        self.usesidentifier = usesidentifier4101        self.componentinstantiationref = componentinstantiationref4102        self.devicethatloadedthiscomponentref = devicethatloadedthiscomponentref4103        self.deviceusedbythiscomponentref = deviceusedbythiscomponentref4104        self.deviceusedbyapplication = deviceusedbyapplication4105        self.findby = findby4106    def factory(*args_, **kwargs_):4107        if CurrentSubclassModule_ is not None:4108            subclass = getSubclassFromModule_(4109                CurrentSubclassModule_, usesport)4110            if subclass is not None:4111                return subclass(*args_, **kwargs_)4112        if usesport.subclass:4113            return usesport.subclass(*args_, **kwargs_)4114        else:4115            return usesport(*args_, **kwargs_)4116    factory = staticmethod(factory)4117    def get_usesidentifier(self): return self.usesidentifier4118    def set_usesidentifier(self, usesidentifier): self.usesidentifier = usesidentifier4119    usesidentifierProp = property(get_usesidentifier, set_usesidentifier)4120    def get_componentinstantiationref(self): return self.componentinstantiationref4121    def set_componentinstantiationref(self, componentinstantiationref): self.componentinstantiationref = componentinstantiationref4122    componentinstantiationrefProp = property(get_componentinstantiationref, set_componentinstantiationref)4123    def get_devicethatloadedthiscomponentref(self): return self.devicethatloadedthiscomponentref4124    def set_devicethatloadedthiscomponentref(self, devicethatloadedthiscomponentref): self.devicethatloadedthiscomponentref = devicethatloadedthiscomponentref4125    devicethatloadedthiscomponentrefProp = property(get_devicethatloadedthiscomponentref, set_devicethatloadedthiscomponentref)4126    def get_deviceusedbythiscomponentref(self): return self.deviceusedbythiscomponentref4127    def set_deviceusedbythiscomponentref(self, deviceusedbythiscomponentref): self.deviceusedbythiscomponentref = deviceusedbythiscomponentref4128    deviceusedbythiscomponentrefProp = property(get_deviceusedbythiscomponentref, set_deviceusedbythiscomponentref)4129    def get_deviceusedbyapplication(self): return self.deviceusedbyapplication4130    def set_deviceusedbyapplication(self, deviceusedbyapplication): self.deviceusedbyapplication = deviceusedbyapplication4131    deviceusedbyapplicationProp = property(get_deviceusedbyapplication, set_deviceusedbyapplication)4132    def get_findby(self): return self.findby4133    def set_findby(self, findby): self.findby = findby4134    findbyProp = property(get_findby, set_findby)4135    def hasContent_(self):4136        if (4137            self.usesidentifier is not None or4138            self.componentinstantiationref is not None or4139            self.devicethatloadedthiscomponentref is not None or4140            self.deviceusedbythiscomponentref is not None or4141            self.deviceusedbyapplication is not None or4142            self.findby is not None4143        ):4144            return True4145        else:4146            return False4147    def export(self, outfile, level, namespace_='', name_='usesport', namespacedef_='', pretty_print=True):4148        imported_ns_def_ = GenerateDSNamespaceDefs_.get('usesport')4149        if imported_ns_def_ is not None:4150            namespacedef_ = imported_ns_def_4151        if pretty_print:4152            eol_ = '\n'4153        else:4154            eol_ = ''4155        if self.original_tagname_ is not None:4156            name_ = self.original_tagname_4157        showIndent(outfile, level, pretty_print)4158        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))4159        already_processed = set()4160        self.exportAttributes(outfile, level, already_processed, namespace_, name_='usesport')4161        if self.hasContent_():4162            outfile.write('>%s' % (eol_, ))4163            self.exportChildren(outfile, level + 1, namespace_='', name_='usesport', pretty_print=pretty_print)4164            showIndent(outfile, level, pretty_print)4165            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))4166        else:4167            outfile.write('/>%s' % (eol_, ))4168    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='usesport'):4169        pass4170    def exportChildren(self, outfile, level, namespace_='', name_='usesport', fromsubclass_=False, pretty_print=True):4171        if pretty_print:4172            eol_ = '\n'4173        else:4174            eol_ = ''4175        if self.usesidentifier is not None:4176            showIndent(outfile, level, pretty_print)4177            outfile.write('<usesidentifier>%s</usesidentifier>%s' % (self.gds_encode(self.gds_format_string(quote_xml(self.usesidentifier), input_name='usesidentifier')), eol_))4178        if self.componentinstantiationref is not None:4179            self.componentinstantiationref.export(outfile, level, namespace_, name_='componentinstantiationref', pretty_print=pretty_print)4180        if self.devicethatloadedthiscomponentref is not None:4181            self.devicethatloadedthiscomponentref.export(outfile, level, namespace_, name_='devicethatloadedthiscomponentref', pretty_print=pretty_print)4182        if self.deviceusedbythiscomponentref is not None:4183            self.deviceusedbythiscomponentref.export(outfile, level, namespace_, name_='deviceusedbythiscomponentref', pretty_print=pretty_print)4184        if self.deviceusedbyapplication is not None:4185            self.deviceusedbyapplication.export(outfile, level, namespace_, name_='deviceusedbyapplication', pretty_print=pretty_print)4186        if self.findby is not None:4187            self.findby.export(outfile, level, namespace_, name_='findby', pretty_print=pretty_print)4188    def build(self, node):4189        already_processed = set()4190        self.buildAttributes(node, node.attrib, already_processed)4191        for child in node:4192            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]4193            self.buildChildren(child, node, nodeName_)4194        return self4195    def buildAttributes(self, node, attrs, already_processed):4196        pass4197    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):4198        if nodeName_ == 'usesidentifier':4199            usesidentifier_ = child_.text4200            usesidentifier_ = self.gds_validate_string(usesidentifier_, node, 'usesidentifier')4201            self.usesidentifier = usesidentifier_4202        elif nodeName_ == 'componentinstantiationref':4203            obj_ = componentinstantiationref.factory()4204            obj_.build(child_)4205            self.componentinstantiationref = obj_4206            obj_.original_tagname_ = 'componentinstantiationref'4207        elif nodeName_ == 'devicethatloadedthiscomponentref':4208            obj_ = devicethatloadedthiscomponentref.factory()4209            obj_.build(child_)4210            self.devicethatloadedthiscomponentref = obj_4211            obj_.original_tagname_ = 'devicethatloadedthiscomponentref'4212        elif nodeName_ == 'deviceusedbythiscomponentref':4213            obj_ = deviceusedbythiscomponentref.factory()4214            obj_.build(child_)4215            self.deviceusedbythiscomponentref = obj_4216            obj_.original_tagname_ = 'deviceusedbythiscomponentref'4217        elif nodeName_ == 'deviceusedbyapplication':4218            obj_ = deviceusedbyapplication.factory()4219            obj_.build(child_)4220            self.deviceusedbyapplication = obj_4221            obj_.original_tagname_ = 'deviceusedbyapplication'4222        elif nodeName_ == 'findby':4223            obj_ = findby.factory()4224            obj_.build(child_)4225            self.findby = obj_4226            obj_.original_tagname_ = 'findby'4227# end class usesport4228class providesport(GeneratedsSuper):4229    subclass = None4230    superclass = None4231    def __init__(self, providesidentifier=None, componentinstantiationref=None, devicethatloadedthiscomponentref=None, deviceusedbythiscomponentref=None, deviceusedbyapplication=None, findby=None):4232        self.original_tagname_ = None4233        self.providesidentifier = providesidentifier4234        self.componentinstantiationref = componentinstantiationref4235        self.devicethatloadedthiscomponentref = devicethatloadedthiscomponentref4236        self.deviceusedbythiscomponentref = deviceusedbythiscomponentref4237        self.deviceusedbyapplication = deviceusedbyapplication4238        self.findby = findby4239    def factory(*args_, **kwargs_):4240        if CurrentSubclassModule_ is not None:4241            subclass = getSubclassFromModule_(4242                CurrentSubclassModule_, providesport)4243            if subclass is not None:4244                return subclass(*args_, **kwargs_)4245        if providesport.subclass:4246            return providesport.subclass(*args_, **kwargs_)4247        else:4248            return providesport(*args_, **kwargs_)4249    factory = staticmethod(factory)4250    def get_providesidentifier(self): return self.providesidentifier4251    def set_providesidentifier(self, providesidentifier): self.providesidentifier = providesidentifier4252    providesidentifierProp = property(get_providesidentifier, set_providesidentifier)4253    def get_componentinstantiationref(self): return self.componentinstantiationref4254    def set_componentinstantiationref(self, componentinstantiationref): self.componentinstantiationref = componentinstantiationref4255    componentinstantiationrefProp = property(get_componentinstantiationref, set_componentinstantiationref)4256    def get_devicethatloadedthiscomponentref(self): return self.devicethatloadedthiscomponentref4257    def set_devicethatloadedthiscomponentref(self, devicethatloadedthiscomponentref): self.devicethatloadedthiscomponentref = devicethatloadedthiscomponentref4258    devicethatloadedthiscomponentrefProp = property(get_devicethatloadedthiscomponentref, set_devicethatloadedthiscomponentref)4259    def get_deviceusedbythiscomponentref(self): return self.deviceusedbythiscomponentref4260    def set_deviceusedbythiscomponentref(self, deviceusedbythiscomponentref): self.deviceusedbythiscomponentref = deviceusedbythiscomponentref4261    deviceusedbythiscomponentrefProp = property(get_deviceusedbythiscomponentref, set_deviceusedbythiscomponentref)4262    def get_deviceusedbyapplication(self): return self.deviceusedbyapplication4263    def set_deviceusedbyapplication(self, deviceusedbyapplication): self.deviceusedbyapplication = deviceusedbyapplication4264    deviceusedbyapplicationProp = property(get_deviceusedbyapplication, set_deviceusedbyapplication)4265    def get_findby(self): return self.findby4266    def set_findby(self, findby): self.findby = findby4267    findbyProp = property(get_findby, set_findby)4268    def hasContent_(self):4269        if (4270            self.providesidentifier is not None or4271            self.componentinstantiationref is not None or4272            self.devicethatloadedthiscomponentref is not None or4273            self.deviceusedbythiscomponentref is not None or4274            self.deviceusedbyapplication is not None or4275            self.findby is not None4276        ):4277            return True4278        else:4279            return False4280    def export(self, outfile, level, namespace_='', name_='providesport', namespacedef_='', pretty_print=True):4281        imported_ns_def_ = GenerateDSNamespaceDefs_.get('providesport')4282        if imported_ns_def_ is not None:4283            namespacedef_ = imported_ns_def_4284        if pretty_print:4285            eol_ = '\n'4286        else:4287            eol_ = ''4288        if self.original_tagname_ is not None:4289            name_ = self.original_tagname_4290        showIndent(outfile, level, pretty_print)4291        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))4292        already_processed = set()4293        self.exportAttributes(outfile, level, already_processed, namespace_, name_='providesport')4294        if self.hasContent_():4295            outfile.write('>%s' % (eol_, ))4296            self.exportChildren(outfile, level + 1, namespace_='', name_='providesport', pretty_print=pretty_print)4297            showIndent(outfile, level, pretty_print)4298            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))4299        else:4300            outfile.write('/>%s' % (eol_, ))4301    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='providesport'):4302        pass4303    def exportChildren(self, outfile, level, namespace_='', name_='providesport', fromsubclass_=False, pretty_print=True):4304        if pretty_print:4305            eol_ = '\n'4306        else:4307            eol_ = ''4308        if self.providesidentifier is not None:4309            showIndent(outfile, level, pretty_print)4310            outfile.write('<providesidentifier>%s</providesidentifier>%s' % (self.gds_encode(self.gds_format_string(quote_xml(self.providesidentifier), input_name='providesidentifier')), eol_))4311        if self.componentinstantiationref is not None:4312            self.componentinstantiationref.export(outfile, level, namespace_, name_='componentinstantiationref', pretty_print=pretty_print)4313        if self.devicethatloadedthiscomponentref is not None:4314            self.devicethatloadedthiscomponentref.export(outfile, level, namespace_, name_='devicethatloadedthiscomponentref', pretty_print=pretty_print)4315        if self.deviceusedbythiscomponentref is not None:4316            self.deviceusedbythiscomponentref.export(outfile, level, namespace_, name_='deviceusedbythiscomponentref', pretty_print=pretty_print)4317        if self.deviceusedbyapplication is not None:4318            self.deviceusedbyapplication.export(outfile, level, namespace_, name_='deviceusedbyapplication', pretty_print=pretty_print)4319        if self.findby is not None:4320            self.findby.export(outfile, level, namespace_, name_='findby', pretty_print=pretty_print)4321    def build(self, node):4322        already_processed = set()4323        self.buildAttributes(node, node.attrib, already_processed)4324        for child in node:4325            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]4326            self.buildChildren(child, node, nodeName_)4327        return self4328    def buildAttributes(self, node, attrs, already_processed):4329        pass4330    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):4331        if nodeName_ == 'providesidentifier':4332            providesidentifier_ = child_.text4333            providesidentifier_ = self.gds_validate_string(providesidentifier_, node, 'providesidentifier')4334            self.providesidentifier = providesidentifier_4335        elif nodeName_ == 'componentinstantiationref':4336            obj_ = componentinstantiationref.factory()4337            obj_.build(child_)4338            self.componentinstantiationref = obj_4339            obj_.original_tagname_ = 'componentinstantiationref'4340        elif nodeName_ == 'devicethatloadedthiscomponentref':4341            obj_ = devicethatloadedthiscomponentref.factory()4342            obj_.build(child_)4343            self.devicethatloadedthiscomponentref = obj_4344            obj_.original_tagname_ = 'devicethatloadedthiscomponentref'4345        elif nodeName_ == 'deviceusedbythiscomponentref':4346            obj_ = deviceusedbythiscomponentref.factory()4347            obj_.build(child_)4348            self.deviceusedbythiscomponentref = obj_4349            obj_.original_tagname_ = 'deviceusedbythiscomponentref'4350        elif nodeName_ == 'deviceusedbyapplication':4351            obj_ = deviceusedbyapplication.factory()4352            obj_.build(child_)4353            self.deviceusedbyapplication = obj_4354            obj_.original_tagname_ = 'deviceusedbyapplication'4355        elif nodeName_ == 'findby':4356            obj_ = findby.factory()4357            obj_.build(child_)4358            self.findby = obj_4359            obj_.original_tagname_ = 'findby'4360# end class providesport4361class componentsupportedinterface(GeneratedsSuper):4362    subclass = None4363    superclass = None4364    def __init__(self, supportedidentifier=None, componentinstantiationref=None, devicethatloadedthiscomponentref=None, deviceusedbythiscomponentref=None, deviceusedbyapplication=None, findby=None):4365        self.original_tagname_ = None4366        self.supportedidentifier = supportedidentifier4367        self.componentinstantiationref = componentinstantiationref4368        self.devicethatloadedthiscomponentref = devicethatloadedthiscomponentref4369        self.deviceusedbythiscomponentref = deviceusedbythiscomponentref4370        self.deviceusedbyapplication = deviceusedbyapplication4371        self.findby = findby4372    def factory(*args_, **kwargs_):4373        if CurrentSubclassModule_ is not None:4374            subclass = getSubclassFromModule_(4375                CurrentSubclassModule_, componentsupportedinterface)4376            if subclass is not None:4377                return subclass(*args_, **kwargs_)4378        if componentsupportedinterface.subclass:4379            return componentsupportedinterface.subclass(*args_, **kwargs_)4380        else:4381            return componentsupportedinterface(*args_, **kwargs_)4382    factory = staticmethod(factory)4383    def get_supportedidentifier(self): return self.supportedidentifier4384    def set_supportedidentifier(self, supportedidentifier): self.supportedidentifier = supportedidentifier4385    supportedidentifierProp = property(get_supportedidentifier, set_supportedidentifier)4386    def get_componentinstantiationref(self): return self.componentinstantiationref4387    def set_componentinstantiationref(self, componentinstantiationref): self.componentinstantiationref = componentinstantiationref4388    componentinstantiationrefProp = property(get_componentinstantiationref, set_componentinstantiationref)4389    def get_devicethatloadedthiscomponentref(self): return self.devicethatloadedthiscomponentref4390    def set_devicethatloadedthiscomponentref(self, devicethatloadedthiscomponentref): self.devicethatloadedthiscomponentref = devicethatloadedthiscomponentref4391    devicethatloadedthiscomponentrefProp = property(get_devicethatloadedthiscomponentref, set_devicethatloadedthiscomponentref)4392    def get_deviceusedbythiscomponentref(self): return self.deviceusedbythiscomponentref4393    def set_deviceusedbythiscomponentref(self, deviceusedbythiscomponentref): self.deviceusedbythiscomponentref = deviceusedbythiscomponentref4394    deviceusedbythiscomponentrefProp = property(get_deviceusedbythiscomponentref, set_deviceusedbythiscomponentref)4395    def get_deviceusedbyapplication(self): return self.deviceusedbyapplication4396    def set_deviceusedbyapplication(self, deviceusedbyapplication): self.deviceusedbyapplication = deviceusedbyapplication4397    deviceusedbyapplicationProp = property(get_deviceusedbyapplication, set_deviceusedbyapplication)4398    def get_findby(self): return self.findby4399    def set_findby(self, findby): self.findby = findby4400    findbyProp = property(get_findby, set_findby)4401    def hasContent_(self):4402        if (4403            self.supportedidentifier is not None or4404            self.componentinstantiationref is not None or4405            self.devicethatloadedthiscomponentref is not None or4406            self.deviceusedbythiscomponentref is not None or4407            self.deviceusedbyapplication is not None or4408            self.findby is not None4409        ):4410            return True4411        else:4412            return False4413    def export(self, outfile, level, namespace_='', name_='componentsupportedinterface', namespacedef_='', pretty_print=True):4414        imported_ns_def_ = GenerateDSNamespaceDefs_.get('componentsupportedinterface')4415        if imported_ns_def_ is not None:4416            namespacedef_ = imported_ns_def_4417        if pretty_print:4418            eol_ = '\n'4419        else:4420            eol_ = ''4421        if self.original_tagname_ is not None:4422            name_ = self.original_tagname_4423        showIndent(outfile, level, pretty_print)4424        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))4425        already_processed = set()4426        self.exportAttributes(outfile, level, already_processed, namespace_, name_='componentsupportedinterface')4427        if self.hasContent_():4428            outfile.write('>%s' % (eol_, ))4429            self.exportChildren(outfile, level + 1, namespace_='', name_='componentsupportedinterface', pretty_print=pretty_print)4430            showIndent(outfile, level, pretty_print)4431            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))4432        else:4433            outfile.write('/>%s' % (eol_, ))4434    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='componentsupportedinterface'):4435        pass4436    def exportChildren(self, outfile, level, namespace_='', name_='componentsupportedinterface', fromsubclass_=False, pretty_print=True):4437        if pretty_print:4438            eol_ = '\n'4439        else:4440            eol_ = ''4441        if self.supportedidentifier is not None:4442            showIndent(outfile, level, pretty_print)4443            outfile.write('<supportedidentifier>%s</supportedidentifier>%s' % (self.gds_encode(self.gds_format_string(quote_xml(self.supportedidentifier), input_name='supportedidentifier')), eol_))4444        if self.componentinstantiationref is not None:4445            self.componentinstantiationref.export(outfile, level, namespace_, name_='componentinstantiationref', pretty_print=pretty_print)4446        if self.devicethatloadedthiscomponentref is not None:4447            self.devicethatloadedthiscomponentref.export(outfile, level, namespace_, name_='devicethatloadedthiscomponentref', pretty_print=pretty_print)4448        if self.deviceusedbythiscomponentref is not None:4449            self.deviceusedbythiscomponentref.export(outfile, level, namespace_, name_='deviceusedbythiscomponentref', pretty_print=pretty_print)4450        if self.deviceusedbyapplication is not None:4451            self.deviceusedbyapplication.export(outfile, level, namespace_, name_='deviceusedbyapplication', pretty_print=pretty_print)4452        if self.findby is not None:4453            self.findby.export(outfile, level, namespace_, name_='findby', pretty_print=pretty_print)4454    def build(self, node):4455        already_processed = set()4456        self.buildAttributes(node, node.attrib, already_processed)4457        for child in node:4458            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]4459            self.buildChildren(child, node, nodeName_)4460        return self4461    def buildAttributes(self, node, attrs, already_processed):4462        pass4463    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):4464        if nodeName_ == 'supportedidentifier':4465            supportedidentifier_ = child_.text4466            supportedidentifier_ = self.gds_validate_string(supportedidentifier_, node, 'supportedidentifier')4467            self.supportedidentifier = supportedidentifier_4468        elif nodeName_ == 'componentinstantiationref':4469            obj_ = componentinstantiationref.factory()4470            obj_.build(child_)4471            self.componentinstantiationref = obj_4472            obj_.original_tagname_ = 'componentinstantiationref'4473        elif nodeName_ == 'devicethatloadedthiscomponentref':4474            obj_ = devicethatloadedthiscomponentref.factory()4475            obj_.build(child_)4476            self.devicethatloadedthiscomponentref = obj_4477            obj_.original_tagname_ = 'devicethatloadedthiscomponentref'4478        elif nodeName_ == 'deviceusedbythiscomponentref':4479            obj_ = deviceusedbythiscomponentref.factory()4480            obj_.build(child_)4481            self.deviceusedbythiscomponentref = obj_4482            obj_.original_tagname_ = 'deviceusedbythiscomponentref'4483        elif nodeName_ == 'deviceusedbyapplication':4484            obj_ = deviceusedbyapplication.factory()4485            obj_.build(child_)4486            self.deviceusedbyapplication = obj_4487            obj_.original_tagname_ = 'deviceusedbyapplication'4488        elif nodeName_ == 'findby':4489            obj_ = findby.factory()4490            obj_.build(child_)4491            self.findby = obj_4492            obj_.original_tagname_ = 'findby'4493# end class componentsupportedinterface4494class externalports(GeneratedsSuper):4495    subclass = None4496    superclass = None4497    def __init__(self, port=None):4498        self.original_tagname_ = None4499        if port is None:4500            self.port = []4501        else:4502            self.port = port4503    def factory(*args_, **kwargs_):4504        if CurrentSubclassModule_ is not None:4505            subclass = getSubclassFromModule_(4506                CurrentSubclassModule_, externalports)4507            if subclass is not None:4508                return subclass(*args_, **kwargs_)4509        if externalports.subclass:4510            return externalports.subclass(*args_, **kwargs_)4511        else:4512            return externalports(*args_, **kwargs_)4513    factory = staticmethod(factory)4514    def get_port(self): return self.port4515    def set_port(self, port): self.port = port4516    def add_port(self, value): self.port.append(value)4517    def insert_port_at(self, index, value): self.port.insert(index, value)4518    def replace_port_at(self, index, value): self.port[index] = value4519    portProp = property(get_port, set_port)4520    def hasContent_(self):4521        if (4522            self.port4523        ):4524            return True4525        else:4526            return False4527    def export(self, outfile, level, namespace_='', name_='externalports', namespacedef_='', pretty_print=True):4528        imported_ns_def_ = GenerateDSNamespaceDefs_.get('externalports')4529        if imported_ns_def_ is not None:4530            namespacedef_ = imported_ns_def_4531        if pretty_print:4532            eol_ = '\n'4533        else:4534            eol_ = ''4535        if self.original_tagname_ is not None:4536            name_ = self.original_tagname_4537        showIndent(outfile, level, pretty_print)4538        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))4539        already_processed = set()4540        self.exportAttributes(outfile, level, already_processed, namespace_, name_='externalports')4541        if self.hasContent_():4542            outfile.write('>%s' % (eol_, ))4543            self.exportChildren(outfile, level + 1, namespace_='', name_='externalports', pretty_print=pretty_print)4544            showIndent(outfile, level, pretty_print)4545            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))4546        else:4547            outfile.write('/>%s' % (eol_, ))4548    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='externalports'):4549        pass4550    def exportChildren(self, outfile, level, namespace_='', name_='externalports', fromsubclass_=False, pretty_print=True):4551        if pretty_print:4552            eol_ = '\n'4553        else:4554            eol_ = ''4555        for port_ in self.port:4556            port_.export(outfile, level, namespace_, name_='port', pretty_print=pretty_print)4557    def build(self, node):4558        already_processed = set()4559        self.buildAttributes(node, node.attrib, already_processed)4560        for child in node:4561            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]4562            self.buildChildren(child, node, nodeName_)4563        return self4564    def buildAttributes(self, node, attrs, already_processed):4565        pass4566    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):4567        if nodeName_ == 'port':4568            obj_ = port.factory()4569            obj_.build(child_)4570            self.port.append(obj_)4571            obj_.original_tagname_ = 'port'4572# end class externalports4573class port(GeneratedsSuper):4574    subclass = None4575    superclass = None4576    def __init__(self, externalname=None, description=None, usesidentifier=None, providesidentifier=None, supportedidentifier=None, componentinstantiationref=None):4577        self.original_tagname_ = None4578        self.externalname = _cast(None, externalname)4579        self.description = description4580        self.usesidentifier = usesidentifier4581        self.providesidentifier = providesidentifier4582        self.supportedidentifier = supportedidentifier4583        self.componentinstantiationref = componentinstantiationref4584    def factory(*args_, **kwargs_):4585        if CurrentSubclassModule_ is not None:4586            subclass = getSubclassFromModule_(4587                CurrentSubclassModule_, port)4588            if subclass is not None:4589                return subclass(*args_, **kwargs_)4590        if port.subclass:4591            return port.subclass(*args_, **kwargs_)4592        else:4593            return port(*args_, **kwargs_)4594    factory = staticmethod(factory)4595    def get_description(self): return self.description4596    def set_description(self, description): self.description = description4597    descriptionProp = property(get_description, set_description)4598    def get_usesidentifier(self): return self.usesidentifier4599    def set_usesidentifier(self, usesidentifier): self.usesidentifier = usesidentifier4600    usesidentifierProp = property(get_usesidentifier, set_usesidentifier)4601    def get_providesidentifier(self): return self.providesidentifier4602    def set_providesidentifier(self, providesidentifier): self.providesidentifier = providesidentifier4603    providesidentifierProp = property(get_providesidentifier, set_providesidentifier)4604    def get_supportedidentifier(self): return self.supportedidentifier4605    def set_supportedidentifier(self, supportedidentifier): self.supportedidentifier = supportedidentifier4606    supportedidentifierProp = property(get_supportedidentifier, set_supportedidentifier)4607    def get_componentinstantiationref(self): return self.componentinstantiationref4608    def set_componentinstantiationref(self, componentinstantiationref): self.componentinstantiationref = componentinstantiationref4609    componentinstantiationrefProp = property(get_componentinstantiationref, set_componentinstantiationref)4610    def get_externalname(self): return self.externalname4611    def set_externalname(self, externalname): self.externalname = externalname4612    externalnameProp = property(get_externalname, set_externalname)4613    def hasContent_(self):4614        if (4615            self.description is not None or4616            self.usesidentifier is not None or4617            self.providesidentifier is not None or4618            self.supportedidentifier is not None or4619            self.componentinstantiationref is not None4620        ):4621            return True4622        else:4623            return False4624    def export(self, outfile, level, namespace_='', name_='port', namespacedef_='', pretty_print=True):4625        imported_ns_def_ = GenerateDSNamespaceDefs_.get('port')4626        if imported_ns_def_ is not None:4627            namespacedef_ = imported_ns_def_4628        if pretty_print:4629            eol_ = '\n'4630        else:4631            eol_ = ''4632        if self.original_tagname_ is not None:4633            name_ = self.original_tagname_4634        showIndent(outfile, level, pretty_print)4635        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))4636        already_processed = set()4637        self.exportAttributes(outfile, level, already_processed, namespace_, name_='port')4638        if self.hasContent_():4639            outfile.write('>%s' % (eol_, ))4640            self.exportChildren(outfile, level + 1, namespace_='', name_='port', pretty_print=pretty_print)4641            showIndent(outfile, level, pretty_print)4642            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))4643        else:4644            outfile.write('/>%s' % (eol_, ))4645    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='port'):4646        if self.externalname is not None and 'externalname' not in already_processed:4647            already_processed.add('externalname')4648            outfile.write(' externalname=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.externalname), input_name='externalname')), ))4649    def exportChildren(self, outfile, level, namespace_='', name_='port', fromsubclass_=False, pretty_print=True):4650        if pretty_print:4651            eol_ = '\n'4652        else:4653            eol_ = ''4654        if self.description is not None:4655            showIndent(outfile, level, pretty_print)4656            outfile.write('<description>%s</description>%s' % (self.gds_encode(self.gds_format_string(quote_xml(self.description), input_name='description')), eol_))4657        if self.usesidentifier is not None:4658            showIndent(outfile, level, pretty_print)4659            outfile.write('<usesidentifier>%s</usesidentifier>%s' % (self.gds_encode(self.gds_format_string(quote_xml(self.usesidentifier), input_name='usesidentifier')), eol_))4660        if self.providesidentifier is not None:4661            showIndent(outfile, level, pretty_print)4662            outfile.write('<providesidentifier>%s</providesidentifier>%s' % (self.gds_encode(self.gds_format_string(quote_xml(self.providesidentifier), input_name='providesidentifier')), eol_))4663        if self.supportedidentifier is not None:4664            showIndent(outfile, level, pretty_print)4665            outfile.write('<supportedidentifier>%s</supportedidentifier>%s' % (self.gds_encode(self.gds_format_string(quote_xml(self.supportedidentifier), input_name='supportedidentifier')), eol_))4666        if self.componentinstantiationref is not None:4667            self.componentinstantiationref.export(outfile, level, namespace_, name_='componentinstantiationref', pretty_print=pretty_print)4668    def build(self, node):4669        already_processed = set()4670        self.buildAttributes(node, node.attrib, already_processed)4671        for child in node:4672            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]4673            self.buildChildren(child, node, nodeName_)4674        return self4675    def buildAttributes(self, node, attrs, already_processed):4676        value = find_attr_value_('externalname', node)4677        if value is not None and 'externalname' not in already_processed:4678            already_processed.add('externalname')4679            self.externalname = value4680    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):4681        if nodeName_ == 'description':4682            description_ = child_.text4683            description_ = self.gds_validate_string(description_, node, 'description')4684            self.description = description_4685        elif nodeName_ == 'usesidentifier':4686            usesidentifier_ = child_.text4687            usesidentifier_ = self.gds_validate_string(usesidentifier_, node, 'usesidentifier')4688            self.usesidentifier = usesidentifier_4689        elif nodeName_ == 'providesidentifier':4690            providesidentifier_ = child_.text4691            providesidentifier_ = self.gds_validate_string(providesidentifier_, node, 'providesidentifier')4692            self.providesidentifier = providesidentifier_4693        elif nodeName_ == 'supportedidentifier':4694            supportedidentifier_ = child_.text4695            supportedidentifier_ = self.gds_validate_string(supportedidentifier_, node, 'supportedidentifier')4696            self.supportedidentifier = supportedidentifier_4697        elif nodeName_ == 'componentinstantiationref':4698            obj_ = componentinstantiationref.factory()4699            obj_.build(child_)4700            self.componentinstantiationref = obj_4701            obj_.original_tagname_ = 'componentinstantiationref'4702# end class port4703class externalproperties(GeneratedsSuper):4704    subclass = None4705    superclass = None4706    def __init__(self, property=None):4707        self.original_tagname_ = None4708        if property is None:4709            self.property = []4710        else:4711            self.property = property4712    def factory(*args_, **kwargs_):4713        if CurrentSubclassModule_ is not None:4714            subclass = getSubclassFromModule_(4715                CurrentSubclassModule_, externalproperties)4716            if subclass is not None:4717                return subclass(*args_, **kwargs_)4718        if externalproperties.subclass:4719            return externalproperties.subclass(*args_, **kwargs_)4720        else:4721            return externalproperties(*args_, **kwargs_)4722    factory = staticmethod(factory)4723    def get_property(self): return self.property4724    def set_property(self, property): self.property = property4725    def add_property(self, value): self.property.append(value)4726    def insert_property_at(self, index, value): self.property.insert(index, value)4727    def replace_property_at(self, index, value): self.property[index] = value4728    propertyProp = property(get_property, set_property)4729    def hasContent_(self):4730        if (4731            self.property4732        ):4733            return True4734        else:4735            return False4736    def export(self, outfile, level, namespace_='', name_='externalproperties', namespacedef_='', pretty_print=True):4737        imported_ns_def_ = GenerateDSNamespaceDefs_.get('externalproperties')4738        if imported_ns_def_ is not None:4739            namespacedef_ = imported_ns_def_4740        if pretty_print:4741            eol_ = '\n'4742        else:4743            eol_ = ''4744        if self.original_tagname_ is not None:4745            name_ = self.original_tagname_4746        showIndent(outfile, level, pretty_print)4747        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))4748        already_processed = set()4749        self.exportAttributes(outfile, level, already_processed, namespace_, name_='externalproperties')4750        if self.hasContent_():4751            outfile.write('>%s' % (eol_, ))4752            self.exportChildren(outfile, level + 1, namespace_='', name_='externalproperties', pretty_print=pretty_print)4753            showIndent(outfile, level, pretty_print)4754            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))4755        else:4756            outfile.write('/>%s' % (eol_, ))4757    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='externalproperties'):4758        pass4759    def exportChildren(self, outfile, level, namespace_='', name_='externalproperties', fromsubclass_=False, pretty_print=True):4760        if pretty_print:4761            eol_ = '\n'4762        else:4763            eol_ = ''4764        for property_ in self.property:4765            property_.export(outfile, level, namespace_, name_='property', pretty_print=pretty_print)4766    def build(self, node):4767        already_processed = set()4768        self.buildAttributes(node, node.attrib, already_processed)4769        for child in node:4770            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]4771            self.buildChildren(child, node, nodeName_)4772        return self4773    def buildAttributes(self, node, attrs, already_processed):4774        pass4775    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):4776        if nodeName_ == 'property':4777            obj_ = property.factory()4778            obj_.build(child_)4779            self.property.append(obj_)4780            obj_.original_tagname_ = 'property'4781# end class externalproperties4782class property(GeneratedsSuper):4783    subclass = None4784    superclass = None4785    def __init__(self, comprefid=None, propid=None, externalpropid=None):4786        self.original_tagname_ = None4787        self.comprefid = _cast(None, comprefid)4788        self.propid = _cast(None, propid)4789        self.externalpropid = _cast(None, externalpropid)4790    def factory(*args_, **kwargs_):4791        if CurrentSubclassModule_ is not None:4792            subclass = getSubclassFromModule_(4793                CurrentSubclassModule_, property)4794            if subclass is not None:4795                return subclass(*args_, **kwargs_)4796        if property.subclass:4797            return property.subclass(*args_, **kwargs_)4798        else:4799            return property(*args_, **kwargs_)4800    factory = staticmethod(factory)4801    def get_comprefid(self): return self.comprefid4802    def set_comprefid(self, comprefid): self.comprefid = comprefid4803    comprefidProp = property(get_comprefid, set_comprefid)4804    def get_propid(self): return self.propid4805    def set_propid(self, propid): self.propid = propid4806    propidProp = property(get_propid, set_propid)4807    def get_externalpropid(self): return self.externalpropid4808    def set_externalpropid(self, externalpropid): self.externalpropid = externalpropid4809    externalpropidProp = property(get_externalpropid, set_externalpropid)4810    def hasContent_(self):4811        if (4812        ):4813            return True4814        else:4815            return False4816    def export(self, outfile, level, namespace_='', name_='property', namespacedef_='', pretty_print=True):4817        imported_ns_def_ = GenerateDSNamespaceDefs_.get('property')4818        if imported_ns_def_ is not None:4819            namespacedef_ = imported_ns_def_4820        if pretty_print:4821            eol_ = '\n'4822        else:4823            eol_ = ''4824        if self.original_tagname_ is not None:4825            name_ = self.original_tagname_4826        showIndent(outfile, level, pretty_print)4827        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))4828        already_processed = set()4829        self.exportAttributes(outfile, level, already_processed, namespace_, name_='property')4830        if self.hasContent_():4831            outfile.write('>%s' % (eol_, ))4832            self.exportChildren(outfile, level + 1, namespace_='', name_='property', pretty_print=pretty_print)4833            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))4834        else:4835            outfile.write('/>%s' % (eol_, ))4836    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='property'):4837        if self.comprefid is not None and 'comprefid' not in already_processed:4838            already_processed.add('comprefid')4839            outfile.write(' comprefid=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.comprefid), input_name='comprefid')), ))4840        if self.propid is not None and 'propid' not in already_processed:4841            already_processed.add('propid')4842            outfile.write(' propid=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.propid), input_name='propid')), ))4843        if self.externalpropid is not None and 'externalpropid' not in already_processed:4844            already_processed.add('externalpropid')4845            outfile.write(' externalpropid=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.externalpropid), input_name='externalpropid')), ))4846    def exportChildren(self, outfile, level, namespace_='', name_='property', fromsubclass_=False, pretty_print=True):4847        pass4848    def build(self, node):4849        already_processed = set()4850        self.buildAttributes(node, node.attrib, already_processed)4851        for child in node:4852            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]4853            self.buildChildren(child, node, nodeName_)4854        return self4855    def buildAttributes(self, node, attrs, already_processed):4856        value = find_attr_value_('comprefid', node)4857        if value is not None and 'comprefid' not in already_processed:4858            already_processed.add('comprefid')4859            self.comprefid = value4860        value = find_attr_value_('propid', node)4861        if value is not None and 'propid' not in already_processed:4862            already_processed.add('propid')4863            self.propid = value4864        value = find_attr_value_('externalpropid', node)4865        if value is not None and 'externalpropid' not in already_processed:4866            already_processed.add('externalpropid')4867            self.externalpropid = value4868    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):4869        pass4870# end class property4871class options(GeneratedsSuper):4872    subclass = None4873    superclass = None4874    def __init__(self, option=None):4875        self.original_tagname_ = None4876        if option is None:4877            self.option = []4878        else:4879            self.option = option4880    def factory(*args_, **kwargs_):4881        if CurrentSubclassModule_ is not None:4882            subclass = getSubclassFromModule_(4883                CurrentSubclassModule_, options)4884            if subclass is not None:4885                return subclass(*args_, **kwargs_)4886        if options.subclass:4887            return options.subclass(*args_, **kwargs_)4888        else:4889            return options(*args_, **kwargs_)4890    factory = staticmethod(factory)4891    def get_option(self): return self.option4892    def set_option(self, option): self.option = option4893    def add_option(self, value): self.option.append(value)4894    def insert_option_at(self, index, value): self.option.insert(index, value)4895    def replace_option_at(self, index, value): self.option[index] = value4896    optionProp = property(get_option, set_option)4897    def hasContent_(self):4898        if (4899            self.option4900        ):4901            return True4902        else:4903            return False4904    def export(self, outfile, level, namespace_='', name_='options', namespacedef_='', pretty_print=True):4905        imported_ns_def_ = GenerateDSNamespaceDefs_.get('options')4906        if imported_ns_def_ is not None:4907            namespacedef_ = imported_ns_def_4908        if pretty_print:4909            eol_ = '\n'4910        else:4911            eol_ = ''4912        if self.original_tagname_ is not None:4913            name_ = self.original_tagname_4914        showIndent(outfile, level, pretty_print)4915        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))4916        already_processed = set()4917        self.exportAttributes(outfile, level, already_processed, namespace_, name_='options')4918        if self.hasContent_():4919            outfile.write('>%s' % (eol_, ))4920            self.exportChildren(outfile, level + 1, namespace_='', name_='options', pretty_print=pretty_print)4921            showIndent(outfile, level, pretty_print)4922            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))4923        else:4924            outfile.write('/>%s' % (eol_, ))4925    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='options'):4926        pass4927    def exportChildren(self, outfile, level, namespace_='', name_='options', fromsubclass_=False, pretty_print=True):4928        if pretty_print:4929            eol_ = '\n'4930        else:4931            eol_ = ''4932        for option_ in self.option:4933            option_.export(outfile, level, namespace_, name_='option', pretty_print=pretty_print)4934    def build(self, node):4935        already_processed = set()4936        self.buildAttributes(node, node.attrib, already_processed)4937        for child in node:4938            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]4939            self.buildChildren(child, node, nodeName_)4940        return self4941    def buildAttributes(self, node, attrs, already_processed):4942        pass4943    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):4944        if nodeName_ == 'option':4945            obj_ = option.factory()4946            obj_.build(child_)4947            self.option.append(obj_)4948            obj_.original_tagname_ = 'option'4949# end class options4950class option(GeneratedsSuper):4951    subclass = None4952    superclass = None4953    def __init__(self, name=None, value=None):4954        self.original_tagname_ = None4955        self.name = _cast(None, name)4956        self.value = _cast(None, value)4957    def factory(*args_, **kwargs_):4958        if CurrentSubclassModule_ is not None:4959            subclass = getSubclassFromModule_(4960                CurrentSubclassModule_, option)4961            if subclass is not None:4962                return subclass(*args_, **kwargs_)4963        if option.subclass:4964            return option.subclass(*args_, **kwargs_)4965        else:4966            return option(*args_, **kwargs_)4967    factory = staticmethod(factory)4968    def get_name(self): return self.name4969    def set_name(self, name): self.name = name4970    nameProp = property(get_name, set_name)4971    def get_value(self): return self.value4972    def set_value(self, value): self.value = value4973    valueProp = property(get_value, set_value)4974    def hasContent_(self):4975        if (4976        ):4977            return True4978        else:4979            return False4980    def export(self, outfile, level, namespace_='', name_='option', namespacedef_='', pretty_print=True):4981        imported_ns_def_ = GenerateDSNamespaceDefs_.get('option')4982        if imported_ns_def_ is not None:4983            namespacedef_ = imported_ns_def_4984        if pretty_print:4985            eol_ = '\n'4986        else:4987            eol_ = ''4988        if self.original_tagname_ is not None:4989            name_ = self.original_tagname_4990        showIndent(outfile, level, pretty_print)4991        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))4992        already_processed = set()4993        self.exportAttributes(outfile, level, already_processed, namespace_, name_='option')4994        if self.hasContent_():4995            outfile.write('>%s' % (eol_, ))4996            self.exportChildren(outfile, level + 1, namespace_='', name_='option', pretty_print=pretty_print)4997            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))4998        else:4999            outfile.write('/>%s' % (eol_, ))5000    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='option'):5001        if self.name is not None and 'name' not in already_processed:5002            already_processed.add('name')5003            outfile.write(' name=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.name), input_name='name')), ))5004        if self.value is not None and 'value' not in already_processed:5005            already_processed.add('value')5006            outfile.write(' value=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.value), input_name='value')), ))5007    def exportChildren(self, outfile, level, namespace_='', name_='option', fromsubclass_=False, pretty_print=True):5008        pass5009    def build(self, node):5010        already_processed = set()5011        self.buildAttributes(node, node.attrib, already_processed)5012        for child in node:5013            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]5014            self.buildChildren(child, node, nodeName_)5015        return self5016    def buildAttributes(self, node, attrs, already_processed):5017        value = find_attr_value_('name', node)5018        if value is not None and 'name' not in already_processed:5019            already_processed.add('name')5020            self.name = value5021        value = find_attr_value_('value', node)5022        if value is not None and 'value' not in already_processed:5023            already_processed.add('value')5024            self.value = value5025    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):5026        pass5027# end class option5028class usesdevicedependencies(GeneratedsSuper):5029    subclass = None5030    superclass = None5031    def __init__(self, usesdevice=None):5032        self.original_tagname_ = None5033        if usesdevice is None:5034            self.usesdevice = []5035        else:5036            self.usesdevice = usesdevice5037    def factory(*args_, **kwargs_):5038        if CurrentSubclassModule_ is not None:5039            subclass = getSubclassFromModule_(5040                CurrentSubclassModule_, usesdevicedependencies)5041            if subclass is not None:5042                return subclass(*args_, **kwargs_)5043        if usesdevicedependencies.subclass:5044            return usesdevicedependencies.subclass(*args_, **kwargs_)5045        else:5046            return usesdevicedependencies(*args_, **kwargs_)5047    factory = staticmethod(factory)5048    def get_usesdevice(self): return self.usesdevice5049    def set_usesdevice(self, usesdevice): self.usesdevice = usesdevice5050    def add_usesdevice(self, value): self.usesdevice.append(value)5051    def insert_usesdevice_at(self, index, value): self.usesdevice.insert(index, value)5052    def replace_usesdevice_at(self, index, value): self.usesdevice[index] = value5053    usesdeviceProp = property(get_usesdevice, set_usesdevice)5054    def hasContent_(self):5055        if (5056            self.usesdevice5057        ):5058            return True5059        else:5060            return False5061    def export(self, outfile, level, namespace_='', name_='usesdevicedependencies', namespacedef_='', pretty_print=True):5062        imported_ns_def_ = GenerateDSNamespaceDefs_.get('usesdevicedependencies')5063        if imported_ns_def_ is not None:5064            namespacedef_ = imported_ns_def_5065        if pretty_print:5066            eol_ = '\n'5067        else:5068            eol_ = ''5069        if self.original_tagname_ is not None:5070            name_ = self.original_tagname_5071        showIndent(outfile, level, pretty_print)5072        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))5073        already_processed = set()5074        self.exportAttributes(outfile, level, already_processed, namespace_, name_='usesdevicedependencies')5075        if self.hasContent_():5076            outfile.write('>%s' % (eol_, ))5077            self.exportChildren(outfile, level + 1, namespace_='', name_='usesdevicedependencies', pretty_print=pretty_print)5078            showIndent(outfile, level, pretty_print)5079            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))5080        else:5081            outfile.write('/>%s' % (eol_, ))5082    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='usesdevicedependencies'):5083        pass5084    def exportChildren(self, outfile, level, namespace_='', name_='usesdevicedependencies', fromsubclass_=False, pretty_print=True):5085        if pretty_print:5086            eol_ = '\n'5087        else:5088            eol_ = ''5089        for usesdevice_ in self.usesdevice:5090            usesdevice_.export(outfile, level, namespace_, name_='usesdevice', pretty_print=pretty_print)5091    def build(self, node):5092        already_processed = set()5093        self.buildAttributes(node, node.attrib, already_processed)5094        for child in node:5095            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]5096            self.buildChildren(child, node, nodeName_)5097        return self5098    def buildAttributes(self, node, attrs, already_processed):5099        pass5100    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):5101        if nodeName_ == 'usesdevice':5102            obj_ = usesdevice.factory()5103            obj_.build(child_)5104            self.usesdevice.append(obj_)5105            obj_.original_tagname_ = 'usesdevice'5106# end class usesdevicedependencies5107class usesdevice(GeneratedsSuper):5108    subclass = None5109    superclass = None5110    def __init__(self, id_=None, type_=None, propertyref=None, simpleref=None, simplesequenceref=None, structref=None, structsequenceref=None):5111        self.original_tagname_ = None5112        self.id_ = _cast(None, id_)5113        self.type_ = _cast(None, type_)5114        if propertyref is None:5115            self.propertyref = []5116        else:5117            self.propertyref = propertyref5118        if simpleref is None:5119            self.simpleref = []5120        else:5121            self.simpleref = simpleref5122        if simplesequenceref is None:5123            self.simplesequenceref = []5124        else:5125            self.simplesequenceref = simplesequenceref5126        if structref is None:5127            self.structref = []5128        else:5129            self.structref = structref5130        if structsequenceref is None:5131            self.structsequenceref = []5132        else:5133            self.structsequenceref = structsequenceref5134    def factory(*args_, **kwargs_):5135        if CurrentSubclassModule_ is not None:5136            subclass = getSubclassFromModule_(5137                CurrentSubclassModule_, usesdevice)5138            if subclass is not None:5139                return subclass(*args_, **kwargs_)5140        if usesdevice.subclass:5141            return usesdevice.subclass(*args_, **kwargs_)5142        else:5143            return usesdevice(*args_, **kwargs_)5144    factory = staticmethod(factory)5145    def get_propertyref(self): return self.propertyref5146    def set_propertyref(self, propertyref): self.propertyref = propertyref5147    def add_propertyref(self, value): self.propertyref.append(value)5148    def insert_propertyref_at(self, index, value): self.propertyref.insert(index, value)5149    def replace_propertyref_at(self, index, value): self.propertyref[index] = value5150    propertyrefProp = property(get_propertyref, set_propertyref)5151    def get_simpleref(self): return self.simpleref5152    def set_simpleref(self, simpleref): self.simpleref = simpleref5153    def add_simpleref(self, value): self.simpleref.append(value)5154    def insert_simpleref_at(self, index, value): self.simpleref.insert(index, value)5155    def replace_simpleref_at(self, index, value): self.simpleref[index] = value5156    simplerefProp = property(get_simpleref, set_simpleref)5157    def get_simplesequenceref(self): return self.simplesequenceref5158    def set_simplesequenceref(self, simplesequenceref): self.simplesequenceref = simplesequenceref5159    def add_simplesequenceref(self, value): self.simplesequenceref.append(value)5160    def insert_simplesequenceref_at(self, index, value): self.simplesequenceref.insert(index, value)5161    def replace_simplesequenceref_at(self, index, value): self.simplesequenceref[index] = value5162    simplesequencerefProp = property(get_simplesequenceref, set_simplesequenceref)5163    def get_structref(self): return self.structref5164    def set_structref(self, structref): self.structref = structref5165    def add_structref(self, value): self.structref.append(value)5166    def insert_structref_at(self, index, value): self.structref.insert(index, value)5167    def replace_structref_at(self, index, value): self.structref[index] = value5168    structrefProp = property(get_structref, set_structref)5169    def get_structsequenceref(self): return self.structsequenceref5170    def set_structsequenceref(self, structsequenceref): self.structsequenceref = structsequenceref5171    def add_structsequenceref(self, value): self.structsequenceref.append(value)5172    def insert_structsequenceref_at(self, index, value): self.structsequenceref.insert(index, value)5173    def replace_structsequenceref_at(self, index, value): self.structsequenceref[index] = value5174    structsequencerefProp = property(get_structsequenceref, set_structsequenceref)5175    def get_id(self): return self.id_5176    def set_id(self, id_): self.id_ = id_5177    idProp = property(get_id, set_id)5178    def get_type(self): return self.type_5179    def set_type(self, type_): self.type_ = type_5180    typeProp = property(get_type, set_type)5181    def hasContent_(self):5182        if (5183            self.propertyref or5184            self.simpleref or5185            self.simplesequenceref or5186            self.structref or5187            self.structsequenceref5188        ):5189            return True5190        else:5191            return False5192    def export(self, outfile, level, namespace_='', name_='usesdevice', namespacedef_='', pretty_print=True):5193        imported_ns_def_ = GenerateDSNamespaceDefs_.get('usesdevice')5194        if imported_ns_def_ is not None:5195            namespacedef_ = imported_ns_def_5196        if pretty_print:5197            eol_ = '\n'5198        else:5199            eol_ = ''5200        if self.original_tagname_ is not None:5201            name_ = self.original_tagname_5202        showIndent(outfile, level, pretty_print)5203        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))5204        already_processed = set()5205        self.exportAttributes(outfile, level, already_processed, namespace_, name_='usesdevice')5206        if self.hasContent_():5207            outfile.write('>%s' % (eol_, ))5208            self.exportChildren(outfile, level + 1, namespace_='', name_='usesdevice', pretty_print=pretty_print)5209            showIndent(outfile, level, pretty_print)5210            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))5211        else:5212            outfile.write('/>%s' % (eol_, ))5213    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='usesdevice'):5214        if self.id_ is not None and 'id' not in already_processed:5215            already_processed.add('id')5216            outfile.write(' id=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.id_), input_name='id')), ))5217        if self.type_ is not None and 'type_' not in already_processed:5218            already_processed.add('type_')5219            outfile.write(' type=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.type_), input_name='type')), ))5220    def exportChildren(self, outfile, level, namespace_='', name_='usesdevice', fromsubclass_=False, pretty_print=True):5221        if pretty_print:5222            eol_ = '\n'5223        else:5224            eol_ = ''5225        for propertyref_ in self.propertyref:5226            propertyref_.export(outfile, level, namespace_, name_='propertyref', pretty_print=pretty_print)5227        for simpleref_ in self.simpleref:5228            simpleref_.export(outfile, level, namespace_, name_='simpleref', pretty_print=pretty_print)5229        for simplesequenceref_ in self.simplesequenceref:5230            simplesequenceref_.export(outfile, level, namespace_, name_='simplesequenceref', pretty_print=pretty_print)5231        for structref_ in self.structref:5232            structref_.export(outfile, level, namespace_, name_='structref', pretty_print=pretty_print)5233        for structsequenceref_ in self.structsequenceref:5234            structsequenceref_.export(outfile, level, namespace_, name_='structsequenceref', pretty_print=pretty_print)5235    def build(self, node):5236        already_processed = set()5237        self.buildAttributes(node, node.attrib, already_processed)5238        for child in node:5239            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]5240            self.buildChildren(child, node, nodeName_)5241        return self5242    def buildAttributes(self, node, attrs, already_processed):5243        value = find_attr_value_('id', node)5244        if value is not None and 'id' not in already_processed:5245            already_processed.add('id')5246            self.id_ = value5247        value = find_attr_value_('type', node)5248        if value is not None and 'type' not in already_processed:5249            already_processed.add('type')5250            self.type_ = value5251    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):5252        if nodeName_ == 'propertyref':5253            obj_ = propertyref.factory()5254            obj_.build(child_)5255            self.propertyref.append(obj_)5256            obj_.original_tagname_ = 'propertyref'5257        elif nodeName_ == 'simpleref':5258            obj_ = simpleref.factory()5259            obj_.build(child_)5260            self.simpleref.append(obj_)5261            obj_.original_tagname_ = 'simpleref'5262        elif nodeName_ == 'simplesequenceref':5263            obj_ = simplesequenceref.factory()5264            obj_.build(child_)5265            self.simplesequenceref.append(obj_)5266            obj_.original_tagname_ = 'simplesequenceref'5267        elif nodeName_ == 'structref':5268            obj_ = structref.factory()5269            obj_.build(child_)5270            self.structref.append(obj_)5271            obj_.original_tagname_ = 'structref'5272        elif nodeName_ == 'structsequenceref':5273            obj_ = structsequenceref.factory()5274            obj_.build(child_)5275            self.structsequenceref.append(obj_)5276            obj_.original_tagname_ = 'structsequenceref'5277# end class usesdevice5278class propertyref(GeneratedsSuper):5279    subclass = None5280    superclass = None5281    def __init__(self, refid=None, value=None):5282        self.original_tagname_ = None5283        self.refid = _cast(None, refid)5284        self.value = _cast(None, value)5285    def factory(*args_, **kwargs_):5286        if CurrentSubclassModule_ is not None:5287            subclass = getSubclassFromModule_(5288                CurrentSubclassModule_, propertyref)5289            if subclass is not None:5290                return subclass(*args_, **kwargs_)5291        if propertyref.subclass:5292            return propertyref.subclass(*args_, **kwargs_)5293        else:5294            return propertyref(*args_, **kwargs_)5295    factory = staticmethod(factory)5296    def get_refid(self): return self.refid5297    def set_refid(self, refid): self.refid = refid5298    refidProp = property(get_refid, set_refid)5299    def get_value(self): return self.value5300    def set_value(self, value): self.value = value5301    valueProp = property(get_value, set_value)5302    def hasContent_(self):5303        if (5304        ):5305            return True5306        else:5307            return False5308    def export(self, outfile, level, namespace_='', name_='propertyref', namespacedef_='', pretty_print=True):5309        imported_ns_def_ = GenerateDSNamespaceDefs_.get('propertyref')5310        if imported_ns_def_ is not None:5311            namespacedef_ = imported_ns_def_5312        if pretty_print:5313            eol_ = '\n'5314        else:5315            eol_ = ''5316        if self.original_tagname_ is not None:5317            name_ = self.original_tagname_5318        showIndent(outfile, level, pretty_print)5319        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))5320        already_processed = set()5321        self.exportAttributes(outfile, level, already_processed, namespace_, name_='propertyref')5322        if self.hasContent_():5323            outfile.write('>%s' % (eol_, ))5324            self.exportChildren(outfile, level + 1, namespace_='', name_='propertyref', pretty_print=pretty_print)5325            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))5326        else:5327            outfile.write('/>%s' % (eol_, ))5328    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='propertyref'):5329        if self.refid is not None and 'refid' not in already_processed:5330            already_processed.add('refid')5331            outfile.write(' refid=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.refid), input_name='refid')), ))5332        if self.value is not None and 'value' not in already_processed:5333            already_processed.add('value')5334            outfile.write(' value=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.value), input_name='value')), ))5335    def exportChildren(self, outfile, level, namespace_='', name_='propertyref', fromsubclass_=False, pretty_print=True):5336        pass5337    def build(self, node):5338        already_processed = set()5339        self.buildAttributes(node, node.attrib, already_processed)5340        for child in node:5341            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]5342            self.buildChildren(child, node, nodeName_)...dcd.py
Source:dcd.py  
...782            name_ = self.original_tagname_783        showIndent(outfile, level, pretty_print)784        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))785        already_processed = set()786        self.exportAttributes(outfile, level, already_processed, namespace_, name_='deviceconfiguration')787        if self.hasContent_():788            outfile.write('>%s' % (eol_, ))789            self.exportChildren(outfile, level + 1, namespace_='', name_='deviceconfiguration', pretty_print=pretty_print)790            showIndent(outfile, level, pretty_print)791            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))792        else:793            outfile.write('/>%s' % (eol_, ))794    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='deviceconfiguration'):795        if self.id_ is not None and 'id' not in already_processed:796            already_processed.add('id')797            outfile.write(' id=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.id_), input_name='id')), ))798        if self.name is not None and 'name' not in already_processed:799            already_processed.add('name')800            outfile.write(' name=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.name), input_name='name')), ))801    def exportChildren(self, outfile, level, namespace_='', name_='deviceconfiguration', fromsubclass_=False, pretty_print=True):802        if pretty_print:803            eol_ = '\n'804        else:805            eol_ = ''806        if self.description is not None:807            showIndent(outfile, level, pretty_print)808            outfile.write('<description>%s</description>%s' % (self.gds_encode(self.gds_format_string(quote_xml(self.description), input_name='description')), eol_))809        if self.devicemanagersoftpkg is not None:810            self.devicemanagersoftpkg.export(outfile, level, namespace_, name_='devicemanagersoftpkg', pretty_print=pretty_print)811        if self.componentfiles is not None:812            self.componentfiles.export(outfile, level, namespace_, name_='componentfiles', pretty_print=pretty_print)813        if self.partitioning is not None:814            self.partitioning.export(outfile, level, namespace_, name_='partitioning', pretty_print=pretty_print)815        if self.connections is not None:816            self.connections.export(outfile, level, namespace_, name_='connections', pretty_print=pretty_print)817        if self.domainmanager is not None:818            self.domainmanager.export(outfile, level, namespace_, name_='domainmanager', pretty_print=pretty_print)819        if self.filesystemnames is not None:820            self.filesystemnames.export(outfile, level, namespace_, name_='filesystemnames', pretty_print=pretty_print)821    def build(self, node):822        already_processed = set()823        self.buildAttributes(node, node.attrib, already_processed)824        for child in node:825            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]826            self.buildChildren(child, node, nodeName_)827        return self828    def buildAttributes(self, node, attrs, already_processed):829        value = find_attr_value_('id', node)830        if value is not None and 'id' not in already_processed:831            already_processed.add('id')832            self.id_ = value833        value = find_attr_value_('name', node)834        if value is not None and 'name' not in already_processed:835            already_processed.add('name')836            self.name = value837    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):838        if nodeName_ == 'description':839            description_ = child_.text840            description_ = self.gds_validate_string(description_, node, 'description')841            self.description = description_842        elif nodeName_ == 'devicemanagersoftpkg':843            obj_ = devicemanagersoftpkg.factory()844            obj_.build(child_)845            self.devicemanagersoftpkg = obj_846            obj_.original_tagname_ = 'devicemanagersoftpkg'847        elif nodeName_ == 'componentfiles':848            obj_ = componentfiles.factory()849            obj_.build(child_)850            self.componentfiles = obj_851            obj_.original_tagname_ = 'componentfiles'852        elif nodeName_ == 'partitioning':853            obj_ = partitioning.factory()854            obj_.build(child_)855            self.partitioning = obj_856            obj_.original_tagname_ = 'partitioning'857        elif nodeName_ == 'connections':858            obj_ = connections.factory()859            obj_.build(child_)860            self.connections = obj_861            obj_.original_tagname_ = 'connections'862        elif nodeName_ == 'domainmanager':863            obj_ = domainmanager.factory()864            obj_.build(child_)865            self.domainmanager = obj_866            obj_.original_tagname_ = 'domainmanager'867        elif nodeName_ == 'filesystemnames':868            obj_ = filesystemnames.factory()869            obj_.build(child_)870            self.filesystemnames = obj_871            obj_.original_tagname_ = 'filesystemnames'872# end class deviceconfiguration873class devicemanagersoftpkg(GeneratedsSuper):874    subclass = None875    superclass = None876    def __init__(self, localfile=None):877        self.original_tagname_ = None878        self.localfile = localfile879    def factory(*args_, **kwargs_):880        if CurrentSubclassModule_ is not None:881            subclass = getSubclassFromModule_(882                CurrentSubclassModule_, devicemanagersoftpkg)883            if subclass is not None:884                return subclass(*args_, **kwargs_)885        if devicemanagersoftpkg.subclass:886            return devicemanagersoftpkg.subclass(*args_, **kwargs_)887        else:888            return devicemanagersoftpkg(*args_, **kwargs_)889    factory = staticmethod(factory)890    def get_localfile(self): return self.localfile891    def set_localfile(self, localfile): self.localfile = localfile892    localfileProp = property(get_localfile, set_localfile)893    def hasContent_(self):894        if (895            self.localfile is not None896        ):897            return True898        else:899            return False900    def export(self, outfile, level, namespace_='', name_='devicemanagersoftpkg', namespacedef_='', pretty_print=True):901        imported_ns_def_ = GenerateDSNamespaceDefs_.get('devicemanagersoftpkg')902        if imported_ns_def_ is not None:903            namespacedef_ = imported_ns_def_904        if pretty_print:905            eol_ = '\n'906        else:907            eol_ = ''908        if self.original_tagname_ is not None:909            name_ = self.original_tagname_910        showIndent(outfile, level, pretty_print)911        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))912        already_processed = set()913        self.exportAttributes(outfile, level, already_processed, namespace_, name_='devicemanagersoftpkg')914        if self.hasContent_():915            outfile.write('>%s' % (eol_, ))916            self.exportChildren(outfile, level + 1, namespace_='', name_='devicemanagersoftpkg', pretty_print=pretty_print)917            showIndent(outfile, level, pretty_print)918            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))919        else:920            outfile.write('/>%s' % (eol_, ))921    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='devicemanagersoftpkg'):922        pass923    def exportChildren(self, outfile, level, namespace_='', name_='devicemanagersoftpkg', fromsubclass_=False, pretty_print=True):924        if pretty_print:925            eol_ = '\n'926        else:927            eol_ = ''928        if self.localfile is not None:929            self.localfile.export(outfile, level, namespace_, name_='localfile', pretty_print=pretty_print)930    def build(self, node):931        already_processed = set()932        self.buildAttributes(node, node.attrib, already_processed)933        for child in node:934            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]935            self.buildChildren(child, node, nodeName_)936        return self937    def buildAttributes(self, node, attrs, already_processed):938        pass939    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):940        if nodeName_ == 'localfile':941            obj_ = localfile.factory()942            obj_.build(child_)943            self.localfile = obj_944            obj_.original_tagname_ = 'localfile'945# end class devicemanagersoftpkg946class componentfiles(GeneratedsSuper):947    subclass = None948    superclass = None949    def __init__(self, componentfile=None):950        self.original_tagname_ = None951        if componentfile is None:952            self.componentfile = []953        else:954            self.componentfile = componentfile955    def factory(*args_, **kwargs_):956        if CurrentSubclassModule_ is not None:957            subclass = getSubclassFromModule_(958                CurrentSubclassModule_, componentfiles)959            if subclass is not None:960                return subclass(*args_, **kwargs_)961        if componentfiles.subclass:962            return componentfiles.subclass(*args_, **kwargs_)963        else:964            return componentfiles(*args_, **kwargs_)965    factory = staticmethod(factory)966    def get_componentfile(self): return self.componentfile967    def set_componentfile(self, componentfile): self.componentfile = componentfile968    def add_componentfile(self, value): self.componentfile.append(value)969    def insert_componentfile_at(self, index, value): self.componentfile.insert(index, value)970    def replace_componentfile_at(self, index, value): self.componentfile[index] = value971    componentfileProp = property(get_componentfile, set_componentfile)972    def hasContent_(self):973        if (974            self.componentfile975        ):976            return True977        else:978            return False979    def export(self, outfile, level, namespace_='', name_='componentfiles', namespacedef_='', pretty_print=True):980        imported_ns_def_ = GenerateDSNamespaceDefs_.get('componentfiles')981        if imported_ns_def_ is not None:982            namespacedef_ = imported_ns_def_983        if pretty_print:984            eol_ = '\n'985        else:986            eol_ = ''987        if self.original_tagname_ is not None:988            name_ = self.original_tagname_989        showIndent(outfile, level, pretty_print)990        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))991        already_processed = set()992        self.exportAttributes(outfile, level, already_processed, namespace_, name_='componentfiles')993        if self.hasContent_():994            outfile.write('>%s' % (eol_, ))995            self.exportChildren(outfile, level + 1, namespace_='', name_='componentfiles', pretty_print=pretty_print)996            showIndent(outfile, level, pretty_print)997            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))998        else:999            outfile.write('/>%s' % (eol_, ))1000    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='componentfiles'):1001        pass1002    def exportChildren(self, outfile, level, namespace_='', name_='componentfiles', fromsubclass_=False, pretty_print=True):1003        if pretty_print:1004            eol_ = '\n'1005        else:1006            eol_ = ''1007        for componentfile_ in self.componentfile:1008            componentfile_.export(outfile, level, namespace_, name_='componentfile', pretty_print=pretty_print)1009    def build(self, node):1010        already_processed = set()1011        self.buildAttributes(node, node.attrib, already_processed)1012        for child in node:1013            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]1014            self.buildChildren(child, node, nodeName_)1015        return self1016    def buildAttributes(self, node, attrs, already_processed):1017        pass1018    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):1019        if nodeName_ == 'componentfile':1020            obj_ = componentfile.factory()1021            obj_.build(child_)1022            self.componentfile.append(obj_)1023            obj_.original_tagname_ = 'componentfile'1024# end class componentfiles1025class componentfile(GeneratedsSuper):1026    subclass = None1027    superclass = None1028    def __init__(self, id_=None, type_=None, localfile=None):1029        self.original_tagname_ = None1030        self.id_ = _cast(None, id_)1031        self.type_ = _cast(None, type_)1032        self.localfile = localfile1033    def factory(*args_, **kwargs_):1034        if CurrentSubclassModule_ is not None:1035            subclass = getSubclassFromModule_(1036                CurrentSubclassModule_, componentfile)1037            if subclass is not None:1038                return subclass(*args_, **kwargs_)1039        if componentfile.subclass:1040            return componentfile.subclass(*args_, **kwargs_)1041        else:1042            return componentfile(*args_, **kwargs_)1043    factory = staticmethod(factory)1044    def get_localfile(self): return self.localfile1045    def set_localfile(self, localfile): self.localfile = localfile1046    localfileProp = property(get_localfile, set_localfile)1047    def get_id(self): return self.id_1048    def set_id(self, id_): self.id_ = id_1049    idProp = property(get_id, set_id)1050    def get_type(self): return self.type_1051    def set_type(self, type_): self.type_ = type_1052    typeProp = property(get_type, set_type)1053    def hasContent_(self):1054        if (1055            self.localfile is not None1056        ):1057            return True1058        else:1059            return False1060    def export(self, outfile, level, namespace_='', name_='componentfile', namespacedef_='', pretty_print=True):1061        imported_ns_def_ = GenerateDSNamespaceDefs_.get('componentfile')1062        if imported_ns_def_ is not None:1063            namespacedef_ = imported_ns_def_1064        if pretty_print:1065            eol_ = '\n'1066        else:1067            eol_ = ''1068        if self.original_tagname_ is not None:1069            name_ = self.original_tagname_1070        showIndent(outfile, level, pretty_print)1071        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))1072        already_processed = set()1073        self.exportAttributes(outfile, level, already_processed, namespace_, name_='componentfile')1074        if self.hasContent_():1075            outfile.write('>%s' % (eol_, ))1076            self.exportChildren(outfile, level + 1, namespace_='', name_='componentfile', pretty_print=pretty_print)1077            showIndent(outfile, level, pretty_print)1078            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))1079        else:1080            outfile.write('/>%s' % (eol_, ))1081    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='componentfile'):1082        if self.id_ is not None and 'id' not in already_processed:1083            already_processed.add('id')1084            outfile.write(' id=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.id_), input_name='id')), ))1085        if self.type_ is not None and 'type_' not in already_processed:1086            already_processed.add('type_')1087            outfile.write(' type=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.type_), input_name='type')), ))1088    def exportChildren(self, outfile, level, namespace_='', name_='componentfile', fromsubclass_=False, pretty_print=True):1089        if pretty_print:1090            eol_ = '\n'1091        else:1092            eol_ = ''1093        if self.localfile is not None:1094            self.localfile.export(outfile, level, namespace_, name_='localfile', pretty_print=pretty_print)1095    def build(self, node):1096        already_processed = set()1097        self.buildAttributes(node, node.attrib, already_processed)1098        for child in node:1099            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]1100            self.buildChildren(child, node, nodeName_)1101        return self1102    def buildAttributes(self, node, attrs, already_processed):1103        value = find_attr_value_('id', node)1104        if value is not None and 'id' not in already_processed:1105            already_processed.add('id')1106            self.id_ = value1107        value = find_attr_value_('type', node)1108        if value is not None and 'type' not in already_processed:1109            already_processed.add('type')1110            self.type_ = value1111    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):1112        if nodeName_ == 'localfile':1113            obj_ = localfile.factory()1114            obj_.build(child_)1115            self.localfile = obj_1116            obj_.original_tagname_ = 'localfile'1117# end class componentfile1118class localfile(GeneratedsSuper):1119    subclass = None1120    superclass = None1121    def __init__(self, name=None):1122        self.original_tagname_ = None1123        self.name = _cast(None, name)1124    def factory(*args_, **kwargs_):1125        if CurrentSubclassModule_ is not None:1126            subclass = getSubclassFromModule_(1127                CurrentSubclassModule_, localfile)1128            if subclass is not None:1129                return subclass(*args_, **kwargs_)1130        if localfile.subclass:1131            return localfile.subclass(*args_, **kwargs_)1132        else:1133            return localfile(*args_, **kwargs_)1134    factory = staticmethod(factory)1135    def get_name(self): return self.name1136    def set_name(self, name): self.name = name1137    nameProp = property(get_name, set_name)1138    def hasContent_(self):1139        if (1140        ):1141            return True1142        else:1143            return False1144    def export(self, outfile, level, namespace_='', name_='localfile', namespacedef_='', pretty_print=True):1145        imported_ns_def_ = GenerateDSNamespaceDefs_.get('localfile')1146        if imported_ns_def_ is not None:1147            namespacedef_ = imported_ns_def_1148        if pretty_print:1149            eol_ = '\n'1150        else:1151            eol_ = ''1152        if self.original_tagname_ is not None:1153            name_ = self.original_tagname_1154        showIndent(outfile, level, pretty_print)1155        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))1156        already_processed = set()1157        self.exportAttributes(outfile, level, already_processed, namespace_, name_='localfile')1158        if self.hasContent_():1159            outfile.write('>%s' % (eol_, ))1160            self.exportChildren(outfile, level + 1, namespace_='', name_='localfile', pretty_print=pretty_print)1161            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))1162        else:1163            outfile.write('/>%s' % (eol_, ))1164    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='localfile'):1165        if self.name is not None and 'name' not in already_processed:1166            already_processed.add('name')1167            outfile.write(' name=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.name), input_name='name')), ))1168    def exportChildren(self, outfile, level, namespace_='', name_='localfile', fromsubclass_=False, pretty_print=True):1169        pass1170    def build(self, node):1171        already_processed = set()1172        self.buildAttributes(node, node.attrib, already_processed)1173        for child in node:1174            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]1175            self.buildChildren(child, node, nodeName_)1176        return self1177    def buildAttributes(self, node, attrs, already_processed):1178        value = find_attr_value_('name', node)1179        if value is not None and 'name' not in already_processed:1180            already_processed.add('name')1181            self.name = value1182    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):1183        pass1184# end class localfile1185class partitioning(GeneratedsSuper):1186    subclass = None1187    superclass = None1188    def __init__(self, componentplacement=None):1189        self.original_tagname_ = None1190        if componentplacement is None:1191            self.componentplacement = []1192        else:1193            self.componentplacement = componentplacement1194    def factory(*args_, **kwargs_):1195        if CurrentSubclassModule_ is not None:1196            subclass = getSubclassFromModule_(1197                CurrentSubclassModule_, partitioning)1198            if subclass is not None:1199                return subclass(*args_, **kwargs_)1200        if partitioning.subclass:1201            return partitioning.subclass(*args_, **kwargs_)1202        else:1203            return partitioning(*args_, **kwargs_)1204    factory = staticmethod(factory)1205    def get_componentplacement(self): return self.componentplacement1206    def set_componentplacement(self, componentplacement): self.componentplacement = componentplacement1207    def add_componentplacement(self, value): self.componentplacement.append(value)1208    def insert_componentplacement_at(self, index, value): self.componentplacement.insert(index, value)1209    def replace_componentplacement_at(self, index, value): self.componentplacement[index] = value1210    componentplacementProp = property(get_componentplacement, set_componentplacement)1211    def hasContent_(self):1212        if (1213            self.componentplacement1214        ):1215            return True1216        else:1217            return False1218    def export(self, outfile, level, namespace_='', name_='partitioning', namespacedef_='', pretty_print=True):1219        imported_ns_def_ = GenerateDSNamespaceDefs_.get('partitioning')1220        if imported_ns_def_ is not None:1221            namespacedef_ = imported_ns_def_1222        if pretty_print:1223            eol_ = '\n'1224        else:1225            eol_ = ''1226        if self.original_tagname_ is not None:1227            name_ = self.original_tagname_1228        showIndent(outfile, level, pretty_print)1229        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))1230        already_processed = set()1231        self.exportAttributes(outfile, level, already_processed, namespace_, name_='partitioning')1232        if self.hasContent_():1233            outfile.write('>%s' % (eol_, ))1234            self.exportChildren(outfile, level + 1, namespace_='', name_='partitioning', pretty_print=pretty_print)1235            showIndent(outfile, level, pretty_print)1236            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))1237        else:1238            outfile.write('/>%s' % (eol_, ))1239    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='partitioning'):1240        pass1241    def exportChildren(self, outfile, level, namespace_='', name_='partitioning', fromsubclass_=False, pretty_print=True):1242        if pretty_print:1243            eol_ = '\n'1244        else:1245            eol_ = ''1246        for componentplacement_ in self.componentplacement:1247            componentplacement_.export(outfile, level, namespace_, name_='componentplacement', pretty_print=pretty_print)1248    def build(self, node):1249        already_processed = set()1250        self.buildAttributes(node, node.attrib, already_processed)1251        for child in node:1252            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]1253            self.buildChildren(child, node, nodeName_)1254        return self1255    def buildAttributes(self, node, attrs, already_processed):1256        pass1257    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):1258        if nodeName_ == 'componentplacement':1259            obj_ = componentplacement.factory()1260            obj_.build(child_)1261            self.componentplacement.append(obj_)1262            obj_.original_tagname_ = 'componentplacement'1263# end class partitioning1264class componentplacement(GeneratedsSuper):1265    subclass = None1266    superclass = None1267    def __init__(self, componentfileref=None, deployondevice=None, compositepartofdevice=None, devicepkgfile=None, componentinstantiation=None):1268        self.original_tagname_ = None1269        self.componentfileref = componentfileref1270        self.deployondevice = deployondevice1271        self.compositepartofdevice = compositepartofdevice1272        self.devicepkgfile = devicepkgfile1273        if componentinstantiation is None:1274            self.componentinstantiation = []1275        else:1276            self.componentinstantiation = componentinstantiation1277    def factory(*args_, **kwargs_):1278        if CurrentSubclassModule_ is not None:1279            subclass = getSubclassFromModule_(1280                CurrentSubclassModule_, componentplacement)1281            if subclass is not None:1282                return subclass(*args_, **kwargs_)1283        if componentplacement.subclass:1284            return componentplacement.subclass(*args_, **kwargs_)1285        else:1286            return componentplacement(*args_, **kwargs_)1287    factory = staticmethod(factory)1288    def get_componentfileref(self): return self.componentfileref1289    def set_componentfileref(self, componentfileref): self.componentfileref = componentfileref1290    componentfilerefProp = property(get_componentfileref, set_componentfileref)1291    def get_deployondevice(self): return self.deployondevice1292    def set_deployondevice(self, deployondevice): self.deployondevice = deployondevice1293    deployondeviceProp = property(get_deployondevice, set_deployondevice)1294    def get_compositepartofdevice(self): return self.compositepartofdevice1295    def set_compositepartofdevice(self, compositepartofdevice): self.compositepartofdevice = compositepartofdevice1296    compositepartofdeviceProp = property(get_compositepartofdevice, set_compositepartofdevice)1297    def get_devicepkgfile(self): return self.devicepkgfile1298    def set_devicepkgfile(self, devicepkgfile): self.devicepkgfile = devicepkgfile1299    devicepkgfileProp = property(get_devicepkgfile, set_devicepkgfile)1300    def get_componentinstantiation(self): return self.componentinstantiation1301    def set_componentinstantiation(self, componentinstantiation): self.componentinstantiation = componentinstantiation1302    def add_componentinstantiation(self, value): self.componentinstantiation.append(value)1303    def insert_componentinstantiation_at(self, index, value): self.componentinstantiation.insert(index, value)1304    def replace_componentinstantiation_at(self, index, value): self.componentinstantiation[index] = value1305    componentinstantiationProp = property(get_componentinstantiation, set_componentinstantiation)1306    def hasContent_(self):1307        if (1308            self.componentfileref is not None or1309            self.deployondevice is not None or1310            self.compositepartofdevice is not None or1311            self.devicepkgfile is not None or1312            self.componentinstantiation1313        ):1314            return True1315        else:1316            return False1317    def export(self, outfile, level, namespace_='', name_='componentplacement', namespacedef_='', pretty_print=True):1318        imported_ns_def_ = GenerateDSNamespaceDefs_.get('componentplacement')1319        if imported_ns_def_ is not None:1320            namespacedef_ = imported_ns_def_1321        if pretty_print:1322            eol_ = '\n'1323        else:1324            eol_ = ''1325        if self.original_tagname_ is not None:1326            name_ = self.original_tagname_1327        showIndent(outfile, level, pretty_print)1328        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))1329        already_processed = set()1330        self.exportAttributes(outfile, level, already_processed, namespace_, name_='componentplacement')1331        if self.hasContent_():1332            outfile.write('>%s' % (eol_, ))1333            self.exportChildren(outfile, level + 1, namespace_='', name_='componentplacement', pretty_print=pretty_print)1334            showIndent(outfile, level, pretty_print)1335            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))1336        else:1337            outfile.write('/>%s' % (eol_, ))1338    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='componentplacement'):1339        pass1340    def exportChildren(self, outfile, level, namespace_='', name_='componentplacement', fromsubclass_=False, pretty_print=True):1341        if pretty_print:1342            eol_ = '\n'1343        else:1344            eol_ = ''1345        if self.componentfileref is not None:1346            self.componentfileref.export(outfile, level, namespace_, name_='componentfileref', pretty_print=pretty_print)1347        if self.deployondevice is not None:1348            self.deployondevice.export(outfile, level, namespace_, name_='deployondevice', pretty_print=pretty_print)1349        if self.compositepartofdevice is not None:1350            self.compositepartofdevice.export(outfile, level, namespace_, name_='compositepartofdevice', pretty_print=pretty_print)1351        if self.devicepkgfile is not None:1352            self.devicepkgfile.export(outfile, level, namespace_, name_='devicepkgfile', pretty_print=pretty_print)1353        for componentinstantiation_ in self.componentinstantiation:1354            componentinstantiation_.export(outfile, level, namespace_, name_='componentinstantiation', pretty_print=pretty_print)1355    def build(self, node):1356        already_processed = set()1357        self.buildAttributes(node, node.attrib, already_processed)1358        for child in node:1359            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]1360            self.buildChildren(child, node, nodeName_)1361        return self1362    def buildAttributes(self, node, attrs, already_processed):1363        pass1364    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):1365        if nodeName_ == 'componentfileref':1366            obj_ = componentfileref.factory()1367            obj_.build(child_)1368            self.componentfileref = obj_1369            obj_.original_tagname_ = 'componentfileref'1370        elif nodeName_ == 'deployondevice':1371            obj_ = deployondevice.factory()1372            obj_.build(child_)1373            self.deployondevice = obj_1374            obj_.original_tagname_ = 'deployondevice'1375        elif nodeName_ == 'compositepartofdevice':1376            obj_ = compositepartofdevice.factory()1377            obj_.build(child_)1378            self.compositepartofdevice = obj_1379            obj_.original_tagname_ = 'compositepartofdevice'1380        elif nodeName_ == 'devicepkgfile':1381            obj_ = devicepkgfile.factory()1382            obj_.build(child_)1383            self.devicepkgfile = obj_1384            obj_.original_tagname_ = 'devicepkgfile'1385        elif nodeName_ == 'componentinstantiation':1386            obj_ = componentinstantiation.factory()1387            obj_.build(child_)1388            self.componentinstantiation.append(obj_)1389            obj_.original_tagname_ = 'componentinstantiation'1390# end class componentplacement1391class componentfileref(GeneratedsSuper):1392    """The componentfileref element is used to reference a componentfile1393    element within the componentfiles element.The componentfileref1394    elementâs refid attribute corresponds to a componentfile1395    elementâs id attribute."""1396    subclass = None1397    superclass = None1398    def __init__(self, refid=None):1399        self.original_tagname_ = None1400        self.refid = _cast(None, refid)1401    def factory(*args_, **kwargs_):1402        if CurrentSubclassModule_ is not None:1403            subclass = getSubclassFromModule_(1404                CurrentSubclassModule_, componentfileref)1405            if subclass is not None:1406                return subclass(*args_, **kwargs_)1407        if componentfileref.subclass:1408            return componentfileref.subclass(*args_, **kwargs_)1409        else:1410            return componentfileref(*args_, **kwargs_)1411    factory = staticmethod(factory)1412    def get_refid(self): return self.refid1413    def set_refid(self, refid): self.refid = refid1414    refidProp = property(get_refid, set_refid)1415    def hasContent_(self):1416        if (1417        ):1418            return True1419        else:1420            return False1421    def export(self, outfile, level, namespace_='', name_='componentfileref', namespacedef_='', pretty_print=True):1422        imported_ns_def_ = GenerateDSNamespaceDefs_.get('componentfileref')1423        if imported_ns_def_ is not None:1424            namespacedef_ = imported_ns_def_1425        if pretty_print:1426            eol_ = '\n'1427        else:1428            eol_ = ''1429        if self.original_tagname_ is not None:1430            name_ = self.original_tagname_1431        showIndent(outfile, level, pretty_print)1432        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))1433        already_processed = set()1434        self.exportAttributes(outfile, level, already_processed, namespace_, name_='componentfileref')1435        if self.hasContent_():1436            outfile.write('>%s' % (eol_, ))1437            self.exportChildren(outfile, level + 1, namespace_='', name_='componentfileref', pretty_print=pretty_print)1438            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))1439        else:1440            outfile.write('/>%s' % (eol_, ))1441    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='componentfileref'):1442        if self.refid is not None and 'refid' not in already_processed:1443            already_processed.add('refid')1444            outfile.write(' refid=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.refid), input_name='refid')), ))1445    def exportChildren(self, outfile, level, namespace_='', name_='componentfileref', fromsubclass_=False, pretty_print=True):1446        pass1447    def build(self, node):1448        already_processed = set()1449        self.buildAttributes(node, node.attrib, already_processed)1450        for child in node:1451            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]1452            self.buildChildren(child, node, nodeName_)1453        return self1454    def buildAttributes(self, node, attrs, already_processed):1455        value = find_attr_value_('refid', node)1456        if value is not None and 'refid' not in already_processed:1457            already_processed.add('refid')1458            self.refid = value1459    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):1460        pass1461# end class componentfileref1462class deployondevice(GeneratedsSuper):1463    """The deployondevice element is used to reference a1464    componentinstantiation element on which this1465    componentinstantiation is deployed."""1466    subclass = None1467    superclass = None1468    def __init__(self, refid=None):1469        self.original_tagname_ = None1470        self.refid = _cast(None, refid)1471    def factory(*args_, **kwargs_):1472        if CurrentSubclassModule_ is not None:1473            subclass = getSubclassFromModule_(1474                CurrentSubclassModule_, deployondevice)1475            if subclass is not None:1476                return subclass(*args_, **kwargs_)1477        if deployondevice.subclass:1478            return deployondevice.subclass(*args_, **kwargs_)1479        else:1480            return deployondevice(*args_, **kwargs_)1481    factory = staticmethod(factory)1482    def get_refid(self): return self.refid1483    def set_refid(self, refid): self.refid = refid1484    refidProp = property(get_refid, set_refid)1485    def hasContent_(self):1486        if (1487        ):1488            return True1489        else:1490            return False1491    def export(self, outfile, level, namespace_='', name_='deployondevice', namespacedef_='', pretty_print=True):1492        imported_ns_def_ = GenerateDSNamespaceDefs_.get('deployondevice')1493        if imported_ns_def_ is not None:1494            namespacedef_ = imported_ns_def_1495        if pretty_print:1496            eol_ = '\n'1497        else:1498            eol_ = ''1499        if self.original_tagname_ is not None:1500            name_ = self.original_tagname_1501        showIndent(outfile, level, pretty_print)1502        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))1503        already_processed = set()1504        self.exportAttributes(outfile, level, already_processed, namespace_, name_='deployondevice')1505        if self.hasContent_():1506            outfile.write('>%s' % (eol_, ))1507            self.exportChildren(outfile, level + 1, namespace_='', name_='deployondevice', pretty_print=pretty_print)1508            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))1509        else:1510            outfile.write('/>%s' % (eol_, ))1511    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='deployondevice'):1512        if self.refid is not None and 'refid' not in already_processed:1513            already_processed.add('refid')1514            outfile.write(' refid=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.refid), input_name='refid')), ))1515    def exportChildren(self, outfile, level, namespace_='', name_='deployondevice', fromsubclass_=False, pretty_print=True):1516        pass1517    def build(self, node):1518        already_processed = set()1519        self.buildAttributes(node, node.attrib, already_processed)1520        for child in node:1521            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]1522            self.buildChildren(child, node, nodeName_)1523        return self1524    def buildAttributes(self, node, attrs, already_processed):1525        value = find_attr_value_('refid', node)1526        if value is not None and 'refid' not in already_processed:1527            already_processed.add('refid')1528            self.refid = value1529    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):1530        pass1531# end class deployondevice1532class compositepartofdevice(GeneratedsSuper):1533    """The compositepartofdevice element is used when an aggregate1534    relationship exists to reference the componentinstantiation1535    element that describes the whole Device for which this Deviceâs1536    componentinstantiation element describes a part of the aggregate1537    Device."""1538    subclass = None1539    superclass = None1540    def __init__(self, refid=None):1541        self.original_tagname_ = None1542        self.refid = _cast(None, refid)1543    def factory(*args_, **kwargs_):1544        if CurrentSubclassModule_ is not None:1545            subclass = getSubclassFromModule_(1546                CurrentSubclassModule_, compositepartofdevice)1547            if subclass is not None:1548                return subclass(*args_, **kwargs_)1549        if compositepartofdevice.subclass:1550            return compositepartofdevice.subclass(*args_, **kwargs_)1551        else:1552            return compositepartofdevice(*args_, **kwargs_)1553    factory = staticmethod(factory)1554    def get_refid(self): return self.refid1555    def set_refid(self, refid): self.refid = refid1556    refidProp = property(get_refid, set_refid)1557    def hasContent_(self):1558        if (1559        ):1560            return True1561        else:1562            return False1563    def export(self, outfile, level, namespace_='', name_='compositepartofdevice', namespacedef_='', pretty_print=True):1564        imported_ns_def_ = GenerateDSNamespaceDefs_.get('compositepartofdevice')1565        if imported_ns_def_ is not None:1566            namespacedef_ = imported_ns_def_1567        if pretty_print:1568            eol_ = '\n'1569        else:1570            eol_ = ''1571        if self.original_tagname_ is not None:1572            name_ = self.original_tagname_1573        showIndent(outfile, level, pretty_print)1574        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))1575        already_processed = set()1576        self.exportAttributes(outfile, level, already_processed, namespace_, name_='compositepartofdevice')1577        if self.hasContent_():1578            outfile.write('>%s' % (eol_, ))1579            self.exportChildren(outfile, level + 1, namespace_='', name_='compositepartofdevice', pretty_print=pretty_print)1580            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))1581        else:1582            outfile.write('/>%s' % (eol_, ))1583    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='compositepartofdevice'):1584        if self.refid is not None and 'refid' not in already_processed:1585            already_processed.add('refid')1586            outfile.write(' refid=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.refid), input_name='refid')), ))1587    def exportChildren(self, outfile, level, namespace_='', name_='compositepartofdevice', fromsubclass_=False, pretty_print=True):1588        pass1589    def build(self, node):1590        already_processed = set()1591        self.buildAttributes(node, node.attrib, already_processed)1592        for child in node:1593            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]1594            self.buildChildren(child, node, nodeName_)1595        return self1596    def buildAttributes(self, node, attrs, already_processed):1597        value = find_attr_value_('refid', node)1598        if value is not None and 'refid' not in already_processed:1599            already_processed.add('refid')1600            self.refid = value1601    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):1602        pass1603# end class compositepartofdevice1604class devicepkgfile(GeneratedsSuper):1605    """The devicepkgfile element is used to refer to a device package file1606    that contains the hardware device definition."""1607    subclass = None1608    superclass = None1609    def __init__(self, type_=None, localfile=None):1610        self.original_tagname_ = None1611        self.type_ = _cast(None, type_)1612        self.localfile = localfile1613    def factory(*args_, **kwargs_):1614        if CurrentSubclassModule_ is not None:1615            subclass = getSubclassFromModule_(1616                CurrentSubclassModule_, devicepkgfile)1617            if subclass is not None:1618                return subclass(*args_, **kwargs_)1619        if devicepkgfile.subclass:1620            return devicepkgfile.subclass(*args_, **kwargs_)1621        else:1622            return devicepkgfile(*args_, **kwargs_)1623    factory = staticmethod(factory)1624    def get_localfile(self): return self.localfile1625    def set_localfile(self, localfile): self.localfile = localfile1626    localfileProp = property(get_localfile, set_localfile)1627    def get_type(self): return self.type_1628    def set_type(self, type_): self.type_ = type_1629    typeProp = property(get_type, set_type)1630    def hasContent_(self):1631        if (1632            self.localfile is not None1633        ):1634            return True1635        else:1636            return False1637    def export(self, outfile, level, namespace_='', name_='devicepkgfile', namespacedef_='', pretty_print=True):1638        imported_ns_def_ = GenerateDSNamespaceDefs_.get('devicepkgfile')1639        if imported_ns_def_ is not None:1640            namespacedef_ = imported_ns_def_1641        if pretty_print:1642            eol_ = '\n'1643        else:1644            eol_ = ''1645        if self.original_tagname_ is not None:1646            name_ = self.original_tagname_1647        showIndent(outfile, level, pretty_print)1648        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))1649        already_processed = set()1650        self.exportAttributes(outfile, level, already_processed, namespace_, name_='devicepkgfile')1651        if self.hasContent_():1652            outfile.write('>%s' % (eol_, ))1653            self.exportChildren(outfile, level + 1, namespace_='', name_='devicepkgfile', pretty_print=pretty_print)1654            showIndent(outfile, level, pretty_print)1655            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))1656        else:1657            outfile.write('/>%s' % (eol_, ))1658    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='devicepkgfile'):1659        if self.type_ is not None and 'type_' not in already_processed:1660            already_processed.add('type_')1661            outfile.write(' type=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.type_), input_name='type')), ))1662    def exportChildren(self, outfile, level, namespace_='', name_='devicepkgfile', fromsubclass_=False, pretty_print=True):1663        if pretty_print:1664            eol_ = '\n'1665        else:1666            eol_ = ''1667        if self.localfile is not None:1668            self.localfile.export(outfile, level, namespace_, name_='localfile', pretty_print=pretty_print)1669    def build(self, node):1670        already_processed = set()1671        self.buildAttributes(node, node.attrib, already_processed)1672        for child in node:1673            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]1674            self.buildChildren(child, node, nodeName_)1675        return self1676    def buildAttributes(self, node, attrs, already_processed):1677        value = find_attr_value_('type', node)1678        if value is not None and 'type' not in already_processed:1679            already_processed.add('type')1680            self.type_ = value1681    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):1682        if nodeName_ == 'localfile':1683            obj_ = localfile.factory()1684            obj_.build(child_)1685            self.localfile = obj_1686            obj_.original_tagname_ = 'localfile'1687# end class devicepkgfile1688class componentinstantiation(GeneratedsSuper):1689    """The componentinstantiation element (see Figure D-35) is intended to1690    describe a particular instantiation of a component relative to a1691    componentplacement elementThe componentinstantiationâs id1692    attribute is a DCE UUID that uniquely identifier the component."""1693    subclass = None1694    superclass = None1695    def __init__(self, id_=None, startorder=None, usagename=None, componentproperties=None, affinity=None, loggingconfig=None, deployerrequires=None):1696        self.original_tagname_ = None1697        self.id_ = _cast(None, id_)1698        self.startorder = _cast(None, startorder)1699        self.usagename = usagename1700        self.componentproperties = componentproperties1701        self.affinity = affinity1702        self.loggingconfig = loggingconfig1703        self.deployerrequires = deployerrequires1704    def factory(*args_, **kwargs_):1705        if CurrentSubclassModule_ is not None:1706            subclass = getSubclassFromModule_(1707                CurrentSubclassModule_, componentinstantiation)1708            if subclass is not None:1709                return subclass(*args_, **kwargs_)1710        if componentinstantiation.subclass:1711            return componentinstantiation.subclass(*args_, **kwargs_)1712        else:1713            return componentinstantiation(*args_, **kwargs_)1714    factory = staticmethod(factory)1715    def get_usagename(self): return self.usagename1716    def set_usagename(self, usagename): self.usagename = usagename1717    usagenameProp = property(get_usagename, set_usagename)1718    def get_componentproperties(self): return self.componentproperties1719    def set_componentproperties(self, componentproperties): self.componentproperties = componentproperties1720    componentpropertiesProp = property(get_componentproperties, set_componentproperties)1721    def get_affinity(self): return self.affinity1722    def set_affinity(self, affinity): self.affinity = affinity1723    affinityProp = property(get_affinity, set_affinity)1724    def get_loggingconfig(self): return self.loggingconfig1725    def set_loggingconfig(self, loggingconfig): self.loggingconfig = loggingconfig1726    loggingconfigProp = property(get_loggingconfig, set_loggingconfig)1727    def get_deployerrequires(self): return self.deployerrequires1728    def set_deployerrequires(self, deployerrequires): self.deployerrequires = deployerrequires1729    deployerrequiresProp = property(get_deployerrequires, set_deployerrequires)1730    def get_id(self): return self.id_1731    def set_id(self, id_): self.id_ = id_1732    idProp = property(get_id, set_id)1733    def get_startorder(self): return self.startorder1734    def set_startorder(self, startorder): self.startorder = startorder1735    startorderProp = property(get_startorder, set_startorder)1736    def hasContent_(self):1737        if (1738            self.usagename is not None or1739            self.componentproperties is not None or1740            self.affinity is not None or1741            self.loggingconfig is not None or1742            self.deployerrequires is not None1743        ):1744            return True1745        else:1746            return False1747    def export(self, outfile, level, namespace_='', name_='componentinstantiation', namespacedef_='', pretty_print=True):1748        imported_ns_def_ = GenerateDSNamespaceDefs_.get('componentinstantiation')1749        if imported_ns_def_ is not None:1750            namespacedef_ = imported_ns_def_1751        if pretty_print:1752            eol_ = '\n'1753        else:1754            eol_ = ''1755        if self.original_tagname_ is not None:1756            name_ = self.original_tagname_1757        showIndent(outfile, level, pretty_print)1758        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))1759        already_processed = set()1760        self.exportAttributes(outfile, level, already_processed, namespace_, name_='componentinstantiation')1761        if self.hasContent_():1762            outfile.write('>%s' % (eol_, ))1763            self.exportChildren(outfile, level + 1, namespace_='', name_='componentinstantiation', pretty_print=pretty_print)1764            showIndent(outfile, level, pretty_print)1765            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))1766        else:1767            outfile.write('/>%s' % (eol_, ))1768    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='componentinstantiation'):1769        if self.id_ is not None and 'id' not in already_processed:1770            already_processed.add('id')1771            outfile.write(' id=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.id_), input_name='id')), ))1772        if self.startorder is not None and 'startorder' not in already_processed:1773            already_processed.add('startorder')1774            outfile.write(' startorder=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.startorder), input_name='startorder')), ))1775    def exportChildren(self, outfile, level, namespace_='', name_='componentinstantiation', fromsubclass_=False, pretty_print=True):1776        if pretty_print:1777            eol_ = '\n'1778        else:1779            eol_ = ''1780        if self.usagename is not None:1781            showIndent(outfile, level, pretty_print)1782            outfile.write('<usagename>%s</usagename>%s' % (self.gds_encode(self.gds_format_string(quote_xml(self.usagename), input_name='usagename')), eol_))1783        if self.componentproperties is not None:1784            self.componentproperties.export(outfile, level, namespace_, name_='componentproperties', pretty_print=pretty_print)1785        if self.affinity is not None:1786            self.affinity.export(outfile, level, namespace_, name_='affinity', pretty_print=pretty_print)1787        if self.loggingconfig is not None:1788            self.loggingconfig.export(outfile, level, namespace_, name_='loggingconfig', pretty_print=pretty_print)1789        if self.deployerrequires is not None:1790            self.deployerrequires.export(outfile, level, namespace_, name_='deployerrequires', pretty_print=pretty_print)1791    def build(self, node):1792        already_processed = set()1793        self.buildAttributes(node, node.attrib, already_processed)1794        for child in node:1795            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]1796            self.buildChildren(child, node, nodeName_)1797        return self1798    def buildAttributes(self, node, attrs, already_processed):1799        value = find_attr_value_('id', node)1800        if value is not None and 'id' not in already_processed:1801            already_processed.add('id')1802            self.id_ = value1803        value = find_attr_value_('startorder', node)1804        if value is not None and 'startorder' not in already_processed:1805            already_processed.add('startorder')1806            self.startorder = value1807    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):1808        if nodeName_ == 'usagename':1809            usagename_ = child_.text1810            usagename_ = self.gds_validate_string(usagename_, node, 'usagename')1811            self.usagename = usagename_1812        elif nodeName_ == 'componentproperties':1813            obj_ = componentproperties.factory()1814            obj_.build(child_)1815            self.componentproperties = obj_1816            obj_.original_tagname_ = 'componentproperties'1817        elif nodeName_ == 'affinity':1818            obj_ = affinity.factory()1819            obj_.build(child_)1820            self.affinity = obj_1821            obj_.original_tagname_ = 'affinity'1822        elif nodeName_ == 'loggingconfig':1823            obj_ = loggingconfig.factory()1824            obj_.build(child_)1825            self.loggingconfig = obj_1826            obj_.original_tagname_ = 'loggingconfig'1827        elif nodeName_ == 'deployerrequires':1828            obj_ = deployerrequires.factory()1829            obj_.build(child_)1830            self.deployerrequires = obj_1831            obj_.original_tagname_ = 'deployerrequires'1832# end class componentinstantiation1833class loggingconfig(GeneratedsSuper):1834    subclass = None1835    superclass = None1836    def __init__(self, level=None, valueOf_=None):1837        self.original_tagname_ = None1838        self.level = _cast(None, level)1839        self.value = valueOf_1840    def factory(*args_, **kwargs_):1841        if CurrentSubclassModule_ is not None:1842            subclass = getSubclassFromModule_(1843                CurrentSubclassModule_, loggingconfig)1844            if subclass is not None:1845                return subclass(*args_, **kwargs_)1846        if loggingconfig.subclass:1847            return loggingconfig.subclass(*args_, **kwargs_)1848        else:1849            return loggingconfig(*args_, **kwargs_)1850    factory = staticmethod(factory)1851    def get_level(self): return self.level1852    def set_level(self, level): self.level = level1853    levelProp = property(get_level, set_level)1854    def get_value(self): return self.value1855    def set_value(self, valueOf_): self.value = valueOf_1856    def hasContent_(self):1857        if (1858            (1 if type(self.value) in [int,float] else self.value)1859        ):1860            return True1861        else:1862            return False1863    def export(self, outfile, level, namespace_='', name_='loggingconfig', namespacedef_='', pretty_print=True):1864        imported_ns_def_ = GenerateDSNamespaceDefs_.get('loggingconfig')1865        if imported_ns_def_ is not None:1866            namespacedef_ = imported_ns_def_1867        if pretty_print:1868            eol_ = '\n'1869        else:1870            eol_ = ''1871        if self.original_tagname_ is not None:1872            name_ = self.original_tagname_1873        showIndent(outfile, level, pretty_print)1874        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))1875        already_processed = set()1876        self.exportAttributes(outfile, level, already_processed, namespace_, name_='loggingconfig')1877        if self.hasContent_():1878            outfile.write('>')1879            outfile.write(self.convert_unicode(self.value))1880            self.exportChildren(outfile, level + 1, namespace_='', name_='loggingconfig', pretty_print=pretty_print)1881            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))1882        else:1883            outfile.write('/>%s' % (eol_, ))1884    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='loggingconfig'):1885        if self.level is not None and 'level' not in already_processed:1886            already_processed.add('level')1887            outfile.write(' level=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.level), input_name='level')), ))1888    def exportChildren(self, outfile, level, namespace_='', name_='loggingconfig', fromsubclass_=False, pretty_print=True):1889        pass1890    def build(self, node):1891        already_processed = set()1892        self.buildAttributes(node, node.attrib, already_processed)1893        self.value = get_all_text_(node)1894        for child in node:1895            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]1896            self.buildChildren(child, node, nodeName_)1897        return self1898    def buildAttributes(self, node, attrs, already_processed):1899        value = find_attr_value_('level', node)1900        if value is not None and 'level' not in already_processed:1901            already_processed.add('level')1902            self.level = value1903    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):1904        pass1905# end class loggingconfig1906class affinity(GeneratedsSuper):1907    subclass = None1908    superclass = None1909    def __init__(self, simpleref=None, simplesequenceref=None, structref=None, structsequenceref=None):1910        self.original_tagname_ = None1911        if simpleref is None:1912            self.simpleref = []1913        else:1914            self.simpleref = simpleref1915        if simplesequenceref is None:1916            self.simplesequenceref = []1917        else:1918            self.simplesequenceref = simplesequenceref1919        if structref is None:1920            self.structref = []1921        else:1922            self.structref = structref1923        if structsequenceref is None:1924            self.structsequenceref = []1925        else:1926            self.structsequenceref = structsequenceref1927    def factory(*args_, **kwargs_):1928        if CurrentSubclassModule_ is not None:1929            subclass = getSubclassFromModule_(1930                CurrentSubclassModule_, affinity)1931            if subclass is not None:1932                return subclass(*args_, **kwargs_)1933        if affinity.subclass:1934            return affinity.subclass(*args_, **kwargs_)1935        else:1936            return affinity(*args_, **kwargs_)1937    factory = staticmethod(factory)1938    def get_simpleref(self): return self.simpleref1939    def set_simpleref(self, simpleref): self.simpleref = simpleref1940    def add_simpleref(self, value): self.simpleref.append(value)1941    def insert_simpleref_at(self, index, value): self.simpleref.insert(index, value)1942    def replace_simpleref_at(self, index, value): self.simpleref[index] = value1943    simplerefProp = property(get_simpleref, set_simpleref)1944    def get_simplesequenceref(self): return self.simplesequenceref1945    def set_simplesequenceref(self, simplesequenceref): self.simplesequenceref = simplesequenceref1946    def add_simplesequenceref(self, value): self.simplesequenceref.append(value)1947    def insert_simplesequenceref_at(self, index, value): self.simplesequenceref.insert(index, value)1948    def replace_simplesequenceref_at(self, index, value): self.simplesequenceref[index] = value1949    simplesequencerefProp = property(get_simplesequenceref, set_simplesequenceref)1950    def get_structref(self): return self.structref1951    def set_structref(self, structref): self.structref = structref1952    def add_structref(self, value): self.structref.append(value)1953    def insert_structref_at(self, index, value): self.structref.insert(index, value)1954    def replace_structref_at(self, index, value): self.structref[index] = value1955    structrefProp = property(get_structref, set_structref)1956    def get_structsequenceref(self): return self.structsequenceref1957    def set_structsequenceref(self, structsequenceref): self.structsequenceref = structsequenceref1958    def add_structsequenceref(self, value): self.structsequenceref.append(value)1959    def insert_structsequenceref_at(self, index, value): self.structsequenceref.insert(index, value)1960    def replace_structsequenceref_at(self, index, value): self.structsequenceref[index] = value1961    structsequencerefProp = property(get_structsequenceref, set_structsequenceref)1962    def hasContent_(self):1963        if (1964            self.simpleref or1965            self.simplesequenceref or1966            self.structref or1967            self.structsequenceref1968        ):1969            return True1970        else:1971            return False1972    def export(self, outfile, level, namespace_='', name_='affinity', namespacedef_='', pretty_print=True):1973        imported_ns_def_ = GenerateDSNamespaceDefs_.get('affinity')1974        if imported_ns_def_ is not None:1975            namespacedef_ = imported_ns_def_1976        if pretty_print:1977            eol_ = '\n'1978        else:1979            eol_ = ''1980        if self.original_tagname_ is not None:1981            name_ = self.original_tagname_1982        showIndent(outfile, level, pretty_print)1983        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))1984        already_processed = set()1985        self.exportAttributes(outfile, level, already_processed, namespace_, name_='affinity')1986        if self.hasContent_():1987            outfile.write('>%s' % (eol_, ))1988            self.exportChildren(outfile, level + 1, namespace_='', name_='affinity', pretty_print=pretty_print)1989            showIndent(outfile, level, pretty_print)1990            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))1991        else:1992            outfile.write('/>%s' % (eol_, ))1993    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='affinity'):1994        pass1995    def exportChildren(self, outfile, level, namespace_='', name_='affinity', fromsubclass_=False, pretty_print=True):1996        if pretty_print:1997            eol_ = '\n'1998        else:1999            eol_ = ''2000        for simpleref_ in self.simpleref:2001            simpleref_.export(outfile, level, namespace_, name_='simpleref', pretty_print=pretty_print)2002        for simplesequenceref_ in self.simplesequenceref:2003            simplesequenceref_.export(outfile, level, namespace_, name_='simplesequenceref', pretty_print=pretty_print)2004        for structref_ in self.structref:2005            structref_.export(outfile, level, namespace_, name_='structref', pretty_print=pretty_print)2006        for structsequenceref_ in self.structsequenceref:2007            structsequenceref_.export(outfile, level, namespace_, name_='structsequenceref', pretty_print=pretty_print)2008    def build(self, node):2009        already_processed = set()2010        self.buildAttributes(node, node.attrib, already_processed)2011        for child in node:2012            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]2013            self.buildChildren(child, node, nodeName_)2014        return self2015    def buildAttributes(self, node, attrs, already_processed):2016        pass2017    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):2018        if nodeName_ == 'simpleref':2019            obj_ = simpleref.factory()2020            obj_.build(child_)2021            self.simpleref.append(obj_)2022            obj_.original_tagname_ = 'simpleref'2023        elif nodeName_ == 'simplesequenceref':2024            obj_ = simplesequenceref.factory()2025            obj_.build(child_)2026            self.simplesequenceref.append(obj_)2027            obj_.original_tagname_ = 'simplesequenceref'2028        elif nodeName_ == 'structref':2029            obj_ = structref.factory()2030            obj_.build(child_)2031            self.structref.append(obj_)2032            obj_.original_tagname_ = 'structref'2033        elif nodeName_ == 'structsequenceref':2034            obj_ = structsequenceref.factory()2035            obj_.build(child_)2036            self.structsequenceref.append(obj_)2037            obj_.original_tagname_ = 'structsequenceref'2038# end class affinity2039class deployerrequires(GeneratedsSuper):2040    subclass = None2041    superclass = None2042    def __init__(self, requires=None):2043        self.original_tagname_ = None2044        if requires is None:2045            self.requires = []2046        else:2047            self.requires = requires2048    def factory(*args_, **kwargs_):2049        if CurrentSubclassModule_ is not None:2050            subclass = getSubclassFromModule_(2051                CurrentSubclassModule_, deployerrequires)2052            if subclass is not None:2053                return subclass(*args_, **kwargs_)2054        if deployerrequires.subclass:2055            return deployerrequires.subclass(*args_, **kwargs_)2056        else:2057            return deployerrequires(*args_, **kwargs_)2058    factory = staticmethod(factory)2059    def get_requires(self): return self.requires2060    def set_requires(self, requires): self.requires = requires2061    def add_requires(self, value): self.requires.append(value)2062    def insert_requires_at(self, index, value): self.requires.insert(index, value)2063    def replace_requires_at(self, index, value): self.requires[index] = value2064    requiresProp = property(get_requires, set_requires)2065    def hasContent_(self):2066        if (2067            self.requires2068        ):2069            return True2070        else:2071            return False2072    def export(self, outfile, level, namespace_='', name_='deployerrequires', namespacedef_='', pretty_print=True):2073        imported_ns_def_ = GenerateDSNamespaceDefs_.get('deployerrequires')2074        if imported_ns_def_ is not None:2075            namespacedef_ = imported_ns_def_2076        if pretty_print:2077            eol_ = '\n'2078        else:2079            eol_ = ''2080        if self.original_tagname_ is not None:2081            name_ = self.original_tagname_2082        showIndent(outfile, level, pretty_print)2083        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))2084        already_processed = set()2085        self.exportAttributes(outfile, level, already_processed, namespace_, name_='deployerrequires')2086        if self.hasContent_():2087            outfile.write('>%s' % (eol_, ))2088            self.exportChildren(outfile, level + 1, namespace_='', name_='deployerrequires', pretty_print=pretty_print)2089            showIndent(outfile, level, pretty_print)2090            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))2091        else:2092            outfile.write('/>%s' % (eol_, ))2093    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='deployerrequires'):2094        pass2095    def exportChildren(self, outfile, level, namespace_='', name_='deployerrequires', fromsubclass_=False, pretty_print=True):2096        if pretty_print:2097            eol_ = '\n'2098        else:2099            eol_ = ''2100        for requires_ in self.requires:2101            requires_.export(outfile, level, namespace_, name_='requires', pretty_print=pretty_print)2102    def build(self, node):2103        already_processed = set()2104        self.buildAttributes(node, node.attrib, already_processed)2105        for child in node:2106            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]2107            self.buildChildren(child, node, nodeName_)2108        return self2109    def buildAttributes(self, node, attrs, already_processed):2110        pass2111    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):2112        if nodeName_ == 'requires':2113            obj_ = idvalue.factory()2114            obj_.build(child_)2115            self.requires.append(obj_)2116            obj_.original_tagname_ = 'requires'2117# end class deployerrequires2118class idvalue(GeneratedsSuper):2119    subclass = None2120    superclass = None2121    def __init__(self, id_=None, value=None):2122        self.original_tagname_ = None2123        self.id = _cast(None, id_)2124        self.value = _cast(None, value)2125    def factory(*args_, **kwargs_):2126        if CurrentSubclassModule_ is not None:2127            subclass = getSubclassFromModule_(2128                CurrentSubclassModule_, idvalue)2129            if subclass is not None:2130                return subclass(*args_, **kwargs_)2131        if idvalue.subclass:2132            return idvalue.subclass(*args_, **kwargs_)2133        else:2134            return idvalue(*args_, **kwargs_)2135    factory = staticmethod(factory)2136    def get_id(self): return self.id2137    def set_id(self, id_): self.id = id_2138    idProp = property(get_id, set_id)2139    def get_value(self): return self.value2140    def set_value(self, value): self.value = value2141    valueProp = property(get_value, set_value)2142    def hasContent_(self):2143        if (2144        ):2145            return True2146        else:2147            return False2148    def export(self, outfile, level, namespace_='', name_='idvalue', namespacedef_='', pretty_print=True):2149        imported_ns_def_ = GenerateDSNamespaceDefs_.get('idvalue')2150        if imported_ns_def_ is not None:2151            namespacedef_ = imported_ns_def_2152        if pretty_print:2153            eol_ = '\n'2154        else:2155            eol_ = ''2156        if self.original_tagname_ is not None:2157            name_ = self.original_tagname_2158        showIndent(outfile, level, pretty_print)2159        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))2160        already_processed = set()2161        self.exportAttributes(outfile, level, already_processed, namespace_, name_='idvalue')2162        if self.hasContent_():2163            outfile.write('>%s' % (eol_, ))2164            self.exportChildren(outfile, level + 1, namespace_='', name_='idvalue', pretty_print=pretty_print)2165            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))2166        else:2167            outfile.write('/>%s' % (eol_, ))2168    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='idvalue'):2169        if self.id is not None and 'id' not in already_processed:2170            already_processed.add('id')2171            outfile.write(' id=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.id), input_name='id')), ))2172        if self.value is not None and 'value' not in already_processed:2173            already_processed.add('value')2174            outfile.write(' value=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.value), input_name='value')), ))2175    def exportChildren(self, outfile, level, namespace_='', name_='idvalue', fromsubclass_=False, pretty_print=True):2176        pass2177    def build(self, node):2178        already_processed = set()2179        self.buildAttributes(node, node.attrib, already_processed)2180        for child in node:2181            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]2182            self.buildChildren(child, node, nodeName_)2183        return self2184    def buildAttributes(self, node, attrs, already_processed):2185        value = find_attr_value_('id', node)2186        if value is not None and 'id' not in already_processed:2187            already_processed.add('id')2188            self.id = value2189        value = find_attr_value_('value', node)2190        if value is not None and 'value' not in already_processed:2191            already_processed.add('value')2192            self.value = value2193    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):2194        pass2195# end class idvalue2196class componentproperties(GeneratedsSuper):2197    subclass = None2198    superclass = None2199    def __init__(self, simpleref=None, simplesequenceref=None, structref=None, structsequenceref=None):2200        self.original_tagname_ = None2201        if simpleref is None:2202            self.simpleref = []2203        else:2204            self.simpleref = simpleref2205        if simplesequenceref is None:2206            self.simplesequenceref = []2207        else:2208            self.simplesequenceref = simplesequenceref2209        if structref is None:2210            self.structref = []2211        else:2212            self.structref = structref2213        if structsequenceref is None:2214            self.structsequenceref = []2215        else:2216            self.structsequenceref = structsequenceref2217    def factory(*args_, **kwargs_):2218        if CurrentSubclassModule_ is not None:2219            subclass = getSubclassFromModule_(2220                CurrentSubclassModule_, componentproperties)2221            if subclass is not None:2222                return subclass(*args_, **kwargs_)2223        if componentproperties.subclass:2224            return componentproperties.subclass(*args_, **kwargs_)2225        else:2226            return componentproperties(*args_, **kwargs_)2227    factory = staticmethod(factory)2228    def get_simpleref(self): return self.simpleref2229    def set_simpleref(self, simpleref): self.simpleref = simpleref2230    def add_simpleref(self, value): self.simpleref.append(value)2231    def insert_simpleref_at(self, index, value): self.simpleref.insert(index, value)2232    def replace_simpleref_at(self, index, value): self.simpleref[index] = value2233    simplerefProp = property(get_simpleref, set_simpleref)2234    def get_simplesequenceref(self): return self.simplesequenceref2235    def set_simplesequenceref(self, simplesequenceref): self.simplesequenceref = simplesequenceref2236    def add_simplesequenceref(self, value): self.simplesequenceref.append(value)2237    def insert_simplesequenceref_at(self, index, value): self.simplesequenceref.insert(index, value)2238    def replace_simplesequenceref_at(self, index, value): self.simplesequenceref[index] = value2239    simplesequencerefProp = property(get_simplesequenceref, set_simplesequenceref)2240    def get_structref(self): return self.structref2241    def set_structref(self, structref): self.structref = structref2242    def add_structref(self, value): self.structref.append(value)2243    def insert_structref_at(self, index, value): self.structref.insert(index, value)2244    def replace_structref_at(self, index, value): self.structref[index] = value2245    structrefProp = property(get_structref, set_structref)2246    def get_structsequenceref(self): return self.structsequenceref2247    def set_structsequenceref(self, structsequenceref): self.structsequenceref = structsequenceref2248    def add_structsequenceref(self, value): self.structsequenceref.append(value)2249    def insert_structsequenceref_at(self, index, value): self.structsequenceref.insert(index, value)2250    def replace_structsequenceref_at(self, index, value): self.structsequenceref[index] = value2251    structsequencerefProp = property(get_structsequenceref, set_structsequenceref)2252    def hasContent_(self):2253        if (2254            self.simpleref or2255            self.simplesequenceref or2256            self.structref or2257            self.structsequenceref2258        ):2259            return True2260        else:2261            return False2262    def export(self, outfile, level, namespace_='', name_='componentproperties', namespacedef_='', pretty_print=True):2263        imported_ns_def_ = GenerateDSNamespaceDefs_.get('componentproperties')2264        if imported_ns_def_ is not None:2265            namespacedef_ = imported_ns_def_2266        if pretty_print:2267            eol_ = '\n'2268        else:2269            eol_ = ''2270        if self.original_tagname_ is not None:2271            name_ = self.original_tagname_2272        showIndent(outfile, level, pretty_print)2273        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))2274        already_processed = set()2275        self.exportAttributes(outfile, level, already_processed, namespace_, name_='componentproperties')2276        if self.hasContent_():2277            outfile.write('>%s' % (eol_, ))2278            self.exportChildren(outfile, level + 1, namespace_='', name_='componentproperties', pretty_print=pretty_print)2279            showIndent(outfile, level, pretty_print)2280            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))2281        else:2282            outfile.write('/>%s' % (eol_, ))2283    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='componentproperties'):2284        pass2285    def exportChildren(self, outfile, level, namespace_='', name_='componentproperties', fromsubclass_=False, pretty_print=True):2286        if pretty_print:2287            eol_ = '\n'2288        else:2289            eol_ = ''2290        for simpleref_ in self.simpleref:2291            simpleref_.export(outfile, level, namespace_, name_='simpleref', pretty_print=pretty_print)2292        for simplesequenceref_ in self.simplesequenceref:2293            simplesequenceref_.export(outfile, level, namespace_, name_='simplesequenceref', pretty_print=pretty_print)2294        for structref_ in self.structref:2295            structref_.export(outfile, level, namespace_, name_='structref', pretty_print=pretty_print)2296        for structsequenceref_ in self.structsequenceref:2297            structsequenceref_.export(outfile, level, namespace_, name_='structsequenceref', pretty_print=pretty_print)2298    def build(self, node):2299        already_processed = set()2300        self.buildAttributes(node, node.attrib, already_processed)2301        for child in node:2302            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]2303            self.buildChildren(child, node, nodeName_)2304        return self2305    def buildAttributes(self, node, attrs, already_processed):2306        pass2307    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):2308        if nodeName_ == 'simpleref':2309            obj_ = simpleref.factory()2310            obj_.build(child_)2311            self.simpleref.append(obj_)2312            obj_.original_tagname_ = 'simpleref'2313        elif nodeName_ == 'simplesequenceref':2314            obj_ = simplesequenceref.factory()2315            obj_.build(child_)2316            self.simplesequenceref.append(obj_)2317            obj_.original_tagname_ = 'simplesequenceref'2318        elif nodeName_ == 'structref':2319            obj_ = structref.factory()2320            obj_.build(child_)2321            self.structref.append(obj_)2322            obj_.original_tagname_ = 'structref'2323        elif nodeName_ == 'structsequenceref':2324            obj_ = structsequenceref.factory()2325            obj_.build(child_)2326            self.structsequenceref.append(obj_)2327            obj_.original_tagname_ = 'structsequenceref'2328# end class componentproperties2329class devicethatloadedthiscomponentref(GeneratedsSuper):2330    subclass = None2331    superclass = None2332    def __init__(self, refid=None):2333        self.original_tagname_ = None2334        self.refid = _cast(None, refid)2335    def factory(*args_, **kwargs_):2336        if CurrentSubclassModule_ is not None:2337            subclass = getSubclassFromModule_(2338                CurrentSubclassModule_, devicethatloadedthiscomponentref)2339            if subclass is not None:2340                return subclass(*args_, **kwargs_)2341        if devicethatloadedthiscomponentref.subclass:2342            return devicethatloadedthiscomponentref.subclass(*args_, **kwargs_)2343        else:2344            return devicethatloadedthiscomponentref(*args_, **kwargs_)2345    factory = staticmethod(factory)2346    def get_refid(self): return self.refid2347    def set_refid(self, refid): self.refid = refid2348    refidProp = property(get_refid, set_refid)2349    def hasContent_(self):2350        if (2351        ):2352            return True2353        else:2354            return False2355    def export(self, outfile, level, namespace_='', name_='devicethatloadedthiscomponentref', namespacedef_='', pretty_print=True):2356        imported_ns_def_ = GenerateDSNamespaceDefs_.get('devicethatloadedthiscomponentref')2357        if imported_ns_def_ is not None:2358            namespacedef_ = imported_ns_def_2359        if pretty_print:2360            eol_ = '\n'2361        else:2362            eol_ = ''2363        if self.original_tagname_ is not None:2364            name_ = self.original_tagname_2365        showIndent(outfile, level, pretty_print)2366        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))2367        already_processed = set()2368        self.exportAttributes(outfile, level, already_processed, namespace_, name_='devicethatloadedthiscomponentref')2369        if self.hasContent_():2370            outfile.write('>%s' % (eol_, ))2371            self.exportChildren(outfile, level + 1, namespace_='', name_='devicethatloadedthiscomponentref', pretty_print=pretty_print)2372            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))2373        else:2374            outfile.write('/>%s' % (eol_, ))2375    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='devicethatloadedthiscomponentref'):2376        if self.refid is not None and 'refid' not in already_processed:2377            already_processed.add('refid')2378            outfile.write(' refid=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.refid), input_name='refid')), ))2379    def exportChildren(self, outfile, level, namespace_='', name_='devicethatloadedthiscomponentref', fromsubclass_=False, pretty_print=True):2380        pass2381    def build(self, node):2382        already_processed = set()2383        self.buildAttributes(node, node.attrib, already_processed)2384        for child in node:2385            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]2386            self.buildChildren(child, node, nodeName_)2387        return self2388    def buildAttributes(self, node, attrs, already_processed):2389        value = find_attr_value_('refid', node)2390        if value is not None and 'refid' not in already_processed:2391            already_processed.add('refid')2392            self.refid = value2393    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):2394        pass2395# end class devicethatloadedthiscomponentref2396class deviceusedbythiscomponentref(GeneratedsSuper):2397    subclass = None2398    superclass = None2399    def __init__(self, refid=None, usesrefid=None):2400        self.original_tagname_ = None2401        self.refid = _cast(None, refid)2402        self.usesrefid = _cast(None, usesrefid)2403    def factory(*args_, **kwargs_):2404        if CurrentSubclassModule_ is not None:2405            subclass = getSubclassFromModule_(2406                CurrentSubclassModule_, deviceusedbythiscomponentref)2407            if subclass is not None:2408                return subclass(*args_, **kwargs_)2409        if deviceusedbythiscomponentref.subclass:2410            return deviceusedbythiscomponentref.subclass(*args_, **kwargs_)2411        else:2412            return deviceusedbythiscomponentref(*args_, **kwargs_)2413    factory = staticmethod(factory)2414    def get_refid(self): return self.refid2415    def set_refid(self, refid): self.refid = refid2416    refidProp = property(get_refid, set_refid)2417    def get_usesrefid(self): return self.usesrefid2418    def set_usesrefid(self, usesrefid): self.usesrefid = usesrefid2419    usesrefidProp = property(get_usesrefid, set_usesrefid)2420    def hasContent_(self):2421        if (2422        ):2423            return True2424        else:2425            return False2426    def export(self, outfile, level, namespace_='', name_='deviceusedbythiscomponentref', namespacedef_='', pretty_print=True):2427        imported_ns_def_ = GenerateDSNamespaceDefs_.get('deviceusedbythiscomponentref')2428        if imported_ns_def_ is not None:2429            namespacedef_ = imported_ns_def_2430        if pretty_print:2431            eol_ = '\n'2432        else:2433            eol_ = ''2434        if self.original_tagname_ is not None:2435            name_ = self.original_tagname_2436        showIndent(outfile, level, pretty_print)2437        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))2438        already_processed = set()2439        self.exportAttributes(outfile, level, already_processed, namespace_, name_='deviceusedbythiscomponentref')2440        if self.hasContent_():2441            outfile.write('>%s' % (eol_, ))2442            self.exportChildren(outfile, level + 1, namespace_='', name_='deviceusedbythiscomponentref', pretty_print=pretty_print)2443            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))2444        else:2445            outfile.write('/>%s' % (eol_, ))2446    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='deviceusedbythiscomponentref'):2447        if self.refid is not None and 'refid' not in already_processed:2448            already_processed.add('refid')2449            outfile.write(' refid=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.refid), input_name='refid')), ))2450        if self.usesrefid is not None and 'usesrefid' not in already_processed:2451            already_processed.add('usesrefid')2452            outfile.write(' usesrefid=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.usesrefid), input_name='usesrefid')), ))2453    def exportChildren(self, outfile, level, namespace_='', name_='deviceusedbythiscomponentref', fromsubclass_=False, pretty_print=True):2454        pass2455    def build(self, node):2456        already_processed = set()2457        self.buildAttributes(node, node.attrib, already_processed)2458        for child in node:2459            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]2460            self.buildChildren(child, node, nodeName_)2461        return self2462    def buildAttributes(self, node, attrs, already_processed):2463        value = find_attr_value_('refid', node)2464        if value is not None and 'refid' not in already_processed:2465            already_processed.add('refid')2466            self.refid = value2467        value = find_attr_value_('usesrefid', node)2468        if value is not None and 'usesrefid' not in already_processed:2469            already_processed.add('usesrefid')2470            self.usesrefid = value2471    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):2472        pass2473# end class deviceusedbythiscomponentref2474class simpleref(GeneratedsSuper):2475    subclass = None2476    superclass = None2477    def __init__(self, refid=None, value=None):2478        self.original_tagname_ = None2479        self.refid = _cast(None, refid)2480        self.value = _cast(None, value)2481    def factory(*args_, **kwargs_):2482        if CurrentSubclassModule_ is not None:2483            subclass = getSubclassFromModule_(2484                CurrentSubclassModule_, simpleref)2485            if subclass is not None:2486                return subclass(*args_, **kwargs_)2487        if simpleref.subclass:2488            return simpleref.subclass(*args_, **kwargs_)2489        else:2490            return simpleref(*args_, **kwargs_)2491    factory = staticmethod(factory)2492    def get_refid(self): return self.refid2493    def set_refid(self, refid): self.refid = refid2494    refidProp = property(get_refid, set_refid)2495    def get_value(self): return self.value2496    def set_value(self, value): self.value = value2497    valueProp = property(get_value, set_value)2498    def hasContent_(self):2499        if (2500        ):2501            return True2502        else:2503            return False2504    def export(self, outfile, level, namespace_='', name_='simpleref', namespacedef_='', pretty_print=True):2505        imported_ns_def_ = GenerateDSNamespaceDefs_.get('simpleref')2506        if imported_ns_def_ is not None:2507            namespacedef_ = imported_ns_def_2508        if pretty_print:2509            eol_ = '\n'2510        else:2511            eol_ = ''2512        if self.original_tagname_ is not None:2513            name_ = self.original_tagname_2514        showIndent(outfile, level, pretty_print)2515        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))2516        already_processed = set()2517        self.exportAttributes(outfile, level, already_processed, namespace_, name_='simpleref')2518        if self.hasContent_():2519            outfile.write('>%s' % (eol_, ))2520            self.exportChildren(outfile, level + 1, namespace_='', name_='simpleref', pretty_print=pretty_print)2521            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))2522        else:2523            outfile.write('/>%s' % (eol_, ))2524    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='simpleref'):2525        if self.refid is not None and 'refid' not in already_processed:2526            already_processed.add('refid')2527            outfile.write(' refid=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.refid), input_name='refid')), ))2528        if self.value is not None and 'value' not in already_processed:2529            already_processed.add('value')2530            outfile.write(' value=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.value), input_name='value')), ))2531    def exportChildren(self, outfile, level, namespace_='', name_='simpleref', fromsubclass_=False, pretty_print=True):2532        pass2533    def build(self, node):2534        already_processed = set()2535        self.buildAttributes(node, node.attrib, already_processed)2536        for child in node:2537            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]2538            self.buildChildren(child, node, nodeName_)2539        return self2540    def buildAttributes(self, node, attrs, already_processed):2541        value = find_attr_value_('refid', node)2542        if value is not None and 'refid' not in already_processed:2543            already_processed.add('refid')2544            self.refid = value2545        value = find_attr_value_('value', node)2546        if value is not None and 'value' not in already_processed:2547            already_processed.add('value')2548            self.value = value2549    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):2550        pass2551# end class simpleref2552class simplesequenceref(GeneratedsSuper):2553    subclass = None2554    superclass = None2555    def __init__(self, refid=None, values=None):2556        self.original_tagname_ = None2557        self.refid = _cast(None, refid)2558        self.values = values2559    def factory(*args_, **kwargs_):2560        if CurrentSubclassModule_ is not None:2561            subclass = getSubclassFromModule_(2562                CurrentSubclassModule_, simplesequenceref)2563            if subclass is not None:2564                return subclass(*args_, **kwargs_)2565        if simplesequenceref.subclass:2566            return simplesequenceref.subclass(*args_, **kwargs_)2567        else:2568            return simplesequenceref(*args_, **kwargs_)2569    factory = staticmethod(factory)2570    def get_values(self): return self.values2571    def set_values(self, values): self.values = values2572    valuesProp = property(get_values, set_values)2573    def get_refid(self): return self.refid2574    def set_refid(self, refid): self.refid = refid2575    refidProp = property(get_refid, set_refid)2576    def hasContent_(self):2577        if (2578            self.values is not None2579        ):2580            return True2581        else:2582            return False2583    def export(self, outfile, level, namespace_='', name_='simplesequenceref', namespacedef_='', pretty_print=True):2584        imported_ns_def_ = GenerateDSNamespaceDefs_.get('simplesequenceref')2585        if imported_ns_def_ is not None:2586            namespacedef_ = imported_ns_def_2587        if pretty_print:2588            eol_ = '\n'2589        else:2590            eol_ = ''2591        if self.original_tagname_ is not None:2592            name_ = self.original_tagname_2593        showIndent(outfile, level, pretty_print)2594        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))2595        already_processed = set()2596        self.exportAttributes(outfile, level, already_processed, namespace_, name_='simplesequenceref')2597        if self.hasContent_():2598            outfile.write('>%s' % (eol_, ))2599            self.exportChildren(outfile, level + 1, namespace_='', name_='simplesequenceref', pretty_print=pretty_print)2600            showIndent(outfile, level, pretty_print)2601            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))2602        else:2603            outfile.write('/>%s' % (eol_, ))2604    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='simplesequenceref'):2605        if self.refid is not None and 'refid' not in already_processed:2606            already_processed.add('refid')2607            outfile.write(' refid=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.refid), input_name='refid')), ))2608    def exportChildren(self, outfile, level, namespace_='', name_='simplesequenceref', fromsubclass_=False, pretty_print=True):2609        if pretty_print:2610            eol_ = '\n'2611        else:2612            eol_ = ''2613        if self.values is not None:2614            self.values.export(outfile, level, namespace_, name_='values', pretty_print=pretty_print)2615    def build(self, node):2616        already_processed = set()2617        self.buildAttributes(node, node.attrib, already_processed)2618        for child in node:2619            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]2620            self.buildChildren(child, node, nodeName_)2621        return self2622    def buildAttributes(self, node, attrs, already_processed):2623        value = find_attr_value_('refid', node)2624        if value is not None and 'refid' not in already_processed:2625            already_processed.add('refid')2626            self.refid = value2627    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):2628        if nodeName_ == 'values':2629            obj_ = values.factory()2630            obj_.build(child_)2631            self.values = obj_2632            obj_.original_tagname_ = 'values'2633# end class simplesequenceref2634class structref(GeneratedsSuper):2635    subclass = None2636    superclass = None2637    def __init__(self, refid=None, simpleref=None, simplesequenceref=None):2638        self.original_tagname_ = None2639        self.refid = _cast(None, refid)2640        if simpleref is None:2641            self.simpleref = []2642        else:2643            self.simpleref = simpleref2644        if simplesequenceref is None:2645            self.simplesequenceref = []2646        else:2647            self.simplesequenceref = simplesequenceref2648    def factory(*args_, **kwargs_):2649        if CurrentSubclassModule_ is not None:2650            subclass = getSubclassFromModule_(2651                CurrentSubclassModule_, structref)2652            if subclass is not None:2653                return subclass(*args_, **kwargs_)2654        if structref.subclass:2655            return structref.subclass(*args_, **kwargs_)2656        else:2657            return structref(*args_, **kwargs_)2658    factory = staticmethod(factory)2659    def get_simpleref(self): return self.simpleref2660    def set_simpleref(self, simpleref): self.simpleref = simpleref2661    def add_simpleref(self, value): self.simpleref.append(value)2662    def insert_simpleref_at(self, index, value): self.simpleref.insert(index, value)2663    def replace_simpleref_at(self, index, value): self.simpleref[index] = value2664    simplerefProp = property(get_simpleref, set_simpleref)2665    def get_simplesequenceref(self): return self.simplesequenceref2666    def set_simplesequenceref(self, simplesequenceref): self.simplesequenceref = simplesequenceref2667    def add_simplesequenceref(self, value): self.simplesequenceref.append(value)2668    def insert_simplesequenceref_at(self, index, value): self.simplesequenceref.insert(index, value)2669    def replace_simplesequenceref_at(self, index, value): self.simplesequenceref[index] = value2670    simplesequencerefProp = property(get_simplesequenceref, set_simplesequenceref)2671    def get_refid(self): return self.refid2672    def set_refid(self, refid): self.refid = refid2673    refidProp = property(get_refid, set_refid)2674    def hasContent_(self):2675        if (2676            self.simpleref or2677            self.simplesequenceref2678        ):2679            return True2680        else:2681            return False2682    def export(self, outfile, level, namespace_='', name_='structref', namespacedef_='', pretty_print=True):2683        imported_ns_def_ = GenerateDSNamespaceDefs_.get('structref')2684        if imported_ns_def_ is not None:2685            namespacedef_ = imported_ns_def_2686        if pretty_print:2687            eol_ = '\n'2688        else:2689            eol_ = ''2690        if self.original_tagname_ is not None:2691            name_ = self.original_tagname_2692        showIndent(outfile, level, pretty_print)2693        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))2694        already_processed = set()2695        self.exportAttributes(outfile, level, already_processed, namespace_, name_='structref')2696        if self.hasContent_():2697            outfile.write('>%s' % (eol_, ))2698            self.exportChildren(outfile, level + 1, namespace_='', name_='structref', pretty_print=pretty_print)2699            showIndent(outfile, level, pretty_print)2700            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))2701        else:2702            outfile.write('/>%s' % (eol_, ))2703    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='structref'):2704        if self.refid is not None and 'refid' not in already_processed:2705            already_processed.add('refid')2706            outfile.write(' refid=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.refid), input_name='refid')), ))2707    def exportChildren(self, outfile, level, namespace_='', name_='structref', fromsubclass_=False, pretty_print=True):2708        if pretty_print:2709            eol_ = '\n'2710        else:2711            eol_ = ''2712        for simpleref_ in self.simpleref:2713            simpleref_.export(outfile, level, namespace_, name_='simpleref', pretty_print=pretty_print)2714        for simplesequenceref_ in self.simplesequenceref:2715            simplesequenceref_.export(outfile, level, namespace_, name_='simplesequenceref', pretty_print=pretty_print)2716    def build(self, node):2717        already_processed = set()2718        self.buildAttributes(node, node.attrib, already_processed)2719        for child in node:2720            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]2721            self.buildChildren(child, node, nodeName_)2722        return self2723    def buildAttributes(self, node, attrs, already_processed):2724        value = find_attr_value_('refid', node)2725        if value is not None and 'refid' not in already_processed:2726            already_processed.add('refid')2727            self.refid = value2728    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):2729        if nodeName_ == 'simpleref':2730            obj_ = simpleref.factory()2731            obj_.build(child_)2732            self.simpleref.append(obj_)2733            obj_.original_tagname_ = 'simpleref'2734        elif nodeName_ == 'simplesequenceref':2735            obj_ = simplesequenceref.factory()2736            obj_.build(child_)2737            self.simplesequenceref.append(obj_)2738            obj_.original_tagname_ = 'simplesequenceref'2739# end class structref2740class structsequenceref(GeneratedsSuper):2741    subclass = None2742    superclass = None2743    def __init__(self, refid=None, structvalue=None):2744        self.original_tagname_ = None2745        self.refid = _cast(None, refid)2746        if structvalue is None:2747            self.structvalue = []2748        else:2749            self.structvalue = structvalue2750    def factory(*args_, **kwargs_):2751        if CurrentSubclassModule_ is not None:2752            subclass = getSubclassFromModule_(2753                CurrentSubclassModule_, structsequenceref)2754            if subclass is not None:2755                return subclass(*args_, **kwargs_)2756        if structsequenceref.subclass:2757            return structsequenceref.subclass(*args_, **kwargs_)2758        else:2759            return structsequenceref(*args_, **kwargs_)2760    factory = staticmethod(factory)2761    def get_structvalue(self): return self.structvalue2762    def set_structvalue(self, structvalue): self.structvalue = structvalue2763    def add_structvalue(self, value): self.structvalue.append(value)2764    def insert_structvalue_at(self, index, value): self.structvalue.insert(index, value)2765    def replace_structvalue_at(self, index, value): self.structvalue[index] = value2766    structvalueProp = property(get_structvalue, set_structvalue)2767    def get_refid(self): return self.refid2768    def set_refid(self, refid): self.refid = refid2769    refidProp = property(get_refid, set_refid)2770    def hasContent_(self):2771        if (2772            self.structvalue2773        ):2774            return True2775        else:2776            return False2777    def export(self, outfile, level, namespace_='', name_='structsequenceref', namespacedef_='', pretty_print=True):2778        imported_ns_def_ = GenerateDSNamespaceDefs_.get('structsequenceref')2779        if imported_ns_def_ is not None:2780            namespacedef_ = imported_ns_def_2781        if pretty_print:2782            eol_ = '\n'2783        else:2784            eol_ = ''2785        if self.original_tagname_ is not None:2786            name_ = self.original_tagname_2787        showIndent(outfile, level, pretty_print)2788        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))2789        already_processed = set()2790        self.exportAttributes(outfile, level, already_processed, namespace_, name_='structsequenceref')2791        if self.hasContent_():2792            outfile.write('>%s' % (eol_, ))2793            self.exportChildren(outfile, level + 1, namespace_='', name_='structsequenceref', pretty_print=pretty_print)2794            showIndent(outfile, level, pretty_print)2795            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))2796        else:2797            outfile.write('/>%s' % (eol_, ))2798    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='structsequenceref'):2799        if self.refid is not None and 'refid' not in already_processed:2800            already_processed.add('refid')2801            outfile.write(' refid=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.refid), input_name='refid')), ))2802    def exportChildren(self, outfile, level, namespace_='', name_='structsequenceref', fromsubclass_=False, pretty_print=True):2803        if pretty_print:2804            eol_ = '\n'2805        else:2806            eol_ = ''2807        for structvalue_ in self.structvalue:2808            structvalue_.export(outfile, level, namespace_, name_='structvalue', pretty_print=pretty_print)2809    def build(self, node):2810        already_processed = set()2811        self.buildAttributes(node, node.attrib, already_processed)2812        for child in node:2813            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]2814            self.buildChildren(child, node, nodeName_)2815        return self2816    def buildAttributes(self, node, attrs, already_processed):2817        value = find_attr_value_('refid', node)2818        if value is not None and 'refid' not in already_processed:2819            already_processed.add('refid')2820            self.refid = value2821    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):2822        if nodeName_ == 'structvalue':2823            obj_ = structvalue.factory()2824            obj_.build(child_)2825            self.structvalue.append(obj_)2826            obj_.original_tagname_ = 'structvalue'2827# end class structsequenceref2828class structvalue(GeneratedsSuper):2829    subclass = None2830    superclass = None2831    def __init__(self, simpleref=None, simplesequenceref=None):2832        self.original_tagname_ = None2833        if simpleref is None:2834            self.simpleref = []2835        else:2836            self.simpleref = simpleref2837        if simplesequenceref is None:2838            self.simplesequenceref = []2839        else:2840            self.simplesequenceref = simplesequenceref2841    def factory(*args_, **kwargs_):2842        if CurrentSubclassModule_ is not None:2843            subclass = getSubclassFromModule_(2844                CurrentSubclassModule_, structvalue)2845            if subclass is not None:2846                return subclass(*args_, **kwargs_)2847        if structvalue.subclass:2848            return structvalue.subclass(*args_, **kwargs_)2849        else:2850            return structvalue(*args_, **kwargs_)2851    factory = staticmethod(factory)2852    def get_simpleref(self): return self.simpleref2853    def set_simpleref(self, simpleref): self.simpleref = simpleref2854    def add_simpleref(self, value): self.simpleref.append(value)2855    def insert_simpleref_at(self, index, value): self.simpleref.insert(index, value)2856    def replace_simpleref_at(self, index, value): self.simpleref[index] = value2857    simplerefProp = property(get_simpleref, set_simpleref)2858    def get_simplesequenceref(self): return self.simplesequenceref2859    def set_simplesequenceref(self, simplesequenceref): self.simplesequenceref = simplesequenceref2860    def add_simplesequenceref(self, value): self.simplesequenceref.append(value)2861    def insert_simplesequenceref_at(self, index, value): self.simplesequenceref.insert(index, value)2862    def replace_simplesequenceref_at(self, index, value): self.simplesequenceref[index] = value2863    simplesequencerefProp = property(get_simplesequenceref, set_simplesequenceref)2864    def hasContent_(self):2865        if (2866            self.simpleref or2867            self.simplesequenceref2868        ):2869            return True2870        else:2871            return False2872    def export(self, outfile, level, namespace_='', name_='structvalue', namespacedef_='', pretty_print=True):2873        imported_ns_def_ = GenerateDSNamespaceDefs_.get('structvalue')2874        if imported_ns_def_ is not None:2875            namespacedef_ = imported_ns_def_2876        if pretty_print:2877            eol_ = '\n'2878        else:2879            eol_ = ''2880        if self.original_tagname_ is not None:2881            name_ = self.original_tagname_2882        showIndent(outfile, level, pretty_print)2883        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))2884        already_processed = set()2885        self.exportAttributes(outfile, level, already_processed, namespace_, name_='structvalue')2886        if self.hasContent_():2887            outfile.write('>%s' % (eol_, ))2888            self.exportChildren(outfile, level + 1, namespace_='', name_='structvalue', pretty_print=pretty_print)2889            showIndent(outfile, level, pretty_print)2890            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))2891        else:2892            outfile.write('/>%s' % (eol_, ))2893    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='structvalue'):2894        pass2895    def exportChildren(self, outfile, level, namespace_='', name_='structvalue', fromsubclass_=False, pretty_print=True):2896        if pretty_print:2897            eol_ = '\n'2898        else:2899            eol_ = ''2900        for simpleref_ in self.simpleref:2901            simpleref_.export(outfile, level, namespace_, name_='simpleref', pretty_print=pretty_print)2902        for simplesequenceref_ in self.simplesequenceref:2903            simplesequenceref_.export(outfile, level, namespace_, name_='simplesequenceref', pretty_print=pretty_print)2904    def build(self, node):2905        already_processed = set()2906        self.buildAttributes(node, node.attrib, already_processed)2907        for child in node:2908            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]2909            self.buildChildren(child, node, nodeName_)2910        return self2911    def buildAttributes(self, node, attrs, already_processed):2912        pass2913    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):2914        if nodeName_ == 'simpleref':2915            obj_ = simpleref.factory()2916            obj_.build(child_)2917            self.simpleref.append(obj_)2918            obj_.original_tagname_ = 'simpleref'2919        elif nodeName_ == 'simplesequenceref':2920            obj_ = simplesequenceref.factory()2921            obj_.build(child_)2922            self.simplesequenceref.append(obj_)2923            obj_.original_tagname_ = 'simplesequenceref'2924# end class structvalue2925class values(GeneratedsSuper):2926    subclass = None2927    superclass = None2928    def __init__(self, value=None):2929        self.original_tagname_ = None2930        if value is None:2931            self.value = []2932        else:2933            self.value = value2934    def factory(*args_, **kwargs_):2935        if CurrentSubclassModule_ is not None:2936            subclass = getSubclassFromModule_(2937                CurrentSubclassModule_, values)2938            if subclass is not None:2939                return subclass(*args_, **kwargs_)2940        if values.subclass:2941            return values.subclass(*args_, **kwargs_)2942        else:2943            return values(*args_, **kwargs_)2944    factory = staticmethod(factory)2945    def get_value(self): return self.value2946    def set_value(self, value): self.value = value2947    def add_value(self, value): self.value.append(value)2948    def insert_value_at(self, index, value): self.value.insert(index, value)2949    def replace_value_at(self, index, value): self.value[index] = value2950    valueProp = property(get_value, set_value)2951    def hasContent_(self):2952        if (2953            self.value2954        ):2955            return True2956        else:2957            return False2958    def export(self, outfile, level, namespace_='', name_='values', namespacedef_='', pretty_print=True):2959        imported_ns_def_ = GenerateDSNamespaceDefs_.get('values')2960        if imported_ns_def_ is not None:2961            namespacedef_ = imported_ns_def_2962        if pretty_print:2963            eol_ = '\n'2964        else:2965            eol_ = ''2966        if self.original_tagname_ is not None:2967            name_ = self.original_tagname_2968        showIndent(outfile, level, pretty_print)2969        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))2970        already_processed = set()2971        self.exportAttributes(outfile, level, already_processed, namespace_, name_='values')2972        if self.hasContent_():2973            outfile.write('>%s' % (eol_, ))2974            self.exportChildren(outfile, level + 1, namespace_='', name_='values', pretty_print=pretty_print)2975            showIndent(outfile, level, pretty_print)2976            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))2977        else:2978            outfile.write('/>%s' % (eol_, ))2979    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='values'):2980        pass2981    def exportChildren(self, outfile, level, namespace_='', name_='values', fromsubclass_=False, pretty_print=True):2982        if pretty_print:2983            eol_ = '\n'2984        else:2985            eol_ = ''2986        for value_ in self.value:2987            showIndent(outfile, level, pretty_print)2988            outfile.write('<value>%s</value>%s' % (self.gds_encode(self.gds_format_string(quote_xml(value_), input_name='value')), eol_))2989    def build(self, node):2990        already_processed = set()2991        self.buildAttributes(node, node.attrib, already_processed)2992        for child in node:2993            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]2994            self.buildChildren(child, node, nodeName_)2995        return self2996    def buildAttributes(self, node, attrs, already_processed):2997        pass2998    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):2999        if nodeName_ == 'value':3000            value_ = child_.text3001            value_ = self.gds_validate_string(value_, node, 'value')3002            self.value.append(value_)3003# end class values3004class componentinstantiationref(GeneratedsSuper):3005    subclass = None3006    superclass = None3007    def __init__(self, refid=None):3008        self.original_tagname_ = None3009        self.refid = _cast(None, refid)3010    def factory(*args_, **kwargs_):3011        if CurrentSubclassModule_ is not None:3012            subclass = getSubclassFromModule_(3013                CurrentSubclassModule_, componentinstantiationref)3014            if subclass is not None:3015                return subclass(*args_, **kwargs_)3016        if componentinstantiationref.subclass:3017            return componentinstantiationref.subclass(*args_, **kwargs_)3018        else:3019            return componentinstantiationref(*args_, **kwargs_)3020    factory = staticmethod(factory)3021    def get_refid(self): return self.refid3022    def set_refid(self, refid): self.refid = refid3023    refidProp = property(get_refid, set_refid)3024    def hasContent_(self):3025        if (3026        ):3027            return True3028        else:3029            return False3030    def export(self, outfile, level, namespace_='', name_='componentinstantiationref', namespacedef_='', pretty_print=True):3031        imported_ns_def_ = GenerateDSNamespaceDefs_.get('componentinstantiationref')3032        if imported_ns_def_ is not None:3033            namespacedef_ = imported_ns_def_3034        if pretty_print:3035            eol_ = '\n'3036        else:3037            eol_ = ''3038        if self.original_tagname_ is not None:3039            name_ = self.original_tagname_3040        showIndent(outfile, level, pretty_print)3041        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))3042        already_processed = set()3043        self.exportAttributes(outfile, level, already_processed, namespace_, name_='componentinstantiationref')3044        if self.hasContent_():3045            outfile.write('>%s' % (eol_, ))3046            self.exportChildren(outfile, level + 1, namespace_='', name_='componentinstantiationref', pretty_print=pretty_print)3047            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))3048        else:3049            outfile.write('/>%s' % (eol_, ))3050    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='componentinstantiationref'):3051        if self.refid is not None and 'refid' not in already_processed:3052            already_processed.add('refid')3053            outfile.write(' refid=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.refid), input_name='refid')), ))3054    def exportChildren(self, outfile, level, namespace_='', name_='componentinstantiationref', fromsubclass_=False, pretty_print=True):3055        pass3056    def build(self, node):3057        already_processed = set()3058        self.buildAttributes(node, node.attrib, already_processed)3059        for child in node:3060            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]3061            self.buildChildren(child, node, nodeName_)3062        return self3063    def buildAttributes(self, node, attrs, already_processed):3064        value = find_attr_value_('refid', node)3065        if value is not None and 'refid' not in already_processed:3066            already_processed.add('refid')3067            self.refid = value3068    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):3069        pass3070# end class componentinstantiationref3071class domainmanager(GeneratedsSuper):3072    """The domainmanager element (see Figure D-37) indicates how to obtain3073    the CF DomainManager object reference."""3074    subclass = None3075    superclass = None3076    def __init__(self, namingservice=None, stringifiedobjectref=None):3077        self.original_tagname_ = None3078        self.namingservice = namingservice3079        self.stringifiedobjectref = stringifiedobjectref3080    def factory(*args_, **kwargs_):3081        if CurrentSubclassModule_ is not None:3082            subclass = getSubclassFromModule_(3083                CurrentSubclassModule_, domainmanager)3084            if subclass is not None:3085                return subclass(*args_, **kwargs_)3086        if domainmanager.subclass:3087            return domainmanager.subclass(*args_, **kwargs_)3088        else:3089            return domainmanager(*args_, **kwargs_)3090    factory = staticmethod(factory)3091    def get_namingservice(self): return self.namingservice3092    def set_namingservice(self, namingservice): self.namingservice = namingservice3093    namingserviceProp = property(get_namingservice, set_namingservice)3094    def get_stringifiedobjectref(self): return self.stringifiedobjectref3095    def set_stringifiedobjectref(self, stringifiedobjectref): self.stringifiedobjectref = stringifiedobjectref3096    stringifiedobjectrefProp = property(get_stringifiedobjectref, set_stringifiedobjectref)3097    def hasContent_(self):3098        if (3099            self.namingservice is not None or3100            self.stringifiedobjectref is not None3101        ):3102            return True3103        else:3104            return False3105    def export(self, outfile, level, namespace_='', name_='domainmanager', namespacedef_='', pretty_print=True):3106        imported_ns_def_ = GenerateDSNamespaceDefs_.get('domainmanager')3107        if imported_ns_def_ is not None:3108            namespacedef_ = imported_ns_def_3109        if pretty_print:3110            eol_ = '\n'3111        else:3112            eol_ = ''3113        if self.original_tagname_ is not None:3114            name_ = self.original_tagname_3115        showIndent(outfile, level, pretty_print)3116        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))3117        already_processed = set()3118        self.exportAttributes(outfile, level, already_processed, namespace_, name_='domainmanager')3119        if self.hasContent_():3120            outfile.write('>%s' % (eol_, ))3121            self.exportChildren(outfile, level + 1, namespace_='', name_='domainmanager', pretty_print=pretty_print)3122            showIndent(outfile, level, pretty_print)3123            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))3124        else:3125            outfile.write('/>%s' % (eol_, ))3126    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='domainmanager'):3127        pass3128    def exportChildren(self, outfile, level, namespace_='', name_='domainmanager', fromsubclass_=False, pretty_print=True):3129        if pretty_print:3130            eol_ = '\n'3131        else:3132            eol_ = ''3133        if self.namingservice is not None:3134            self.namingservice.export(outfile, level, namespace_, name_='namingservice', pretty_print=pretty_print)3135        if self.stringifiedobjectref is not None:3136            showIndent(outfile, level, pretty_print)3137            outfile.write('<stringifiedobjectref>%s</stringifiedobjectref>%s' % (self.gds_encode(self.gds_format_string(quote_xml(self.stringifiedobjectref), input_name='stringifiedobjectref')), eol_))3138    def build(self, node):3139        already_processed = set()3140        self.buildAttributes(node, node.attrib, already_processed)3141        for child in node:3142            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]3143            self.buildChildren(child, node, nodeName_)3144        return self3145    def buildAttributes(self, node, attrs, already_processed):3146        pass3147    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):3148        if nodeName_ == 'namingservice':3149            obj_ = namingservice.factory()3150            obj_.build(child_)3151            self.namingservice = obj_3152            obj_.original_tagname_ = 'namingservice'3153        elif nodeName_ == 'stringifiedobjectref':3154            stringifiedobjectref_ = child_.text3155            stringifiedobjectref_ = self.gds_validate_string(stringifiedobjectref_, node, 'stringifiedobjectref')3156            self.stringifiedobjectref = stringifiedobjectref_3157# end class domainmanager3158class findby(GeneratedsSuper):3159    subclass = None3160    superclass = None3161    def __init__(self, namingservice=None, stringifiedobjectref=None, domainfinder=None):3162        self.original_tagname_ = None3163        self.namingservice = namingservice3164        self.stringifiedobjectref = stringifiedobjectref3165        self.domainfinder = domainfinder3166    def factory(*args_, **kwargs_):3167        if CurrentSubclassModule_ is not None:3168            subclass = getSubclassFromModule_(3169                CurrentSubclassModule_, findby)3170            if subclass is not None:3171                return subclass(*args_, **kwargs_)3172        if findby.subclass:3173            return findby.subclass(*args_, **kwargs_)3174        else:3175            return findby(*args_, **kwargs_)3176    factory = staticmethod(factory)3177    def get_namingservice(self): return self.namingservice3178    def set_namingservice(self, namingservice): self.namingservice = namingservice3179    namingserviceProp = property(get_namingservice, set_namingservice)3180    def get_stringifiedobjectref(self): return self.stringifiedobjectref3181    def set_stringifiedobjectref(self, stringifiedobjectref): self.stringifiedobjectref = stringifiedobjectref3182    stringifiedobjectrefProp = property(get_stringifiedobjectref, set_stringifiedobjectref)3183    def get_domainfinder(self): return self.domainfinder3184    def set_domainfinder(self, domainfinder): self.domainfinder = domainfinder3185    domainfinderProp = property(get_domainfinder, set_domainfinder)3186    def hasContent_(self):3187        if (3188            self.namingservice is not None or3189            self.stringifiedobjectref is not None or3190            self.domainfinder is not None3191        ):3192            return True3193        else:3194            return False3195    def export(self, outfile, level, namespace_='', name_='findby', namespacedef_='', pretty_print=True):3196        imported_ns_def_ = GenerateDSNamespaceDefs_.get('findby')3197        if imported_ns_def_ is not None:3198            namespacedef_ = imported_ns_def_3199        if pretty_print:3200            eol_ = '\n'3201        else:3202            eol_ = ''3203        if self.original_tagname_ is not None:3204            name_ = self.original_tagname_3205        showIndent(outfile, level, pretty_print)3206        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))3207        already_processed = set()3208        self.exportAttributes(outfile, level, already_processed, namespace_, name_='findby')3209        if self.hasContent_():3210            outfile.write('>%s' % (eol_, ))3211            self.exportChildren(outfile, level + 1, namespace_='', name_='findby', pretty_print=pretty_print)3212            showIndent(outfile, level, pretty_print)3213            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))3214        else:3215            outfile.write('/>%s' % (eol_, ))3216    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='findby'):3217        pass3218    def exportChildren(self, outfile, level, namespace_='', name_='findby', fromsubclass_=False, pretty_print=True):3219        if pretty_print:3220            eol_ = '\n'3221        else:3222            eol_ = ''3223        if self.namingservice is not None:3224            self.namingservice.export(outfile, level, namespace_, name_='namingservice', pretty_print=pretty_print)3225        if self.stringifiedobjectref is not None:3226            showIndent(outfile, level, pretty_print)3227            outfile.write('<stringifiedobjectref>%s</stringifiedobjectref>%s' % (self.gds_encode(self.gds_format_string(quote_xml(self.stringifiedobjectref), input_name='stringifiedobjectref')), eol_))3228        if self.domainfinder is not None:3229            self.domainfinder.export(outfile, level, namespace_, name_='domainfinder', pretty_print=pretty_print)3230    def build(self, node):3231        already_processed = set()3232        self.buildAttributes(node, node.attrib, already_processed)3233        for child in node:3234            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]3235            self.buildChildren(child, node, nodeName_)3236        return self3237    def buildAttributes(self, node, attrs, already_processed):3238        pass3239    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):3240        if nodeName_ == 'namingservice':3241            obj_ = namingservice.factory()3242            obj_.build(child_)3243            self.namingservice = obj_3244            obj_.original_tagname_ = 'namingservice'3245        elif nodeName_ == 'stringifiedobjectref':3246            stringifiedobjectref_ = child_.text3247            stringifiedobjectref_ = self.gds_validate_string(stringifiedobjectref_, node, 'stringifiedobjectref')3248            self.stringifiedobjectref = stringifiedobjectref_3249        elif nodeName_ == 'domainfinder':3250            obj_ = domainfinder.factory()3251            obj_.build(child_)3252            self.domainfinder = obj_3253            obj_.original_tagname_ = 'domainfinder'3254# end class findby3255class namingservice(GeneratedsSuper):3256    subclass = None3257    superclass = None3258    def __init__(self, name=None):3259        self.original_tagname_ = None3260        self.name = _cast(None, name)3261    def factory(*args_, **kwargs_):3262        if CurrentSubclassModule_ is not None:3263            subclass = getSubclassFromModule_(3264                CurrentSubclassModule_, namingservice)3265            if subclass is not None:3266                return subclass(*args_, **kwargs_)3267        if namingservice.subclass:3268            return namingservice.subclass(*args_, **kwargs_)3269        else:3270            return namingservice(*args_, **kwargs_)3271    factory = staticmethod(factory)3272    def get_name(self): return self.name3273    def set_name(self, name): self.name = name3274    nameProp = property(get_name, set_name)3275    def hasContent_(self):3276        if (3277        ):3278            return True3279        else:3280            return False3281    def export(self, outfile, level, namespace_='', name_='namingservice', namespacedef_='', pretty_print=True):3282        imported_ns_def_ = GenerateDSNamespaceDefs_.get('namingservice')3283        if imported_ns_def_ is not None:3284            namespacedef_ = imported_ns_def_3285        if pretty_print:3286            eol_ = '\n'3287        else:3288            eol_ = ''3289        if self.original_tagname_ is not None:3290            name_ = self.original_tagname_3291        showIndent(outfile, level, pretty_print)3292        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))3293        already_processed = set()3294        self.exportAttributes(outfile, level, already_processed, namespace_, name_='namingservice')3295        if self.hasContent_():3296            outfile.write('>%s' % (eol_, ))3297            self.exportChildren(outfile, level + 1, namespace_='', name_='namingservice', pretty_print=pretty_print)3298            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))3299        else:3300            outfile.write('/>%s' % (eol_, ))3301    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='namingservice'):3302        if self.name is not None and 'name' not in already_processed:3303            already_processed.add('name')3304            outfile.write(' name=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.name), input_name='name')), ))3305    def exportChildren(self, outfile, level, namespace_='', name_='namingservice', fromsubclass_=False, pretty_print=True):3306        pass3307    def build(self, node):3308        already_processed = set()3309        self.buildAttributes(node, node.attrib, already_processed)3310        for child in node:3311            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]3312            self.buildChildren(child, node, nodeName_)3313        return self3314    def buildAttributes(self, node, attrs, already_processed):3315        value = find_attr_value_('name', node)3316        if value is not None and 'name' not in already_processed:3317            already_processed.add('name')3318            self.name = value3319    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):3320        pass3321# end class namingservice3322class domainfinder(GeneratedsSuper):3323    subclass = None3324    superclass = None3325    def __init__(self, type_=None, name=None):3326        self.original_tagname_ = None3327        self.type_ = _cast(None, type_)3328        self.name = _cast(None, name)3329    def factory(*args_, **kwargs_):3330        if CurrentSubclassModule_ is not None:3331            subclass = getSubclassFromModule_(3332                CurrentSubclassModule_, domainfinder)3333            if subclass is not None:3334                return subclass(*args_, **kwargs_)3335        if domainfinder.subclass:3336            return domainfinder.subclass(*args_, **kwargs_)3337        else:3338            return domainfinder(*args_, **kwargs_)3339    factory = staticmethod(factory)3340    def get_type(self): return self.type_3341    def set_type(self, type_): self.type_ = type_3342    typeProp = property(get_type, set_type)3343    def get_name(self): return self.name3344    def set_name(self, name): self.name = name3345    nameProp = property(get_name, set_name)3346    def hasContent_(self):3347        if (3348        ):3349            return True3350        else:3351            return False3352    def export(self, outfile, level, namespace_='', name_='domainfinder', namespacedef_='', pretty_print=True):3353        imported_ns_def_ = GenerateDSNamespaceDefs_.get('domainfinder')3354        if imported_ns_def_ is not None:3355            namespacedef_ = imported_ns_def_3356        if pretty_print:3357            eol_ = '\n'3358        else:3359            eol_ = ''3360        if self.original_tagname_ is not None:3361            name_ = self.original_tagname_3362        showIndent(outfile, level, pretty_print)3363        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))3364        already_processed = set()3365        self.exportAttributes(outfile, level, already_processed, namespace_, name_='domainfinder')3366        if self.hasContent_():3367            outfile.write('>%s' % (eol_, ))3368            self.exportChildren(outfile, level + 1, namespace_='', name_='domainfinder', pretty_print=pretty_print)3369            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))3370        else:3371            outfile.write('/>%s' % (eol_, ))3372    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='domainfinder'):3373        if self.type_ is not None and 'type_' not in already_processed:3374            already_processed.add('type_')3375            outfile.write(' type=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.type_), input_name='type')), ))3376        if self.name is not None and 'name' not in already_processed:3377            already_processed.add('name')3378            outfile.write(' name=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.name), input_name='name')), ))3379    def exportChildren(self, outfile, level, namespace_='', name_='domainfinder', fromsubclass_=False, pretty_print=True):3380        pass3381    def build(self, node):3382        already_processed = set()3383        self.buildAttributes(node, node.attrib, already_processed)3384        for child in node:3385            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]3386            self.buildChildren(child, node, nodeName_)3387        return self3388    def buildAttributes(self, node, attrs, already_processed):3389        value = find_attr_value_('type', node)3390        if value is not None and 'type' not in already_processed:3391            already_processed.add('type')3392            self.type_ = value3393        value = find_attr_value_('name', node)3394        if value is not None and 'name' not in already_processed:3395            already_processed.add('name')3396            self.name = value3397    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):3398        pass3399# end class domainfinder3400class filesystemnames(GeneratedsSuper):3401    """The optional filesystemnames element indicates the mounted file3402    system names for CF DeviceManagerâs FileManager."""3403    subclass = None3404    superclass = None3405    def __init__(self, filesystemname=None):3406        self.original_tagname_ = None3407        if filesystemname is None:3408            self.filesystemname = []3409        else:3410            self.filesystemname = filesystemname3411    def factory(*args_, **kwargs_):3412        if CurrentSubclassModule_ is not None:3413            subclass = getSubclassFromModule_(3414                CurrentSubclassModule_, filesystemnames)3415            if subclass is not None:3416                return subclass(*args_, **kwargs_)3417        if filesystemnames.subclass:3418            return filesystemnames.subclass(*args_, **kwargs_)3419        else:3420            return filesystemnames(*args_, **kwargs_)3421    factory = staticmethod(factory)3422    def get_filesystemname(self): return self.filesystemname3423    def set_filesystemname(self, filesystemname): self.filesystemname = filesystemname3424    def add_filesystemname(self, value): self.filesystemname.append(value)3425    def insert_filesystemname_at(self, index, value): self.filesystemname.insert(index, value)3426    def replace_filesystemname_at(self, index, value): self.filesystemname[index] = value3427    filesystemnameProp = property(get_filesystemname, set_filesystemname)3428    def hasContent_(self):3429        if (3430            self.filesystemname3431        ):3432            return True3433        else:3434            return False3435    def export(self, outfile, level, namespace_='', name_='filesystemnames', namespacedef_='', pretty_print=True):3436        imported_ns_def_ = GenerateDSNamespaceDefs_.get('filesystemnames')3437        if imported_ns_def_ is not None:3438            namespacedef_ = imported_ns_def_3439        if pretty_print:3440            eol_ = '\n'3441        else:3442            eol_ = ''3443        if self.original_tagname_ is not None:3444            name_ = self.original_tagname_3445        showIndent(outfile, level, pretty_print)3446        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))3447        already_processed = set()3448        self.exportAttributes(outfile, level, already_processed, namespace_, name_='filesystemnames')3449        if self.hasContent_():3450            outfile.write('>%s' % (eol_, ))3451            self.exportChildren(outfile, level + 1, namespace_='', name_='filesystemnames', pretty_print=pretty_print)3452            showIndent(outfile, level, pretty_print)3453            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))3454        else:3455            outfile.write('/>%s' % (eol_, ))3456    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='filesystemnames'):3457        pass3458    def exportChildren(self, outfile, level, namespace_='', name_='filesystemnames', fromsubclass_=False, pretty_print=True):3459        if pretty_print:3460            eol_ = '\n'3461        else:3462            eol_ = ''3463        for filesystemname_ in self.filesystemname:3464            filesystemname_.export(outfile, level, namespace_, name_='filesystemname', pretty_print=pretty_print)3465    def build(self, node):3466        already_processed = set()3467        self.buildAttributes(node, node.attrib, already_processed)3468        for child in node:3469            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]3470            self.buildChildren(child, node, nodeName_)3471        return self3472    def buildAttributes(self, node, attrs, already_processed):3473        pass3474    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):3475        if nodeName_ == 'filesystemname':3476            obj_ = filesystemname.factory()3477            obj_.build(child_)3478            self.filesystemname.append(obj_)3479            obj_.original_tagname_ = 'filesystemname'3480# end class filesystemnames3481class filesystemname(GeneratedsSuper):3482    subclass = None3483    superclass = None3484    def __init__(self, mountname=None, deviceid=None):3485        self.original_tagname_ = None3486        self.mountname = _cast(None, mountname)3487        self.deviceid = _cast(None, deviceid)3488    def factory(*args_, **kwargs_):3489        if CurrentSubclassModule_ is not None:3490            subclass = getSubclassFromModule_(3491                CurrentSubclassModule_, filesystemname)3492            if subclass is not None:3493                return subclass(*args_, **kwargs_)3494        if filesystemname.subclass:3495            return filesystemname.subclass(*args_, **kwargs_)3496        else:3497            return filesystemname(*args_, **kwargs_)3498    factory = staticmethod(factory)3499    def get_mountname(self): return self.mountname3500    def set_mountname(self, mountname): self.mountname = mountname3501    mountnameProp = property(get_mountname, set_mountname)3502    def get_deviceid(self): return self.deviceid3503    def set_deviceid(self, deviceid): self.deviceid = deviceid3504    deviceidProp = property(get_deviceid, set_deviceid)3505    def hasContent_(self):3506        if (3507        ):3508            return True3509        else:3510            return False3511    def export(self, outfile, level, namespace_='', name_='filesystemname', namespacedef_='', pretty_print=True):3512        imported_ns_def_ = GenerateDSNamespaceDefs_.get('filesystemname')3513        if imported_ns_def_ is not None:3514            namespacedef_ = imported_ns_def_3515        if pretty_print:3516            eol_ = '\n'3517        else:3518            eol_ = ''3519        if self.original_tagname_ is not None:3520            name_ = self.original_tagname_3521        showIndent(outfile, level, pretty_print)3522        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))3523        already_processed = set()3524        self.exportAttributes(outfile, level, already_processed, namespace_, name_='filesystemname')3525        if self.hasContent_():3526            outfile.write('>%s' % (eol_, ))3527            self.exportChildren(outfile, level + 1, namespace_='', name_='filesystemname', pretty_print=pretty_print)3528            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))3529        else:3530            outfile.write('/>%s' % (eol_, ))3531    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='filesystemname'):3532        if self.mountname is not None and 'mountname' not in already_processed:3533            already_processed.add('mountname')3534            outfile.write(' mountname=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.mountname), input_name='mountname')), ))3535        if self.deviceid is not None and 'deviceid' not in already_processed:3536            already_processed.add('deviceid')3537            outfile.write(' deviceid=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.deviceid), input_name='deviceid')), ))3538    def exportChildren(self, outfile, level, namespace_='', name_='filesystemname', fromsubclass_=False, pretty_print=True):3539        pass3540    def build(self, node):3541        already_processed = set()3542        self.buildAttributes(node, node.attrib, already_processed)3543        for child in node:3544            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]3545            self.buildChildren(child, node, nodeName_)3546        return self3547    def buildAttributes(self, node, attrs, already_processed):3548        value = find_attr_value_('mountname', node)3549        if value is not None and 'mountname' not in already_processed:3550            already_processed.add('mountname')3551            self.mountname = value3552        value = find_attr_value_('deviceid', node)3553        if value is not None and 'deviceid' not in already_processed:3554            already_processed.add('deviceid')3555            self.deviceid = value3556    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):3557        pass3558# end class filesystemname3559class connections(GeneratedsSuper):3560    """The connections element in the DCD is the same as the connections3561    element in the SAD in section D.6.5. The connections element in3562    the DCD is used to indicate the services (Log, etcâ¦) instances3563    that are used by the CF DeviceManager and CF Device components3564    in the DCD. The CF DomainManager will parse the connections3565    element and make the connections when the CF DeviceManager3566    registers with the CF DomainManager. To establish connections to3567    a CF DeviceManager, the DCDâs deviceconfiguration elementâs id3568    attribute value is used for the SADâs usesport elementâs3569    componentinstantiationref elementâs refid attribute value."""3570    subclass = None3571    superclass = None3572    def __init__(self, connectinterface=None):3573        self.original_tagname_ = None3574        if connectinterface is None:3575            self.connectinterface = []3576        else:3577            self.connectinterface = connectinterface3578    def factory(*args_, **kwargs_):3579        if CurrentSubclassModule_ is not None:3580            subclass = getSubclassFromModule_(3581                CurrentSubclassModule_, connections)3582            if subclass is not None:3583                return subclass(*args_, **kwargs_)3584        if connections.subclass:3585            return connections.subclass(*args_, **kwargs_)3586        else:3587            return connections(*args_, **kwargs_)3588    factory = staticmethod(factory)3589    def get_connectinterface(self): return self.connectinterface3590    def set_connectinterface(self, connectinterface): self.connectinterface = connectinterface3591    def add_connectinterface(self, value): self.connectinterface.append(value)3592    def insert_connectinterface_at(self, index, value): self.connectinterface.insert(index, value)3593    def replace_connectinterface_at(self, index, value): self.connectinterface[index] = value3594    connectinterfaceProp = property(get_connectinterface, set_connectinterface)3595    def hasContent_(self):3596        if (3597            self.connectinterface3598        ):3599            return True3600        else:3601            return False3602    def export(self, outfile, level, namespace_='', name_='connections', namespacedef_='', pretty_print=True):3603        imported_ns_def_ = GenerateDSNamespaceDefs_.get('connections')3604        if imported_ns_def_ is not None:3605            namespacedef_ = imported_ns_def_3606        if pretty_print:3607            eol_ = '\n'3608        else:3609            eol_ = ''3610        if self.original_tagname_ is not None:3611            name_ = self.original_tagname_3612        showIndent(outfile, level, pretty_print)3613        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))3614        already_processed = set()3615        self.exportAttributes(outfile, level, already_processed, namespace_, name_='connections')3616        if self.hasContent_():3617            outfile.write('>%s' % (eol_, ))3618            self.exportChildren(outfile, level + 1, namespace_='', name_='connections', pretty_print=pretty_print)3619            showIndent(outfile, level, pretty_print)3620            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))3621        else:3622            outfile.write('/>%s' % (eol_, ))3623    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='connections'):3624        pass3625    def exportChildren(self, outfile, level, namespace_='', name_='connections', fromsubclass_=False, pretty_print=True):3626        if pretty_print:3627            eol_ = '\n'3628        else:3629            eol_ = ''3630        for connectinterface_ in self.connectinterface:3631            connectinterface_.export(outfile, level, namespace_, name_='connectinterface', pretty_print=pretty_print)3632    def build(self, node):3633        already_processed = set()3634        self.buildAttributes(node, node.attrib, already_processed)3635        for child in node:3636            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]3637            self.buildChildren(child, node, nodeName_)3638        return self3639    def buildAttributes(self, node, attrs, already_processed):3640        pass3641    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):3642        if nodeName_ == 'connectinterface':3643            obj_ = connectinterface.factory()3644            obj_.build(child_)3645            self.connectinterface.append(obj_)3646            obj_.original_tagname_ = 'connectinterface'3647# end class connections3648class connectinterface(GeneratedsSuper):3649    subclass = None3650    superclass = None3651    def __init__(self, id_=None, usesport=None, providesport=None, componentsupportedinterface=None, findby=None):3652        self.original_tagname_ = None3653        self.id_ = _cast(None, id_)3654        self.usesport = usesport3655        self.providesport = providesport3656        self.componentsupportedinterface = componentsupportedinterface3657        self.findby = findby3658    def factory(*args_, **kwargs_):3659        if CurrentSubclassModule_ is not None:3660            subclass = getSubclassFromModule_(3661                CurrentSubclassModule_, connectinterface)3662            if subclass is not None:3663                return subclass(*args_, **kwargs_)3664        if connectinterface.subclass:3665            return connectinterface.subclass(*args_, **kwargs_)3666        else:3667            return connectinterface(*args_, **kwargs_)3668    factory = staticmethod(factory)3669    def get_usesport(self): return self.usesport3670    def set_usesport(self, usesport): self.usesport = usesport3671    usesportProp = property(get_usesport, set_usesport)3672    def get_providesport(self): return self.providesport3673    def set_providesport(self, providesport): self.providesport = providesport3674    providesportProp = property(get_providesport, set_providesport)3675    def get_componentsupportedinterface(self): return self.componentsupportedinterface3676    def set_componentsupportedinterface(self, componentsupportedinterface): self.componentsupportedinterface = componentsupportedinterface3677    componentsupportedinterfaceProp = property(get_componentsupportedinterface, set_componentsupportedinterface)3678    def get_findby(self): return self.findby3679    def set_findby(self, findby): self.findby = findby3680    findbyProp = property(get_findby, set_findby)3681    def get_id(self): return self.id_3682    def set_id(self, id_): self.id_ = id_3683    idProp = property(get_id, set_id)3684    def hasContent_(self):3685        if (3686            self.usesport is not None or3687            self.providesport is not None or3688            self.componentsupportedinterface is not None or3689            self.findby is not None3690        ):3691            return True3692        else:3693            return False3694    def export(self, outfile, level, namespace_='', name_='connectinterface', namespacedef_='', pretty_print=True):3695        imported_ns_def_ = GenerateDSNamespaceDefs_.get('connectinterface')3696        if imported_ns_def_ is not None:3697            namespacedef_ = imported_ns_def_3698        if pretty_print:3699            eol_ = '\n'3700        else:3701            eol_ = ''3702        if self.original_tagname_ is not None:3703            name_ = self.original_tagname_3704        showIndent(outfile, level, pretty_print)3705        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))3706        already_processed = set()3707        self.exportAttributes(outfile, level, already_processed, namespace_, name_='connectinterface')3708        if self.hasContent_():3709            outfile.write('>%s' % (eol_, ))3710            self.exportChildren(outfile, level + 1, namespace_='', name_='connectinterface', pretty_print=pretty_print)3711            showIndent(outfile, level, pretty_print)3712            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))3713        else:3714            outfile.write('/>%s' % (eol_, ))3715    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='connectinterface'):3716        if self.id_ is not None and 'id' not in already_processed:3717            already_processed.add('id')3718            outfile.write(' id=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.id_), input_name='id')), ))3719    def exportChildren(self, outfile, level, namespace_='', name_='connectinterface', fromsubclass_=False, pretty_print=True):3720        if pretty_print:3721            eol_ = '\n'3722        else:3723            eol_ = ''3724        if self.usesport is not None:3725            self.usesport.export(outfile, level, namespace_, name_='usesport', pretty_print=pretty_print)3726        if self.providesport is not None:3727            self.providesport.export(outfile, level, namespace_, name_='providesport', pretty_print=pretty_print)3728        if self.componentsupportedinterface is not None:3729            self.componentsupportedinterface.export(outfile, level, namespace_, name_='componentsupportedinterface', pretty_print=pretty_print)3730        if self.findby is not None:3731            self.findby.export(outfile, level, namespace_, name_='findby', pretty_print=pretty_print)3732    def build(self, node):3733        already_processed = set()3734        self.buildAttributes(node, node.attrib, already_processed)3735        for child in node:3736            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]3737            self.buildChildren(child, node, nodeName_)3738        return self3739    def buildAttributes(self, node, attrs, already_processed):3740        value = find_attr_value_('id', node)3741        if value is not None and 'id' not in already_processed:3742            already_processed.add('id')3743            self.id_ = value3744    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):3745        if nodeName_ == 'usesport':3746            obj_ = usesport.factory()3747            obj_.build(child_)3748            self.usesport = obj_3749            obj_.original_tagname_ = 'usesport'3750        elif nodeName_ == 'providesport':3751            obj_ = providesport.factory()3752            obj_.build(child_)3753            self.providesport = obj_3754            obj_.original_tagname_ = 'providesport'3755        elif nodeName_ == 'componentsupportedinterface':3756            obj_ = componentsupportedinterface.factory()3757            obj_.build(child_)3758            self.componentsupportedinterface = obj_3759            obj_.original_tagname_ = 'componentsupportedinterface'3760        elif nodeName_ == 'findby':3761            obj_ = findby.factory()3762            obj_.build(child_)3763            self.findby = obj_3764            obj_.original_tagname_ = 'findby'3765# end class connectinterface3766class usesport(GeneratedsSuper):3767    subclass = None3768    superclass = None3769    def __init__(self, usesidentifier=None, componentinstantiationref=None, devicethatloadedthiscomponentref=None, deviceusedbythiscomponentref=None, findby=None):3770        self.original_tagname_ = None3771        self.usesidentifier = usesidentifier3772        self.componentinstantiationref = componentinstantiationref3773        self.devicethatloadedthiscomponentref = devicethatloadedthiscomponentref3774        self.deviceusedbythiscomponentref = deviceusedbythiscomponentref3775        self.findby = findby3776    def factory(*args_, **kwargs_):3777        if CurrentSubclassModule_ is not None:3778            subclass = getSubclassFromModule_(3779                CurrentSubclassModule_, usesport)3780            if subclass is not None:3781                return subclass(*args_, **kwargs_)3782        if usesport.subclass:3783            return usesport.subclass(*args_, **kwargs_)3784        else:3785            return usesport(*args_, **kwargs_)3786    factory = staticmethod(factory)3787    def get_usesidentifier(self): return self.usesidentifier3788    def set_usesidentifier(self, usesidentifier): self.usesidentifier = usesidentifier3789    usesidentifierProp = property(get_usesidentifier, set_usesidentifier)3790    def get_componentinstantiationref(self): return self.componentinstantiationref3791    def set_componentinstantiationref(self, componentinstantiationref): self.componentinstantiationref = componentinstantiationref3792    componentinstantiationrefProp = property(get_componentinstantiationref, set_componentinstantiationref)3793    def get_devicethatloadedthiscomponentref(self): return self.devicethatloadedthiscomponentref3794    def set_devicethatloadedthiscomponentref(self, devicethatloadedthiscomponentref): self.devicethatloadedthiscomponentref = devicethatloadedthiscomponentref3795    devicethatloadedthiscomponentrefProp = property(get_devicethatloadedthiscomponentref, set_devicethatloadedthiscomponentref)3796    def get_deviceusedbythiscomponentref(self): return self.deviceusedbythiscomponentref3797    def set_deviceusedbythiscomponentref(self, deviceusedbythiscomponentref): self.deviceusedbythiscomponentref = deviceusedbythiscomponentref3798    deviceusedbythiscomponentrefProp = property(get_deviceusedbythiscomponentref, set_deviceusedbythiscomponentref)3799    def get_findby(self): return self.findby3800    def set_findby(self, findby): self.findby = findby3801    findbyProp = property(get_findby, set_findby)3802    def hasContent_(self):3803        if (3804            self.usesidentifier is not None or3805            self.componentinstantiationref is not None or3806            self.devicethatloadedthiscomponentref is not None or3807            self.deviceusedbythiscomponentref is not None or3808            self.findby is not None3809        ):3810            return True3811        else:3812            return False3813    def export(self, outfile, level, namespace_='', name_='usesport', namespacedef_='', pretty_print=True):3814        imported_ns_def_ = GenerateDSNamespaceDefs_.get('usesport')3815        if imported_ns_def_ is not None:3816            namespacedef_ = imported_ns_def_3817        if pretty_print:3818            eol_ = '\n'3819        else:3820            eol_ = ''3821        if self.original_tagname_ is not None:3822            name_ = self.original_tagname_3823        showIndent(outfile, level, pretty_print)3824        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))3825        already_processed = set()3826        self.exportAttributes(outfile, level, already_processed, namespace_, name_='usesport')3827        if self.hasContent_():3828            outfile.write('>%s' % (eol_, ))3829            self.exportChildren(outfile, level + 1, namespace_='', name_='usesport', pretty_print=pretty_print)3830            showIndent(outfile, level, pretty_print)3831            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))3832        else:3833            outfile.write('/>%s' % (eol_, ))3834    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='usesport'):3835        pass3836    def exportChildren(self, outfile, level, namespace_='', name_='usesport', fromsubclass_=False, pretty_print=True):3837        if pretty_print:3838            eol_ = '\n'3839        else:3840            eol_ = ''3841        if self.usesidentifier is not None:3842            showIndent(outfile, level, pretty_print)3843            outfile.write('<usesidentifier>%s</usesidentifier>%s' % (self.gds_encode(self.gds_format_string(quote_xml(self.usesidentifier), input_name='usesidentifier')), eol_))3844        if self.componentinstantiationref is not None:3845            self.componentinstantiationref.export(outfile, level, namespace_, name_='componentinstantiationref', pretty_print=pretty_print)3846        if self.devicethatloadedthiscomponentref is not None:3847            self.devicethatloadedthiscomponentref.export(outfile, level, namespace_, name_='devicethatloadedthiscomponentref', pretty_print=pretty_print)3848        if self.deviceusedbythiscomponentref is not None:3849            self.deviceusedbythiscomponentref.export(outfile, level, namespace_, name_='deviceusedbythiscomponentref', pretty_print=pretty_print)3850        if self.findby is not None:3851            self.findby.export(outfile, level, namespace_, name_='findby', pretty_print=pretty_print)3852    def build(self, node):3853        already_processed = set()3854        self.buildAttributes(node, node.attrib, already_processed)3855        for child in node:3856            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]3857            self.buildChildren(child, node, nodeName_)3858        return self3859    def buildAttributes(self, node, attrs, already_processed):3860        pass3861    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):3862        if nodeName_ == 'usesidentifier':3863            usesidentifier_ = child_.text3864            usesidentifier_ = self.gds_validate_string(usesidentifier_, node, 'usesidentifier')3865            self.usesidentifier = usesidentifier_3866        elif nodeName_ == 'componentinstantiationref':3867            obj_ = componentinstantiationref.factory()3868            obj_.build(child_)3869            self.componentinstantiationref = obj_3870            obj_.original_tagname_ = 'componentinstantiationref'3871        elif nodeName_ == 'devicethatloadedthiscomponentref':3872            obj_ = devicethatloadedthiscomponentref.factory()3873            obj_.build(child_)3874            self.devicethatloadedthiscomponentref = obj_3875            obj_.original_tagname_ = 'devicethatloadedthiscomponentref'3876        elif nodeName_ == 'deviceusedbythiscomponentref':3877            obj_ = deviceusedbythiscomponentref.factory()3878            obj_.build(child_)3879            self.deviceusedbythiscomponentref = obj_3880            obj_.original_tagname_ = 'deviceusedbythiscomponentref'3881        elif nodeName_ == 'findby':3882            obj_ = findby.factory()3883            obj_.build(child_)3884            self.findby = obj_3885            obj_.original_tagname_ = 'findby'3886# end class usesport3887class providesport(GeneratedsSuper):3888    subclass = None3889    superclass = None3890    def __init__(self, providesidentifier=None, componentinstantiationref=None, devicethatloadedthiscomponentref=None, deviceusedbythiscomponentref=None, findby=None):3891        self.original_tagname_ = None3892        self.providesidentifier = providesidentifier3893        self.componentinstantiationref = componentinstantiationref3894        self.devicethatloadedthiscomponentref = devicethatloadedthiscomponentref3895        self.deviceusedbythiscomponentref = deviceusedbythiscomponentref3896        self.findby = findby3897    def factory(*args_, **kwargs_):3898        if CurrentSubclassModule_ is not None:3899            subclass = getSubclassFromModule_(3900                CurrentSubclassModule_, providesport)3901            if subclass is not None:3902                return subclass(*args_, **kwargs_)3903        if providesport.subclass:3904            return providesport.subclass(*args_, **kwargs_)3905        else:3906            return providesport(*args_, **kwargs_)3907    factory = staticmethod(factory)3908    def get_providesidentifier(self): return self.providesidentifier3909    def set_providesidentifier(self, providesidentifier): self.providesidentifier = providesidentifier3910    providesidentifierProp = property(get_providesidentifier, set_providesidentifier)3911    def get_componentinstantiationref(self): return self.componentinstantiationref3912    def set_componentinstantiationref(self, componentinstantiationref): self.componentinstantiationref = componentinstantiationref3913    componentinstantiationrefProp = property(get_componentinstantiationref, set_componentinstantiationref)3914    def get_devicethatloadedthiscomponentref(self): return self.devicethatloadedthiscomponentref3915    def set_devicethatloadedthiscomponentref(self, devicethatloadedthiscomponentref): self.devicethatloadedthiscomponentref = devicethatloadedthiscomponentref3916    devicethatloadedthiscomponentrefProp = property(get_devicethatloadedthiscomponentref, set_devicethatloadedthiscomponentref)3917    def get_deviceusedbythiscomponentref(self): return self.deviceusedbythiscomponentref3918    def set_deviceusedbythiscomponentref(self, deviceusedbythiscomponentref): self.deviceusedbythiscomponentref = deviceusedbythiscomponentref3919    deviceusedbythiscomponentrefProp = property(get_deviceusedbythiscomponentref, set_deviceusedbythiscomponentref)3920    def get_findby(self): return self.findby3921    def set_findby(self, findby): self.findby = findby3922    findbyProp = property(get_findby, set_findby)3923    def hasContent_(self):3924        if (3925            self.providesidentifier is not None or3926            self.componentinstantiationref is not None or3927            self.devicethatloadedthiscomponentref is not None or3928            self.deviceusedbythiscomponentref is not None or3929            self.findby is not None3930        ):3931            return True3932        else:3933            return False3934    def export(self, outfile, level, namespace_='', name_='providesport', namespacedef_='', pretty_print=True):3935        imported_ns_def_ = GenerateDSNamespaceDefs_.get('providesport')3936        if imported_ns_def_ is not None:3937            namespacedef_ = imported_ns_def_3938        if pretty_print:3939            eol_ = '\n'3940        else:3941            eol_ = ''3942        if self.original_tagname_ is not None:3943            name_ = self.original_tagname_3944        showIndent(outfile, level, pretty_print)3945        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))3946        already_processed = set()3947        self.exportAttributes(outfile, level, already_processed, namespace_, name_='providesport')3948        if self.hasContent_():3949            outfile.write('>%s' % (eol_, ))3950            self.exportChildren(outfile, level + 1, namespace_='', name_='providesport', pretty_print=pretty_print)3951            showIndent(outfile, level, pretty_print)3952            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))3953        else:3954            outfile.write('/>%s' % (eol_, ))3955    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='providesport'):3956        pass3957    def exportChildren(self, outfile, level, namespace_='', name_='providesport', fromsubclass_=False, pretty_print=True):3958        if pretty_print:3959            eol_ = '\n'3960        else:3961            eol_ = ''3962        if self.providesidentifier is not None:3963            showIndent(outfile, level, pretty_print)3964            outfile.write('<providesidentifier>%s</providesidentifier>%s' % (self.gds_encode(self.gds_format_string(quote_xml(self.providesidentifier), input_name='providesidentifier')), eol_))3965        if self.componentinstantiationref is not None:3966            self.componentinstantiationref.export(outfile, level, namespace_, name_='componentinstantiationref', pretty_print=pretty_print)3967        if self.devicethatloadedthiscomponentref is not None:3968            self.devicethatloadedthiscomponentref.export(outfile, level, namespace_, name_='devicethatloadedthiscomponentref', pretty_print=pretty_print)3969        if self.deviceusedbythiscomponentref is not None:3970            self.deviceusedbythiscomponentref.export(outfile, level, namespace_, name_='deviceusedbythiscomponentref', pretty_print=pretty_print)3971        if self.findby is not None:3972            self.findby.export(outfile, level, namespace_, name_='findby', pretty_print=pretty_print)3973    def build(self, node):3974        already_processed = set()3975        self.buildAttributes(node, node.attrib, already_processed)3976        for child in node:3977            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]3978            self.buildChildren(child, node, nodeName_)3979        return self3980    def buildAttributes(self, node, attrs, already_processed):3981        pass3982    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):3983        if nodeName_ == 'providesidentifier':3984            providesidentifier_ = child_.text3985            providesidentifier_ = self.gds_validate_string(providesidentifier_, node, 'providesidentifier')3986            self.providesidentifier = providesidentifier_3987        elif nodeName_ == 'componentinstantiationref':3988            obj_ = componentinstantiationref.factory()3989            obj_.build(child_)3990            self.componentinstantiationref = obj_3991            obj_.original_tagname_ = 'componentinstantiationref'3992        elif nodeName_ == 'devicethatloadedthiscomponentref':3993            obj_ = devicethatloadedthiscomponentref.factory()3994            obj_.build(child_)3995            self.devicethatloadedthiscomponentref = obj_3996            obj_.original_tagname_ = 'devicethatloadedthiscomponentref'3997        elif nodeName_ == 'deviceusedbythiscomponentref':3998            obj_ = deviceusedbythiscomponentref.factory()3999            obj_.build(child_)4000            self.deviceusedbythiscomponentref = obj_4001            obj_.original_tagname_ = 'deviceusedbythiscomponentref'4002        elif nodeName_ == 'findby':4003            obj_ = findby.factory()4004            obj_.build(child_)4005            self.findby = obj_4006            obj_.original_tagname_ = 'findby'4007# end class providesport4008class componentsupportedinterface(GeneratedsSuper):4009    subclass = None4010    superclass = None4011    def __init__(self, supportedidentifier=None, componentinstantiationref=None, findby=None):4012        self.original_tagname_ = None4013        self.supportedidentifier = supportedidentifier4014        self.componentinstantiationref = componentinstantiationref4015        self.findby = findby4016    def factory(*args_, **kwargs_):4017        if CurrentSubclassModule_ is not None:4018            subclass = getSubclassFromModule_(4019                CurrentSubclassModule_, componentsupportedinterface)4020            if subclass is not None:4021                return subclass(*args_, **kwargs_)4022        if componentsupportedinterface.subclass:4023            return componentsupportedinterface.subclass(*args_, **kwargs_)4024        else:4025            return componentsupportedinterface(*args_, **kwargs_)4026    factory = staticmethod(factory)4027    def get_supportedidentifier(self): return self.supportedidentifier4028    def set_supportedidentifier(self, supportedidentifier): self.supportedidentifier = supportedidentifier4029    supportedidentifierProp = property(get_supportedidentifier, set_supportedidentifier)4030    def get_componentinstantiationref(self): return self.componentinstantiationref4031    def set_componentinstantiationref(self, componentinstantiationref): self.componentinstantiationref = componentinstantiationref4032    componentinstantiationrefProp = property(get_componentinstantiationref, set_componentinstantiationref)4033    def get_findby(self): return self.findby4034    def set_findby(self, findby): self.findby = findby4035    findbyProp = property(get_findby, set_findby)4036    def hasContent_(self):4037        if (4038            self.supportedidentifier is not None or4039            self.componentinstantiationref is not None or4040            self.findby is not None4041        ):4042            return True4043        else:4044            return False4045    def export(self, outfile, level, namespace_='', name_='componentsupportedinterface', namespacedef_='', pretty_print=True):4046        imported_ns_def_ = GenerateDSNamespaceDefs_.get('componentsupportedinterface')4047        if imported_ns_def_ is not None:4048            namespacedef_ = imported_ns_def_4049        if pretty_print:4050            eol_ = '\n'4051        else:4052            eol_ = ''4053        if self.original_tagname_ is not None:4054            name_ = self.original_tagname_4055        showIndent(outfile, level, pretty_print)4056        outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))4057        already_processed = set()4058        self.exportAttributes(outfile, level, already_processed, namespace_, name_='componentsupportedinterface')4059        if self.hasContent_():4060            outfile.write('>%s' % (eol_, ))4061            self.exportChildren(outfile, level + 1, namespace_='', name_='componentsupportedinterface', pretty_print=pretty_print)4062            showIndent(outfile, level, pretty_print)4063            outfile.write('</%s%s>%s' % (namespace_, name_, eol_))4064        else:4065            outfile.write('/>%s' % (eol_, ))4066    def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='componentsupportedinterface'):4067        pass4068    def exportChildren(self, outfile, level, namespace_='', name_='componentsupportedinterface', fromsubclass_=False, pretty_print=True):4069        if pretty_print:4070            eol_ = '\n'4071        else:4072            eol_ = ''4073        if self.supportedidentifier is not None:4074            showIndent(outfile, level, pretty_print)4075            outfile.write('<supportedidentifier>%s</supportedidentifier>%s' % (self.gds_encode(self.gds_format_string(quote_xml(self.supportedidentifier), input_name='supportedidentifier')), eol_))4076        if self.componentinstantiationref is not None:4077            self.componentinstantiationref.export(outfile, level, namespace_, name_='componentinstantiationref', pretty_print=pretty_print)4078        if self.findby is not None:4079            self.findby.export(outfile, level, namespace_, name_='findby', pretty_print=pretty_print)4080    def build(self, node):...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!!
