2020# along with this program. If not, see http://www.gnu.org/licenses/.
2121
2222#
23- # Generated Mon Jul 30 12:29:35 2018 by generateDS.py version 2.29.14.
24- # Python 2.7.5 (default, Nov 6 2016, 00:28:07 ) [GCC 4.8.5 20150623 (Red Hat 4.8.5-11 )]
23+ # Generated Mon Jun 21 16:13:00 2021 by generateDS.py version 2.29.14.
24+ # Python 2.7.5 (default, Nov 16 2020, 22:23:17 ) [GCC 4.8.5 20150623 (Red Hat 4.8.5-44 )]
2525#
2626# Command line options:
2727# ('-f', '')
@@ -3246,7 +3246,7 @@ def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):
32463246# end class values
32473247
32483248
3249- class childPropertyFile (GeneratedsSuper ):
3249+ class childSoftwarePackageFile (GeneratedsSuper ):
32503250 subclass = None
32513251 superclass = None
32523252 def __init__ (self , localfile = None ):
@@ -3255,13 +3255,13 @@ def __init__(self, localfile=None):
32553255 def factory (* args_ , ** kwargs_ ):
32563256 if CurrentSubclassModule_ is not None :
32573257 subclass = getSubclassFromModule_ (
3258- CurrentSubclassModule_ , childPropertyFile )
3258+ CurrentSubclassModule_ , childSoftwarePackageFile )
32593259 if subclass is not None :
32603260 return subclass (* args_ , ** kwargs_ )
3261- if childPropertyFile .subclass :
3262- return childPropertyFile .subclass (* args_ , ** kwargs_ )
3261+ if childSoftwarePackageFile .subclass :
3262+ return childSoftwarePackageFile .subclass (* args_ , ** kwargs_ )
32633263 else :
3264- return childPropertyFile (* args_ , ** kwargs_ )
3264+ return childSoftwarePackageFile (* args_ , ** kwargs_ )
32653265 factory = staticmethod (factory )
32663266 def get_localfile (self ): return self .localfile
32673267 def set_localfile (self , localfile ): self .localfile = localfile
@@ -3273,8 +3273,8 @@ def hasContent_(self):
32733273 return True
32743274 else :
32753275 return False
3276- def export (self , outfile , level , namespace_ = '' , name_ = 'childPropertyFile ' , namespacedef_ = '' , pretty_print = True ):
3277- imported_ns_def_ = GenerateDSNamespaceDefs_ .get ('childPropertyFile ' )
3276+ def export (self , outfile , level , namespace_ = '' , name_ = 'childSoftwarePackageFile ' , namespacedef_ = '' , pretty_print = True ):
3277+ imported_ns_def_ = GenerateDSNamespaceDefs_ .get ('childSoftwarePackageFile ' )
32783278 if imported_ns_def_ is not None :
32793279 namespacedef_ = imported_ns_def_
32803280 if pretty_print :
@@ -3286,17 +3286,17 @@ def export(self, outfile, level, namespace_='', name_='childPropertyFile', names
32863286 showIndent (outfile , level , pretty_print )
32873287 outfile .write ('<%s%s%s' % (namespace_ , name_ , namespacedef_ and ' ' + namespacedef_ or '' , ))
32883288 already_processed = set ()
3289- self .exportAttributes (outfile , level , already_processed , namespace_ , name_ = 'childPropertyFile ' )
3289+ self .exportAttributes (outfile , level , already_processed , namespace_ , name_ = 'childSoftwarePackageFile ' )
32903290 if self .hasContent_ ():
32913291 outfile .write ('>%s' % (eol_ , ))
3292- self .exportChildren (outfile , level + 1 , namespace_ = '' , name_ = 'childPropertyFile ' , pretty_print = pretty_print )
3292+ self .exportChildren (outfile , level + 1 , namespace_ = '' , name_ = 'childSoftwarePackageFile ' , pretty_print = pretty_print )
32933293 showIndent (outfile , level , pretty_print )
32943294 outfile .write ('</%s%s>%s' % (namespace_ , name_ , eol_ ))
32953295 else :
32963296 outfile .write ('/>%s' % (eol_ , ))
3297- def exportAttributes (self , outfile , level , already_processed , namespace_ = '' , name_ = 'childPropertyFile ' ):
3297+ def exportAttributes (self , outfile , level , already_processed , namespace_ = '' , name_ = 'childSoftwarePackageFile ' ):
32983298 pass
3299- def exportChildren (self , outfile , level , namespace_ = '' , name_ = 'childPropertyFile ' , fromsubclass_ = False , pretty_print = True ):
3299+ def exportChildren (self , outfile , level , namespace_ = '' , name_ = 'childSoftwarePackageFile ' , fromsubclass_ = False , pretty_print = True ):
33003300 if pretty_print :
33013301 eol_ = '\n '
33023302 else :
@@ -3318,92 +3318,16 @@ def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):
33183318 obj_ .build (child_ )
33193319 self .localfile = obj_
33203320 obj_ .original_tagname_ = 'localfile'
3321- # end class childPropertyFile
3322-
3323-
3324- class childDescriptorFile (GeneratedsSuper ):
3325- subclass = None
3326- superclass = None
3327- def __init__ (self , localfile = None ):
3328- self .original_tagname_ = None
3329- self .localfile = localfile
3330- def factory (* args_ , ** kwargs_ ):
3331- if CurrentSubclassModule_ is not None :
3332- subclass = getSubclassFromModule_ (
3333- CurrentSubclassModule_ , childDescriptorFile )
3334- if subclass is not None :
3335- return subclass (* args_ , ** kwargs_ )
3336- if childDescriptorFile .subclass :
3337- return childDescriptorFile .subclass (* args_ , ** kwargs_ )
3338- else :
3339- return childDescriptorFile (* args_ , ** kwargs_ )
3340- factory = staticmethod (factory )
3341- def get_localfile (self ): return self .localfile
3342- def set_localfile (self , localfile ): self .localfile = localfile
3343- localfileProp = property (get_localfile , set_localfile )
3344- def hasContent_ (self ):
3345- if (
3346- self .localfile is not None
3347- ):
3348- return True
3349- else :
3350- return False
3351- def export (self , outfile , level , namespace_ = '' , name_ = 'childDescriptorFile' , namespacedef_ = '' , pretty_print = True ):
3352- imported_ns_def_ = GenerateDSNamespaceDefs_ .get ('childDescriptorFile' )
3353- if imported_ns_def_ is not None :
3354- namespacedef_ = imported_ns_def_
3355- if pretty_print :
3356- eol_ = '\n '
3357- else :
3358- eol_ = ''
3359- if self .original_tagname_ is not None :
3360- name_ = self .original_tagname_
3361- showIndent (outfile , level , pretty_print )
3362- outfile .write ('<%s%s%s' % (namespace_ , name_ , namespacedef_ and ' ' + namespacedef_ or '' , ))
3363- already_processed = set ()
3364- self .exportAttributes (outfile , level , already_processed , namespace_ , name_ = 'childDescriptorFile' )
3365- if self .hasContent_ ():
3366- outfile .write ('>%s' % (eol_ , ))
3367- self .exportChildren (outfile , level + 1 , namespace_ = '' , name_ = 'childDescriptorFile' , pretty_print = pretty_print )
3368- showIndent (outfile , level , 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_ = 'childDescriptorFile' ):
3373- pass
3374- def exportChildren (self , outfile , level , namespace_ = '' , name_ = 'childDescriptorFile' , fromsubclass_ = False , pretty_print = True ):
3375- if pretty_print :
3376- eol_ = '\n '
3377- else :
3378- eol_ = ''
3379- if self .localfile is not None :
3380- self .localfile .export (outfile , level , namespace_ , name_ = 'localfile' , pretty_print = pretty_print )
3381- 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 self
3388- def buildAttributes (self , node , attrs , already_processed ):
3389- pass
3390- def buildChildren (self , child_ , node , nodeName_ , fromsubclass_ = False ):
3391- if nodeName_ == 'localfile' :
3392- obj_ = localFile .factory ()
3393- obj_ .build (child_ )
3394- self .localfile = obj_
3395- obj_ .original_tagname_ = 'localfile'
3396- # end class childDescriptorFile
3321+ # end class childSoftwarePackageFile
33973322
33983323
33993324class child (GeneratedsSuper ):
34003325 subclass = None
34013326 superclass = None
3402- def __init__ (self , name = None , childPropertyFile = None , childDescriptorFile = None ):
3327+ def __init__ (self , name = None , childSoftwarePackageFile = None ):
34033328 self .original_tagname_ = None
34043329 self .name = _cast (None , name )
3405- self .childPropertyFile = childPropertyFile
3406- self .childDescriptorFile = childDescriptorFile
3330+ self .childSoftwarePackageFile = childSoftwarePackageFile
34073331 def factory (* args_ , ** kwargs_ ):
34083332 if CurrentSubclassModule_ is not None :
34093333 subclass = getSubclassFromModule_ (
@@ -3415,19 +3339,15 @@ def factory(*args_, **kwargs_):
34153339 else :
34163340 return child (* args_ , ** kwargs_ )
34173341 factory = staticmethod (factory )
3418- def get_childPropertyFile (self ): return self .childPropertyFile
3419- def set_childPropertyFile (self , childPropertyFile ): self .childPropertyFile = childPropertyFile
3420- childPropertyFileProp = property (get_childPropertyFile , set_childPropertyFile )
3421- def get_childDescriptorFile (self ): return self .childDescriptorFile
3422- def set_childDescriptorFile (self , childDescriptorFile ): self .childDescriptorFile = childDescriptorFile
3423- childDescriptorFileProp = property (get_childDescriptorFile , set_childDescriptorFile )
3342+ def get_childSoftwarePackageFile (self ): return self .childSoftwarePackageFile
3343+ def set_childSoftwarePackageFile (self , childSoftwarePackageFile ): self .childSoftwarePackageFile = childSoftwarePackageFile
3344+ childSoftwarePackageFileProp = property (get_childSoftwarePackageFile , set_childSoftwarePackageFile )
34243345 def get_name (self ): return self .name
34253346 def set_name (self , name ): self .name = name
34263347 nameProp = property (get_name , set_name )
34273348 def hasContent_ (self ):
34283349 if (
3429- self .childPropertyFile is not None or
3430- self .childDescriptorFile is not None
3350+ self .childSoftwarePackageFile is not None
34313351 ):
34323352 return True
34333353 else :
@@ -3462,10 +3382,8 @@ def exportChildren(self, outfile, level, namespace_='', name_='child', fromsubcl
34623382 eol_ = '\n '
34633383 else :
34643384 eol_ = ''
3465- if self .childPropertyFile is not None :
3466- self .childPropertyFile .export (outfile , level , namespace_ , name_ = 'childPropertyFile' , pretty_print = pretty_print )
3467- if self .childDescriptorFile is not None :
3468- self .childDescriptorFile .export (outfile , level , namespace_ , name_ = 'childDescriptorFile' , pretty_print = pretty_print )
3385+ if self .childSoftwarePackageFile is not None :
3386+ self .childSoftwarePackageFile .export (outfile , level , namespace_ , name_ = 'childSoftwarePackageFile' , pretty_print = pretty_print )
34693387 def build (self , node ):
34703388 already_processed = set ()
34713389 self .buildAttributes (node , node .attrib , already_processed )
@@ -3479,16 +3397,11 @@ def buildAttributes(self, node, attrs, already_processed):
34793397 already_processed .add ('name' )
34803398 self .name = value
34813399 def buildChildren (self , child_ , node , nodeName_ , fromsubclass_ = False ):
3482- if nodeName_ == 'childPropertyFile' :
3483- obj_ = childPropertyFile .factory ()
3484- obj_ .build (child_ )
3485- self .childPropertyFile = obj_
3486- obj_ .original_tagname_ = 'childPropertyFile'
3487- elif nodeName_ == 'childDescriptorFile' :
3488- obj_ = childDescriptorFile .factory ()
3400+ if nodeName_ == 'childSoftwarePackageFile' :
3401+ obj_ = childSoftwarePackageFile .factory ()
34893402 obj_ .build (child_ )
3490- self .childDescriptorFile = obj_
3491- obj_ .original_tagname_ = 'childDescriptorFile '
3403+ self .childSoftwarePackageFile = obj_
3404+ obj_ .original_tagname_ = 'childSoftwarePackageFile '
34923405# end class child
34933406
34943407
@@ -3623,8 +3536,7 @@ def main():
36233536__all__ = [
36243537 "author" ,
36253538 "child" ,
3626- "childDescriptorFile" ,
3627- "childPropertyFile" ,
3539+ "childSoftwarePackageFile" ,
36283540 "code" ,
36293541 "compiler" ,
36303542 "dependency" ,
0 commit comments