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

Source Code for Module pyxsd.elementRepresentatives.length

 1   
 2  from elementRepresentative import ElementRepresentative 
 3   
 4  #============================================================ 
 5  # 
6 -class Length(ElementRepresentative):
7 """ 8 The class for the Length 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.value = self.xsdElement.get('value') 17 18 self.getContainingType().length = self.value
19 20 21 #============================================================ 22 #
23 - def getName(self):
24 """ 25 Makes a name like this- `ContainingTypeName`|length. 26 The name on this class is used for almost nothing. 27 """ 28 return "%s|length" % self.getContainingTypeName()
29