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

Source Code for Module pyxsd.elementRepresentatives.maxExclusive

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