Package pyxsd :: Package elementRepresentatives :: Module documentation
[hide private]
[frames] | no frames]

Source Code for Module pyxsd.elementRepresentatives.documentation

 1   
 2   
 3  from elementRepresentative import ElementRepresentative 
 4   
 5  #============================================================ 
 6  # 
7 -class Documentation(ElementRepresentative):
8 """ 9 The class for the Documentation tag. Subclass of *ElementRepresentative*. 10 """
11 - def __init__(self, xsdElement, parent):
12 """ 13 See *ElementRepresentative* for documentation. Adds its documentation to the __doc__ field for the ER. 14 """ 15 ElementRepresentative.__init__(self, xsdElement, parent) 16 17 self.contType = self.getContainingType() 18 19 self.contType.__doc__ = xsdElement.text.strip()
20 21 #============================================================ 22 #
23 - def getName(self):
24 """ 25 Makes a name like this- `ContainingTypeName`|documentation. 26 The name on this class is used for almost nothing. 27 """ 28 return "%s|%s" % (self.getContainingTypeName(), 29 self.__class__.__name__)
30