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

Source Code for Module pyxsd.elementRepresentatives.restriction

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