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

Source Code for Module pyxsd.elementRepresentatives.simpleContent

 1  from elementRepresentative import ElementRepresentative 
 2   
 3  #============================================================ 
 4  # 
5 -class SimpleContent(ElementRepresentative):
6 """ 7 The class for the simpleContent tag. Subclass of *ElementRepresentative*. 8 """
9 - def __init__(self, xsdElement, parent):
10 """ 11 See *ElementRepresentative* for documentation. 12 """ 13 ElementRepresentative.__init__(self, xsdElement, parent)
14 15 #============================================================ 16 #
17 - def getName(self):
18 """ 19 Makes a name like this- `ContainingTypeName`|simpleContent. 20 The name on this class is used for almost nothing. 21 """ 22 contName = self.getContainingTypeName() 23 24 name = contName + '|simpleContent' 25 26 return name
27